Regex pattern `\v` (very magic) doesn't seem to affect searching
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 27k
- Forks
- 2.6k
- PR merge metrics
- No merged PRs in 30d
Description
Regex pattern \v (very magic) doesn't seem to affect searching
Consider this random wikipedia page: https://en.wikipedia.org/wiki/Olearia_tenuifolia
If you press / (to open search), then search (19|20), you don't get any of the "19" or "20" instances on the page. If you search \v(19|20), it's supposed to enable "very magic" regex mode. However, that doesn't appear to work as expected in vim.
Full regex search support would be great! One of the killer features of vimium.
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 reproducing the search behavior on the linked Wikipedia page, then trace Vimium's search implementation to find how regex patterns are parsed. Done means \v(19|20) matches the page's “19” and “20” instances, with coverage for the corrected behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100