Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Firefox (and probably others) allows you to set up custom search engines (like Wikipedia). So when I know I am trying to get to Wikipedia or npm or whatever I just do an @wikipedia and type my search.


I’ve used keyword search for many years, maybe since Netscape. Set it up and type “w thing”, no quotes. Can be a lot shorter.


Yep, I prefer the Firefox keywords for various sites, and to disable search support entirely.

For those who haven't tried this yet: the bookmark for Wikipedia might look something like this:

    Name:    [SEARCH] WIKIPEDIA
    URL:     https://en.wikipedia.org/w/index.php?search=%s
    Keyword: w
Then, when you want to do a Wikipedia search, go to the URL&search bar, and enter `w` as the first word, followed by the search term, such as `w cats`.

Also, you might want to disable the other search engine and portal page features as much as you can. This requires setting some preferences not on the Preferences pages, so going to `about:config` preferences, to set, e.g., `keyword.enabled` to false.

Note that you control the keywords. So I thought Wikipedia deserved a one-letter keyword. But `a` went to archive.org Wayback Machine (which also meant I could just prefix any URL with `a` and a space), while I made myself spell out `amazon` every time I was in danger of unnecessary consumerism.


Also, there’s a shortcut to make the entry. Right click on the search input of the desired page and select make keyword search.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: