Open krishnakumarg1984 opened 2 years ago
I agree that the windows (especially the active window) getting squished is not ideal. I've pushed up a change that should fix that. This won't produce the exact behavior you're asking for when windows have a manually-set width, but it's far simpler and should cover the common cases.
Hmm. If you have carefully constructed your window splits layouts (and saved them to a session using a session management plugin), equalising all the other splits after opening an aerial window might not be desirable at all.
This window equalising strategy will also not play well with plugins that provide a golden-ratio layout for the splits.
All in all, while preventing the squishing up is great, it would be respectful of user's custom layouts if the plugin can adhere to the pre-aerial split proportions if it is technically feasible to do so.
Description Let's say we have two files opened in vertical splits. If we open the symbols outline with any suitable
:Aerialxxx
command (or keymapping), that window gets squished up (i.e. becomes smaller than the other window which doesn't correspond to the aerial symbols).The expected behaviour is that the two originally opened windows should retain their width proportions after opening/closing aerial window(s). Examples:
Preliminary Ideas
max_width
,width
, andmin_width
setting tables as usual.System information
Screenshots Before opening aerial window
After opening aerial window (the buffer from which the
:AerialOpen
was triggered gets squished up in width).