Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fish] Accept starting dir for <M-c> key binding (#944)
This also modifies <C-t> behaviour. The longest file path in the input is used as root directory for `find` command. The remainder of the input is passed to fzf's --query as a initial search parameters.
- Loading branch information
1 parent
dbcaec5
commit 70cfa6a
Showing
1 changed file
with
62 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Just out of curiosity, why are you using double nested quotes here? Couldn't
' -m --query "'$fzf_query'"'
be simplified to" -m --query $fzf_query"
?I ask because although the Fish shell normally does not expand variables in single quotes,
eval
seems to expand variables in both single and double quotes as follows:Does this make sense, or am I missing something?