diff options
| author | sl0p <sl0p@sl0p.foo> | 2026-08-13 23:21:04 +0200 |
|---|---|---|
| committer | sl0p <sl0p@sl0p.foo> | 2026-08-13 23:21:04 +0200 |
| commit | 1e69602895bf1771086dd2d961c594ecc985bc5e (patch) | |
| tree | 273c50717eb826673e446dffe796733dfea439c3 /docs/scripting.md | |
| parent | sl0ptty: M5 — responsive collapse, status bar, pane finder (diff) | |
| download | slosh-1e69602895bf1771086dd2d961c594ecc985bc5e.tar.gz slosh-1e69602895bf1771086dd2d961c594ecc985bc5e.tar.xz slosh-1e69602895bf1771086dd2d961c594ecc985bc5e.zip | |
sl0ptty: M6 — the config file, and a README
D2, delivered: a hand-rolled KDL subset (kdl.c, 300 lines, no dependency) with
arguments, key=value properties, children, // and /* */ comments, and ;
terminators for single-line nodes. config/config.kdl documents every setting
by being the defaults.
Geometry, theme, the prefix and every binding now come from that file instead
of being compiled in. Bindings are a table of (key, mods) -> action, so an
action can be rebound, unbound with "none", or given a different prefix
entirely; caps and num lock are masked out so they cannot stop a binding
working.
The property that matters is fail-open, applied to the mux itself rather than
only to the CLI wrapper: a missing config is silent, a broken one writes the
line number to stderr and keeps the compiled-in defaults, and a bad binding
does not discard the rest of the file. A live session can reload, and a reload
that fails to parse keeps the configuration that works instead of leaving you
with half a theme.
min_pane is configuration too, so the point at which a layout collapses is a
preference rather than my taste — tested by making the same split collapse or
not on the same terminal size.
14 parser cases as a C test, 24 config checks through the harness, and a README
that shows what the thing actually looks like.
250 checks green.
Diffstat (limited to 'docs/scripting.md')
0 files changed, 0 insertions, 0 deletions
