aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2020-03-02 23:22:52 +0100
committerBen Beltran <ben@nsovocal.com>2020-03-02 23:22:52 +0100
commit31df10186987d2e3dcd633302425886625e51fb9 (patch)
tree4b53675834326cfef355fd9ead0f3c93b91703ed
parentec48932ff896ba580d9d9039d990a7cbd05eb549 (diff)
Restore Ctrl+R for backward search
-rw-r--r--zsh/modules/editor.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/zsh/modules/editor.zsh b/zsh/modules/editor.zsh
index 8bc4dae..9f0da4b 100644
--- a/zsh/modules/editor.zsh
+++ b/zsh/modules/editor.zsh
@@ -131,9 +131,11 @@ bindkey -M vicmd "u" undo
bindkey -M vicmd "$key_info[Control]R" redo
if (( $+widgets[history-incremental-pattern-search-backward] )); then
+ bindkey '^R' history-incremental-pattern-search-backward
bindkey -M vicmd "?" history-incremental-pattern-search-backward
bindkey -M vicmd "/" history-incremental-pattern-search-forward
else
+ bindkey '^R' history-incremental-search-backward
bindkey -M vicmd "?" history-incremental-search-backward
bindkey -M vicmd "/" history-incremental-search-forward
fi