Skip to content
Myr

[fish] Don't strip leading dot (.) character

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

Fix the removal of the leading dot character from the query, when <Ctrl-T> was pressed and the current command line token started with a dot. It was also removed when <Alt-C> was pressed and the directory didn't exist under the current path.

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

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:shell/key-bindings.fish+1 added-1 removed
170 unmodified lines
171172 # BUG: on combined expressions, if a left argument is a single `!`, the173 # builtin test command of fish will treat it as the ! operator. To174 # overcome this, have the variable parts on the right.175 if test "." = "$dir" -a "." != (string sub -l 1 -- $commandline)175 if test "." = "$dir" -a "./" != (string sub -l 2 -- $commandline)176 # if $dir is "." but commandline is not a relative path, this means no file path found177 set fzf_query $commandline178 else179 # Also remove trailing slash after dir, to "split" input properly
26 unmodified lines