Skip to content

Use Ctrl + arrow keys to move faster #2520

Closed

Description

@pranitbauva1997

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.

Activity

  1. rekram1-node commented on Sep 9, 2025

    @rekram1-node
    Contributor

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

  2. Jannchie commented on Sep 10, 2025

    @Jannchie

    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.

  3. rekram1-node commented on Sep 10, 2025

    @rekram1-node
    Contributor

    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

  4. pranitbauva1997 commented on Sep 10, 2025

    @pranitbauva1997
    Author

    @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

  5. sai-sy commented on Sep 30, 2025

    @sai-sy
    Contributor

    @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?

  6. sai-sy commented on Sep 30, 2025

    @sai-sy
    Contributor

    @pranitbauva1997 #1975 might be the reason why its alt and not ctrl so the config outlined there might solve the issue

    still unintuitive tho

  7. CSRessel commented on Oct 15, 2025

    @CSRessel

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

    #1975 (comment)

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

    Might behave the same on Windows as well

  8. rekram1-node commented on Oct 15, 2025

    @rekram1-node
    Contributor

    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

  9. jcubic commented on Nov 18, 2025

    @jcubic

    This doesn't work anymore:

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

    I use version 1.0.70.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions