You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[idea] Configurable width and horizontal alignment for pane layouts
#5681
When using Herdr in a wide terminal window, a single pane often becomes unnecessarily wide for reading shell output or interacting with coding agents.
I'd like to keep a single pane centered at a comfortable reading width while allowing split panes to use the full available space.
For example:
One pane: Use 60% of the available width, leaving 20% margin on each side.
Two or more panes: Automatically return to the full-width layout.
Return to one pane: Automatically restore the centered layout.
Currently, I haven't found a built-in way to achieve this without creating placeholder panes or changing the tab layout.
requested change
I'd like Herdr to support configurable width constraints and horizontal alignment for the pane area, without changing the underlying pane or tab structure.
Rather than introducing a setting specifically for centering a single pane, I suggest a more flexible configuration that separates when the constraint applies from how the area is sized and aligned.
These names and structures are illustrative. I'm open to different naming or a smaller initial scope.
Configuration options
Option
Description
apply_to
Conditions under which the constraint applies
width
Desired width as a percentage or number of terminal columns
min_width
Optional minimum width in columns
max_width
Optional maximum width in columns
align
Horizontal alignment: left, center, or right
Possible conditions:
single_pane: The tab contains exactly one pane.
zoomed: A pane is displayed in zoom mode.
multi_pane: Multiple panes are displayed in a normal split layout.
When multiple conditions are specified, matching any one would activate the constraint.
For multi_pane, the constraint should apply to the entire split layout rather than each pane individually, preserving the existing split ratios.
Width calculation
Percentages should be relative to the available pane area, excluding UI elements such as the sidebar.
The desired width should be constrained by the optional minimum and maximum, then capped at the available width.
For example, with width = "60%", min_width = 80, and max_width = 140:
Available width
Resulting width
60 columns
60 columns
100 columns
80 columns
200 columns
120 columns
300 columns
140 columns
If the available width is smaller than the configured minimum, the layout should use the available width rather than overflow.
It would also be useful to support max_width = 120 without an explicit width, allowing full width up to 120 columns and a centered layout on wider screens.
Changing the terminal width may naturally cause applications to reflow or redraw, as with ordinary terminal resizing.
Backward compatibility
Without this configuration, Herdr should retain its current full-width layout.
Initial scope
I don't think the initial implementation needs vertical alignment, arbitrary conditional rules, or new default keybindings.
A first iteration supporting only single_pane, width, and align would already solve the main use case. Other conditions and width constraints could be added incrementally.
The main goal is to make this a presentation-level feature rather than a workaround that modifies the pane structure.
why you want this
I frequently use Herdr with coding agents and terminal-based development tools in Ghostty.
On a wide monitor, a single full-width terminal pane is not always comfortable to read. A centered, narrower layout would make it easier to follow agent output, code reviews, and command results.
However, when I split the tab into multiple panes, I want to use the available screen space efficiently without manually changing the layout each time.
Automatic, configuration-driven width constraints would provide a better balance between readability and screen utilization.
I also think this could be useful beyond my specific setup:
Users who prefer a maximum reading width rather than a fixed percentage.
Users who want centered layouts when zooming into a pane.
Users who want to constrain an entire multi-pane layout without changing its internal split ratios.
Users who switch between wide desktop monitors and smaller terminal windows.
Unlike pane padding or a manually toggled Zen mode, this proposal focuses on automatically applying width constraints to the existing pane area based on its current layout state.
I'd appreciate feedback on whether this belongs in Herdr's native UI configuration and what a reasonable first implementation might look like.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
idea / problem
When using Herdr in a wide terminal window, a single pane often becomes unnecessarily wide for reading shell output or interacting with coding agents.
I'd like to keep a single pane centered at a comfortable reading width while allowing split panes to use the full available space.
For example:
Currently, I haven't found a built-in way to achieve this without creating placeholder panes or changing the tab layout.
requested change
I'd like Herdr to support configurable width constraints and horizontal alignment for the pane area, without changing the underlying pane or tab structure.
Rather than introducing a setting specifically for centering a single pane, I suggest a more flexible configuration that separates when the constraint applies from how the area is sized and aligned.
Example configuration
A more flexible example could be:
These names and structures are illustrative. I'm open to different naming or a smaller initial scope.
Configuration options
apply_towidthmin_widthmax_widthalignleft,center, orrightPossible conditions:
single_pane: The tab contains exactly one pane.zoomed: A pane is displayed in zoom mode.multi_pane: Multiple panes are displayed in a normal split layout.When multiple conditions are specified, matching any one would activate the constraint.
For
multi_pane, the constraint should apply to the entire split layout rather than each pane individually, preserving the existing split ratios.Width calculation
Percentages should be relative to the available pane area, excluding UI elements such as the sidebar.
The desired width should be constrained by the optional minimum and maximum, then capped at the available width.
For example, with
width = "60%",min_width = 80, andmax_width = 140:If the available width is smaller than the configured minimum, the layout should use the available width rather than overflow.
It would also be useful to support
max_width = 120without an explicitwidth, allowing full width up to 120 columns and a centered layout on wider screens.Expected behavior
Changing the terminal width may naturally cause applications to reflow or redraw, as with ordinary terminal resizing.
Backward compatibility
Without this configuration, Herdr should retain its current full-width layout.
Initial scope
I don't think the initial implementation needs vertical alignment, arbitrary conditional rules, or new default keybindings.
A first iteration supporting only
single_pane,width, andalignwould already solve the main use case. Other conditions and width constraints could be added incrementally.The main goal is to make this a presentation-level feature rather than a workaround that modifies the pane structure.
why you want this
I frequently use Herdr with coding agents and terminal-based development tools in Ghostty.
On a wide monitor, a single full-width terminal pane is not always comfortable to read. A centered, narrower layout would make it easier to follow agent output, code reviews, and command results.
However, when I split the tab into multiple panes, I want to use the available screen space efficiently without manually changing the layout each time.
Automatic, configuration-driven width constraints would provide a better balance between readability and screen utilization.
I also think this could be useful beyond my specific setup:
Related work
Unlike pane padding or a manually toggled Zen mode, this proposal focuses on automatically applying width constraints to the existing pane area based on its current layout state.
I'd appreciate feedback on whether this belongs in Herdr's native UI configuration and what a reasonable first implementation might look like.
All reactions