diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-17 11:58:25 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-01-17 11:58:25 +0900 |
commit | 7ef0e50507e3896edc1b624d5ea5e73b7fac3506 (patch) | |
tree | 7c24cd538cd67d74f77d3e1646562b9c69c66fd4 /shell | |
parent | 62ab8ece5edb5e7e2d36ffd24d0e32071c863cdc (diff) |
[bash/zsh] Remove unused --reverse in CTRL-R binding
Related #807
Diffstat (limited to 'shell')
-rw-r--r-- | shell/key-bindings.bash | 2 | ||||
-rw-r--r-- | shell/key-bindings.zsh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index 06e9656e..f8e47f5f 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -56,7 +56,7 @@ __fzf_history__() ( shopt -u nocaseglob nocasematch line=$( HISTTIMEFORMAT= history | - FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS +s --tac --no-reverse -n2..,.. --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS +m" $(__fzfcmd) | + FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS +s --tac --no-reverse -n2..,.. --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS +m" $(__fzfcmd) | command grep '^ *[0-9]') && if [[ $- =~ H ]]; then sed 's/^ *\([0-9]*\)\** .*/!\1/' <<< "$line" diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index c8705add..bed639e4 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -55,7 +55,7 @@ fzf-history-widget() { local selected num setopt localoptions noglobsubst pipefail 2> /dev/null selected=( $(fc -l 1 | - FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} --reverse $FZF_DEFAULT_OPTS +s --tac --no-reverse -n2..,.. --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS +m --query=${(q)LBUFFER}" $(__fzfcmd)) ) + FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS +s --tac --no-reverse -n2..,.. --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS +m --query=${(q)LBUFFER}" $(__fzfcmd)) ) local ret=$? if [ -n "$selected" ]; then num=$selected[1] |