Skip to content
Justin Puah edited this page Jul 13, 2026 · 1 revision

Config for fzf.

Files

File Loaded via Notes
fzfrc $env:FZF_DEFAULT_OPTS_FILE Base layout/binding options

Color theme (catppuccin mocha/latte) is set dynamically in $env:FZF_DEFAULT_OPTS by the PowerShell profile based on the OS dark/light setting — mirrors nvim.

File and directory sources come from fd when it is installed: the profile sets FZF_DEFAULT_COMMAND / FZF_CTRL_T_COMMAND (files) and FZF_ALT_C_COMMAND (directories) to fd. This is deliberately decoupled from ripgreprc — rg is tuned exhaustive (--no-ignore) for searching, whereas the pickers want a clean, .gitignore-respecting list. Only the Alt+c directory picker strictly needs fd (rg cannot list directories). Without fd, fzf falls back to its built-in walker. Live Alt+f search (Invoke-FzfRipgrep) still uses rg.

Settings

Setting Effect
--layout=reverse Prompt at top, results below
--border=rounded Rounded border around the popup
--info=inline-right Match count shown at right of prompt
--scroll-off=3 Keep 3 lines of context when scrolling
--highlight-line Highlight the full current line
--wrap Wrap long lines instead of truncating
--bind=ctrl-a:select-all Select all matches
--bind=?:toggle-preview Toggle preview pane

Keybindings

In-fzf (apply everywhere fzf is invoked)

Key Action
Ctrl+a Select all matches
? Toggle preview pane

PowerShell shell (PSFzf)

Key Action
Ctrl+r Fuzzy reverse history search
Ctrl+t Fuzzy file picker (insert path at cursor)
Tab Fuzzy tab completion
Alt+c Fuzzy directory picker — cd into selection
Ctrl+? Show fuzzy-searchable hotkey cheatsheet (keys)
Alt+f Fuzzy ripgrep search across files
Alt+b Fuzzy git branch switcher (switch_git_branch)
Alt+g Fuzzy git worktree navigator (cd_git_worktree)

PSFzf aliases:

Alias Action
frg Interactive ripgrep search — refine the query live, results in fzf
fe Fuzzy-pick a file and open it in $env:EDITOR
fgs Fuzzy browser over git status output
fh Fuzzy command history — paste selected command onto the line
fkill Fuzzy process picker — kill selected process
fcd Fuzzy directory picker — cd into selection (same as Alt+c)

Bash / WSL

Key Action
Ctrl+r Fuzzy history search (__fzf_history)

Neovim (<leader> = Space)

Key Action
<leader>ff Find files (:Files)
<leader>fg Grep in files (:Rg)
<leader>fb Find open buffers (:Buffers)
<leader>fc Find commands (:Commands)
<leader>fl Find lines in loaded buffers (:Lines)

Install

$env:FZF_DEFAULT_OPTS_FILE and $env:RIPGREP_CONFIG_PATH are set in powershell/Microsoft.PowerShell_profile.ps1 pointing directly at the repo files — no copy needed, changes are live immediately.


Source: fzf/README.md in the dotfiles repo.

dotfiles wiki

Getting started

Core (Windows)

Cross-platform

Claude Code & AI

Reference

Legacy (Linux)

Troubleshooting

Clone this wiki locally