philc / philc/vimium

[Feature Request] Custom include/exclude link selector?

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

Include/exclude elements from Open a link commands by using a CSS selector.

Example:

{
    "match": "https://www.reddit.com/*",
    "include": [
        ".threadline"
    ],
    "exclude": [
        ".icon.icon-notification"
    ]
}

Exclude should work on matched element and all its descendants.

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 existing “Open a link” command and its link-matching logic; the issue does not name implementation files or tests. Determine where matched elements and descendants are filtered, then add coverage for include and exclude CSS selectors, including exclusion of a matched element's descendants. Done means the example configuration produces the requested link set.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.