fzf
Turn any list into an interactive picker, with fuzzy search.
fzf takes a list on its input — files, branches, commits, anything — and turns it into an interactive picker with fuzzy search: type a few letters, the list narrows, Enter returns the choice. It does nothing else, and that is what makes it so useful: it is a building block you plug in everywhere.
Where I use it
Mostly through other tools:
zifrom zoxide to pick among similar folders;omp-themeandomp-color, my commands to switch the prompt's theme (Oh My Posh);- in my scripts, whenever they need to ask "which one?".
And directly, for one-off choices:
git branch | fzf # pick a branch
fd -e md | fzf --preview "bat {}" # pick a file, with a preview
code (fzf) # open the chosen file in VS Code
In the search, 'word requires an exact match, ^start and end$ anchor, and !word excludes.
What I no longer use
The PSFzf module added shortcuts such as Ctrl+R to PowerShell to search history with fzf. I no longer load it:
PSReadLine's suggestions and CortX's terminal cover that need.
