Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



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


For further inspiration, there are some interesting scripts making use of fzf here: https://github.com/DanielFGray/fzf-scripts




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: