DEV Community

r_tanaka
r_tanaka

Posted on • Updated on

lightweight fzf usages

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)

Collapse
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.