News for hackers. Stuff that matters.
Re:DuckDuckGo as a TTY by snide on Wednesday October 20, 2021 @09:45PM (#28939316)
For people that are looking for a nice search TUI, may I point you to Googler. It's made by the author of NNN and a couple other fantastic terminal tools. Highly recommend. It's amazing how clean you can make the interface

https://github.com/jarun/googler

Screenshot of Googler in action when it's nice and clean

https://snid.es/2021OCT/YG4OXAlXg4INZWPe.png

Re:DuckDuckGo as a TTY by circularfoyers on Thursday October 21, 2021 @03:03AM (#28941294)
Might be more apt to mention the same authors version of googler for duckduckgo, https://github.com/jarun/ddgr.
Re:DuckDuckGo as a TTY by RileyJames on Thursday October 21, 2021 @06:07AM (#28942429)
Those are both awesome. Are there any options to combine the two?
Re:DuckDuckGo as a TTY by user3939382 on Thursday October 21, 2021 @06:40AM (#28942638)
Maybe use the latter with !g
Re:DuckDuckGo as a TTY by RileyJames on Thursday October 21, 2021 @04:00PM (#28950103)
Oh, I guess I should be more specific. I want the results from both intertwined.

The top 5 of each, to make a top 10 (deduped).

For dev work I think this would be best.

Re:DuckDuckGo as a TTY by muthdra on Thursday October 21, 2021 @11:09AM (#28945570)
I wonder how bash would handle that.
Re:DuckDuckGo as a TTY by cyberbanjo on Thursday October 21, 2021 @11:16AM (#28945657)
gotta quote to prevent shell expansion for bang iirc
Re:DuckDuckGo as a TTY by kinnth on Thursday October 21, 2021 @08:02AM (#28943188)
I was about to say, the main issues with the DDG view is that it's all formatted in a single colour. One colour for links and one for titles is so much better on the eyes! This is a great project!
Re:DuckDuckGo as a TTY by Yuioup on Thursday October 21, 2021 @04:19AM (#28941786)
Didn't work for me so I followed the link to https://git.io/googler-no-results . It looks like it uses a screen scraper. That does not seem like a viable solution to me.
Re:DuckDuckGo as a TTY by zmw on Thursday October 21, 2021 @06:05AM (#28942404)
I'm a maintainer of googler (though I haven't put in much work for quite a while) and the author of the linked document. No, it doesn't use a screen scraper, and I don't know how you even got that idea.
Re:DuckDuckGo as a TTY by Cederfjard on Thursday October 21, 2021 @07:41AM (#28943019)
Is this perhaps a semantics issue? The linked document mentions parsing HTML, and that layout updates can break it. How would you describe the way googler operates?

Edit: Would ”web scraping” be a more apt description?

Re:DuckDuckGo as a TTY by zmw on Thursday October 21, 2021 @07:52AM (#28943109)
Yes, it's a scraper extracting results from HTML. Which is very different from a screen scraper...
Re:DuckDuckGo as a TTY by amelius on Thursday October 21, 2021 @05:02AM (#28942052)
What's the use of a text interface if selecting a link leads you to a graphical browser?
Re:DuckDuckGo as a TTY by zmw on Thursday October 21, 2021 @06:07AM (#28942424)
You can use whatever textual browser if you want to.
Re:DuckDuckGo as a TTY by mattl on Thursday October 21, 2021 @05:16AM (#28942132)
What is NNN?
Re:DuckDuckGo as a TTY by b0afc375b5 on Thursday October 21, 2021 @06:01AM (#28942377)
Appears to be a file manager

https://github.com/jarun/nnn

Re:DuckDuckGo as a TTY by mattl on Thursday October 21, 2021 @07:30AM (#28942952)
Aha. Thank you.
Re:DuckDuckGo as a TTY by mlang23 on Thursday October 21, 2021 @01:57AM (#28940853)
It looks like it doesnt respect $LINES (or something similar). On first try, the top 2 results scrolled off the screen.
Re:DuckDuckGo as a TTY by zmw on Thursday October 21, 2021 @06:12AM (#28942458)
It's a CLI, not a TUI. I put quite a bit of thought into that decision, and whether to integrate a pager. See [1]. The workarounds are (1) limit the number of results per page with -n <num>; (2) use the -r, --reverse option to show the top results last.

[1] https://github.com/jarun/googler/issues/281

Re:DuckDuckGo as a TTY by toxik on Thursday October 21, 2021 @06:23AM (#28942529)
It would be nice if there was a way to run a terminal command without auto-scrolling. So often I run something that spits out tons of error messages, only to have to scroll back up again to find out what happened.
Re:DuckDuckGo as a TTY by apjana on Thursday October 21, 2021 @08:47AM (#28943632)
Also check if your terminal supports Shift-PgUp/PgDn to scroll up/down a page.

Works in gnome terminal: https://help.gnome.org/users/gnome-terminal/stable/adv-keybo...