Skip to content

Added additional key code for prompt navigation#330

Merged
shazow merged 1 commit intoshazow:masterfrom
voldyman:more-terminal-key-codes
Jan 5, 2020
Merged

Added additional key code for prompt navigation#330
shazow merged 1 commit intoshazow:masterfrom
voldyman:more-terminal-key-codes

Conversation

@voldyman
Copy link
Copy Markdown
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
Copy Markdown
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