Skip to content

feat: Add project switching to Ctrl+P command palette #11843

Closed

Description

@mguttmann

Summary

Add project names as searchable items in the Ctrl+P command palette, so users can quickly switch between projects by typing part of the name.

Motivation

Currently, Ctrl+P only searches commands and files within the current project. For users with many projects (10, 50, or even hundreds), there's no fast way to switch between them — you have to visually scan the sidebar icons, which only show a single initial letter.

This was requested by a community member who works with hundreds of open projects and finds the sidebar hard to navigate at that scale. Adding projects to the command palette gives a keyboard-driven way to find and switch projects instantly.

Proposed Behavior

  • Ctrl+P search results include project names alongside existing file/command results
  • The name shown is whatever is displayed in the sidebar (auto-generated from directory path, or custom renamed name)
  • Selecting a project switches to it (same as clicking it in the sidebar)
  • For users with only a few projects, this change is non-invasive — project entries simply appear in the list alongside everything else
  • For users with many projects, this becomes essential for fast navigation

Example

User types: "backend"
Results:
  📁 my-backend-api          (project)
  📄 backend/routes.ts       (file)
  📄 backend/config.ts       (file)

Context

Complements the dynamic sidebar sorting feature (#11758 / #11759) — sorting helps keep active projects visible, while this feature helps find any project instantly by name.

Inspired by PyCharm's Ctrl+Shift+O which provides an MRU project list with fuzzy filtering.

Activity

  1. github-actions commented on Feb 2, 2026

    @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.

  2. mguttmann commented on Feb 2, 2026

    @mguttmann
    Author
    Image
  3. mguttmann commented on Feb 2, 2026

    @mguttmann
    Author

    Thanks for flagging the potential duplicates, bot — but these are actually different use cases:

    This issue is specifically about fuzzy search in the Cmd+P command palette — type a few characters of a project or session name and jump directly to it. That's the approach that actually scales to hundreds of projects.

    Already implemented in PR #11855 — projects and sessions now show up as searchable entries alongside commands and files.

    That said, #11855 would also partially address #9088's pain point since users can now quickly find any project by name instead of relying on sidebar icons.

  4. mguttmann commented on Feb 3, 2026

    @mguttmann
    Author
    Image
  5. github-actions commented on Apr 5, 2026

    @github-actions
    Contributor

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

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