Live data from Hacker News

Show HN: Ddgr – search DuckDuckGo from your terminal

github.com

31–40 of 53 posts

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#31
post #30

Earlier quoted context omitted.

With bangs, I'm getting a new tab in Firefox as well.

What's the output of `echo $BROWSER`?

In my case BROWSER isn't set. And yet ddgr still found my firefox in another workspace and opened a tab on it. I was just wondering if there's a means to force a terminal/text output from something akin to:

   ddgr \!ety glaucous

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#32
post #30

Earlier quoted context omitted.

What's the output of `echo $BROWSER`?

In my case BROWSER isn't set. And yet ddgr still found my firefox in another workspace and opened a tab on it. I was just wondering if there's a means to force a terminal/text output from something akin to: ddgr \!ety glaucous

This is inherited from Python's webbrowser module. It would find a GUI browser by default. Please set `BROWSER` to your preferred text-based browser. To force use the GUI browser, use the prompt key `O` or the progrma option `--gb`.

As you can see, you can only have it one way (either text or GUI by default) and we kept it the default one.

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#33
post #24

What’s so good about DDG? I’ve used it a few times but i still don’t get the appeal to it

The no tracking policy, and the large amount of built-in features (such as bang-searches). They also don't make life hard for Tor users with endless captcha (there's even an onion service for DDG).

not sure if that still appeals to me.

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#34

I find the interface really clunky to use because I need to press enter after every command.

I think the primary advantages of something like this is more so that it enables you to use it with terminal tools, and from/in other programs (e.g. calling it from vim). There's also the benefit of increased productivity if you want to stay in terminal. It wasn't designed to to be more ergonomic than the browser based one.

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#37

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)

Instant results are supported:

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

You can incorporate bang int commandlinee search, though bangs ("!") generally require quoting to avoid bash / shell interpretation.

Re: Show HN: Ddgr – search DuckDuckGo from your terminal

#39

I find the interface really clunky to use because I need to press enter after every command.

I think the primary advantages of something like this is more so that it enables you to use it with terminal tools, and from/in other programs (e.g. calling it from vim). There's also the benefit of increased productivity if you want to stay in terminal. It wasn't designed to to be more ergonomic than the browser based one.

You are right on spot! Couldn't have explained better myself.
Post reply on HN