2
0
mirror of https://github.com/xvxx/phetch synced 2024-11-05 00:00:58 +00:00
phetch/README.md

127 lines
3.7 KiB
Markdown
Raw Normal View History

2019-12-28 20:37:24 +00:00
<!--
2019-12-29 03:25:09 +00:00
/ / /
___ (___ ___ (___ ___ (___
2019-12-28 20:37:24 +00:00
| )| )|___)| | | )
2019-12-29 03:25:09 +00:00
|__/ | / |__ |__ |__ | /
|
2020-01-06 09:14:29 +00:00
--> <p align="center"> <img src="./img/logo.png"> <br>
2020-01-08 21:19:31 +00:00
<a href="https://git.io/JveQo">
2020-01-05 00:49:13 +00:00
<img src="https://img.shields.io/github/v/release/dvkt/phetch?include_prereleases">
</a>
</p>
2019-12-18 00:48:30 +00:00
2019-12-31 18:03:42 +00:00
`phetch` is a terminal client designed to help you quickly navigate
2019-12-29 08:16:27 +00:00
the gophersphere.
2019-11-22 07:45:02 +00:00
2019-12-24 04:27:18 +00:00
## features
2019-11-22 07:45:02 +00:00
2020-01-08 21:44:29 +00:00
- <1MB executable for Linux and Mac
- Technicolor design (based on [GILD](https://github.com/dvkt/gild))
- No-nonsense keyboard navigation
- Supports Gopher searches, text and menu pages, and downloads
- Save your favorite Gopher sites with bookmarks
- Opt-in history tracking
- Secure Gopher support (TLS)
2019-11-22 07:45:02 +00:00
2019-12-17 07:57:18 +00:00
## usage
2020-01-08 21:44:29 +00:00
phetch [options] Launch phetch in interactive mode
phetch [options] [url] Open Gopher URL in interactive mode
2020-01-07 17:51:38 +00:00
Options:
2020-01-08 21:44:29 +00:00
-t, --tls Try to open all pages w/ TLS
-r, --raw Print raw Gopher response only
-p, --print Print rendered Gopher response only
-l, --local Connect to 127.0.0.1:7070
2020-01-08 20:31:48 +00:00
2020-01-08 21:44:29 +00:00
-h, --help Show this screen
-v, --version Show phetch version
2020-01-07 17:51:38 +00:00
Once you've launched phetch, use `ctrl-h` to view the on-line help.
2019-12-23 23:29:02 +00:00
2019-12-18 00:48:30 +00:00
## installation
2020-01-09 03:26:24 +00:00
On macOS you can install with [Homebrew](https://brew.sh/):
brew install dvkt/code/phetch
Binaries for Linux, Raspberry Pi, and Mac are available at
https://github.com/dvkt/phetch/releases:
2019-12-24 04:56:54 +00:00
2020-01-09 03:07:02 +00:00
- [phetch-v0.1.12-linux-x86_64.tgz][0]
- [phetch-v0.1.12-linux-armv7.tgz (RPi)][1]
- [phetch-v0.1.12-macos.zip][2]
2019-12-19 04:52:21 +00:00
2020-01-08 21:44:29 +00:00
Just unzip/untar the `phetch` program into your $PATH and get going!
2019-12-18 00:48:30 +00:00
2020-01-08 21:44:29 +00:00
You can also build and install from source:
2020-01-08 21:41:53 +00:00
git clone https://github.com/dvkt/phetch
cd phetch
env PREFIX=/usr/local make install
2020-01-04 22:36:00 +00:00
## updates
2020-01-08 21:44:29 +00:00
To check for new versions of `phetch`, use the on-line help system in
2020-01-06 10:21:28 +00:00
the app (`ctrl-h`) or visit:
2020-01-04 22:36:00 +00:00
gopher://phkt.io/1/phetch/latest
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>
2020-01-08 21:46:39 +00:00
*Pro-tip:* Run a local gopher server on `127.0.0.1:7070` and start
2020-01-04 22:36:00 +00:00
phetch with `-l` or `--local` to quickly connect to it.
2020-01-08 21:44:29 +00:00
To build with TLS support on **Linux**, you need `openssl` and
2020-01-06 09:41:53 +00:00
`pkg-config`:
sudo apt install -y pkg-config libssl-dev
2020-01-08 21:44:29 +00:00
To build without TLS support, build with the `no-tls` feature:
2020-01-06 18:26:58 +00:00
2020-01-06 18:28:14 +00:00
cargo build --features disable-tls
2020-01-08 21:44:29 +00:00
You can check whether TLS is enabled by visiting the About page:
2020-01-06 18:28:14 +00:00
cargo run --features disable-tls -- gopher://phetch/about
2020-01-06 18:26:58 +00:00
2019-12-24 04:20:53 +00:00
## screenies
2019-12-20 04:34:03 +00:00
2020-01-09 00:56:37 +00:00
|![DOS Archive](./img/dos.png)|![Floodgap](./img/menu-view.png)|
|:-:|:-:|
| DOS Archive | Floodgap |
2019-12-24 01:24:36 +00:00
2019-12-20 04:34:03 +00:00
## bugs
2019-12-18 21:40:09 +00:00
2020-01-07 00:01:49 +00:00
- [ ] unknown keypress: \n needs escaping
- [ ] unknown keypress: [ during status messages
2020-01-07 06:57:09 +00:00
- [ ] selectors that don't start with /
- [ ] gopher://alexschroeder.ch/2020-01-02_This_Gopher_Hole/menu
- [ ] gopher://gopher.conman.org/0About:Server
2020-01-09 20:00:28 +00:00
- [ ] url selectors that do start with /
- [ ] gopher://quux.org/1/devel/gopher/pygopherd
2019-12-20 18:22:35 +00:00
2019-12-31 17:58:34 +00:00
## v1.0
2019-12-20 18:22:35 +00:00
2019-12-31 17:58:34 +00:00
- [ ] Changelog generation (for gopher and github)
2019-12-31 18:03:42 +00:00
- [ ] GIF screencast
2020-01-10 00:08:59 +00:00
- [ ] document ~/.config/phetch/phetch.conf
2019-12-31 17:58:34 +00:00
2019-12-31 18:03:42 +00:00
## future features
2019-12-31 17:58:34 +00:00
- [ ] track binary size per release
2020-01-03 08:32:42 +00:00
- [ ] text views are menus when URLs are present (one per line max)
- [ ] Find Text in Text views
2019-12-31 17:58:34 +00:00
- [ ] fuzzy find incremental search
- [ ] persistent history
- [ ] bookmarks: toggle instead of just prepending to the file
- [ ] bookmarks: save the title of the current page
2019-12-29 08:16:27 +00:00
2020-01-09 03:07:02 +00:00
[0]: https://github.com/dvkt/phetch/releases/download/v0.1.12/phetch-v0.1.12-linux-x86_64.tgz
[1]: https://github.com/dvkt/phetch/releases/download/v0.1.12/phetch-v0.1.12-linux-armv7.tgz
[2]: https://github.com/dvkt/phetch/releases/download/v0.1.12/phetch-v0.1.12-macos.zip