You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cmd+P doesn't work when another quick pick is open #10957
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.
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.
Activity
bpasero commentedon Aug 25, 2016
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.
jrieken commentedon Aug 25, 2016
often one context key isn't enough 🙏
hun1ahpu commentedon Dec 17, 2016
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?
bpasero commentedon Jan 27, 2017
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.
bpasero commentedon Mar 3, 2017
Workaround in
keybindings.json:{ "key": "cmd+p", "command": "-workbench.action.quickOpenNavigateNext", "when": "inQuickOpen" }, { "key": "cmd+shift+p", "command": "-workbench.action.quickOpenNavigatePrevious", "when": "inQuickOpen" }bpasero commentedon Jun 15, 2017
Fixed via #28462
Cmd+P doesn't work when another quick pick is open (fixes microsoft#1…