Closed vitek closed 3 years ago
I guess we'll have to update the default generic find
command and mention in the docs the situation with fd
on Ubuntu.
I'm sorry but "find . -type f -print0 | cut -c3-
does not work since there is only one line in -print0
output
This doesn't work on windows systems. The variable projectile-generic-command
is not protected by projectile-unixy-system-p
. When I find files in a non-git directory, it complains that it can't find cut. Find happens to be a windows command, though an incompatible version.
I found a solution. If you have git installed or some other unix utilities in windows with all the required commands, you can just point the path there. Note that you have to modify the path. Setting exec-path
doesn't work.
(setenv "PATH" (concat tg/unix-utils-path ";" (getenv "PATH")))
Recently found an issue with generic find command. When issued it returns paths with leading
./
, e.g.:While
git ls-files
andfd
does not. Because of leading dot slash projectile does not remove ignored directories and files.I've also found that
fd
is calledfdfind
in ubuntu. Locally I resolved it this way:Think that dot slash should be removed in
projectile-files-via-ext-command
function.