philc / philc/vimium

[feature] Separate the caret mode from visual mode

Open
#2,231 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
27k
Forks
2.6k
PR merge metrics
No merged PRs in 30d

Description

To copy some text I need to enter visual mode and then if necessary enter caret mode, make movements, enter visual mode again, and then select some text and yank. Pretty annoying.
Idea is to have to modes: caret and visual. Then.

Pressing c enters caret mode, make movements, go to the targeting place.
Pressing v or V enters visual mode accordingly, make selection and copy.

To distinguish the caret and visual mode I propose to use different cursor color for caret and visual modes, green and red for example.

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 keyboard handling for visual mode and the cursor rendering code. Trace the c, v, and V entry points, then determine how separate caret and visual states and cursor colors should behave. Done means caret navigation and visual selection can be used independently, with distinguishable cursor colors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.