Skip to content
Myr

[fish] Use consistent function names for key bindings (#546)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- fzf-file-widget - fzf-history-widget - fzf-cd-widget

authored by Junegunn Choi · committed by Junegunn Choi · parent c727ba1 · Browse files · 1 file+9 added−9 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−9 removed

  • other:+9 added−9 removed

1 file+9 added−9 removed

modified:shell/key-bindings.fish+9 added-9 removed
11 unmodified lines
12 echo -n (echo -n "$item" | sed -E 's/([ "$~'\''([{<>})])/\\\\\\1/g')' '13 end14 end1516 function __fzf_ctrl_t16 function fzf-file-widget17 set -q FZF_CTRL_T_COMMAND; or set -l FZF_CTRL_T_COMMAND "18 command find -L . \\( -path '*/\\.*' -o -fstype 'dev' -o -fstype 'proc' \\) -prune \19 -o -type f -print \20 -o -type d -print \
3 unmodified lines
24 commandline -f repaint25 rm -f $TMPDIR/fzf.result26 end2728 function __fzf_ctrl_r28 function fzf-history-widget29 history | eval (__fzfcmd) +s +m --tiebreak=index --toggle-sort=ctrl-r $FZF_CTRL_R_OPTS > $TMPDIR/fzf.result30 and commandline (cat $TMPDIR/fzf.result)31 commandline -f repaint32 rm -f $TMPDIR/fzf.result33 end3435 function __fzf_alt_c35 function fzf-cd-widget36 set -q FZF_ALT_C_COMMAND; or set -l FZF_ALT_C_COMMAND "37 command find -L . \\( -path '*/\\.*' -o -fstype 'dev' -o -fstype 'proc' \\) -prune \38 -o -type d -print 2> /dev/null | sed 1d | cut -b3-"39 # Fish hangs if the command before pipe redirects (2> /dev/null)
17 unmodified lines
57 echo "fzf"58 end59 end6061 bind \ct '__fzf_ctrl_t'62 bind \cr '__fzf_ctrl_r'63 bind \ec '__fzf_alt_c'61 bind \ct fzf-file-widget62 bind \cr fzf-history-widget63 bind \ec fzf-cd-widget6465 if bind -M insert > /dev/null 2>&166 bind -M insert \ct '__fzf_ctrl_t'67 bind -M insert \cr '__fzf_ctrl_r'68 bind -M insert \ec '__fzf_alt_c'66 bind -M insert \ct fzf-file-widget67 bind -M insert \cr fzf-history-widget68 bind -M insert \ec fzf-cd-widget69 end70end71