From 4aaf7e571c90e001afd2f6c12aeaba50d4c562f1 Mon Sep 17 00:00:00 2001 From: "Itai Y. Efrat" Date: Sat, 10 Apr 2021 19:13:40 +0300 Subject: [PATCH] selectrum: fix +selectrum-file-search --- modules/completion/selectrum/TODO.org | 2 -- modules/completion/selectrum/autoload/selectrum.el | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/completion/selectrum/TODO.org b/modules/completion/selectrum/TODO.org index f1b0c7086..d7171328d 100644 --- a/modules/completion/selectrum/TODO.org +++ b/modules/completion/selectrum/TODO.org @@ -1,11 +1,9 @@ * PROJ List of things not working -** TODO =SPC s p= ** TODO Start-up with recent files ** TODO Add vanilla keybindings *** TODO Add keybinding for embark-act ** TODO ~+orderless~ doesn't work ** TODO ~+prescient~ causes marginalia to not be loaded automatically. -** TODO ~+selectrum-file-search~ * PROJ List of things needed for Ivy parity ** TODO Icons https://github.com/minad/marginalia/issues/59 diff --git a/modules/completion/selectrum/autoload/selectrum.el b/modules/completion/selectrum/autoload/selectrum.el index d0b437e85..10e04ada0 100644 --- a/modules/completion/selectrum/autoload/selectrum.el +++ b/modules/completion/selectrum/autoload/selectrum.el @@ -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