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

I'm kinda confused about the bang syntax. Chrome offers something similar to that, that I use similarly. Their search engine shortcuts allow me to do very similar stuff. I alias wikipedia to wp and simple hit command/control+l then type wp and it searches wikipedia. Does DDG just route you to the site?


The bangs work any place in the string. They don't have to be a prefix.

In Firefox you have a dedicated search bar (ctrl-k) which remembers your search across locations. So you search for "heisenbug oracle ipv6" press enter and are not immediately happy about the precision of your search.

So you press ctrl-k again and append "!so". Bang, your previous search is now applied to stack overflow and you have your answer straight at spot 1.

It's a very good flow. It will never work in retarded browsers who insist on removing the search bar though (like Chrome, Safari, IE).

In a deeply misguided act of Chromeism, Firefox was considering going in that direction too, but the outrage in the userbase hopefully caused them to never venture that line of thought again.


It works the same way in the safari bar. If you use it to search, the search bar maintains your search string, not the URL. So you can use ⌘L on the search page, and your URL bar will be focused with the plain text of what you just searched, and you can append !g as yon would expect.

And copying the search text in the URL bar actually copies the link too, which is nice.


>It will never work in retarded browsers who insist on removing the search bar though (like Chrome, Safari, IE).

Uh huh. Because they'll lose their ability to tell if something is a search or a URL because of bang parsing, right?


But the URL changes from a search string to the URL of the results. A dedicated search bar retains what you last searched for. For example mine has "league of legends !w" at the moment. If I wanted to search on Startpage for that I just hit ctrl-k and change !w to !sp.


I suppose it saves typing, but I don't really mind doing site:news.ycombinator.com on Google.


DDG has thousands of premade !bang shortcuts though. You don't have to spend any time creating unique search aliases for every one of your browsers. You (and anyone else) can directly search wikipedia with a quick !w from at DDG from any browser anywhere.


Chrome automatically creates these for me, though. Start typing imdb.com, once it starts autocompleting, hit tab, then type whatever I want to search. I only have to go search there once. I've been using firefox and DDG lately and I really miss this.

Down side to that feature is when you search a random blog once and then two years later it's suggesting you search there again.


Firefox supports something similar, if you for example visit IMDb you can add their search via the Firefox search box and then add a keyword of your choice to use the search in the address bar.

Both Firefox and Chrome use OpenSearch (http://www.opensearch.org/Home) to achieve this.


That sounds a lot like you're still creating each one yourself. Just because Chrome is suggesting that you might want to create a search shortcut, doesn't mean you're still making individual shortcuts by hand.

I can directly search Audible.com (a site I've never used before) with an intuitive !audible. Then I never have to think about this shortcut ever again, because it isn't saved in my browser somewhere.


If you delete the suggestion by hitting Shift-Delete while it's highlighted.


Thousands of premade !bangs that I would have to memorize, rather than create myself (which makes memorization much easier)

Although pointless, it's fun to use my keyword "ddg" to use their bang syntax to search another site. Even if I already have that site as its own keyword.

ie:

There is no difference between me searching "y this searches youtube" and "ddg !y this also searches youtube" or having to actually visit ddg to search Youtube. There's no reason for me to not just use a feature already built into my browser.


You can create them yourself in Firefox if you want. See http://johnbokma.com/firefox/keymarks-explained.html


Which is exactly what I explained I use (and why I would use them), but thank you. :)

>There's no reason for me to not just use a feature already built into my browser.


o.o it's intuitive imo. !g - google, !yf - yahoo finance, !cb - crunchbase, !news - google news, !yt - youtube. Sometimes I just try an abbreviation that makes sense and lo I'm correct.

Plus I make ddg my default browser so I do just go to the address bar put `!yt cats` and get youtube cat videos.


Sometimes it's about wanting a trivially shorter keyword.

!h searches Hoogle; I would prefer it to search Hacker News. To search Hacker News I have to use !hnsearch or !hn

!hn isn't much larger than !h but is still something I would prefer to set myself.

!m goes to Google Maps but I would prefer to use another map service. I could use !mapquest but would rather it just be !m

!sd goes to Slickdeals instead of Science Daily (which is !sciencedaily , talk about lengthy)

E:

I just compared my keywords and then searched the DDG Bang list for where I would be taken if I had used DDG instead of ones I set myself.

E:

>Plus I make ddg my default browser so I do just go to the address bar put `!yt cats` and get youtube cat videos.

I just type "y cats" and get youtube cat videos. ;)


