Replies: 1 comment 3 replies
-
Use live_grep or any other method (LSP) to find the desired files, use alt-q to send the selection to quickfix and use |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Something I do all the time on the command line is use the_silver_searcher command
ag <pattern> -l
to get me a list of files that have contents that match a particular string. I am hoping there is a way to accomplish something similar in fzf.lua. Currently I only know offzf_lua.live_grep()
, which searches the contents of all files under my directory, but flattens each search entry into a separate line in the fzf window. I instead want to see only one entry per file (I think the preview showing the first result would be fine, though ideally I get some kind of aggregate information on the number of matches found per file.My config setup is pretty barebones, and I am sure I can just directly plug the
ag
command in there but I was curious what the 'right' way to do this kind of thing is. Thank you!Beta Was this translation helpful? Give feedback.
All reactions