minad / consult

:mag: consult.el - Consulting completing-read
GNU General Public License v3.0
1.12k stars 98 forks source link

Possible to grep in other window #998

Closed gamb closed 1 month ago

gamb commented 1 month ago

I'd like something similar to the other-window prefix where grepping keeps the current buffer intact and instead I can navigate to / preview results in another window.

Naively I tried:

(let ((consult--buffer-display #'switch-to-buffer-other-window))
      (consult-ripgrep dir initial))

But I don't think this variable is compatible with consult-grep and co.