Skip to content
Myr

[fish] Refactor bind commands

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

Use single check for each default command variable.

authored by bitraid · committed by Junegunn Choi · parent 3f7e8a4 · Browse files · 1 file+4 added−7 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+4 added−7 removed

  • other:+4 added−7 removed

1 file+4 added−7 removed

modified:shell/key-bindings.fish+4 added-7 removed
114 unmodified lines
115 end116 end117118 bind \cr fzf-history-widget119 if not set -q FZF_CTRL_T_COMMAND; or test -n "$FZF_CTRL_T_COMMAND"120 bind \ct fzf-file-widget121 end122 if not set -q FZF_ALT_C_COMMAND; or test -n "$FZF_ALT_C_COMMAND"123 bind \ec fzf-cd-widget124 end125119 bind -M insert \cr fzf-history-widget120121 if not set -q FZF_CTRL_T_COMMAND; or test -n "$FZF_CTRL_T_COMMAND"122 bind \ct fzf-file-widget123 bind -M insert \ct fzf-file-widget124 end125126 if not set -q FZF_ALT_C_COMMAND; or test -n "$FZF_ALT_C_COMMAND"127 bind \ec fzf-cd-widget128 bind -M insert \ec fzf-cd-widget129 end130131 function __fzf_parse_commandline -d 'Parse the current command line token and return split of existing filepath, fzf query, and optional -option= prefix'
46 unmodified lines