Aloxaf / fzf-tab

Replace zsh's default completion selection menu with fzf!
MIT License
2.98k stars 90 forks source link

[Q] Custom Height #429

Closed rakalex closed 4 days ago

rakalex commented 2 months ago

Is is possible to control the height size or number of items to show?

when there not much items, it shows just 2 lines.

image

but when there are many, then it show them as normal

image
Aloxaf commented 2 months ago

try zstyle ':fzf-tab:*' fzf-flags --height=10

rakalex commented 2 months ago

no, it doesn't, it fixes the first screen, but as you can see then it breaks the second one with large list.

image image
SteveRusin commented 1 week ago

@rakalex try this zstyle ':fzf-tab:*' fzf-flags --height=~40

Accordingly to the docs ~ is a key here

--height=[~]HEIGHT[%]  Display fzf window below the cursor with the given
                       height instead of using fullscreen.
                       A negative value is calculated as the terminal height
                       minus the given value.
                       If prefixed with '~', fzf will determine the height