aboutsummaryrefslogtreecommitdiffstats
path: root/default-plugins/plugin-manager/src
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-08 21:06:40 +0200
committeruser <user@clank>2026-08-08 21:06:40 +0200
commit97b744a57e3ba53169781a9357d8dc86b15d387e (patch)
tree258562cbe750017fc08180e3d92a96c12689a47d /default-plugins/plugin-manager/src
parentsl0p: uniform pane gap + aspect-corrected horizontal gap (diff)
downloadsl0ppij-97b744a57e3ba53169781a9357d8dc86b15d387e.tar.gz
sl0ppij-97b744a57e3ba53169781a9357d8dc86b15d387e.tar.xz
sl0ppij-97b744a57e3ba53169781a9357d8dc86b15d387e.zip
sl0p: CSS-style 1/2/4-value shorthand for inner padding
`padding` now accepts: padding 1 -> all four sides padding 1 2 -> up/down = 1, left/right = 2 padding 1 2 3 4 -> up=1 down=2 left=3 right=4 NOTE the 4-value order is UP DOWN LEFT RIGHT as requested, deliberately NOT CSS's clockwise top-right-bottom-left. Documented on PanePadding and at the parser, since the similarity to CSS invites the wrong assumption. 3 or 5 values are rejected with a message naming the accepted forms, rather than being silently reinterpreted. Negative values clamp to 0. ASPECT: only the 1-value form is aspect-corrected (left/right multiplied by gap_aspect) so `padding 1` looks square on a non-square cell grid. The 2- and 4-value forms are literal: specifying axes separately means the caller is already controlling horizontal size, and silently doubling it would surprise. Style now carries a PanePadding {top,bottom,left,right} instead of an x/y pair, which also collapses the reconfigure plumbing back to a single field rather than growing another parameter per side. to_kdl always emits the explicit 4-value form: emitting the 1-value form would re-apply gap_aspect on the next read and silently double the padding on every config round-trip. Baselines held: zellij-utils 435/5, zellij-server 1421/30.
Diffstat (limited to 'default-plugins/plugin-manager/src')
0 files changed, 0 insertions, 0 deletions