The page doesn't list my favorite operator, !ducky that will navigate to first result. It's named after the "I'm Feeling Lucky" button that used to exist on Google. It's useful with Firefox keyword bookmarks to navigate to specific pages quickly. Bookmark: Python's PEPs Location: https://duckduckgo.com/?q=!ducky+site%3Awww.python.org%2Fdev%2Fpeps+%22pep+%s%22 Keyword: pep Type in the browser address bar: pep 8 Will n…
All DuckDuckGo bang operators on one page
121–130 of 140 posts
Re: All DuckDuckGo bang operators on one page
#122The page doesn't list my favorite operator, !ducky that will navigate to first result. It's named after the "I'm Feeling Lucky" button that used to exist on Google. It's useful with Firefox keyword bookmarks to navigate to specific pages quickly. Bookmark: Python's PEPs Location: https://duckduckgo.com/?q=!ducky+site%3Awww.python.org%2Fdev%2Fpeps+%22pep+%s%22 Keyword: pep Type in the browser address bar: pep 8 Will n…
AFAIK you can just use ! alone if you're feeling "ducky". Saves a few clicks, although it's not as cute.
Re: All DuckDuckGo bang operators on one page
#123I 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?!
Re: All DuckDuckGo bang operators on one page
#124How many bangs do you really remember ? Bangs are cool but i don't think one can remember many bangs. This site is also very good. But, it's unfortunately not much use to me as i would directly search the term with 'site:' during the time i would take to search for specific bang. Also, if i wanted to search specific site, i would add it in search engines of my browser.
- !a (amazon)
- !gm (google maps)
- !i (ddg images, could also use !gi for google images)
- !news (ddg news)
- !w (wikipedia)
- !mcmaster (mcmaster-carr)
- !r (reddit)
- !hn (hackernews)
- !tw (twitter)
- !economist (economist)
- !gh (github)
Also I find that sometimes I just guess and get it right (thats how i ended up realizing !mcmaster was a thing)
Re: All DuckDuckGo bang operators on one page
#125Re: All DuckDuckGo bang operators on one page
#126For ages I've wanted DuckDuckGo to add a "!copy" bang, which acts like the "!" operator (automatically navigates to the first search result) but instead of going to the page, it copies the link to my clipboard. There are plenty of projects I'm familiar with but don't know the canonical URL off the top of my head - when I link someone else to them I have to look up their homepage. This would make this process much fas…
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…
In this case, we have Firefox, which has built-in integration for DDG, as well as lots and lots of capability for querying and processing JSON. And on top of that, we are adding a command that drops to the command line to make a series of command calls to different programs for sending and extracting a search query. All to return 1 URL. It's nuts.
This topic could be a 20-page thesis.
Re: All DuckDuckGo bang operators on one page
#127Earlier quoted context omitted.
Maybe, but I'm pretty sure browsers block the clipboard functions unless they were triggered via user input. I don't know if a page load counts as a valid trigger.
`document.execCommand("copy")` works without user input - https://developer.mozilla.org/en-US/docs/Web/API/Document/ex... .
> Conditions of having this behavior enabled vary from one browser to another, and have evolved over time.
If you're not running based on a click event, you'll certainly fail.
Re: All DuckDuckGo bang operators on one page
#128Earlier quoted context omitted.
`document.execCommand("copy")` works without user input - https://developer.mozilla.org/en-US/docs/Web/API/Document/ex... .
Nope. > Conditions of having this behavior enabled vary from one browser to another, and have evolved over time. If you're not running based on a click event, you'll certainly fail.
Re: All DuckDuckGo bang operators on one page
#129The only operator I use is "!", which is DDG's version of "I am feeling lucky". And I only use this because Google's silently phasing out the functionality[1]. 1. https://support.google.com/websearch/thread/15794018
I use this frequently with stuff like mdn, where I know the exact page and which search terms will get me there, but it's not worth bookmarking (I have Firefox set to only autocomplete bookmarks, not history). For example, "justify-content mdn !"
Re: All DuckDuckGo bang operators on one page
#130Earlier quoted context omitted.
Nope. > Conditions of having this behavior enabled vary from one browser to another, and have evolved over time. If you're not running based on a click event, you'll certainly fail.
Perhaps extension code gets different rules. This code works in Firefox without needing interaction from the user: https://github.com/tridactyl/tridactyl/blob/5e8f94ff06bd5f14...