3 ms·
It can be useful to let you (fuzzily) pick from a list of things to execute a command. I use it to interact with git, i.e.: - checkout local git branch from c
by mfontani 5y ago
It can be useful to let you (fuzzily) pick from a list of things to execute a command.
I use it to interact with git, i.e.:
- checkout local git branch from curated list of branches fed through fzf
- cherry pick commits from the previous (@{-1}) branch, using fzf + preview showing each commit's "diff"
- pick recent SHA to git revert
- pick files changed from {master,main,blead}
- pick files currently uncommitted
- aidos 5y agoOh jeez, those are great examples. Thanks. I only use it in neovim (telescope), this post and your comment have inspired me to start trying it on the command line.
- b3morales 5y agoFor further inspiration, there are some interesting scripts making use of fzf here: https://github.com/DanielFGray/fzf-scripts https://github.com/DanielFGray/fzf-scripts