Aloxaf / fzf-tab

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

[Q] Custom Height #429

Closed rakalex closed 4 months ago

rakalex commented 7 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 7 months ago

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

rakalex commented 7 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 5 months 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