Skip to content

Filter out results from consult-grep/ripgrep etc with !filter-string #1119

Closed Answered by mattiasdrp
mattiasdrp asked this question in Q&A
Discussion options

You must be logged in to vote

Ok so the reason why it didn't work in my setup is that I had these lines in my lsp-mode config:

   (defun minad/orderless-dispatch-prefixes-first (_pattern index _total)
     (and (eq index 0) 'orderless-prefixes))

   (add-hook 'orderless-style-dispatchers #'minad/orderless-dispatch-prefixes-first)

I don't remember exactly what they did but commenting them brought back the behaviour of orderless for string filtering. I tried to find in the different wikis (consult, corfu, vertico) if I could find these lines but there have been either removed or they're in a different place.

Replies: 7 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@minad
Comment options

@mattiasdrp
Comment options

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
@mattiasdrp
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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

This discussion was converted from issue #1118 on October 20, 2024 23:21.