diff options
author | Junegunn Choi <junegunn.c@gmail.com> | 2017-03-03 12:20:01 +0900 |
---|---|---|
committer | Junegunn Choi <junegunn.c@gmail.com> | 2017-03-03 12:20:01 +0900 |
commit | c387689d1cd45f0d8eb122fe95ee72ccc61d3bff (patch) | |
tree | f5b8064272d8f91bb0c498c0ae4be854440a8b6b /shell/key-bindings.fish | |
parent | cb9238dc4ee6ee8c9d25fa0c1f6d731b379de9b1 (diff) |
[shell] Enable sorting by default in CTRL-R
CTRL-R binding used to start with --no-sort to list the matched commands
in chronological order. However, it has been a constant source of
confusion. Let's enable it by default from now on. The sorted result
shouldn't be too confusing as we use --tiebreak=index.
Diffstat (limited to 'shell/key-bindings.fish')
-rw-r--r-- | shell/key-bindings.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index c35dac7e..e424f1a1 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -45,7 +45,7 @@ function fzf_key_bindings function fzf-history-widget -d "Show command history" set -q FZF_TMUX_HEIGHT; or set FZF_TMUX_HEIGHT 40% begin - set -lx FZF_DEFAULT_OPTS "--height $FZF_TMUX_HEIGHT $FZF_DEFAULT_OPTS +s --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m" + set -lx FZF_DEFAULT_OPTS "--height $FZF_TMUX_HEIGHT $FZF_DEFAULT_OPTS --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m" history | eval (__fzfcmd) -q '(commandline)' | read -l result and commandline -- $result end |