Skip to content

Add tabs navigation commands - #2

Merged
Minhir merged 2 commits into
mainfrom
add-tabs-navigation-commands
Aug 5, 2026
Merged

Add tabs navigation commands#2
Minhir merged 2 commits into
mainfrom
add-tabs-navigation-commands

Conversation

@Minhir

@Minhir Minhir commented Aug 5, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds keyboard-driven tab navigation to the OpenCode TUI tabs plugin by introducing keymap/command registration and wiring it into the existing SessionTabs UI and controller.

Changes:

  • Add a keymap module that registers “Next tab”, “Previous tab”, and “Close tab” as command-palette commands and optionally binds keys via plugin options.
  • Extend the session tabs controller with next, previous, and closeActive actions to support tab navigation and closing via commands.
  • Document the new commands/configuration and add CI + test coverage for the new behavior.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/tui.tsx Passes plugin options-derived tab keybindings down to the tabs UI.
src/session-tabs/sessionTabsKeymap.ts Implements keybinding resolution + keymap layer registration for tab commands.
src/session-tabs/sessionTabsKeymap.spec.ts Tests keybinding resolution and command/keymap layer registration + cleanup.
src/session-tabs/sessionTabsController.ts Adds navigation/close actions (next, previous, closeActive) used by commands.
src/session-tabs/sessionTabsController.spec.ts Adds tests for wrap-around navigation and closing the active tab.
src/session-tabs/SessionTabs.tsx Wires controller actions into the new keymap registration.
src/session-tabs/SessionTabs.spec.tsx Updates rendering tests to include keymap support and verifies unregister-on-dispose.
README.md Documents the new command palette entries and optional keybind configuration.
CHANGELOG.md Notes the new tab navigation commands/keybinding options under Unreleased.
.github/workflows/ci.yml Adds a CI workflow that installs with Bun and runs bun run check.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Minhir
Minhir force-pushed the add-tabs-navigation-commands branch from e65dc05 to 70c5358 Compare August 5, 2026 18:27
@Minhir
Minhir merged commit a99b92e into main Aug 5, 2026
1 check passed
@Minhir
Minhir deleted the add-tabs-navigation-commands branch August 5, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants