feat: ctrl+h for bindings on mac#4127
Conversation
|
Why? |
On Mac, Option+G produces the © symbol instead of sending an Alt+G key event, so the bindings help action is inaccessible to Mac users without terminal reconfiguration. Since Ctrl+H is traditionally a backspace alias that micro already handles via the Backspace key itself, repurposing it for bindings has minimal impact |
|
I see. Actually, I see this in micro's README:
So this applies to any Alt keybindings, not just to Alt-g? And micro has a bunch of other default Alt keybindings besides Alt-g. So nothing really special about Alt-g here? |
|
Anyway,
Could you add this explanation to the commit message? |
- Restore Alt-g binding in macOS defaults - Add comment explaining tcell.KeyCtrlH vs KeyBackspace overlap - Separate Alt-g and Ctrl-h into distinct lines in keybindings docs
| "CtrlH": "Backspace", | ||
| "CtrlH": "ToggleKeyMenu", | ||
| "Backspace": "Backspace", | ||
| "OldBackspace": "Backspace", |
There was a problem hiding this comment.
But OldBackspace still has a meaning:
micro/internal/action/bindings.go
Lines 516 to 517 in 363cd2b
Doesn't this influence/brake present binding configurations?
It changes first with tcell v3, where tcell treats KeyBackspace2 as KeyBackspace.
Ctrl+h for bindings on Mac, while saving alt+g for linux and windows
On Mac, Option+G produces the © symbol instead of sending an Alt+G key event, so the bindings help action is inaccessible to Mac users without terminal reconfiguration. Since Ctrl+H is traditionally a backspace alias that micro already handles via the Backspace key itself, repurposing it for bindings has minimal impact