philc / philc/vimium

Treat queries in the bar ending with a `/` as hostnames

Open
#4,890 1 comment 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

Right now if you type any domain name with a TLD not included in the resources/tlds.txt list, it will be interpreted as a search query and sent to the search engine.

In my local network, I override DNS and use some non-standard domains, and I am sure other people may have some other reasons for accessing hostnames with non-standard TLDs.

It would be a nice QoL feature if we just treated all queries with a trailing / as hostnames.

So

  • example.example -> [search 'example.example']
  • example.example/ -> [go to 'http(s)://example.example/']

Both chromium and firefox already do this with their bars so I think it would also make sense to do this in the vimium one.

So, yeah. If this would get merged, I can PR it rq. :)

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 Vimium’s bar query classification and the resources/tlds.txt lookup. Implement the requested behavior so a query ending in / is treated as a hostname while the same query without the slash remains a search. Verify both examples and add or update the relevant coverage if the project has tests for bar handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.