Skip to content

[Feature]: Keyboard shortcuts to navigate between terminals and splits #2630

@janssonoskar

Description

@janssonoskar

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I am describing a concrete problem or use case, not just a vague idea.

Area

apps/web

Problem or use case

There is no keyboard shortcut to move between terminals, or between splits within a terminal. You have to click.

Proposed solution

Add four keybinding commands, all gated on terminalFocus:

  • terminal.next / terminal.previous: cycle terminals with wrap. Default ctrl+tab / ctrl+shift+tab.
  • terminal.focusLeft / terminal.focusRight: focus the terminal to the left/right within the current split, no wrap. Default mod+alt+arrowleft / mod+alt+arrowright (cmd+option+arrow on macOS, ctrl+alt+arrow elsewhere).

Why this matters

The drawer already supports creating (cmd+n), splitting (cmd+d), and closing (cmd+w) terminals from the keyboard. Moving between them requires the mouse.

Smallest useful scope

Just terminal.next / terminal.previous. The split-focus pair could ship separately.

Examples or references

ctrl+tab and cmd+option+arrow are browser-reserved, so these defaults target the desktop app. Not sure on the best way forward for the web variant, currently the user would have to edit their keybindings manually. Would appreciate some feedback here.

Cross-platform note: tested on macOS only.

Contribution

  • I would be open to helping implement this.

Metadata

Metadata

Assignees

No one assigned

    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