selectrum: fix +selectrum-file-search

This commit is contained in:
Itai Y. Efrat 2021-04-10 19:13:40 +03:00
parent d1f241479c
commit 4aaf7e571c
2 changed files with 2 additions and 4 deletions

View file

@ -31,7 +31,7 @@ one face."
(concat (if all-files "-uu")
(unless recursive "--maxdepth 1")
"--null --line-buffered --color=always --max-columns=500 --no-heading --line-number"
" --hidden -g!.git "
" --hidden -g !.git "
(mapconcat #'shell-quote-argument args " ")))
" "))
(prompt (or prompt
@ -52,7 +52,7 @@ one face."
"\\\\\\\\|")
((concat "\\\\" substr))))
(rxt-quote-pcre (doom-thing-at-point-or-region))))))
(ripgrep-command `("rg" ,@args "." "-e")))
(ripgrep-command (mapconcat #'identity `("rg" ,@args "." "-e ARG OPTS" ) " ")))
(consult--grep prompt ripgrep-command directory query)))
;;;###autoload