Skip to main content

Command Palette

Search for a command to run...

FZF Tips

Published
•1 min read•View as Markdown

Install fd (brew install fd) to have a better find option

# Set fd as the default source for fzf
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix'

# FZF default options
export FZF_DEFAULT_OPTS="
  --tmux 70%
  --header='CTRL-D: Directories / CTRL-F: Files / CTRL-C or ESC: Quit'
  --style=minimal
  --height=80%
  --layout=reverse
  --info=inline
  --border=rounded
  --prompt='▶ '
  --pointer='→'
  --marker='♡'
  --border-label=Fuzzy-Finder
  --preview 'bat --color=always --style=grid,numbers {}'
  --preview-window 'down,60%,border-bottom,+{2}+3/3,~3'
  --bind 'ctrl-d:change-prompt(Directories> )+reload(fd --type d --strip-cwd-prefix)'
  --bind 'ctrl-f:change-prompt(Files> )+reload(fd --type f --strip-cwd-prefix)'
"