2019-08-29 21:39:29 +02:00
|
|
|
# hmhm 🦞
|
|
|
|
|
2019-08-29 21:42:41 +02:00
|
|
|
List latest news items from Hacker News and Lobste.rs in the terminal. It
|
|
|
|
refreshes automatically every 5 minutes.
|
2019-08-29 20:33:39 +02:00
|
|
|
|
2019-08-29 21:06:18 +02:00
|
|
|
hmhm is a tool I developed to get a feeling how one could develop a TUI (Terminal
|
2019-08-29 20:48:27 +02:00
|
|
|
User Interface) based app in Go.
|
2019-08-29 21:39:29 +02:00
|
|
|
I tried a few TUI high level libraries but settled on [termui](https://github.com/gizak/termui).
|
|
|
|
|
|
|
|
## Simple usage
|
2019-08-29 21:44:41 +02:00
|
|
|
* Up, down, k or j- to change focus up or down.
|
2019-08-29 21:39:29 +02:00
|
|
|
* Left, Right, h or l - to switch tab.
|
|
|
|
* Enter - open up web browser with the URL for the focused news item.
|
2019-08-29 21:42:41 +02:00
|
|
|
* r - refresh content for the active tab.
|
2019-08-29 21:39:29 +02:00
|
|
|
* Escape or q - to quit
|
|
|
|
|
2019-08-29 20:33:39 +02:00
|
|
|
|
2019-08-29 21:07:15 +02:00
|
|
|
### Loading news items.
|
2019-08-29 21:00:21 +02:00
|
|
|
![Loading news items.](assets/img/hmhm-loading.png)
|
2019-08-29 21:08:38 +02:00
|
|
|
### Tab 1 - Hacker News
|
2019-08-29 21:00:21 +02:00
|
|
|
![Tab #1 - Hacker News](assets/img/hmhm-hn.png)
|
2019-08-29 21:08:38 +02:00
|
|
|
### Tab 2 - Lobste.rs
|
2019-08-29 21:00:21 +02:00
|
|
|
![Tab #2 - Lobste.rs](assets/img/hmhm-l.png)
|
2019-08-29 21:06:18 +02:00
|
|
|
|
2019-08-29 21:07:15 +02:00
|
|
|
### Why the name hmhm?
|
2019-08-29 21:06:18 +02:00
|
|
|
hmhm (pronounced "humhum") is what I called lobsters when I was a little kid.
|