From 9a635870d332e6810d953c36cb6e80118f11123f Mon Sep 17 00:00:00 2001 From: chris west Date: Wed, 13 May 2020 13:28:43 -0700 Subject: [PATCH] update changelog --- CHANGELOG.md | 18 +++++++++++++----- README.md | 9 ++++----- src/gopher.rs | 1 + 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74b7a4e..ba980ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ +## v1.0.2 + +This release fixes a few small but irritating bugs: + +- Downloads can now be cancelled while in-progress with no funny + business. +- Resizing your terminal now resizes phetch automatically. + ## v1.0.1 This is a small bugfix release. Thanks to @TheEnbyperor and @grufwub! @@ -13,11 +21,11 @@ testing, and documentation, @iglosiggio for supporting [GILD][gild], one year ago with his blog post, [Gopher: a present for Redis](http://antirez.com/news/127). ------ +--- ![phetch screen][phetch screen] ------ +--- `phetch` is a terminal Gopher client designed to help you quickly navigate the gophersphere. With a snappy, text-based UI, Gopher types @@ -31,7 +39,7 @@ on how to install for Arch Linux with AUR (`yay phetch`), macOS with homebrew (`brew install xvxx/code/phetch`), or how to build from source. ------ +--- I have fond memories of using telnet to connect to the local library when I was a kid, browsing their selection of books in an @@ -51,11 +59,11 @@ The protocol is simple, constrained, and bursting with opportunity. And while [MTV may not have an active Gopher server anymore][mtv], you can easily run your own, or find a generous host like SDF or a tilde. ------ +--- ![gopher menu in phetch][phetch menu] ------ +--- `phetch` is my attempt to bring a little bit of that retro-nostalgia back into my terminal. Sure, I can acccess Gopher just fine using diff --git a/README.md b/README.md index 5741275..c8f4fe6 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ https://github.com/xvxx/phetch/releases: - [phetch-v1.0.1-linux-armv7.tgz (Raspberry Pi)][1] - [phetch-v1.0.1-macos.zip][2] -Just unzip/untar the `phetch` program into your $PATH and get going! +Just unzip/untar the `phetch` program into your `$PATH` and get going! You can also build and install from source if you have `cargo`, `make`, and the other dependencies described in the next section: @@ -100,9 +100,9 @@ Regular development uses `cargo`: cargo run -- -*Pro-tip:* Run a local gopher server (like [phd][phd]) on +_Pro-tip:_ Run a local gopher server (like [phd][phd]) on `127.0.0.1:7070` and start phetch with `-l` or `--local` to quickly -connect to it. +connect to it. Useful for debugging! phetch builds with TLS and Tor support by default. To disable these features, or to enable only one of them, use the @@ -120,12 +120,11 @@ To enable just TLS support, or just Tor support, use `--features`: ## todo -- [ ] catch SIGWINCH +- [ ] ctrl-c in load() not yet implemented ## bugs - [ ] ctrl-c while telneting kills phetch -- [ ] ctrl-c in load() not yet implemented - [ ] gopher://tilde.black/1/users/genin/ ## future features diff --git a/src/gopher.rs b/src/gopher.rs index faaff50..4c081fa 100644 --- a/src/gopher.rs +++ b/src/gopher.rs @@ -151,6 +151,7 @@ pub fn download_url( } } } + Ok((filename.to_string(), bytes)) }