-
-
Notifications
You must be signed in to change notification settings - Fork 854
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
Improve live_grep #1818
Comments
It seems like string_grep and live_grep have the two halves to what we want; they're just not put together. String_grep greps for an initial term and the results can be filtered by typing additional terms in the telescope prompt, but string_grep takes only the word under cursor for the initial term; you can't enter it on command line or in Telescope prompt. live_grep lets you enter the initial term but you can't narrow the results by typing in additional terms. The way it works on Emacs (at least with consult-ripgrep, which is what I used), is that you can type in the initial term in the prompt, then the command seamlessly accepts any additional terms as filters on the initial results. edit: This gets pretty close to the Emacs way, though you don't get any preview or completion with the initial input term: |
I wanted something like this, so I use the telescope-rg extension which gives you access to Now to search for
or perhaps
You can get pretty advanced with the glob matching so you can exclude tests with |
Telescope rg is OK, but still not good enough. 1- I can't separate the search with space unless i put 'my search' |
I was looking for the same functionality and found: https://github.com/ibhagwan/fzf-lua The command is |
This is exactly what i want for telescope! |
You can now refine your live grep search and move to a fuzzy environment with |
@Conni2461 That is awesome. I think this feature should be advertised more prominently! |
Recently i migrated from emacs to vim, im loving the performance, etc.
But i missing something crucial: The project text finder is a little weak and too poluted.
Here is a comparassion:
Searching
stableCoin
on project and filtering for filename that containssol
(you can divide the search with#
)Emacs:
Neovim:
On telescope, it repeats the file a lot of times., make it poluted.
On telescope i cannot filter by filename (i have to use grep_string with search=)
Emacs: Doom Emacs default search
The text was updated successfully, but these errors were encountered: