Skip to content
Discussion options

You must be logged in to vote

One can easily do this by wrapping the original function with (let ((consult--buffer-display #'switch-to-buffer-other-window)).
Here is an example for consult-git-grep:

  (defun consult-git-grep-other-window (&optional dir initial)
  "Variant of `consult-git-grep', switching to a buffer in another window."
  (interactive "P")
  (let ((consult--buffer-display #'switch-to-buffer-other-window))
    (consult-git-grep dir initial)))

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@minad
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jeffy1009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants