Live data from Hacker News

All DuckDuckGo bang operators on one page

mosermichael.github.io

101–110 of 140 posts

Re: All DuckDuckGo bang operators on one page

#101

I love the concept of bang operators, but sadly my usage is limited to: - `!g` if I can't find what I am looking for and am ready for a different angle. - `!` + another letter than g, typed my mistake. This results in an annoying search on the wrong site (e.g., Flickr) or even more random. This must puzzle anyone analyzing search logs on Flickr. Why are users searching for obscure Python error messages?!

I also use !wen, which takes me to (English) Wikipedia. More rarely !wfr (French version).

Re: All DuckDuckGo bang operators on one page

#103

Earlier quoted context omitted.

I just realized I need this for myself and quickly cooked up a solution using tridactyl, ddgr, and jq that fits perfectly in my workflow. Everything is reduced to just typing `:cp ` without moving to a new tab or losing flow. The entire function is basically this (requires Tridactyl native messenger). command cp js -p tri.native.run('cd ~ && ddgr --json -n 1 ' +JS_ARG + '| jq -r ".[0].url" | xclip -sel clip') [1] htt…

Didn't know about Tridactyl, thanks! This is a really cool extension!

It's the best Vim emulation addon I've seen so far, and God knows I used almost all of them.

Re: All DuckDuckGo bang operators on one page

#105
One pet peeve is that I'd like to search Hacker News, however searching with Angolia sucks (via !hn). I get more relevant results if I do a site:news.ycombinator.com filter in Google. Would appreciate a bang for searching on HN that uses Google or Startpage.

---

I have my own search keywords in Firefox, if you're using Firefox or Chrome I recommend setting your own search keywords. You have more flexibility in adding stuff that's relevant for you, and it's going to sync on your mobile device too (it's the reason for why I'm using Firefox on iOS). It increases privacy too. Makes no sense to send all of your searches to DDG first.

Safari is the only one where you're out of luck, and need DuckDuckGo's bangs.

Re: All DuckDuckGo bang operators on one page

#106

Earlier quoted context omitted.

For many sites, you can probably just guess the bang without much hassle. The easiest example is IMDb, but my success rate guessing is pretty high. Plus, most people tend to spend most of their time on just a few sites. Knowing one or two bangs is useful enough.

I don't use this, but looking at that list, I would disagree. I just looked up some of the top sites I'd want to use and I wouldn't have guessed any of them Wikipedia -> !w Youtube -> !you reddit user -> !reu subreddit -> !reddits also !reddit points to new version, I'd want !redditold Twitter -> !tweet Steam -> !steme (???) Twitch -> !ttv That being said, if you're on DDG, there's pretty good auto complete on bangs…

I use !yt for YouTube.

Re: All DuckDuckGo bang operators on one page

#107
> Durability is the guarantee that data can be accessed after a failure. It seems like this should be very simple: either your system provides durable data storage, or it does not. However, durability is not a binary yes/no property, and instead should be defined as the kinds of failures you want your data to survive. Since there is usually some performance penalty for durability, many systems provide a way for only "important" writes to be durable, while "normal" writes will eventually be durable, with no specific guarantee about when.

I believe we should return to dual-disk systems with separate disk/flash drive dedicated for executable code (OS+apps+swap) and for user data storage. And this can be especially easy now as NVMe drives and micro/SD cards can be so small and low-power.

Performance is very important for the drive where you load your executable from and where you put your swap. The speed of this disk actually defines the user experience. At the same time it rarely is a serious problem if it fails - you can just replace it and re-install everything. The user data (like documents, pictures, multimedia files, source codes etc.) storage usually doesn't really need to be that fast to access but it really should be durable as its failure often means loss of some unique valuable data which is a result of work expensive or impossible to repeat in required time.

Re: All DuckDuckGo bang operators on one page

#108
post #79

These bangs have honestly changed the way I browse. With Ctrl+T, Ctrl+L, Ctrl+W, and tab-switching, the browser feels like vim in a small way. Without my mouse, I can open a new tab or switch to a new tab and immediately search Wikipedia, Amazon, IMDB, etc. All of this helps me not need Google if I know the best domain to look in, and it saves time.

> the browser feels like vim in a small way

Use a real Vim emulation like tridactyl[0], life changer.

0: https://github.com/tridactyl/tridactyl

Re: All DuckDuckGo bang operators on one page

#109
post #83

The one thing I don't like is that it goes through ddg. This makes sense implementation wise since it's a web site. But I wish it was built into the browser for when I use ddg in my browser URL field. Every once in a while ddg takes a while to respond.

Firefox has a similar feature. You can define your own keyword rule, for example, to macro-expand hn duckduckgo into https://hn.algolia.com/?q=duckduckgo and thus get a shortcut to HN's own site search (Algolia), without involving Google/DDG/etc. To do this, you need simply to bookmark the URL https://hn.algolia.com/?q=%s and set the bookmark's "keyword" property to "hn". Then "hn" becomes a special operator in the o…

This is neat, I hope it will also work with the Tridactyl's search bar

Re: All DuckDuckGo bang operators on one page

#110
post #70

Earlier quoted context omitted.

You can add "!g" to your dictionary and initiate it with a quick swipe (e.g. I use "bang" to add it). Cool thing is, that you can add it anywhere in your query - DDG will pick it up

Cool, but I assume you still need to select the query and click it again to place the cursor, and possibly add a space, and then finally press enter (?)

You don't need to replace the cursor and add space. "!g" can be placed anywhere in your query. To give you some examples:

weather!g weather !g weather!g warsaw

Each of those queries will work.

Post reply on HN