hackernews_tui is a Terminal UI to browse Hacker News written in Rust.
The application mainly consists of the following views:
Story View - Front Page displaying a list of stories in front page of Hacker News.Comment View displaying a list of comments in a story.Story Search View displaying a search bar and a list of stories matching the search query.Run cargo install hackernews_tui to install the application as a binary.
Run yay -S hackernews_tui to install the application as an AUR package.
```shell
```
```shell $ cd /usr/pkgsrc/www/hackernews-tui
```
Story View - Front Page:

Comment View:

Story Search View

In each View, press <ctrl-h> to see a list of supported keyboard shortcuts and their functionalities.
Global key shortcuts:
<ctrl-h>\<alt-h>: Open the help dialog<ctrl-s>\<alt-s>: Go to the story search<ctrl-f>\<alt-f>: Go to the front page<ctrl-q>\<alt-q>: Quit the applicationIn case the above shortcuts don't work, you can always use the corresponding buttons at the bottom of the View:

Key shortcuts for each View:
j: Focus the next storyk: Focus the previous storyt: Focus the story at the topb: Focus the story at the bottom{story_id} g: Focus the {story_id}-th story<enter>: Go the comment view associated with the focused storyO: Open in browser the link associated with the focused storyS: Open in browser the focused storyj: Focus the next commentk: Focus the previous commentt: Focus the comment at the topb: Focus the comment at the bottoml: Focus the next comment with smaller or equal levelh: Focus the previous comment with smaller or equal levelr: Reload the comment view.O: Open in browser the link associated with the discussed storyS: Open in browser the discussed storyC: Open in browser the focused comment{link_id} f: Open in browser the {link_id}-th link in the focused commentIn SearchView, there are two modes: Navigation and Search. The default mode is Search.
Search mode is similar to Vim's Insert mode, in which users can input the query string.
Navigation mode allows the SearchView to behave like a StoryView with all StoryView shortcuts enabled.
Switch mode key shortcuts:
i: Enter Search mode from Navigation mode<esc>: Enter Navigation mode from Search modeNavigation mode supports all StoryView's key shortcuts.
By default, the application will look for ~/.config/hn-tui.toml as its configuration file.
You can specify the path by specifying the -c or --config argument when running the application:
shell
hackernews_tui -c ~/.config/hn-tui.toml
For the further information about the config options, please look into the example config file for references.
Note: all config options (as included in the example config file) are required. You can download the example file then modify it based on your needs.