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

Provide default emacs key-bindings for ctrl-left, ctrl-right, and ctrl-default #9

Merged
merged 1 commit into from
Sep 5, 2016

Conversation

PerBothner
Copy link
Contributor

Xterm-compatible terminals transmit certain weird but recognizable key sequences for ctrl-left, ctrl-right, and ctrl-default. These should be bound to the "standard" bindings: forward-word, backward-word, and
kill-word, as GNU readline (and emacs) does. (There is no special key sequence for ctrl-backspace.)

This patch only handles the emacs bindings. It seems reasonable to do the same for vi - both vicmd and viins.

…l-default

Xterm-compatible terminals transmit certain weird but recognizable key
sequences for ctrl-left, ctrl-right, and ctrl-default. These should be
bound to the "standard" bindings: forward-word, backward-word, and
kill-word, as GNU readline (and emacs) does. (There is no special key
sequence for ctrl-backspace.)

This patch only handles the emacs bindings. It seems reasonable to do
the same for vi - both vicmd and viins.
@PerBothner
Copy link
Contributor Author

Reminder - it would be nice to get my two pull requests merged.

@gnodet gnodet merged commit d89e8b4 into jline:master Sep 5, 2016
@PerBothner PerBothner deleted the bind-ctrl-words branch September 7, 2016 14:57
gnodet pushed a commit to gnodet/jline3 that referenced this pull request Jan 23, 2024
Add shutdown() call to jline console
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