Where is the list of key symbols? Or is binding to dot / comma broken? #2985

Closed
opened 2026-02-16 17:38:08 -05:00 by yindo · 7 comments
Owner

Originally created by @lentrigg-tempus on GitHub (Nov 19, 2025).

Originally assigned to: @kommander on GitHub.

Question

I am trying to make the bindings more similar to emacs. In particular, I want ctrl+alt+, to invoke messages_first, and ctrl+alt+. to invoke messages_last, but this does not work with the binding names as shown. What are the names for comma and period keys?

Originally created by @lentrigg-tempus on GitHub (Nov 19, 2025). Originally assigned to: @kommander on GitHub. ### Question I am trying to make the bindings more similar to emacs. In particular, I want `ctrl+alt+,` to invoke `messages_first`, and `ctrl+alt+.` to invoke `messages_last`, but this does not work with the binding names as shown. What are the names for comma and period keys?
yindo added the opentui label 2026-02-16 17:38:08 -05:00
yindo closed this issue 2026-02-16 17:38:08 -05:00
Author
Owner

@kommander commented on GitHub (Nov 19, 2025):

Try using ctrl+meta+…

@kommander commented on GitHub (Nov 19, 2025): Try using `ctrl+meta+…`
Author
Owner

@lentrigg-tempus commented on GitHub (Nov 19, 2025):

Are you just meaning to use meta rather than alt (the docs at https://opencode.ai/docs/keybinds/ use alt rather than meta). If I set:

    "messages_first": "home,ctrl+meta+,",
    "messages_last": "end,ctrl+meta+.",

in my bindings, then pressing ctrl+meta+, does work to jump to the first message, however it also inserts a bogus KF into the prompt area. Pressing ctrl+meta+. does not jump to the last message and it inserts a bogus L& into the prompt area.

(The default bindings of ctrl+alt+u and ctrl+alt+d do work to move the messages up and down half a page, so I think it's the right syntax for . and , that are needed).

@lentrigg-tempus commented on GitHub (Nov 19, 2025): Are you just meaning to use `meta` rather than `alt` (the docs at https://opencode.ai/docs/keybinds/ use `alt` rather than `meta`). If I set: ``` "messages_first": "home,ctrl+meta+,", "messages_last": "end,ctrl+meta+.", ``` in my bindings, then pressing `ctrl+meta+,` does work to jump to the first message, however it **also** inserts a bogus `KF` into the prompt area. Pressing `ctrl+meta+.` does not jump to the last message and it inserts a bogus `L&` into the prompt area. (The default bindings of `ctrl+alt+u` and `ctrl+alt+d` do work to move the messages up and down half a page, so I think it's the right syntax for `.` and `,` that are needed).
Author
Owner

@kommander commented on GitHub (Nov 20, 2025):

That sounds like the messages_first/last handlers are not calling preventDefault so the input ends up in the Textarea. I need to look into this though.

@kommander commented on GitHub (Nov 20, 2025): That sounds like the messages_first/last handlers are not calling preventDefault so the input ends up in the Textarea. I need to look into this though.
Author
Owner

@kommander commented on GitHub (Dec 15, 2025):

Modified sequences should not be inserted as text anymore in the latest version.

@kommander commented on GitHub (Dec 15, 2025): Modified sequences should not be inserted as text anymore in the latest version.
Author
Owner

@Lenbok commented on GitHub (Dec 15, 2025):

@kommander This issus is not fixed - I cannot bind alt+shift+, and alt+shift+. keys to messages_first and meessages_last respectively.

@Lenbok commented on GitHub (Dec 15, 2025): @kommander This issus is not fixed - I cannot bind `alt+shift+,` and `alt+shift+.` keys to `messages_first` and `meessages_last` respectively.
Author
Owner

@kommander commented on GitHub (Dec 15, 2025):

What terminal and are you using tmux?

@kommander commented on GitHub (Dec 15, 2025): What terminal and are you using tmux?
Author
Owner

@Lenbok commented on GitHub (Dec 15, 2025):

I'm using wezterm (with enable_kitty_keyboard = true), no tmux.

@Lenbok commented on GitHub (Dec 15, 2025): I'm using wezterm (with `enable_kitty_keyboard = true`), no tmux.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2985