====== fzf ======
General-purpose fuzzy finder. Filters any list interactively. Written in Go.
fzf # fuzzy-find files in current directory
ls | fzf # fuzzy filter any piped list
history | fzf # search shell history interactively
===== Shell Keybindings =====
After ''$(fzf --bash)'' or sourcing the provided scripts:
^ Key ^ Action ^
| ''Ctrl+r'' | Fuzzy search shell history |
| ''Ctrl+t'' | Fuzzy find files, paste path to command line |
| ''Alt+c'' | Fuzzy find directories, cd into selected |
===== With bat Preview =====
fzf --preview 'bat --color=always --line-range :50 {}'
===== Install =====
sudo apt install fzf
# then add to ~/.bashrc:
eval "$(fzf --bash)"
===== See Also =====
* [[terminal:tools:modern_cli_tools|Modern CLI Tools]]
* [[terminal:tools:bat|bat]]
* [[terminal:tools:start|Terminal Tools Index]]
* [[terminal:start|Return to terminal]]