Skip to content

Commit

Permalink
[Fix #1788] Add notes about minimal version of fd
Browse files Browse the repository at this point in the history
Update readme and projectile.el
  • Loading branch information
krydos authored and bbatsov committed Oct 4, 2022
1 parent 20aa2ad commit 383b3bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ See the [online documentation](https://docs.projectile.mx) for more details.
## Caveats

* Some operations like search (grep) depend (presently) on external
utilities such as `find`.
utilities such as `find` or `fd` (version 8.3.0+).
* for older `fd` version add `(setq projectile-generic-command "fd . -0 --type f --color=never")` to your init-file
* Commands depending on external utilities might misbehave on the `fish` shell.
* Using Projectile over TRAMP might be slow in certain cases.
* Some commands might misbehave on complex project setups (e.g. a git project with submodules).
Expand Down
1 change: 1 addition & 0 deletions projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,7 @@ Set to nil to disable listing submodules contents."
(defcustom projectile-generic-command
(cond
;; we prefer fd over find
;; note that --strip-cwd-prefix is only available in version 8.3.0+
((executable-find "fd")
"fd . -0 --type f --color=never --strip-cwd-prefix")
;; fd's executable is named fdfind is some Linux distros (e.g. Ubuntu)
Expand Down

0 comments on commit 383b3bf

Please sign in to comment.