Skip to content

How to filter by content of files within selected files or list of files showing #1188

Answered by ibhagwan
wjdwndud0114 asked this question in Q&A
Discussion options

You must be logged in to vote

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

I know there is a with the builtin live_grep but I can't use that due to it being too slow (icons slow without the custom icon calculation). If it's possible to change my setup to use this as well as custom icons, please let me know!

Why don’t you call fzf_live with a custom rg command piped into your iconifier in the same way you called fzf_exec?

Assuming your iconifier can handle file:line:col:text output from rg

fzf.fzf_live(
    "rg --line-number --column --color=always -- <query> | ~/.dotfiles/file-web-devicon", {
      actions = fzf.defaults.

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@wjdwndud0114
Comment options

@wjdwndud0114
Comment options

@ibhagwan
Comment options

@wjdwndud0114
Comment options

@ibhagwan
Comment options

Answer selected by ibhagwan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants