Support for custom commands like `:G` for opening the source control panel
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Is your feature request related to a problem? Please describe.
I want to be able to add custom commands to command mode : , so I can mimic Vim plugin behaviors using native VSCode actions.
Describe the solution you'd like
Probably in the same way we remap keybindings, we could have a setting key like customCommands that would receive a list of command names => action to execute
Describe alternatives you've considered
I could use VSCode’s default Cmd + Shift + G, or map it to something like <leader>G, however, it would be good to register commands like :G (vim fugitive).
And then, since it is a custom table, it would be up to the users to map all commands they want:
"vim.customCommands": {
"G": "workbench.view.scm",
"Git": "workbench.view.scm",
"G push": "git.push",
"Git push": "git.push",
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating the command-mode parser and the extension's settings and VS Code action-registration paths, then determine how a custom command mapping would be represented and invoked; done means documented custom command settings work for the requested examples without breaking existing command mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100