Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vim navigate on quickfix #3556

Closed
windwp opened this issue Mar 4, 2019 · 6 comments
Closed

Vim navigate on quickfix #3556

windwp opened this issue Mar 4, 2019 · 6 comments

Comments

@windwp
Copy link

windwp commented Mar 4, 2019

Describe the solution you'd like
Open quick fix and use vim to navigate on the list. Now I can only use arrow key to navigate

@seonggukchoi
Copy link

In my experience, this extension be broken if you are using global search.
As temporary measure, you can try to restart VSCode.

@sluongng
Copy link

sluongng commented Apr 9, 2019

Quick Fix navigation works with C-p and C-n but not with the popular C-j C-k custom keybindings

// Place your key bindings in this file to override the defaults
[
    {
        "key": "ctrl+j",
        "command": "workbench.action.quickOpenSelectNext",
        "when": "inQuickOpen"
    },
    {
        "key": "ctrl+k",
        "command": "workbench.action.quickOpenSelectPrevious",
        "when": "inQuickOpen"
    },
    {
        "key": "ctrl+j",
        "command": "selectNextSuggestion",
        "when": "editorTextFocus && suggestWidgetVisible"
    },
    {
        "key": "ctrl+k",
        "command": "selectPrevSuggestion",
        "when": "editorTextFocus && suggestWidgetVisible"
    },
    {
        "key": "ctrl+h",
        "command": "list.collapse",
        "when": "listFocus && !inputFocus"
    },
    {
        "key": "ctrl+l",
        "command": "list.expand",
        "when": "listFocus && !inputFocus"
    },
    {
        "key": "ctrl+j",
        "command": "list.focusDown",
        "when": "listFocus && !inputFocus"
    },
    {
        "key": "ctrl+k",
        "command": "list.focusUp",
        "when": "listFocus && !inputFocus"
    }
]

I think we can custom bind it with quickFixWidgetVisible condition but not quite sure whats the correct action/command to bind

Reference: https://code.visualstudio.com/docs/getstarted/keybindings

@windwp
Copy link
Author

windwp commented May 10, 2019

@sluongng Quick Fix navigation with C-p and C-n is only work in Mac OS not window.

@PascalSenn
Copy link

This is not possible because they use a native popup.

I created a extension as a workaround:
https://marketplace.visualstudio.com/items?itemName=pascalsenn.keyboard-quickfix

It uses the quick open picker to display codeactions.
It is possible to navigate through these with the keyboard

@windwp
Copy link
Author

windwp commented Jul 6, 2020

Thank @PascalSenn I really want to have that extension.
microsoft/vscode#88076

@alanmrochadeveloper
Copy link

alanmrochadeveloper commented Mar 29, 2021

A good workaround that I found. Give a shot guys > microsoft/vscode#55111 (comment)

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

No branches or pull requests

6 participants