KeyBindings in normal mode not working
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
Can't bind cmm to ct$ in normal mode while the same key bind works in insert mode.
To Reproduce
Steps to reproduce the behavior:
these are the keybindings I wrote
"vim.normalModeKeyBindings": [
{
"before":["c","m","m"],
"after":["c","t","$"]
}
]
and
"vim.insertModeKeyBindings": [
{
"before":["c","m","m"],
"after":["<Esc>","c","t","$"]
}
]
Expected behavior
In normal mode the expected behavior is to delete everything until $ and enter insert mode but what happen is nothing. However if I enter insert mode and do the key binding the expected behavior works as intended.
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.8.1
- VSCode version: 1.34.0
- OS: OSX 10.14.5
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
Start by reproducing the reported cmm-to-ct$ binding in VSCodeVim 1.8.1 under both normal and insert modes, using the configuration shown in the issue. Trace the normal-mode keybinding path and verify that the fix deletes through $ and enters insert mode without breaking the working insert-mode binding.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vim, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100