Created
February 22, 2021 22:21
-
-
Save holtzermann17/15ceb1f2181c149fc3ca8ed28240e1b1 to your computer and use it in GitHub Desktop.
Make helm-fd work with generic fd executable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/helm-fd.el b/helm-fd.el | |
index 405e9270..6f8c7140 100644 | |
--- a/helm-fd.el | |
+++ b/helm-fd.el | |
@@ -77,11 +77,11 @@ | |
"Initialize fd process in an helm async source." | |
(let* (process-connection-type | |
(cmd (append helm-fd-switches (split-string helm-pattern " "))) | |
- (proc (apply #'start-process "fd" nil "fd" cmd)) | |
+ (proc (apply #'start-process "fd" nil helm-fd-executable cmd)) | |
(start-time (float-time)) | |
(fd-version (replace-regexp-in-string | |
"\n" "" | |
- (shell-command-to-string "fd --version")))) | |
+ (shell-command-to-string (concat helm-fd-executable " --version"))))) | |
(helm-log "Fd command:\nfd %s" (mapconcat 'identity cmd " ")) | |
(helm-log "VERSION: %s" fd-version) | |
(prog1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On Ubuntu 20.04 the executable is called
fdfind
requiring this config:... alongside the patch above.