Feature #14125


Readline Module (STDLIB): Add support for ^O emacs keybinding?

Added by rlue (Ryan Lue) over 4 years ago. Updated almost 3 years ago.

Target version:


The pry gem features a REPL that uses the Readline stdlib module. With the help of this module, pry's REPL supports most emacs-style readline key bindings:

  • ^P / ^N for navigating up/down the command line history,
  • ^K for killing text to the end of the line,
  • ^Y for yanking last-killed text,
  • ^X^U for undoing,
  • etc.

However, it does NOT support ^O (run command and load next line in history), and I found no reference to the binding in the docs.

I can't speak for anyone else, but I'd very much like to see this functionality implemented in the Readline module.

Updated by rlue (Ryan Lue) over 4 years ago

Whoops. All those superscript characters should be regular characters preceded by a carat, to signify a CTRL key binding.

Updated by shevegen (Robert A. Heiler) over 4 years ago

Is the functionality you referred to in the C readline available already?

Sometimes it may take a little while to have all C-related code from bindings
available e. g. in the ruby Readline module. I know way too little about
Readline, except that I use it a lot in ruby, so any change that makes
Readline even more awesome than it already is, must be a good change.

Actions #3

Updated by jeremyevans0 (Jeremy Evans) almost 3 years ago

  • Backport deleted (2.3: UNKNOWN, 2.4: UNKNOWN)
  • ruby -v deleted (2.4.1)
  • Tracker changed from Bug to Feature

Also available in: Atom PDF