News for hackers. Stuff that matters.
Re:Show HN: Ddgr – search DuckDuckGo from your terminal by apjana on Monday April 08, 2019 @05:28PM (#19609229)
What's the output of `echo $BROWSER`?
Re:Show HN: Ddgr – search DuckDuckGo from your terminal by theophrastus on Monday April 08, 2019 @05:38PM (#19609297)
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 by apjana on Monday April 08, 2019 @05:44PM (#19609346)
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 by dontbenebby on Monday April 08, 2019 @11:01PM (#19611388)
Hi, maybe there's something wrong with my environment, but I installed Lynx via brew, got the location (which brew|pbcopy) then exported the location to an environment variable (export BROWSER=/usr/local/bin/lynx).

But when I select something in ddgr, it says it's opened lynx but the display still just shows a list of 10 results.

If I hit q, it drops me back to ddgr, and then a quit again exits the program.

I don't want to jump to saying the issue is ddgr but was a little surprised.

It's still very useful since a lot of what I do needs images anyways, and it's IMHO silly to try to do GUI browsing in terminal, just thought I'd mention it.

Thanks for being so active in the comments!

(Trying to be extra positive since I know HN can be a little hypercritical, and the people who loved it aren't necessarily going to drop in and say so beyond an upvote :) )

Re:Show HN: Ddgr – search DuckDuckGo from your terminal by apjana on Monday April 08, 2019 @11:12PM (#19611443)
Works fine for me. Steps right out of the terminal:

  1. sudo apt install lynx
  2. export BROWSER=lynx
  3. ddgr hello world
  4. Press 1 (to open the first result in lynx)
The site is opened in lynx as expected.
Re:Show HN: Ddgr – search DuckDuckGo from your terminal by dontbenebby on Monday April 08, 2019 @11:29PM (#19611524)
Thanks, that was my issue (I was typing the literal path to lynx not just "lynx")
Re:Show HN: Ddgr – search DuckDuckGo from your terminal by dontbenebby on Monday April 08, 2019 @10:34PM (#19611240)
I haven't messed with text based browsers for a while - do you have a favorite?
Re:Show HN: Ddgr – search DuckDuckGo from your terminal by apjana on Monday April 08, 2019 @10:36PM (#19611251)
I use w3m all the time.
Re:Show HN: Ddgr – search DuckDuckGo from your terminal by dontbenebby on Monday April 08, 2019 @11:02PM (#19611389)
Thanks I'm going to play around with it a bit.