Skip to content
Myr

[fish] Fix <C-t> completion for current dir search (#946)

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

If "." is given as the argument to begin <C-t> completion, the leading "." is not correctly removed. In general, if user selects a fzf completion, the current token should be "consumed".

authored by John Nguyen · committed by Junegunn Choi · parent 842a733 · Browse files · 1 file+1 added−3 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+1 added−3 removed

  • other:+1 added−3 removed

1 file+1 added−3 removed

modified:shell/key-bindings.fish+1 added-3 removed
27 unmodified lines
28 end29 if [ -z "$result" ]30 commandline -f repaint31 return32 end3334 if [ "$dir" != . ]32 else33 # Remove last token from commandline.34 commandline -t ""35 end36 for i in $result
49 unmodified lines