Skip to content

[FEATURE]: Support multi-letter keybindings after leader key (e.g., <leader>bb) #6230

Closed as not planned

Description

@yuyudhan

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Currently, only single-letter keybindings work after the leader key. Multi-letter sequences exit leader mode after the first keypress.

Example

"sidebar_toggle": "<leader>b"   // Works
"sidebar_toggle": "<leader>bb"  // Doesn't work - exits leader mode after first 'b'

Expected behavior

Pressing <leader>bb should trigger sidebar_toggle.

Actual behavior

Pressing <leader>b exits leader mode immediately; the second b is typed as input.

Feature request

  1. Support multi-letter key sequences after leader (e.g., <leader>bb, <leader>gc)
  2. Consider adding a tmux-style mode system where leader activates a "command mode" that persists until an action is matched or escaped

This would enable vim/tmux-like keybinding namespaces (e.g., <leader>g for git commands, <leader>b for buffer/sidebar commands).

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Dec 27, 2025
  2. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Dec 27, 2025
  3. github-actions commented on Dec 27, 2025

    @github-actions
    Contributor

    For keybind-related issues, please also check our pinned keybinds documentation: #4997

  4. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  5. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on May 3, 2026
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