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:

function my/emacs/set-up-history-movements-with-control {
  # For emacs editing mode
  ble-bind -m emacs -f C-up 'history-prev'
  ble-bind -m emacs -f C-down 'history-next'
}
blehook/eval-after-load keymap_emacs my/emacs/set-up-history-movements-with-control

function my/vi/set-up-history-movements-with-control {
  # For vi editing mode
  ble-bind -m vi_imap -f C-up 'his…

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
6 replies
@akinomyoga
Comment options

@DJCrashdummy
Comment options

@akinomyoga
Comment options

@akinomyoga
Comment options

@DJCrashdummy
Comment options

Answer selected by romaia
Comment options

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

@akinomyoga
Comment options

Comment options

You must be logged in to vote
3 replies
@akinomyoga
Comment options

@DJCrashdummy
Comment options

@akinomyoga
Comment options

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