How to filter by content of files within selected files or list of files showing #1188
-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Correct, you’d need to construct a special rg command from the list of files and feed that into
Not sure if I understand this question, you can always use |
Beta Was this translation helpful? Give feedback.
-
I missed the part where your icon generating logic is actually in the shell: fd -H --type f --strip-cwd-prefix | ~/.dotfiles/file-web-devicon
Why don’t you call
fzf.fzf_live(
"rg --line-number --column --color=always -- <query> | ~/.dotfiles/file-web-devicon", {
actions = fzf.defaults.actions.files,
cwd = vim.api.nvim_eval("expand('%:p:~:.:h')"),
prompt = vim.api.nvim_eval("expand('%:p:~:.:h')") .. '> ',
fzf_opts = {
['--multi'] = 999,
['--nth'] = 2,
['--delimiter'] = fzf.utils.nbsp
},
previewer = 'builtin',
}) |
Beta Was this translation helpful? Give feedback.
-
@wjdwndud0114, FYI, ty for letting me know this existed, might be useful one day :-) |
Beta Was this translation helpful? Give feedback.
I missed the part where your icon generating logic is actually in the shell:
Why don’t you call
fzf_live
with a customrg
command piped into your iconifier in the same way you calledfzf_exec
?