Skip to content

fix(ui): label whitespace leader keys as <space>/<tab> in help popup - #519

Open
R3l4x3 wants to merge 1 commit into
agavra:mainfrom
R3l4x3:feature/leader-key-readable-display
Open

fix(ui): label whitespace leader keys as <space>/<tab> in help popup#519
R3l4x3 wants to merge 1 commit into
agavra:mainfrom
R3l4x3:feature/leader-key-readable-display

Conversation

@R3l4x3

@R3l4x3 R3l4x3 commented Jul 30, 2026

Copy link
Copy Markdown

With leader = " " the help popup interpolated the raw character, so a chord like the file-list toggle rendered as a bare blank plus e and read as an unbound single key. Keys without a visible glyph now get a readable label: <space> for the space bar, <tab> for a tab leader.

The key gutter padding was baked into each string literal and assumed a single-cell leader, so it moves into a helper that pads the column and keeps a separator space when a label overflows it.

With `leader = " "` the help popup interpolated the raw character, so a
chord like the file-list toggle rendered as a bare blank plus `e` and read
as an unbound single key. Keys without a visible glyph now get a readable
label: `<space>` for the space bar, `<tab>` for a tab leader.

The key gutter padding was baked into each string literal and assumed a
single-cell leader, so it moves into a helper that pads the column and
keeps a separator space when a label overflows it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant