3 ms·
Is there a way to supress the search results if I only want an instant answer? (Ex: If I type in "ip" merely return my IP, not a long list of whois DBs)
by dontbenebby 8y ago
Is there a way to supress the search results if I only want an instant answer?
(Ex: If I type in "ip" merely return my IP, not a long list of whois DBs)
- apjana 8y agoTry ddgr ip --np
- dontbenebby 8y agoThanks! Looks like ddgr -n 1 --np ip gets close (setting -n to 0 gives a lot of results for some reason?) Anyways, very small gripe - really like this program. Thanks for your efforts!
- apjana 8y agon=0 is the default and results in the default behavior - sow all fetched results in the same page. Thanks for the compliment! Glad to know you like it. Update: In fact, there was an option and an extra API to fetch only the instant answer. But it seemed like a overkill because the instant answer comes along with the other results. So I removed that additional API a while back.
- dredmorbius 8y agoInstant results are supported: https://github.com/jarun/ddgr https://github.com/jarun/ddgr There are a number of "instant" bangs, though it's not clear if these deliver what you want: https://duckduckgo.com/bang?q=instant https://duckduckgo.com/bang?q=instant You can incorporate bang int commandlinee search, though bangs ("!") generally require quoting to avoid bash / shell interpretation.
- dontbenebby 8y agoAh cool, thanks. Very useful! I meant more like the various cheatsheets. (Ex: https://duckduckgo.com/?q=vim+cheat+sheet https://duckduckgo.com/?q=vim+cheat+sheet) That query would pull up search results, but not the cheat sheet itself. Or if I do "roll 3 dice" I get unicode dice, but not the numerical sum like on the web version. Anyways, this is really a minor gripe - this is a really cool tool and I appreciate the time you've put into it. I can see myself using it a lot in the future! :)