philc / philc/vimium

Repeated links in the same page should have the same alias/code

Open
#3,183 3 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

Vimium creates new character combinations for each link it finds, even if it's the same link.

It's fine for text inputs or # but otherwise it just bloats the page with more (and more complex) combinations when it could reuse the same when another link in the same page with the same URL was already assigned one.

I made a quick test to show it is indeed the case:
image

A probably more complex but awesome feature (once this is implement) would be to hide repeated hints when they are very close. Many sites (like Github, YouTube, Google) have many elements with the same links bunched up, makes it hard to read and to know which one is which when they are actually all (or many) the same

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

The issue does not name files or tests; start by locating Vimium's hint-generation entry point and tracing how links receive character combinations. Reproduce the case with repeated URLs, preserving separate hints for text inputs or # links, and verify that repeated non-# links reuse an assigned alias.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.