>!h searches Hoogle; I would prefer it to search Hacker News. To search Hacker News I have to use !hnsearch or !hn

>!hn isn't much larger than !h but is still something I would prefer to set myself.

>!m goes to Google Maps but I would prefer to use another map service. I could use !mapquest but would rather it just be !m

>!sd goes to Slickdeals instead of Science Daily (which is !sciencedaily , talk about lengthy)

It sounds like this is a prime use case for text shortcuts such as those built into OS X or Textexpander etc…

Just create a shortcut to transform '!h' to '!hn' or '!sd' to '!sciencedaily'.


Or it's a prime reason to use keywords, a functionality built into modern browsers, such that I only need to type "sd" to search Science Daily.

http://www-archive.mozilla.org/docs/end-user/keywords.html


Thank you for singing the praises of bookmark keywords, which are apparently a long-lost and forgotten feature to many people. I love all of mine, and it sounds like you've created a great library of your own. Good thing neither of us have to agree on what keywords to use.


I blow some people's minds when I tell them about tab groups (ctrl+shift+e) in Firefox.

>Good thing neither of us have to agree on what keywords to use.

Precisely! :)


> I blow some people's minds when I tell them about tab groups (ctrl+shift+e) in Firefox.

What do they think that icon to the right of the tabs is? Just some bit of abstract art? :)


I have a heavily customized userChrome.css - none of Firefox's Chrome UI is exposed to me. The only UI I see are the few context menu options I left and tab groups (if you can consider that FF UI)

It's a lot like Pressing F11 without the issues that arise when using Full Screen browsing.


There's some good stuff in there. If you're searching for Perl documentation !mcpan will lead you directly to a MetaCPAN.org search page. "!mcpan Plack" is a good example.


It also helps that even if you don't know the shorthand that, say, !py3 does a search of the python3 documentation, almost always you can type out the full name to do the search, e.g. !python3.


Doesn't using DDG with Chrome negate the privacy benefits? Doesn't Chrome just report everything you do within the browser to Google anyway? I always just assume so while I'm using it.


If you are logged into Chrome and use `!g`, yes. You can even check it at https://history.google.com/history/

In the past that page would even discriminate searches made with DuckDuckGo. They recently redesigned the History page to fit their Material Design look.

I would hope that when I'm logged out, Chrome would not track me... And what about Chromium?


> I would hope that when I'm logged out, Chrome would not track me

There's several more settings under Advanced Settings -> Privacy: "Learn more" links to https://support.google.com/chrome/?p=settings_privacy

-Use a web service to help resolve navigation errors

-Use a prediction service to help complete searches and URLs typed in the address bar or the app launcher search box

-Prefetch resources to load pages more quickly

-Automatically report details of possible security incidents to Google

-Enable phishing and malware protection

-Use a web service to help resolve spelling errors

-Automatically send usage statistics and crash reports to Google

All of these send info back to Google and can be used for tracking even when logged out. Not to mention the usual tracking in any browser. And this is just what they are up-front about.


Currently, it seems only the first three plus phishing/malware protection are enabled by default. The phishing/malware protection is also used by Firefox's "Safe Browsing" feature: Firefox uses a local blocklist to check for potentially malicious sites, so you only connect to Google to update the blocklist and double-check when you actually run into a site on the blocklist; Chrome does the same.

See: https://support.mozilla.org/en-US/kb/how-does-phishing-and-m...

Prefetch makes local predictions and connects to any site, not Google in particular AFAIK.

The omnibar prediction service uses your default search engine, so Google is only involved if you've left it as such.

So if you take the obvious steps of changing your search engine and signing out of Google, that leaves only the navigation error service. As with safe browsing, this appears to send URLs to Google only if certain local conditions are met.


>Doesn't Chrome just report everything you do within the browser to Google anyway?

Yes.


Well, no, Chrome does not report "everything you do" to Google. For example, it wouldn't report what you're searching for on https://www.duckduckgo.com/


yeah, it's mostly the same thing except you still bounce on ddg's servers which sounds pretty silly but in practice it means that it'll work on any browser anywhere as long as you use duckduckgo unlike custom aliases.




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

Search: