VSCodeVim / VSCodeVim/Vim

[Feature request] Provide vim.switchToInsertModeSelection command for switching selected text from visual mode to insert mode

Open
#6,773 0 comments 3 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.

#6772

When we use 3rd party extension such as vscode surround, we can not handle there behavior easily.

Describe the solution you'd like

But if we use 3rd party extension at insert mode, most of extensions will run correctly.

That's why we need vim.switchToInsertModeSelection command.

We can select words at visual mode, then switch visual mode selection to insert mode first.

After that, we can run 3rd party extension correctly easily!

With New Command

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

Start by locating the existing command handling for visual mode and transitions into insert mode in the VSCodeVim extension. Check how selected text is preserved when switching modes, then verify that the proposed vim.switchToInsertModeSelection command leaves the selection usable by third-party insert-mode extensions.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.