Skip to content

Commit

Permalink
different tactic
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickF1 committed Apr 15, 2021
1 parent 1e5c92b commit 18bc775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/__fzf_search_current_dir.fish
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function __fzf_search_current_dir --description "Search the current directory. R
if string match --quiet -- "*/" $token && test -d "$unescaped_exp_token"
set --append fd_opts --base-directory=$unescaped_exp_token
# use the directory name as fzf's prompt to indicate the search is limited to that directory
set --prepend fzf_arguments --prompt="$unescaped_exp_token" --preview="__fzf_preview_file '$expanded_token{}'"
set --prepend fzf_arguments --prompt="$unescaped_exp_token" --preview="__fzf_preview_file $expanded_token'{}'"
set file_paths_selected $unescaped_exp_token(fd $fd_opts 2>/dev/null | fzf $fzf_arguments)
else
set --prepend fzf_arguments --query="$unescaped_exp_token" --preview='__fzf_preview_file {}'
Expand Down

0 comments on commit 18bc775

Please sign in to comment.