fzf-tab icon indicating copy to clipboard operation
fzf-tab copied to clipboard

[Q] Custom Height

Open rakalex opened this issue 1 year ago • 3 comments

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

rakalex avatar Apr 15 '24 16:04 rakalex

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

Aloxaf avatar Apr 24 '24 01:04 Aloxaf

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

rakalex avatar Apr 24 '24 04:04 rakalex

@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

SteveRusin avatar Jun 25 '24 15:06 SteveRusin