Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

feat: Add VerticalTileLayout #408

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

defer
Copy link

@defer defer commented Aug 5, 2022

Summary

A Vertical tiling layout which is tailored for portrait orientated
monitors but might have use cases in landscape as well.

The intended behavior is for the master area to take a fixed (but
configurable via shortcut) percentage of the screen and for the
remaining panes to split the remaining space. Multiple masters are
supported and will share the master area equally.

An example of two masters, followed by a stack of two panels:

 ---------
|         |
|   M1    |
|         |
| ------- |
|         |
|   M2    |
|         |
 ---------
|    1    |
 ---------
|    2    |
 ---------

The layout is disabled by default.

Breaking Changes

No

UI Changes

Before After
Before, there was nothing... after

Test Plan

  1. Go to layouts, enable vertical tile, apply.
  2. Change to vertical tile.
  3. Presto.

Related Issues

Closes #397

A Vertical tiling layout which is tailored for portrait orientated
monitors but might have use cases in landscape as well.

The intended behavior is for the master area to take a fixed (but
configurable via shortcut) percentage of the screen and for the
remaining panes to split the remaining space. Multiple masters are
supported and will share the master area equally.

Two masters, followed by a stack of two panels:
  ---------
 |         |
 |   M1    |
 |         |
 | ------- |
 |         |
 |   M2    |
 |         |
  ---------
 |    1    |
  ---------
 |    2    |
  ---------
@gikari
Copy link
Member

gikari commented Aug 6, 2022

A Vertical tiling layout which is tailored for portrait orientated
monitors but might have use cases in landscape as well.

Since its intended purpose is for using with rotated vertical monitors, is it possible to theoretically achieve the behavior of this layout, using an existing one, but rotating it?

@defer
Copy link
Author

defer commented Aug 6, 2022

I guess it could be achieved if a rotated tile layout kept the non-master stack vertical rather than horizontal but didn't want to introduce such breakage.

@krshrimali
Copy link

krshrimali commented Aug 21, 2022

I love this! Thanks for your work, @defer! @gikari - would love if this can be merged (if it looks okay to you and if you have the time) <3

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

Successfully merging this pull request may close these issues.

[FEATURE]: Vertical Layout for portrait setup
4 participants