hannesm / jackline

minimalistic secure XMPP client in OCaml
BSD 2-Clause "Simplified" License
250 stars 20 forks source link

Expand on Emacs key bindings #164

Closed mneilsen closed 7 years ago

mneilsen commented 7 years ago

This change adds additional key bindings for C-right and C-left's behavior of jumping the cursor forward or backward one word:

Additionally, variations of the above were added to delete words forward and backwards; see kill_word and backward_kill_word. The following bindings were added.

hannesm commented 7 years ago

thanks!

hannesm commented 7 years ago

out of curiousity, which terminal emulation do you use? The M-d and M-backspace does not seem to work in my xterm (I suspect notty needs to be extended for this)?

mneilsen commented 7 years ago

I've tested (with positive results) iTerm2 and Terminal.app in MacOS and urxvt in Linux.

Based on your comment, I fired up xterm and also noticed that M-d and M-backspace do not work as expected. Furthermore, M-f and M-b are misbehaving here as well.