Filter out results from consult-grep/ripgrep etc with !filter-string #1119
-
Hi minad, I'm trying to filter out results from my search but it looks like the way I do it is not working well: If I try to filter out lines with And it works as expected when I try to keep them: Am I doing something wrong or can this only be used to filter lines containing the second part of the input string? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 3 replies
-
Please try to reproduce the issue with a minimal setup. See https://github.com/minad/consult?tab=readme-ov-file#bug-reports. |
Beta Was this translation helpful? Give feedback.
-
With the following init.el file:
|
Beta Was this translation helpful? Give feedback.
-
If my cursor is just after the second (Sorry, this is only true if I don't use
If I use it: It filters according to the filename so nothing is filtered out when using
But |
Beta Was this translation helpful? Give feedback.
-
I don't understand how your minimal setup is supposed to work so I used a custom one based on lsp-plain.el from lsp-mode:
And it gives me the same result |
Beta Was this translation helpful? Give feedback.
-
I see in these setups that the completion styles used are substring and basic, neither of which supports |
Beta Was this translation helpful? Give feedback.
-
Ok, I'm so stupid. I used Sorry for the noise |
Beta Was this translation helpful? Give feedback.
-
Ok so the reason why it didn't work in my setup is that I had these lines in my lsp-mode config:
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. |
Beta Was this translation helpful? Give feedback.
Ok so the reason why it didn't work in my setup is that I had these lines in my lsp-mode config:
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.