News for hackers. Stuff that matters.
Re:We can do better than DuckDuckGo by ufo on Tuesday November 17, 2020 @03:09PM (#25129037)
One thing I always wished for is if there were a way to use duckduckgo bang searches in my browser without sending them through DDG. But apparently it's harder to implement than it sounds.
Re:We can do better than DuckDuckGo by takeda on Tuesday November 17, 2020 @04:04PM (#25129807)
You absolutely can, at least in Firefox you can right click on search field, select "Add a Keyword for this search..." Then save it as bookmark and enter the keyword (you don't have to use !, but it is an option if you chose so).

You can also create such bookmark manually and use %s in the url as a placeholder where search query should be placed.

The manual configuration can be useful when there's no direct search field. For example freshports.org allows querying freebsd.org. I can add a bookmark with search keyword "fp" to point to https://freshports.org/%S

After that I can type in address bar: fp lang/python39 to land on https://freshports.org/lang/python39 (the capital %S doesn't escape special characters like /)

Re:We can do better than DuckDuckGo by iuqiddis on Tuesday November 17, 2020 @03:46PM (#25129577)
In Firefox you can right click on a search field and add a keyword bookmark. Once saved, you can type 'kw search query', where kw is your defined key word, in the address bar to directly search the relevant site
Re:We can do better than DuckDuckGo by ufo on Tuesday November 17, 2020 @04:04PM (#25129816)
I'm aware of that. The problem is that you have to manually add all the keywords yourself. AFAIK, there isn't an easy way to import a large list of curated keywords like the DDG bang list.
Re:We can do better than DuckDuckGo by detaro on Tuesday November 17, 2020 @04:12PM (#25129903)
They are bookmarks you can export/import from Firefox, so someone could easily make a Firefox bookmark file for a large set of them.
Re:We can do better than DuckDuckGo by wldcordeiro on Tuesday November 17, 2020 @03:48PM (#25129612)
Love this feature. I've got basically all the bang keywords but instead of say `!g query` it just becomes `g <query>`.
Re:We can do better than DuckDuckGo by dalf on Wednesday November 18, 2020 @12:43PM (#25139762)
FYI, searx implements the DDG bang searches (1). There is no autocompletion (for now), but at least you can all of them in one meta search engine. The syntax is slightly different: "!!g <text>" instead of "!g <text>".

(1) actually based on https://github.com/jivesearch/jivesearch/tree/master/bangs

Re:We can do better than DuckDuckGo by j-james on Tuesday November 17, 2020 @06:42PM (#25131393)
Chromium implements this as a feature by default. Visiting a website with an OpenSearch tag in its `head` or searching on a website without one lets you later search the website itself from the urlbar by pressing "tab". It's history-based and works very well.

https://www.chromium.org/tab-to-search