Compare commits
No commits in common. "afd0b2f3bcc350e5c3e90e671e9f8e45336daaa9" and "bb501c28ec50d80ad26c2e765427eeb1f1bb7e03" have entirely different histories.
afd0b2f3bc
...
bb501c28ec
2 changed files with 7 additions and 21 deletions
27
README.md
27
README.md
|
@ -1,26 +1,13 @@
|
|||
# hmhm 🦞
|
||||
# hmhm - TUI news reading client
|
||||
|
||||
List latest news items from Hacker News and Lobste.rs in the terminal. It
|
||||
refreshes automatically every 5 minutes.
|
||||
|
||||
hmhm is a tool I developed to get a feeling how one could develop a TUI (Terminal
|
||||
hmhm (pronounced humhum is what I called lobsters when I was a little kid) is a tool I created to get a feeling how one could develop a TUI (Terminal
|
||||
User Interface) based app in Go.
|
||||
I tried a few TUI high level libraries but settled on [termui](https://github.com/gizak/termui).
|
||||
I tried a few TUI high level libraries but settled on [tview](https://github.com/rivo/tview).
|
||||
|
||||
## Simple usage
|
||||
* Up, down, k or j- to change focus up or down.
|
||||
* Left, Right, h or l - to switch tab.
|
||||
* Enter - open up web browser with the URL for the focused news item.
|
||||
* r - refresh content for the active tab.
|
||||
* Escape or q - to quit
|
||||
|
||||
|
||||
### Loading news items.
|
||||
hmhm in action
|
||||
<img src="https://git.kcbark.net/kcbark/hmhm/raw/branch/master/assets/img/hmhm-loading.png" width="400" height="400" alt="Loading news items." align="center" />
|
||||
<img src="assets/img/hmhm-hn.png" width="100" height="100" alt="Tab #1 - Hacker News" align="center" />
|
||||
<img src="assets/img/hmhm-l.png" width="100" height="100" alt="Tab #2 - Lobste.rs" align="center" />
|
||||
![Loading news items.](assets/img/hmhm-loading.png)
|
||||
### Tab 1 - Hacker News
|
||||
![Tab #1 - Hacker News](assets/img/hmhm-hn.png)
|
||||
### Tab 2 - Lobste.rs
|
||||
![Tab #2 - Lobste.rs](assets/img/hmhm-l.png)
|
||||
|
||||
### Why the name hmhm?
|
||||
hmhm (pronounced "humhum") is what I called lobsters when I was a little kid.
|
||||
|
|
1
main.go
1
main.go
|
@ -423,7 +423,6 @@ func main() {
|
|||
}
|
||||
}
|
||||
|
||||
// Thanks https://gist.github.com/hyg/9c4afcd91fe24316cbf0
|
||||
func openbrowser(url string) {
|
||||
var err error
|
||||
switch runtime.GOOS {
|
||||
|
|
Loading…
Reference in a new issue