by oritron · 11mo ago · 0 comments
You can search "!w Gabriel Weinberg" and it will open the Wikipedia article because of the leading exclamation mark and w. If a site changes their search url, you can submit the precise new pattern they should use for a redirect. If a new service pops up, you can use the same form to request a new search prefix. These form submissions could give someone at DDG an easy interface to verify quickly and approve or reject them.
These form submissions get ignored and have been for years at this point.
You can choose keywords that don't start with !, so typing them is easier than using Duck Duck Go's bang feature.
So if, for example, you wanted to make
> x <search_term>
and
> y <search_term>
both work the same, x and y being letters from 2 different alphabets but mapped to the same keys, you couldn't, without some JavaScript. If you just added those 2 keywords, even if you manually edited or created your bookmarks, one bookmark would override the other and the other would appear empty with no keyword.
The workaround I found was using a bookmark with this code in it (instead of the usual URL):
javascript:(function(){var keywords="%s";var mainURL="https://<URL>/";var searchURL="https://<URL>/<params>-"+keywords;if(keywords==""||keywords=="%"+"s"){window.location=mainURL}else{window.location=searchURL}})();
Where https://<URL>/<params> is something like https://example.org/search/q-.
It's slower and sometimes doesn't work if you type "y" and then the query too fast, especially if you're pasting the query. So sometimes it doesn't work and searches with the browser's default search engine for "y <query>".
It's just muscle memory for me.
CTRL+T -> x <search_term> -> ENTER
Most often I enter <search_term> with CTRL+V, so the sequence is:
CTRL+T -> x CTRL+V -> ENTER
Nowhere in that sequence is the keyboard layout important (if you don't write anything, but just paste).
Just like CTRL+T works even if you're not writing in a layout where the "T" key is mapped to the letter "T", so should "x" work no matter what it's mapped to.
Being able to put language-specific shortcuts on keys that change with the keyboard layout is damn useful.
Why does software have such powerful modes for Python and JavaScript, but never for French or English?
https://en.wikipedia.org/wiki/Special:Search?search=%s
https://en.wikipedia.org/wiki/Special:Search?&search=%s
Each of those can have a different keyword.
Just for anyone else who isn’t aware, the bang commands can be anywhere in the search string, and need not necessarily be at the beginning.
All these queries will take you to Wikipedia for the term:
"!w Gabriel Weinberg"
"Gabriel !w Weinberg"
"Gabriel Weinberg !w"
Many a times when I find the default DuckDuckGo search results inadequate and want to go to Google search, I just put a “!g” as a separate term anywhere within the search string and hit enter. This is especially useful on mobile where the search string may be a lot longer than the visible text box and I can’t be bothered to move the cursor.
Like till now If I wanted to search something on reddit from duckduckgo, I would search "<search query> reddit"
But it was also an hit or miss sometimes so you are telling me that snaps can just @r <search query> and guarantee its from that is amazing!
Your list of resources feel good too, https://time.fyi and other tools are good too!
I would love it if your resources also included open source resources similar perhaps as I prefer open source tools mostly but even these resources are good too so thanks!
Hmm, when I added !mt more than a decade ago it went live almost immediately...