Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added additional key code for prompt navigation #330

Merged
merged 1 commit into from
Jan 5, 2020

Conversation

voldyman
Copy link
Contributor

@voldyman voldyman commented Jan 5, 2020

Added key code handling for shortcuts:

  • Alt-F: jump forward by a word
  • Alt-B: jump backword by a word
  • Ctrl-F: jump forward by a character
  • Ctrl-B: jump backword by a character

these are congruent with the spec provided by readline and are used by shells like bash & zsh.

Copy link
Owner

@shazow shazow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. You can probably get this merged upstream, if you feel like going through the trouble. :)

@shazow shazow merged commit 1b2a3e9 into shazow:master Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants