PRIMARY CATEGORIES → DESKTOP SETUP  •  SERVER SETUP

FZFA General-Purpose Command-Line Fuzzy Finder 🔎

It is an interactive Text Filter program for any kind of list such as →

  • Files

  • Command History → C-R

  • System Processes → Tab

  • SSH Connections → Tab

References 🛈

Github Repository

FZF Documentation

Check this out too


Installation

Reference

Clone the Github Repository and run the Install Script as follows →

git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install

That’s it!

$ command -V fzf
fzf is /home/al3xbb/.fzf/bin/fzf

To enable some handy features of FZF, add the following lines in the .zshrc file

File Preview with BAT

~/.zshrc
export FZF_DEFAULT_OPTS="--height 40% --border --preview 'bat --color=always {} 2> /dev/null'"

The above one modifies the FZF’s Display Format and enables File Preview Mode with BAT

FD instead of Find

~/.zshrc
export FZF_DEFAULT_COMMAND="fd --type f"

Repeat all the above steps as Root



Shortcuts

Shorcuts’ Meaning
KeyMeaning
CControlC-cControl+c
MAltM-aAlt+a
SShiftS-oShift+o
SuperWindowsSuper-sWindows+s
ReturnEnterC-S-ReturnControl+Shift+Enter
-+C-zControl+z
{a,b,c,d}a b c dC-{a,b,c,d}C-a C-b C-c C-d
Reverse History
ActionShortcut
ToogleC-r
Up/DownC-k C-j
C-p C-n
Select ItemReturn
ExitC-g C-c Esc
Mark Items Backward/Forward
(Multiselect Mode)
TAB S-TAB
Others
ActionShortcut
File SelectionC-t
cd-like MovementM-c
Autocomplete** + TAB

Integration

FZF supports integrations with some Tools and Functionalities such as →

Nvim/Vim/Vi
$ nvim $( fzf )

Bat/Cat
$ bat $( fzf )