-
-
Notifications
You must be signed in to change notification settings - Fork 845
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
invert live_grep #2191
Comments
you can pass additional args to both live_grep and grep_string, but it seems like that Will be done by this evening |
That's fantastic! Thank you! |
Here is the current behavior I am seeing with the following command: I would like to see the names of the files here instead of "nil:nil:nil". |
thanks for confirming that its actually broken. i was 90% sure it wouldn't work out of the box. #2208 should fix parsing for Would be awesome if you could test it. after that i would merge the PR. (Probably tomorrow, its already 10:30pm for me) |
Cool! Happy to test. I tried to install your branch as a plugin, but Packer couldn't install it. What am I doing wrong? I tried:
Also tried using: |
i think it should be use({
"Conni2461/telescope.nvim", branch = "fix/rg_invert_matches_arg_parsing",
requires = { { "nvim-lua/plenary.nvim" } },
}) |
I tried your branch. It is now showing files in the preview, but the filtering does not appear to be functioning properly. For example, my file |
okay we aren't applying the filter, rg gives us the results!? What happens if you do the exact same query in your terminal?
|
Hmm, this doesn't seem to work in the terminal either. I am still seeing |
this means i had to update the PR, just run PackerSync, after that |
Thats a problem of live grep in general and not of that issue. Items selected / Items filtered / Items in list The last two filtered and in list, are the same because live_grep isn't filtering, because it always gets data directly from rg after each prompt change. I'll fix this in a different PR and will merge #2208 Ill open a new issue for strange display. Thanks for testing :) |
#2210 is the new issue for the displaying issue |
Thanks! @Conni2461 |
I just implemented such feature in my telescope extension, please see the showcase on Youtube. |
Is your feature request related to a problem? Please describe.
I often want to generate a list of all files which do not contain
String A
. Grep has a-v
option to accomplish this. I think this would be a great feature for Telescope.Describe the solution you'd like
A simple way to perform a live invert grep.
Describe alternatives you've considered
I looked over the docs. I do not see an option for invert grep. I'm also unaware of extensions which offer this.
The text was updated successfully, but these errors were encountered: