philc / philc/vimium

`ge` and `gE` don't work properly with text fragments

Open
#4,564 4 comments 0 reactions 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

When at a URL that has a text fragment and pressing ge or gE, the text fragment part of the URL is not shown in the vomnibar.

Interestingly, yy works fine.

Also, while at the URL mentioned below, pressing gu doesn't seem to do anything, while gU correctly sends you to https://example.com/. I'm not sure whether I want gu to do the same as gU, here, but it certainly felt a little weird for the text fragment to stay.

To Reproduce

  1. Go to https://example.com/#:~:text=for
  2. Press ge or gE

Browser and Vimium version

Firefox 131.0.3-1
macOS Sequoia 15.0.1
Vimium 2.1.2

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 tracing the implementations of the ge, gE, gu, gU, and yy commands and how they read or modify the current URL. Reproduce the behavior at https://example.com/#:~:text=for, then verify that text fragments are handled consistently and the relevant command behavior is covered by tests.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.