termhnal
所属分类:系统/网络安全
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2024-01-16 17:18:04
上 传 者:
sh-1993
说明: 黑客新闻终端接口
(Terminal interface for Hacker News)
文件列表:
LICENSE
go.mod
go.sum
hn.go
main.go
# termhnal
Browse Hacker News from the Terminal. Built with [charmbracelet/bubbletea](https://github.com/charmbracelet/bubbletea).
### TODO
- [ ] Text posts and comments
- [x] Word wrapping
- [x] Convert HTML to Markdown
- [ ] Handle HTML tags
- [x] Story list switching (new, ask, show, etc.)
- [ ] Display non-active story lists
- [ ] Save stories to read later
- [ ] Footer and help in story view
- [ ] Replace viewport with custom model
## Install
Requires Go 1.20 or higher.
```shell
go install github.com/mxyng/termhnal@main
```
## Key Maps
- Ctrl+d quit
### List View
- 1 top
- 2 new
- 3 best
- 4 ask
- 5 show
- 6 jobs
- k Up up
- j Down down
- h Left PageUp previous page
- l Right PageDown next page
- g Home go to start
- Shift+g End go to end
- / search
- q Esc quit
- F5 refresh current list
- ? help
### Story View
- k Up scroll up
- j Down scroll down
- h Left PageUp previous page
- l Right PageDown next page
- g Home go to start
- Shift+g End go to end
- q Esc back to list
近期下载者:
相关文件:
收藏者: