Use --bind instead of --toggle-sort
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Related #822
authored by Junegunn Choi · committed by Junegunn Choi · parent 2e3e721 · Browse files · 4 files·+4 added−4 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
4 files+4 added−4 removed
- other:+4 added−4 removed
Provenance
- Commit
95c77bf- Tree
775c8d1- Author
Junegunn Choi <junegunn.c@gmail.com>- Committer
Junegunn Choi <junegunn.c@gmail.com>- Parent
2e3e721
4 files changed+4 added−4 removed
modified:man/man1/fzf.1+1 added-1 removed
485 unmodified lines486 \fBtoggle+down\fR \fIctrl-i (tab)\fR487 \fBtoggle-in\fR (\fB--reverse\fR ? \fBtoggle+up\fR : \fBtoggle+down\fR)488 \fBtoggle-out\fR (\fB--reverse\fR ? \fBtoggle+down\fR : \fBtoggle+up\fR)489 \fBtoggle-preview\fR490- \fBtoggle-sort\fR (equivalent to \fB--toggle-sort\fR)490+ \fBtoggle-sort\fR491 \fBtoggle+up\fR \fIbtab (shift-tab)\fR492 \fBunix-line-discard\fR \fIctrl-u\fR493 \fBunix-word-rubout\fR \fIctrl-w\fR494 \fBup\fR \fIctrl-k ctrl-p up\fR61 unmodified linesmodified:shell/key-bindings.bash+1 added-1 removed
54 unmodified lines5556575859596061626358 unmodified lines54 unmodified lines local line shopt -u nocaseglob nocasematch line=$( HISTTIMEFORMAT= history | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS +s --tac -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 -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m" $(__fzfcmd) | command grep '^ *[0-9]') && if [[ $- =~ H ]]; then sed 's/^ *\([0-9]*\)\** .*/!\1/' <<< "$line" else58 unmodified linesmodified:shell/key-bindings.fish+1 added-1 removed
43 unmodified lines44 45 function fzf-history-widget -d "Show command history"46 set -q FZF_TMUX_HEIGHT; or set FZF_TMUX_HEIGHT 40%47 begin48- set -lx FZF_DEFAULT_OPTS "--height $FZF_TMUX_HEIGHT $FZF_DEFAULT_OPTS +s --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS +m"48+ 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"49 history | eval (__fzfcmd) -q '(commandline)' | read -l result50 and commandline -- $result51 end52 commandline -f repaint35 unmodified linesmodified:shell/key-bindings.zsh+1 added-1 removed
53 unmodified lines5455565758585960616212 unmodified lines53 unmodified linesfzf-history-widget() { local selected num setopt localoptions noglobsubst pipefail 2> /dev/null selected=( $(fc -l 1 | FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS +s --tac -n2..,.. --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS --query=${(q)LBUFFER} +m" $(__fzfcmd)) ) FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS +s --tac -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS --query=${(q)LBUFFER} +m" $(__fzfcmd)) ) local ret=$? if [ -n "$selected" ]; then num=$selected[1] if [ -n "$num" ]; then12 unmodified lines