Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Search Directory] Use fd or fdfind unaliased to resolve apparent hang #282

Merged
merged 10 commits into from
Jan 15, 2023
Prev Previous commit
update comment
  • Loading branch information
PatrickF1 committed Jan 15, 2023
commit 0c2d03811828b7bf59d9d8e569eb311c2bb2310e
3 changes: 2 additions & 1 deletion functions/_fzf_search_directory.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
function _fzf_search_directory --description "Search the current directory. Replace the current token with the selected file paths."
# On Ubuntu and other Debian-based Linux distributions, fd binary is installed as fdfind.
# Directly use fd binary to avoid output buffering delay caused by a fd alias, if any.
# Debian-based distros install fd as fdfind so also check for that. Fall back to "fd" for a clear error message.
set fd_cmd (command -v fd || command -v fdfind || echo "fd")
set --append fd_cmd --color=always $fzf_fd_opts

Expand Down