octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56151] esc should clear command line, edits s


From: Rik
Subject: [Octave-bug-tracker] [bug #56151] esc should clear command line, edits shouldn't disable history
Date: Wed, 17 Apr 2019 14:08:59 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #5, bug #56151 (project octave):

Readline is a complicated, but configurable tool.

Assuming default Emacs keybindings are in place you might want to look at the
cheatsheet here (http://readline.kablamo.org/emacs.html).

I can use the sequence Ctrl+g to abort entering, but leave the edited command
history in place, and then use Ctrl+p for previous history or Ctrl+n for next
history.  That seems to cover the use case you had in mind.

I happen to use VI-mode and, in this instance, it seems to provide better
behavior.  If I use 'ESC' to exit from editing mode in to command mode then I
can use the cursor up / cursor down keys instead of Ctrl+p / Ctrl+n to
navigate through history.

This seems likely to be an upstream issue.  Octave uses Readline which the
user is allowed to configure through their .inputrc in any way they like, but
we shouldn't change the user's settings unilaterally.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56151>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]