Skip to content

Cmd+P doesn't work when another quick pick is open #10957

Closed

Description

  • press cmd+shift+P and see the command palette
  • realise you wanted to open a file and press cmd+P
  • 🐛 instead of opening the file picker the selection in command palette changes

Activity

  1. added
    bug
    on Aug 25, 2016
  2. bpasero commented on Aug 25, 2016

    @bpasero
    Contributor

    Johannes Rieken (@jrieken) this is due to the following keybinding rule that you can unset:

    { "key": "cmd+p", "command": "workbench.action.quickOpenNavigateNext", "when": "inQuickOpen" }

    The idea being that you can press Cmd+P repeatedly to jump to the next item in quick open after opening it.

    Thinking about it, maybe this keybinding should look for a context "inFileQuickOpen" instead of working so generaly.

  3. jrieken commented on Aug 25, 2016

    @jrieken
    ContributorAuthor

    often one context key isn't enough 🙏

  4. added
    help wanted
    on Oct 31, 2016
  5. hun1ahpu commented on Dec 17, 2016

    @hun1ahpu
    Contributor

    Would like to work on this one but the solution of allowing it only InFileQuickOpen looks a little bit weird.
    For example what will happen to quickOpenNavigatePrevious?
    If we block quickOpenNavigatePrevious when InFileQuickOpen looks inconsistent as we are going to allow quickOpenNavigateNext when InFileQuickOpen.
    At the same time if we allow quickOpenNavigatePrevious when InFileQuickOpen we will end up with the opposite problem that the when InFileQuickOpen ctrl+shift+p will not open Command Palette.

    Benjamin Pasero (@bpasero), Johannes Rieken (@jrieken) what do you think?

  6. removed
    help wanted
    on Jan 25, 2017
  7. bpasero commented on Jan 27, 2017

    @bpasero
    Contributor

    Better fix is to keep the behaviour but make the keybinding only work when "Find in Files" (Cmd+P) is active (often one context key isn't enough 🙏). I will make a change to add contexts based on which quick open is visible.

  8. bpasero commented on Mar 3, 2017

    @bpasero
    Contributor

    Workaround in keybindings.json:

    { "key": "cmd+p", "command": "-workbench.action.quickOpenNavigateNext", "when": "inQuickOpen" },
    { "key": "cmd+shift+p", "command": "-workbench.action.quickOpenNavigatePrevious", "when": "inQuickOpen" }
  9. bpasero commented on Jun 15, 2017

    @bpasero
    Contributor

    Fixed via #28462

  10. locked and limited conversation to collaborators on Nov 17, 2017
  11. added a commit that references this issue on Sep 6, 2026
    14ea3c0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions