HN user

aome510

85 karma
Posts6
Comments18
View on HN

Hi everyone, this is my second "Show HN" submission posted in Hacker News. The first one was https://github.com/aome510/hackernews-TUI. I received a lot of good feedbacks and suggestions from the community back then. For the second one, I also look forward to hearing the community's opinions.

A bit background on the project: I started `hackernews-tui` and after that `spotify-player` (both are terminal application) because I want to learn Rust and build applications with Rust which I'm able to use daily.

`spotify-player` is a terminal application that can be used as either a remote player to control another Spotify client or a local player with an integrated Spotify client. So if you already know spotify-tui[1] or ncspot[2], `spotify-player` is kinda a simplified combination of both =).

I have made two demo videos for the application, one in youtube (https://www.youtube.com/shorts/Jbfe9GLNWbA) and the another in asciicast (https://asciinema.org/a/446913).

Hope you guys give it a try. Any feedbacks are highly appreciated!

[1] https://github.com/Rigellute/spotify-tui

[2] https://github.com/hrkfdn/ncspot

I just played around with newspaper3k today, and it works really well out of the box.

I plan to add support for article view reader mode with newspaper3k integration. My current approach is to create a child process with `std::Process:Command` then run a python script. Doesn't seem to be the best approach, but I guess it's the easiest one.

It's actually more than that: when there are lots of sub-comments, it helps to see the immediate "mother" of the comment node you're reading. Imagine a comment that has two replies, and the first reply has dozens and dozens of sub-replies and sub-sub-replies, which typically veer into all sorts of adjacent issues. By the time I'm done with the 1st reply and its dozens and dozens of sub-replies, it is often unclear what the initial comment (or even topic) was. It is then very helpful to be able to glance back up to the initial comment across the now-collapsed first reply and its dozens and dozens of sub-replies, before reading reply #2. Simply navigating to reply #2 doesn't give you that.

I think I get what you mean. Instead of adding 3 different collapse commands, WDYT about adding one command to collapse the current comment and one command to move up to the parent comment?

I mean this page of the HN site: https://news.ycombinator.com/active . It has the currently actively discussed stories, and is a great way to catch up after not reading HN for a day or two. A kind of intermediate step between best ( https://news.ycombinator.com/best ) and the homepage.

Interesting, I don't know `/best` and `/active` exist. `/best` seems to be a list of stories (up to past 4 days) sorted by `points`.

`/active`, on the other hand, and `/news` as well are quite weird. I don't really know the algorithm behind the order of sorting submissions in those.

In the meantime, I guess open the `Story View - All stories` with `sort_by=popularity` and `time_range=past 24 hours` might do the job.

Thanks for the ideas!

1. collapsable threads, ideally with three different shortcuts: (i) collapse daughters of current comment, (ii) collapse mother of current comment - this is very useful when on the Nth comment far away below the mother comment, so no need to scroll up, but can continue reading the sister of mother's comment, (iii) collapse entire thread.

Please correct me if I misunderstand your request. I guess what you want is navigating between sibling comments right? It seems that most of the use cases you mention above can be done with a combination of `l` (move to the next sibling) and `h` (move the previous sibling) commands.

2. A story view for the /active section. I think there is no official API for it, but I find it to be the most useful entrypoint into HN at the beginning of the day, to catch up.

I don't really get this feature. Can you elaborate more?

3. Semi-offtopic dreamland: a version adapted to (a terminal in) the remarkable and related tablets :)

Yeah, I also would love to achieve this, but supporting tablets seems to be quite painful experience :<.

If I understand correctly, Algolia front-page API[0] only allows you to get at most 34 stories (either with `sort_by` points or submitted date).

Hacker News official APIs[1], on the other hands, use a specific algorithm to determine the ranking of submissions and allow you to get at most 500 stories.

[0] https://hn.algolia.com/api/v1/search?tags=front_page&hitsPer...

[1] https://github.com/HackerNews/API

What are some additional features in mind that you are planning to add?

I don't really have any particular ideas in mind rn. I would love to receive feedbacks and ideas from the community.

Here is an idea for extra hacker vibe - try adding "The Matrix" effect when rendering the screen: https://twitter.com/ggerganov/status/1337719342465748993

Wow this looks dope. I'll try it out.

I just realize that you are the author of https://github.com/ggerganov/hnterm. I just came across with it recently while finding some HackerNews apps on GitHub. If I understand correctly, `hnterm` seems to use the official Hacker news API for rendering. I found it quite hard to use compared to the HN Algolia APIs. Do you have any suggestions on how to utilize the official APIs better?