Skip to content

Repository files navigation

opencode-tabs

NPM Version GitHub License

Session tabs for the OpenCode TUI.

  • Quick navigation - Switch between sessions with a single click.
  • Session status - See which sessions are busy or need attention.

OpenCode tabs demo

Install

For the current project:

opencode plugin opencode-tabs

Or globally:

opencode plugin opencode-tabs --global

Or, add the package directly to .opencode/tui.json:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": ["opencode-tabs"]
}

Restart OpenCode after the installation.

Keyboard navigation

The Next tab, Previous tab, and Close tab commands are available in the command palette. They have no keybindings by default. To open a new tab, use OpenCode's built-in New session command. Check the OpenCode keybinds documentation.

To enable keyboard navigation, configure the plugin with options:

{
  "$schema": "https://opencode.ai/tui.json",
  "plugin": [
    [
      "opencode-tabs",
      {
        "keybinds": {
          "next": "<leader>]",
          "previous": "<leader>[",
          "close": "<leader>w"
        }
      }
    ]
  ]
}

Restart OpenCode after changing the configuration.

About

Session tabs for the OpenCode TUI.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages