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

Set window size in config #341

Open
Nemo157 opened this issue Aug 29, 2024 · 1 comment
Open

Set window size in config #341

Nemo157 opened this issue Aug 29, 2024 · 1 comment
Labels
modalkit Issues that require an accompanying modalkit change

Comments

@Nemo157
Copy link
Contributor

Nemo157 commented Aug 29, 2024

I want to have my default layout with a :chats pane on the left, but configured layouts get the space split evenly between the splits making it way too big. It looks like this should be pretty easy to support by exposing WindowLayoutDescription::length into the config.

@Nemo157
Copy link
Contributor Author

Nemo157 commented Aug 30, 2024

I looked into implementing this, but it's not so trivial, WindowLayoutDescription treats None as 0 if any siblings have a length set. It seems modalkit-ratatui needs some enhancements to support having a length defined for just some children of a split and letting the rest flex to the rest of the space.

@ulyssa ulyssa added the modalkit Issues that require an accompanying modalkit change label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
modalkit Issues that require an accompanying modalkit change
Projects
None yet
Development

No branches or pull requests

2 participants