Skip to content

Commit

Permalink
bump default fzf height to 90% and improve fzf option explanations
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickF1 committed Oct 17, 2020
1 parent 9156467 commit 1cdf39e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions conf.d/fzf.fish
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ end
# If FZF_DEFAULT_OPTS is not set, then set some sane defaults. This also affects fzf outside of this plugin.
# See https://github.com/junegunn/fzf#environment-variables
if not set --query FZF_DEFAULT_OPTS
# cycle makes scrolling easier
# reverse layout is more familiar as it mimicks the layout of git log, history, and env
# cycle allows jumping between the top and bottom most results, making scrolling easier
# reverse layout lists results from top to bottom, which is more familiar as it mimicks the layout of git log, history, and env
# border makes clear where the fzf window ends
# height 75% allows you to view what you were doing and stay in context of your work
# preview-window wrap wraps long lines in the preview window
set --export FZF_DEFAULT_OPTS '--cycle --layout=reverse --border --height 75% --preview-window=wrap'
# height 90% leaves space to see the command line and some terminal scrollback, maintaining context of work
# preview-window wrap wraps long lines in the preview window, making reading easier
set --export FZF_DEFAULT_OPTS '--cycle --layout=reverse --border --height 90% --preview-window=wrap'
end

0 comments on commit 1cdf39e

Please sign in to comment.