Project

General

Profile

Feature #14125

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

Added by rlue (Ryan Lue) almost 2 years ago. Updated 3 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:83859]

Description

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,
  • XU 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.

History

Updated by rlue (Ryan Lue) almost 2 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) almost 2 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.

#3

Updated by jeremyevans0 (Jeremy Evans) 3 months 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