DEV Community


lightweight fzf usages

Updated on ・1 min read

effective and core usage of fzf is writing function in .bashrc or something like that.

this article focuses lightweight usages.

open vim with fzf

vim $(fzf)

open meld(diff tool) with fzf

 meld $(fzf -m)

read json REST Api with fzf

curl ... | json_pp | fzf

Discussion (1)

ramblingenzyme profile image
Satvik Sharma

I'm quite fond of using ripgrep along with the VSCode CLI launcher.

code $(rg $SEARCH -l)

I've recently pulled fzf in by doing

code $(rg $SEARCH -l | fzf)

I will admit to have written this as a Fish Shell function but it's just so useful.