philc / philc/vimium

Minor: Behavior when searching and entering visual mode is not consistent with Vim

Open
#4,872 0 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

Describe the bug
On Vimium, when I search something using / and type n to focus on the text searched, and then type v to enter visual mode, the focus behavior was NOT same as Vim (but not always)

To Reproduce

Steps to reproduce the behavior:

  1. Use / to search some text (say it's foo)
  2. Use n to go to the text foo
  3. Use v to enter visual mode
  4. The focus is on some other text than foo
    • Usually the next word to foo

In vim, the focus is put on the text foo exactly, where you can quickly yank the text or some other subsequent tasks.

However, in Vimium, due to this behavior, you can't immediately yank the text, and etc.

Browser and Vimium version
Firefox 148.0.2 Vimium 2.4.0

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

Reproduce the sequence in Firefox 148.0.2 with Vimium 2.4.0: search with /, move to the match with n, then enter visual mode with v. Trace the search, focus, and visual-mode entry points; done means the selected focus remains on the searched text so it can be yanked immediately.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.