Treat queries in the bar ending with a `/` as hostnames
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
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 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