Skip to content

Allow to use Ctrl P/N for up and down navigation in quick open #7876

Closed

Description

@kai-iak
  • VSCode Version: 1.2.1
  • OS Version: 10.11.5

Steps to Reproduce:

  1. Invoke command palette
  2. Begin typing a query i.e. ext
  3. Attempt to move up/down the list with ctrl+p and ctrl+n

I installed the latest version of VS Code (1.2.1) on El Capitan. When I used the Atom (and ST2?) text editor and invoked the command palette I could cursor up/down the list using ctrl+p/ctrl+n.

For example, if I launch the command palette and search for extension I get the following list:

Extensions: Install Extension
Extensions: Show Extension Recommendations
Extensions: Show Installed Extensions
Extensions: Show Outdated Extensions

If I want to get to 'Show Installed Extensions' I would press ctrl+n twice in Atom. When I try doing this with VS Code nothing happens. In looking at the Default Keyboard Shortcuts there are:

{ "key": "ctrl+p", "command": "cursorUp", "when": "editorTextFocus" },
{ "key": "ctrl+n", "command": "cursorDown", "when": "editorTextFocus" },

Activity

  1. added
    bug
    on Jun 20, 2016
  2. joaomoreno commented on Jun 21, 2016

    @joaomoreno
    Contributor

    Fix: implement Ctrl P and Ctrl N for Up and Down.

  3. added
    help wanted
    on Jul 6, 2016
  4. changed the title [-]VS Code Command Palette Navigation Not Working on OSX[/-] [+]Implement Ctrl P/N for up and down navigation in tree / quick open[/+] on Jul 6, 2016
  5. joaomoreno commented on Jul 6, 2016

    @joaomoreno
    Contributor

    Fixed by #7316

  6. added
    *duplicate
    and removed
    bug
    on Sep 2, 2016
  7. 12 remaining items

  8. bpasero commented on Jan 19, 2017

    @bpasero
    Contributor

    I added new commands workbench.action.quickOpenSelectNext and workbench.action.quickOpenSelectPrevious which on macOS are bound to Ctrl+N and Ctrl+P by default and work only when quick open is visible.

    The difference to the commands workbench.action.quickOpenNavigateNext and workbench.action.quickOpenNavigatePrevious is that upon releasing the key, the item will be opened.

  9. added
    verification-needed
    on Jan 19, 2017
  10. bpasero commented on Jan 23, 2017

    @bpasero
    Contributor
    • To verify:
      On macOS you can use Ctrl+N and Ctrl+P to navigate inside the opened quick open up and down, similar to arrow up and arrow down.
  11. jrieken commented on Jan 24, 2017

    @jrieken
    Contributor

    Benjamin Pasero (@bpasero) also cmd+p navigates in quick open (instead of changing the quick open topic to open file). Is that a regression from this?

  12. bpasero commented on Jan 24, 2017

    @bpasero
    Contributor

    Johannes Rieken (@jrieken) no this is actually behaviour we have ever since quick navigation in quick open to make João Moreno (@joaomoreno) happy because he uses Cmd+E to bring up quick open and another Cmd+E to quickly open the element.

    Can be controlled via

    { "key": "cmd+p", "command": "workbench.action.quickOpenNavigateNext", "when": "inQuickOpen" }
  13. jrieken commented on Jan 24, 2017

    @jrieken
    Contributor

    Unsure how this is related to cmd+e? I am talking about cmd+p. Do the following

    • hit cmd+p, see file picker
    • while file picker shows, hit F1, see command picker
    • while command picker shows, hit cmd+p, some item selected
  14. bpasero commented on Jan 25, 2017

    @bpasero
    Contributor

    I removed Cmd+P and Cmd+E to select and execute the command when quick open is visible. The commands are still there if someone wants to keep it. Also fixes #10957

  15. danielmoi commented on Feb 2, 2017

    @danielmoi

    Thank you for this fix Benjamin Pasero (@bpasero) – my favourite feature in this release!

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

Metadata

Metadata

Labels

feature-requestverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions