Skip to content

Commit 7b14fa7

Browse files
committed
[Search Directory] fix using wrong fd on Debian OSes
Follow up to a bug and missing readme update in #282. #282 (comment)
1 parent ff3e9c5 commit 7b14fa7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ First, install a proper version of these CLI dependencies:
8686
| [fd][] | 8.5.0 | faster, colorized alternative to `find` |
8787
| [bat][] | 0.16.0 | smarter `cat` with syntax highlighting |
8888

89-
[fd][] and [bat][] only need to be installed if you will use [Search Directory][]. If your package manager [doesn't install them as `fd` and `bat`](https://github.com/PatrickF1/fzf.fish/wiki/Troubleshooting#search-directory-does-not-work) respectively, then you can symlink them to those names.
89+
[fd][] and [bat][] only need to be installed if you will use [Search Directory][].
9090

9191
Next, because `fzf.fish` is incompatible with other fzf plugins, [check for and remove these two common alternatives](https://github.com/PatrickF1/fzf.fish/wiki/Uninstalling-other-fzf-plugins).
9292

functions/_fzf_search_directory.fish

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
function _fzf_search_directory --description "Search the current directory. Replace the current token with the selected file paths."
22
# Directly use fd binary to avoid output buffering delay caused by a fd alias, if any.
3-
# Debian-based distros install fd as fdfind so also check for that. Fall back to "fd" for a clear error message.
4-
set fd_cmd (command -v fd || command -v fdfind || echo "fd")
3+
# Debian-based distros install fd as fdfind and the fd package is something else, so
4+
# check for fdfind first. Fall back to "fd" for a clear error message.
5+
set fd_cmd (command -v fdfind || command -v fd || echo "fd")
56
set --append fd_cmd --color=always $fzf_fd_opts
67

78
# $fzf_dir_opts is the deprecated version of $fzf_directory_opts

0 commit comments

Comments
 (0)