Closed Doodler8888 closed 2 weeks ago
Additionally, I tried defines the functions like this, but it doesn't solve the problem.:
(defun fzf-from-root-no-prompt ()
(interactive)
(fzf-with-command "fd --hidden --follow --exclude .git --exclude .snapshots --exclude opt --exclude lib --exclude lib64 --exclude mnt --exclude proc --exclude run --exclude sbin --exclude srv --exclude sys --exclude tmp . /"
(lambda (selected)
(when selected
(find-file selected)))))
(defun fzf-from-home-no-prompt ()
(interactive)
(fzf-with-command "fd --hidden --follow --exclude .git . ~/"
(lambda (selected)
(when selected
(find-file selected)))))
I have a function like this:
Usually, it works correctly, but if I try to use it in an Eshell buffer and I haven't used the function in the current session, then the fzf window gets invoked as if I would run the (fzf) function without setting the "FZF_DEFAULT_COMMAND" variable.
Emacs version: 29.2