Some SendKeystrokes Keyboard Shortcuts Ending in a Space Character Type Out A Space #19181
Open
1 task done
Labels
defect
[core label]
good first issue
Issue suitable for first-time contributors
keymap / key binding
Feedback for keyboard shortcuts, key mapping, etc
Check for existing issues
Describe the bug / provide steps to reproduce it
I believe this is an oversight, not intentional behavior.
Goal: (typeable!) whitespace characters in keystrokes sequences and keyboard shortcuts should require their canonical name be entered, and (typeable!) leading, trailing, and repeated whitespace characters should be coalesced and elided.
Issue:
["workspace::SendKeystrokes", "shift-up"]
types just a shift-up.["workspace::SendKeystrokes", " shift-up"]
types just a shift-up.["workspace::SendKeystrokes", "shift-up "]
types a shift-up and then a space. <<-- this one, this one is the bug.Details of current behavior:
All of these work as expected
["workspace::SendKeystrokes", "a a"]
typesaa
with no spaces.["workspace::SendKeystrokes", "a \ "],
does not appear to be validly parsed. An errorjsonc: Invalid escape character in string.
is yielded and the keystroke of the command appears to be passed throughalt-n
, it typedn
).["workspace::SendKeystrokes", "a a a a a a a a a a a a a a a a a a a a a a a a a a a a "]
typesaaaaaaaaaaaaaaaaaaaaaaaaaaaa
with no spaces.aaaaaaaaaaaaaaaaaaaaaaaaaaaa
with no leading, trailing, or interstitial spaces:Click here to reveal the extremely normal keyboard shortcut that lead me to discover this.
Environment
Zed: v0.156.1 (Zed)
OS: Linux X11 ubuntu 24.04
Memory: 30.6 GiB
Architecture: x86_64
GPU: Intel(R) UHD Graphics 630 (CFL GT2) || Intel open-source Mesa driver || Mesa 24.0.9-0ubuntu0.2
The text was updated successfully, but these errors were encountered: