fzf Layout, UI, and Styling

Tune layout, borders, headers, sorting, and visual style for cleaner fuzzy-finder interfaces.

View
StandardDetailedCompact
Export
Copy the compact sheet, download it, or print it.
Download
`D` dense toggle · `C` copy all
## Layout options
Use a compact reverse layout
fzf --height=40% --layout=reverse

# Display fzf in the lower portion of the terminal with the prompt at the top.

Use full-screen mode
fzf --height=100%

# Open fzf in a full-screen interactive view.

Add border and label
fzf --border --border-label=' Search ' --prompt='❯ '

# Decorate the UI with a border and title-like labels.

Show inline info and a header
fzf --info=inline --header='Type to filter, TAB to mark, Enter to accept'

# Tighten the top section while keeping guidance visible.

Preserve colored input
git -c color.status=always status --short | fzf --ansi

# Interpret ANSI color codes from the input stream.

## Style and theme
Set UI defaults globally
export FZF_DEFAULT_OPTS='--color=fg:#d0d0d0,bg:#101010,hl:#ffaf5f --pointer=▶ --marker=✓ --border'

# Store your preferred UI settings in FZF_DEFAULT_OPTS.

Enable cyclic movement and sort
fzf --cycle --tac

# Make navigation wrap around and control sorting behavior.

Disable result sorting
history | fzf --no-sort

# Keep input order instead of sorting matches by score.

Freeze top lines
(printf 'PID CMD
'; ps -eo pid,comm) | fzf --header-lines=1

# Keep table headings pinned at the top while filtering the rest.

Recommended next

No recommendations yet.