Skip to content

🚀 Feature Request: Add Quick Session Search Interface (Ctrl+K) #3361

Closed

Description

@riatzukiza

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

Problem Statement

Currently, users need to navigate through multiple steps to switch
between sessions:

  1. Open the session list modal (via command or keybind)
  2. Manually scroll through potentially long session lists
  3. Find the desired session visually

This workflow becomes inefficient as users accumulate more sessions and
creates friction in the development flow. The existing session list
modal shows all sessions but doesn't provide quick filtering or search
capabilities.

Proposed Solution

Implement a Ctrl+K quick session search interface that provides:

• Instant access: Press Ctrl+K from anywhere in the TUI to open search
• Real-time filtering: Type to instantly filter sessions by title
• Visual indicators: Current session clearly marked with ● bullet point
• Keyboard-driven workflow: Enter to select, 'n' for new session, Esc
to cancel
• Consistent UX: Follows existing dialog patterns and styling

Why This Feature Belongs in OpenCode

  1. Core workflow improvement: Session switching is a fundamental
    operation that happens frequently during development
  2. Addresses user friction: Multiple related issues (Configure switch session modal keybinds #3262, allow selecting session with /tui/select-session #2776)
    indicate users want better session management
  3. Performance enhancement: Reduces cognitive load and time spent
    navigating sessions
  4. Industry standard: Ctrl+K for search/quick switch is a familiar
    pattern in modern developer tools
  5. Scalability: Essential as users accumulate more sessions over time

Implementation Details

The feature has been implemented with:

• SessionSearchCommand with ctrl+k keybinding (no leader required for
quick access)
• Session search dialog with real-time title filtering
• Current session highlighting for better orientation
• Responsive design that adapts to terminal width
• Proper integration with existing modal system and command framework

Use Cases

• Developers with many sessions: Quickly find specific sessions without
scrolling
• Context switching: Rapidly jump between different project contexts
• Session discovery: Easily locate sessions from previous work sessions
• Workflow efficiency: Maintain focus on development rather than
navigation

Alternatives Considered

  1. Enhancing existing session modal: Would require more clicks and
    doesn't provide instant access
  2. Command-based session switching: Requires remembering session
    names/IDs
  3. API-only solution: Doesn't improve the TUI user experience

The proposed Ctrl+K interface provides the best balance of speed,
discoverability, and user experience.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Oct 22, 2025
  2. changed the title [-][FEATURE]:[/-] [+]🚀 Feature Request: Add Quick Session Search Interface (Ctrl+K)[/+] on Oct 22, 2025
  3. github-actions commented on Oct 22, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  4. rekram1-node commented on Oct 22, 2025

    @rekram1-node
    Contributor

    We actually have this in opentui version already that will ship this week

  5. self-assigned this
    on Oct 22, 2025
  6. riatzukiza commented on Oct 22, 2025

    @riatzukiza
    ContributorAuthor

    oh? XD ok. I guess I should have also searched the closed issues before posting this then.

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

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions