VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.96k stars 1.32k forks source link

Jump to definition in split pane ? #3480

Open gomesalexandre opened 5 years ago

gomesalexandre commented 5 years ago

Is your feature request related to a problem? Please describe. I'd like to be able to jump to definition in a split pane when doing gd, something like gD maybe ? Describe the solution you'd like gD (or some other keybinding) should open a split pane if not opened already, else if opened, jump to definition there. Not sure if VSCode API allows such a thing.

Thanks a lot for the help !

J-Fields commented 5 years ago

gd calls editor.action.goToDeclaration. Not sure there's a parameter or anything that would allow this.

jgarciaokode commented 3 years ago

Map vscode command to "gv" for example and you will have it, the problem is "C-o" is not working after this jump
{ "before": ["g", "v"], "commands": ["editor.action.revealDefinitionAside"], "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor" },