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

Adding vim style 'Go to Symbol in Workspace' shortcut #3624

Closed
mirkancal opened this issue Mar 26, 2019 · 1 comment
Closed

Adding vim style 'Go to Symbol in Workspace' shortcut #3624

mirkancal opened this issue Mar 26, 2019 · 1 comment

Comments

@mirkancal
Copy link

I can't use Go To Symbol in Workspace since vim extension is also using it's shortcut(Ctrl+T). In the vscodevim tricks section there a couple of shortcuts that starts with g, I wanted to add one for myself. Here's the code:

`{
"key": "g s",
"command": "workbench.action.showAllSymbols",
"when": "vim.mode == 'Normal'"

}`

Now I can't use gh, gd because the editor says:
(G) was pressed. Waiting for the second key chord.

How can I make it work?

@cemiloten
Copy link

Can you try adding this to your settings.json?

"vim.normalModeKeyBindingsNonRecursive": [
    ...
    
    {
        "before": ["g", "s"],
        "commands": ["workbench.action.showAllSymbols"]
    },

    ...
]

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

No branches or pull requests

2 participants