Skip to content
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

how to grep through a passed filelist #1519

Open
5 tasks done
justrajdeep opened this issue Jan 4, 2024 · 0 comments
Open
5 tasks done

how to grep through a passed filelist #1519

justrajdeep opened this issue Jan 4, 2024 · 0 comments

Comments

@justrajdeep
Copy link

justrajdeep commented Jan 4, 2024

Hi @nkouevda

inspired by your solution in #1496

what I am trying to do is pass a filelist and let fzf search for things in files in that list

Currently have this mapping where i can pass the filelist :LS <filelist> how do i enhance it to grep in the files in the passed list?

command! -bang -complete=file -nargs=1 LS  call fzf#run(fzf#wrap('ls_filelist', {'source': 'bat <q-args>'}, <bang>0))

Also bonus would be if i can do :LS -q <<string to search>> <<filelist>>

Currently what is do is

bat filelist | xargs \rg <<search>> -l

which is i want to replace achieve in vim ... with interactive fzf search

TIA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant