fzf

Installs fzf, a general-purpose command-line fuzzy finder with key bindings, shell completion, and theme support.

Current version: 0.2.0 | fzf on GitHub

Usage

"features": {
  "ghcr.io/devopsbuildingblocks/devcontainer-features/fzf:0": {}
}

With a custom theme:

"ghcr.io/devopsbuildingblocks/devcontainer-features/fzf:0": {
  "theme": "dracula"
}

Options

OptionTypeDefaultDescription
versionstringlatestfzf version to install
enableKeyBindingsbooleantrueEnable shell key bindings
enableCompletionbooleantrueEnable fuzzy tab completion
themestringdb2-darkColor theme
defaultOptionsstring--height 40% --layout=reverse --borderSets FZF_DEFAULT_OPTS

Available themes: none, db2-dark, db2-light, tokyo-night, one-dark, dracula, catppuccin, nord, gruvbox

Key bindings

BindingAction
CTRL-TFind file in current directory, insert path at cursor
CTRL-RSearch shell history, run selected command
ALT-CFind directory and cd into it

bat integration

When bat is also installed, CTRL-T automatically uses bat for syntax-highlighted file previews. No additional configuration needed.

Commands: fzf-themes, fzf-theme <name>