diff options
| author | user <user@clank> | 2026-08-15 11:39:12 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-15 11:39:12 +0200 |
| commit | 56bbd25f246f95d15dca992fa79328b37d515afe (patch) | |
| tree | 3eb984a1e51c9cc30ee9bf394e14adcce049ffec /HANDOVER.md | |
| parent | sl0ppty: modals get their own surface, and dim what is behind them (diff) | |
| download | slosh-56bbd25f246f95d15dca992fa79328b37d515afe.tar.gz slosh-56bbd25f246f95d15dca992fa79328b37d515afe.tar.xz slosh-56bbd25f246f95d15dca992fa79328b37d515afe.zip | |
sl0ppty: the prefix badge names the key you actually bound
The leader has been configurable since M6 -- `keys { prefix "ctrl+b" }` --
and one place had not been told. The badge in the status bar, the indicator
whose entire job is to say "you are in prefix mode", was the literal string
"C-a" whatever you had configured.
That is worse than not having the setting. A prefix you can change and a UI
that keeps naming the old one teaches you to distrust the thing telling you
which mode you are in, and it is precisely the person who rebound it -- the
one who wanted C-a back for start-of-line -- who gets lied to.
It renders the binding now, through the same function the cheatsheet uses, so
the two cannot disagree. Measured rather than assumed to be three columns
wide, because `C-space` is seven and `M-\`` is three of a different width.
tests/test_prefix.py holds the whole story in one place: four prefixes, each
shown correctly in the badge; the rebound key running commands; the *old* key
going through to the program untouched (checked with `cat -v`, so a control
byte arriving is visible as ^A rather than an invisible character that would
prove nothing); the double-press still sending the key itself; and the
cheatsheet agreeing with the badge.
Also said it out loud in the README and the config, since the way this came
up was somebody reasonably assuming it was not possible.
Diffstat (limited to 'HANDOVER.md')
0 files changed, 0 insertions, 0 deletions
