Skip to content

Add style presets #4160

@junegunn

Description

@junegunn

Summary

The growing number of options for tweaking the interface can be overwhelming, and it takes some effort for each user to keep up with the latest updates. And you can easily end up with a long $FZF_DEFAULT_OPTS. To address this, consider offering "style presets" that can be activated using the --style=[default|minimal|full] option.

Proposal

fzf --style full

  • All inner borders (--list-border --input-border --header-border)
    • Also enabling the outer border (--border) seems a bit too much
  • --info inline-right because we're already wasting too many lines for borders
  • --highlight-line
fzf --style full --preview 'cat {}' --bind 'focus:transform-header:file --brief {}'
image

fzf --style default

The usual.

image

fzf --style minimal

  • No gutter (--color gutter:-1)
  • No separator (--no-separator)
  • No scrollbars (--no-scrollbar)
  • No scroll indicator in the preview window (--preview-window noinfo)
  • Minimal preview border (--preview-border line)
image

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions