VSCodeVim / Vim

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

Expose a Command API #9103

Open Henrik-St opened 1 week ago

Henrik-St commented 1 week ago

Is your feature request related to a problem? Please describe. Hi everyone, i recently authored a port of the vim fugitive plugin to VS Code. However, a major part of the functionality is missing, because i am not supporting the :Git commands. These would require, that i could register a custom vim command.

Describe the solution you'd like I would like VSCodeVim to expose an API similar to vscode.commands.registerCommand(...) This opens up the possibility for additional VSCodeVim plugins, which do not have to be maintained by this project.

Describe alternatives you've considered I tried using the terminal as a vim command replacement, however this approach is not ergonomic.

Additional context A link to my repo: https://github.com/Henrik-St/vscode-fugitive