-
Is there a way to
So far if I try to access an entry to edit it (by pressing Enter) it jumps there but closes the search UI. So I need to re-run search after each edit, or alternatively I need to copy the file / line from the found result and open it explicitly somewhere else (like separate editor instance?). Is there a way to do it better? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 27 replies
-
There is a much better workflow, a few options:
To further improve on this add a history file to grep and you’ll be able to go back/next on your searches: Another refinement options is to select all entries you’re interested in and press enter, by default multiple entries will go to quick fix, you can then go back and forth the quickfix wirh |
Beta Was this translation helpful? Give feedback.
-
That unfortuntaly is not possible due to fzf limitations being an external process. |
Beta Was this translation helpful? Give feedback.
-
How do you select several entries for it? |
Beta Was this translation helpful? Give feedback.
-
If anyone needs, I found another tip that helps with these kind of workflows. Customize your ripgrep call like this (i.e. add :lua require('fzf-lua').live_grep_native({ cmd = "rg ... --sort=path" }, resume = true) This will ensure result of rg is deterministic and sorted (at the cost of running it single threaded). This is super useful when re-running searches especially with |
Beta Was this translation helpful? Give feedback.
There is a much better workflow, a few options:
live_grep
and enter a wide capturing regex to narrow down the resultsctrl-g
to toggle to fuzzy search so you’re already working on a smaller set:FzfLua grep resume=true
and continue where you left off, both search regex and fuzzy query will be resumed so you can continue thectrl-g
back and forthTo further improve on this add a history file to grep and you’ll be able to go back/next on your searches:
https://github.com/ibhagwan/fzf-lua/wiki#how-do-i-setup-input-history-keybinds
Another refinement options is to select all entries you’re interested in and press enter, by default …