How to reset history-index on CTRL-R with CTRL-C #540
-
Hello. I've been looking thru I tried Ctrl + G which should be It seems like Ctrl + J or Enter does indeed reset it. Is it possible to reset the history-index on Ctrl + C ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Use the following setting: # blerc
ble-bind -m 'isearch' -f C-c isearch/cancel By default C-g is the key to cancel the search. It reverts the history position to the original one (i.e., the one before starting the incremental search). To find out how to set it up so that C-c behaves the same as C-g, you can first look at the result of $ ble-bind -m isearch -P
ble-bind -m 'isearch' -f BS isearch/prev
ble-bind -m 'isearch' -f RET isearch/exit
ble-bind -m 'isearch' -f DEL isearch/prev
ble-bind -m 'isearch' -f __defchar__ isearch/self-insert
ble-bind -m 'isearch' -f __default__ isearch/exit-default
ble-bind -m 'isearch' -f __line_limit__ nop
ble-bind -m 'isearch' -f C-RET isearch/accept-line
ble-bind -m 'isearch' -f 'C-?' isearch/prev
ble-bind -m 'isearch' -f C-g isearch/cancel
ble-bind -m 'isearch' -f C-h isearch/prev
ble-bind -m 'isearch' -f C-j isearch/accept-line
ble-bind -m 'isearch' -f C-m isearch/exit
ble-bind -m 'isearch' -f C-r isearch/backward
ble-bind -m 'isearch' -f C-s isearch/forward
ble-bind -m 'isearch' -f 'C-x C-g' isearch/cancel
ble-bind -m 'isearch' -f C-M-g isearch/cancel Then you'll find the line of |
Beta Was this translation helpful? Give feedback.
-
Hmm, maybe I misunderstood what you meant. Maybe it is actually unrelated to C-r, but it is related to the behavior of C-c outside the search mode? I think I can change the behavior of C-c ( |
Beta Was this translation helpful? Give feedback.
I fixed the behavior of
discard-line
in commit 3b2b4b8. @dezza Could you updateble.sh
by runningble-update
and check the behavior?