Minor: Behavior when searching and entering visual mode is not consistent with Vim
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:
- Use
/to search some text (say it'sfoo) - Use
nto go to the textfoo - Use
vto enter visual mode - The focus is on some other text than
foo- Usually the next word to
foo
- Usually the next word to
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
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
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