how to grep through a passed filelist
- Dominant language
- Vim Script
- Stars
- 10.3k
- Forks
- 608
- Avg merge
- 5d 8h
- Merged PRs (30d)
- 2
Description
- [x] I have fzf 0.30.0 or above
- [x] I have read through https://github.com/junegunn/fzf.vim/blob/master/README.md
- [x] I have read through https://github.com/junegunn/fzf/blob/master/README-VIM.md
- [x] I have read through the manual page of fzf (`man fzf`)
- [x] I have searched through the existing issues
Hi @nkouevda
inspired by your solution in https://github.com/junegunn/fzf.vim/issues/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 ` 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 '}, 0))
Also bonus would be if i can do `:LS -q <> <>`
Currently what is do is
bat filelist | xargs \rg <> -l
which is i want to replace achieve in vim ... with interactive fzf search
TIA
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the posted :LS command and its fzf#run/fzf#wrap entry points, then read the linked fzf.vim issue and the referenced README sections. Clarify how a passed file list should feed interactive content search and how the optional -q syntax should work; done means the requested command behavior is documented or reproducible in Vim.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vim
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100