|
3 | 3 | ;; Copyright (C) 2006-2009, 2011-2012, 2015-2018 |
4 | 4 | ;; Phil Hagelberg, Doug Alcorn, Will Farrington, Chen Bin |
5 | 5 | ;; |
6 | | -;; Version: 6.2.2 |
| 6 | +;; Version: 6.2.3 |
7 | 7 | ;; Author: Phil Hagelberg, Doug Alcorn, and Will Farrington |
8 | 8 | ;; Maintainer: Chen Bin <[email protected]> |
9 | 9 | ;; URL: https://github.com/redguardtoo/find-file-in-project |
|
177 | 177 | :group 'convenience) |
178 | 178 |
|
179 | 179 | (defcustom ffip-use-rust-fd nil |
180 | | - "Use rust fd instead of find." |
| 180 | + "Use rust fd instead of GNU find." |
181 | 181 | :link '(url-link :tag "fd @ GitHub" |
182 | 182 | "https://github.com/sharkdp/fd") |
183 | 183 | :group 'ffip |
184 | 184 | :type 'boolean |
185 | 185 | :safe #'booleanp) |
186 | 186 |
|
| 187 | +(defcustom ffip-rust-fd-executable-name "fd" |
| 188 | + "Rust fd executable name." |
| 189 | + :group 'ffip |
| 190 | + :type 'string) |
| 191 | + |
| 192 | +(defcustom ffip-gnu-find-executable-name "find" |
| 193 | + "GNU find executable name." |
| 194 | + :group 'ffip |
| 195 | + :type 'string) |
187 | 196 |
|
188 | 197 | (defcustom ffip-rust-fd-respect-ignore-files t |
189 | 198 | "Don't show search results from '.*ignore' files." |
@@ -612,7 +621,8 @@ If CHECK-ONLY is true, only do the check." |
612 | 621 |
|
613 | 622 | (defun ffip--executable-find () |
614 | 623 | "Find EXE on all environments." |
615 | | - (let* ((exe (if ffip-use-rust-fd "fd" "find")) |
| 624 | + (let* ((exe (if ffip-use-rust-fd ffip-rust-fd-executable-name |
| 625 | + ffip-gnu-find-executable-name)) |
616 | 626 | rlt) |
617 | 627 | (cond |
618 | 628 | ((file-remote-p default-directory) |
|
0 commit comments