Closed Doodler8888 closed 9 months ago
it was my mistake:
(defun fzf-from-home-with-fd ()
"Starts fzf from the user's home directory using fd to include hidden files and exclude certain directories."
(interactive)
(setenv "FZF_DEFAULT_COMMAND" "fd --type f --hidden --follow --exclude .git .")
(let ((default-directory "~/"))
(fzf-directory)))```
Hello,
I'm trying to configure the FZF package in Emacs and I'm encountering an issue when I attempt to pass arguments through the
FZF_DEFAULT_COMMAND
environment variable.I have two functions:
fzf-from-home
which works as expected, andfzf-from-home-with-fd
which usesfd
with some arguments. Here are the definitions:When I use
fzf-from-home
, it correctly opens the file I choose. However, when I usefzf-from-home-with-fd
, it opens a dired buffer instead. This happens regardless of whether I usefd
orfind
.I have tried escaping the file paths using
sed
, but the issue persists:Emacs version: 29.1