2019-11-22 07:45:02 +00:00
|
|
|
# phetch
|
|
|
|
|
|
|
|
dirt simple terminal gopher client.
|
|
|
|
|
2019-11-24 20:29:01 +00:00
|
|
|
## features
|
2019-11-22 07:45:02 +00:00
|
|
|
|
2019-12-16 19:56:25 +00:00
|
|
|
- small (<1MB) executable for linux and macos
|
2019-11-23 04:01:19 +00:00
|
|
|
- technicolor design
|
2019-11-22 07:45:02 +00:00
|
|
|
- no nonsense keyboard navigation
|
|
|
|
|
2019-12-17 07:57:18 +00:00
|
|
|
## usage
|
|
|
|
|
|
|
|
phetch <gopher-url> # Show GopherHole at URL
|
|
|
|
phetch -raw <gopher-url> # Print raw Gopher response.
|
|
|
|
phetch -help # Show this screen.
|
|
|
|
phetch -version # Show phetch version.
|
|
|
|
|
2019-11-24 20:29:01 +00:00
|
|
|
## development
|
2019-11-22 07:45:02 +00:00
|
|
|
|
2019-12-17 20:23:07 +00:00
|
|
|
cargo run -- <gopher-url>
|
|
|
|
|
2019-11-24 20:29:01 +00:00
|
|
|
## resources
|
|
|
|
|
2019-12-16 19:34:40 +00:00
|
|
|
- [rfc 1346](https://tools.ietf.org/html/rfc1436)
|
2019-12-17 09:09:14 +00:00
|
|
|
- http://ascii-table.com/ansi-escape-sequences.php
|
2019-12-16 19:34:40 +00:00
|
|
|
|
|
|
|
## gopher sites
|
|
|
|
|
|
|
|
- gopher.black
|
|
|
|
- sdf.org
|
|
|
|
- gopher.quux.org
|
2019-12-17 20:23:07 +00:00
|
|
|
- hngopher.com
|
2019-12-16 19:56:25 +00:00
|
|
|
- bitreich.org
|
|
|
|
|
|
|
|
## TODO
|
|
|
|
|
|
|
|
### Basics
|
2019-12-17 07:59:25 +00:00
|
|
|
- [ ] MENU: up/down scroll when next link out of view
|
|
|
|
- [ ] MENU: page up/page down show next page, highlight first link
|
2019-12-17 09:09:14 +00:00
|
|
|
- [ ] status() helper
|
|
|
|
- [ ] show errors in status()
|
|
|
|
- [ ] replace all panic! with errors
|
|
|
|
- [ ] replace all unwrap/expect with errors
|
|
|
|
- [ ] TLS
|
2019-12-17 07:59:25 +00:00
|
|
|
- [ ] MENU: open HTML link in browser
|
2019-12-16 19:56:25 +00:00
|
|
|
- [ ] `?` to show all keyboard shortcuts
|
|
|
|
- [ ] input field that... takes input
|
2019-12-17 07:59:25 +00:00
|
|
|
- [ ] search functionality
|
2019-12-16 19:56:25 +00:00
|
|
|
- [ ] download to ~/Downloads
|
2019-12-17 09:09:14 +00:00
|
|
|
- https://github.com/dvkt/gg/blob/master/gg.go#L442
|
2019-12-16 19:56:25 +00:00
|
|
|
- [ ] save history to file
|
|
|
|
- [ ] load history from file
|
|
|
|
- [ ] load most recent URL when opening without args
|
|
|
|
### Bonus
|
|
|
|
- [ ] play sound file in background
|
|
|
|
- [ ] render markdown-lite
|
|
|
|
- [ ] display HTML-lite
|
2019-12-17 07:59:25 +00:00
|
|
|
- [ ] ? download to pwd
|
|
|
|
- [ ] ? download to custom location
|
2019-12-16 19:56:25 +00:00
|
|
|
- [ ] pipe input to render as gopher
|
2019-12-17 23:33:49 +00:00
|
|
|
$ curl gopher.antirez.com:70 | phetch
|
2019-12-16 19:56:25 +00:00
|
|
|
- [ ] syntax highlight code
|
2019-12-17 09:09:14 +00:00
|
|
|
$ phetch code.some-gopher-site.io/gw/main.go
|
|
|
|
- [ ] fuzzy find search links
|
|
|
|
- https://github.com/stewart/rff
|
|
|
|
- https://github.com/Schlechtwetterfront/fuzzy-rs
|
2019-12-17 20:23:07 +00:00
|
|
|
- [ ] detect SIGWINCH
|
|
|
|
- https://github.com/BurntSushi/chan-signal
|