Skip to content

Add vertical layout#81

Merged
Cretezy merged 5 commits intoCretezy:mainfrom
Charlie-83:main
Feb 15, 2025
Merged

Add vertical layout#81
Cretezy merged 5 commits intoCretezy:mainfrom
Charlie-83:main

Conversation

@Charlie-83
Copy link
Contributor

I use a vertical monitor so the default horizontal layout is pretty much unusable for me.

This PR adds two config options:

  • lazyjj.layout which is either "horizontal" (default) or "vertical"
  • lazyjj.layout-percent which should be an integer between 0 and 100 (default 50) which is the size of the main tab as a percentage of the screen

This PR also renames the "left" pane to the "main" pane and the "right" pane to the "details" pane.

Copy link
Owner

@Cretezy Cretezy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I had also worked on something similar (customizable and dynamic panel sizing), but this is a good and simple solution!

I updated some of the usages of the config, to use self.config instead of storing it.

@Cretezy Cretezy merged commit e286dc1 into Cretezy:main Feb 15, 2025
6 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants