fix(vertico): search for ripgrep on remote machine

When default-directory is is located on a remote host, we should search for "rg"
on the remote host. (executable-find) without the optional 't' will
search only on the local host.

Fix: #8525
This commit is contained in:
Caramel Hooves
2025-09-24 13:37:41 -07:00
committed by Henrik Lissner
parent 1b6b8c5fde
commit f782b0d021

View File

@@ -17,7 +17,7 @@
:args LIST
Arguments to be appended to `consult-ripgrep-args'."
(declare (indent defun))
(unless (executable-find "rg")
(unless (executable-find "rg" t)
(user-error "Couldn't find ripgrep in your PATH"))
(require 'consult)
(setq deactivate-mark t)