feat: add column width preset cycling for scrolling layout#350
Open
qeude wants to merge 1 commit intoacsandmann:mainfrom
Open
feat: add column width preset cycling for scrolling layout#350qeude wants to merge 1 commit intoacsandmann:mainfrom
qeude wants to merge 1 commit intoacsandmann:mainfrom
Conversation
Adds resize_window_preset_next and resize_window_preset_prev commands that cycle the focused column through configurable width presets. New config option: layout.scrolling.column_width_presets
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.
This PR adds support for cycling the focused column through configurable width presets in the scrolling layout.
New commands
resize_window_preset_nextresize_window_preset_prevNew configuration
layout.scrolling.column_width_presets— a list of width fractions (0.0–1.0) to cycle through.Behavior
When a window is fullscreen, the first preset is applied (or last when cycling backwards). Presets wrap around at the end of the list. The effective column width is updated via the existing
width_offsetmechanism, keeping changes local to the selected column.Example
With
column_width_ratio = 0.7andpresets = [0.33, 0.50, 0.66, 0.99]:Next:
Previous:
Tests
Includes unit tests for forward/backward cycling, wrapping, and fullscreen exit behavior.