GramEditor/gram
37
981
Fork
You've already forked gram
88

Auto surround doesn't work with quotes and the US Intl keyboard #329

Open
opened 2026年06月06日 15:58:22 +02:00 by edraac · 0 comments

In the US International keyboard layout (called "US Intl" in Windows and "US Intl with Dead Keys" in some Linux distros), in order to accent characters you use the quotes key (the one left from the enter key on an ANSI keyboard) plus the character you want to accent (e.g. ' + a gives you á), so in order to enter actual quotes you hit ' + space (single quotes) or shift + ' + space.

This seems to break auto surround in gram and words that I intend to quote get deleted as soon as I hit space. This doesn't occur in other code editors I've used. In VS Codium for example, the word disappears briefly when I hit space, but then it's detected that a quote was entered and the word re-appears and it gets surrounded by quotes.

I've attached a short video with gram (v2.1.2) and VS Codium side by side showing the behavior described above.

In the US International keyboard layout (called "US Intl" in Windows and "US Intl with Dead Keys" in some Linux distros), in order to accent characters you use the quotes key (the one left from the enter key on an ANSI keyboard) plus the character you want to accent (e.g. `'` + `a` gives you `á`), so in order to enter actual quotes you hit `'` + `space` (single quotes) or `shift` + `'` + `space`. This seems to break auto surround in gram and words that I intend to quote get deleted as soon as I hit space. This doesn't occur in other code editors I've used. In VS Codium for example, the word disappears briefly when I hit space, but then it's detected that a quote was entered and the word re-appears and it gets surrounded by quotes. I've attached a short video with gram (v2.1.2) and VS Codium side by side showing the behavior described above.
Sign in to join this conversation.
main
main
test/wgpu-on-mac
test-ci/failing-test-mac
test/failing-test-mac
test/build-on-22-04
test/wgpu-present-mode-mailbox
v2.1
test/altgr-fix-again
test/2.0.0-rc1
test/linux-build
test/objc2
v1.2.1
3.0.1
3.0.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.2.1
1.2.0
1.1.0
1.0.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
GramEditor/gram#329
Reference in a new issue
GramEditor/gram
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?