Skip to content

Going back history with multiline commands #440

Answered by akinomyoga
romaia asked this question in Q&A
Discussion options

You must be logged in to vote

In the default binding, PageUp and PageDown are bound by the history prefix search. If the history prefix search is started with an empty command line, it actually moves one history entry for every keypress.

If you would like to configure C-up and C-down for the actual history movement, you can use the following settings:

# For emacs editing mode
ble-bind -m emacs -f C-up 'history-prev'
ble-bind -m emacs -f C-down 'history-next'

# For vi editing mode
ble-bind -m vi_imap -f C-up 'history-prev'
ble-bind -m vi_imap -f C-down 'history-next'
ble-bind -m vi_nmap -f C-up 'vi-command/history-prev'
ble-bind -m vi_nmap -f C-down 'vi-command/history-next'

Or you can also configure the same through …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@romaia
Comment options

@akinomyoga
Comment options

Answer selected by romaia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants