feat: add max_window_width configuration for tiling windows#1270
Open
Entharia wants to merge 3 commits intoglzr-io:mainfrom
Open
feat: add max_window_width configuration for tiling windows#1270Entharia wants to merge 3 commits intoglzr-io:mainfrom
Entharia wants to merge 3 commits intoglzr-io:mainfrom
Conversation
Removed caching of sibling count
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #1266
Adds the feature described here
This pull request adds support for a new
max_window_widthconfiguration option, allowing users to set a maximum width for tiling windows—particularly useful for ultra-wide monitors. The implementation ensures that when this option is set, windows will not exceed the specified width and will be centered within the available space. The changes span configuration parsing, workspace state management, and the tiling layout algorithm.Configuration and Documentation:
max_window_widthoption to thegeneralsection in bothREADME.mdandsample-config.yaml, including documentation and usage examples. [1] [2]GeneralConfigstruct and its default implementation to include the newmax_window_widthfield. [1] [2]Workspace and State Management:
max_window_widthsetting through workspace creation and reload logic, ensuring each workspace receives and stores this configuration. [1] [2] [3] [4] [5] [6]Tiling Layout Algorithm:
max_window_widthconstraint: windows are limited in width and centered if the total width of all windows plus gaps is less than the workspace width. This logic is applied only in horizontal tiling mode. [1] [2] [3] [4]