Replace mode: Replace with register
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.
As a user, I want to be able to paste over text, as described here, to keep the alignment of the line, as opposed to inserting text.
Describe the solution you'd like
This config
"vim.replaceModeKeyBindings": [
{
"before": ["<C-r>"],
"commands": ["extension.vim_ctrl+r"]
}
]
should work like <C-r> in insert mode (insertModeKeyBindings) but for replace mode (entered with R) so that register contents are pasted over text instead of inserting it. But replaceModeKeyBindings does not exist although a replace mode is available via R.
Describe alternatives you've considered
Additional context
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 tracing how replace mode and insertModeKeyBindings are handled in the TypeScript extension. Add support for replaceModeKeyBindings so Ctrl-R can use register contents in replace mode, then verify that the contents overwrite existing text rather than insert it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100