windows.nvim icon indicating copy to clipboard operation
windows.nvim copied to clipboard

Feature: Auto height

Open JoseConseco opened this issue 3 years ago • 5 comments

Imo would be cool to have option to auto adjust win height too. Thanks for great plug!

JoseConseco avatar Sep 30 '22 17:09 JoseConseco

+1. Was even thinking it was a bug that auto height wasn't working

Raekh avatar Oct 12 '22 13:10 Raekh

+1 That's would be awesome to have this feature such as minheight.

edited: typo

bassamsdata avatar Dec 17 '22 03:12 bassamsdata

+1 and I also thought the same way as @Raekh especially when I only had 2 columns of windows 😅

After briefly looking at the code, I think the key point would be able to write a function, Window:get_wanted_height that works similar to below. https://github.com/anuvyklack/windows.nvim/blob/c7492552b23d0ab30325e90b56066ec51242adc8/lua/windows/lib/api.lua#L20-L43

But since there is no textheight, line could be used to calculate the "wanted_height" maybe?

ryuheechul avatar Feb 07 '23 13:02 ryuheechul

+1 This would be awesome!

piersolenski avatar Apr 10 '24 14:04 piersolenski