You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to map a "-" key to an action causes parsing failure.
Looking at the code, this is because '-' is used as a modifier separator and "minus" should be used instead. This restriction is not clear from docs alone, but imho rather than documenting it, it would be better to improve the parser to allow it as there is no ambiguity:
without a modifier "-": on it's own it is clear we're binding to this char
with a modifier "A--": arguably not as readable as "A-minus"`, but the middle '-' must be a separator and the '-' the key code
invalid binding "A-": missing key code
Reproduction Steps
trying to map a "-" key to an action with e.g.:
[keys.normal.space.w]
"-" = "hsplit"
causes a failure
Bad config: TOML parse error at line x, column y
|
x | "-" = "hsplit"
| ^^^
Invalid key code ''
Summary
Trying to map a
"-"
key to an action causes parsing failure.Looking at the code, this is because
'-'
is used as a modifier separator and"minus"
should be used instead. This restriction is not clear from docs alone, but imho rather than documenting it, it would be better to improve the parser to allow it as there is no ambiguity:"-"
: on it's own it is clear we're binding to this char"A--": arguably not as readable as
"A-minus"`, but the middle '-' must be a separator and the '-' the key code"A-"
: missing key codeReproduction Steps
trying to map a "-" key to an action with e.g.:
causes a failure
Helix log
No response
Platform
cross-platform
Terminal Emulator
any
Installation Method
source
Helix Version
helix 24.7 (cf81e15)
The text was updated successfully, but these errors were encountered: