Use Ctrl + arrow keys to move faster #1671

Open
opened 2026-02-16 17:32:05 -05:00 by yindo · 9 comments
Owner

Originally created by @pranitbauva1997 on GitHub (Sep 9, 2025).

Originally assigned to: @adamdotdevin on GitHub.

In the input box for typing prompt, I can only move one character at a time and this it is slow to edit older words in the sentence.

Originally created by @pranitbauva1997 on GitHub (Sep 9, 2025). Originally assigned to: @adamdotdevin on GitHub. In the input box for typing prompt, I can only move one character at a time and this it is slow to edit older words in the sentence.
Author
Owner

@rekram1-node commented on GitHub (Sep 9, 2025):

You should be able to navigate using shift + option + arrow, or shift + cmd + arrow

@rekram1-node commented on GitHub (Sep 9, 2025): You should be able to navigate using shift + option + arrow, or shift + cmd + arrow
Author
Owner

@Jannchie commented on GitHub (Sep 10, 2025):

You should be able to navigate using shift + option + arrow, or shift + cmd + arrow

It's not working on windows or wsl...

Codex, Claude Code, and even standard terminals all support ctrl + arrow key, and currently this key combination doesn’t seem to have any functionality. I think it would be quite reasonable to add ctrl + arrow key support. If permitted, I can submit a PR.

@Jannchie commented on GitHub (Sep 10, 2025): > You should be able to navigate using shift + option + arrow, or shift + cmd + arrow It's not working on windows or wsl... Codex, Claude Code, and even standard terminals all support ctrl + arrow key, and currently this key combination doesn’t seem to have any functionality. I think it would be quite reasonable to add ctrl + arrow key support. If permitted, I can submit a PR.
Author
Owner

@rekram1-node commented on GitHub (Sep 10, 2025):

that's totally fair, the team is rewriting the tui from ground up, should be done later this week and if it still doesn't work well a PR would be welcome.

Unfortunately the opencode windows support has left a lot to be desired as of late

@rekram1-node commented on GitHub (Sep 10, 2025): that's totally fair, the team is rewriting the tui from ground up, should be done later this week and if it still doesn't work well a PR would be welcome. Unfortunately the opencode windows support has left a lot to be desired as of late
Author
Owner

@pranitbauva1997 commented on GitHub (Sep 10, 2025):

@rekram1-node I am on linux and I just realised alt + arrow keys work. Counter intuitive though. I also noticed the behaviour on other tools and they have movement using either ctrl/alt + arrow keys

@pranitbauva1997 commented on GitHub (Sep 10, 2025): @rekram1-node I am on linux and I just realised alt + arrow keys work. Counter intuitive though. I also noticed the behaviour on other tools and they have movement using either ctrl/alt + arrow keys
Author
Owner

@sai-sy commented on GitHub (Sep 30, 2025):

@rekram1-node I am on linux and I just realised alt + arrow keys work. Counter intuitive though. I also noticed the behaviour on other tools and they have movement using either ctrl/alt + arrow keys

alt + arrow keys work for me on wezterm + wsl2 but yea this is unintuitive. I've never seen alt + arrow keys before but maybe it's more common in linux environments?

@sai-sy commented on GitHub (Sep 30, 2025): > [@rekram1-node](https://github.com/rekram1-node) I am on linux and I just realised alt + arrow keys work. Counter intuitive though. I also noticed the behaviour on other tools and they have movement using either ctrl/alt + arrow keys alt + arrow keys work for me on wezterm + wsl2 but yea this is unintuitive. I've never seen alt + arrow keys before but maybe it's more common in linux environments?
Author
Owner

@sai-sy commented on GitHub (Sep 30, 2025):

@pranitbauva1997 https://github.com/sst/opencode/issues/1975 might be the reason why its alt and not ctrl so the config outlined there might solve the issue

still unintuitive tho

@sai-sy commented on GitHub (Sep 30, 2025): @pranitbauva1997 https://github.com/sst/opencode/issues/1975 might be the reason why its alt and not ctrl so the config outlined there might solve the issue still unintuitive tho
Author
Owner

@CSRessel commented on GitHub (Oct 15, 2025):

At least on Linux, the ctrl+arrows binding can be solved with this comment's config:

https://github.com/sst/opencode/issues/1975#issuecomment-3192835872

{
  "$schema": "https://opencode.ai/config.json",
  "keybinds": {
    "session_child_cycle": "none",
    "session_child_cycle_reverse": "none",
  },

  ...
}

Might behave the same on Windows as well

@CSRessel commented on GitHub (Oct 15, 2025): At least on Linux, the ctrl+arrows binding can be solved with this comment's config: https://github.com/sst/opencode/issues/1975#issuecomment-3192835872 ```json { "$schema": "https://opencode.ai/config.json", "keybinds": { "session_child_cycle": "none", "session_child_cycle_reverse": "none", }, ... } ``` Might behave the same on Windows as well
Author
Owner

@rekram1-node commented on GitHub (Oct 15, 2025):

I use:

  "keybinds": {
    "session_child_cycle": "shift+right",
    "session_child_cycle_reverse": "shift+left",
  },

that way I can still navigate to child sessions, and in my terminal and opencode it is option left or right to navigate words

@rekram1-node commented on GitHub (Oct 15, 2025): I use: ``` "keybinds": { "session_child_cycle": "shift+right", "session_child_cycle_reverse": "shift+left", }, ``` that way I can still navigate to child sessions, and in my terminal and opencode it is option left or right to navigate words
Author
Owner

@jcubic commented on GitHub (Nov 18, 2025):

This doesn't work anymore:

  "keybinds": {
    "session_child_cycle": "none",
    "session_child_cycle_reverse": "none"
  },

I use version 1.0.70.

@jcubic commented on GitHub (Nov 18, 2025): This doesn't work anymore: ``` "keybinds": { "session_child_cycle": "none", "session_child_cycle_reverse": "none" }, ``` I use version `1.0.70`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1671