VSCodeVim / VSCodeVim/Vim

Support for custom commands like `:G` for opening the source control panel

Open
#8,792 0 comments 5 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.