Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement layout_action rotate for Grid layout #7204

Closed
madblobfish opened this issue Mar 8, 2024 · 1 comment
Closed

Implement layout_action rotate for Grid layout #7204

madblobfish opened this issue Mar 8, 2024 · 1 comment

Comments

@madblobfish
Copy link

Is your feature request related to a problem? Please describe.
Grid layout splits horizontally first. In cases with wide output it's causing line breaks and makes me "zoom in" on one of the two terminals.

Describe the solution you'd like
It would be nice to be able to rotate the grid layout by 90°. The first split would be vertical and use the full width.
For the splits layout there's already layout_action rotate, this could be implemented/reused for grid.

Describe alternatives you've considered
Using splits, but that would mean having to handle the subwindows manually.
Using my tiling window manager and OS windows, but that also means to handle the layouting manually and prevents using some kitty features (shortcuts, ...)

Additional context
I do not think this is required, but I can produce screenshots if it helps.

@kovidgoyal
Copy link
Owner

The first split is horizontal because terminal windows are typically
wide, so putting windows side by side makes sense.

I suggest you look into using an alternate layout like fat or vertical
if thats what you want.

As for changing the way grid lays out windows, not something I care
about, but patches welcome. You can add an option to the grid layout to
split vertically preferentially rather than horizontally. Relevant code
in grid.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants