From 7ab1a2bda9502a3ab5bb2c86b653330e21945e80 Mon Sep 17 00:00:00 2001 From: makeworld Date: Sun, 21 Jun 2020 23:39:33 -0400 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Status=2021=20is=20invalid?= =?UTF-8?q?=20now?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 6 ++++-- README.md | 6 +++--- display/display.go | 3 ++- go.mod | 2 +- go.sum | 4 ++-- 5 files changed, 12 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff82ea5..70a3e13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,12 +21,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Hash `SubjectPublicKeyInfo` for TOFU instead (#7) - `wrap_width` config option became `max_width` +### Removed +- Opening multiple URLs from the command line (threading issues) + ### Fixed - Reset bottom bar on error / invalid URL - Side scrolling doesn't cut off text on the left side (#1) +- Mark status code 21 as invalid -### Removed -- Opening multiple URLs from the command line (threading issues) ## [1.0.0] - 2020-06-18 Initial release. diff --git a/README.md b/README.md index 7fef0a1..2eb7be2 100644 --- a/README.md +++ b/README.md @@ -53,18 +53,18 @@ Features in *italics* are in the master branch, but not in the latest release. - [ ] Bookmarks - [ ] Search in pages with Ctrl-F - [ ] Download pages and arbitrary data -- [ ] Full mouse support - [ ] Emoji favicons - See `gemini://mozz.us/files/rfc_gemini_favicon.gmi` for details +- [ ] Full mouse support - [ ] Table of contents for pages -- [ ] ~~Collapsing of gemini site sections (as determined by headers)~~ - [ ] Full client certificate UX within the client - - *I will be waiting for some spec changes to happen before implementing this* + - *I will be waiting for some spec changes/recommendations to happen before implementing this* - Create transient and permanent certs within the client, per domain - Manage and browse them - https://lists.orbitalfox.eu/archives/gemini/2020/001400.html - [ ] Subscribe to RSS and Atom feeds and display them - [ ] Support Markdown rendering +- [ ] History browser ## Configuration The config file is written in the intuitive [TOML](https://github.com/toml-lang/toml) file format. See [default-config.toml](./default-config.toml) for details. By default this file is available at `~/.config/amfora/config.toml`. diff --git a/display/display.go b/display/display.go index c612b13..2d6db0a 100644 --- a/display/display.go +++ b/display/display.go @@ -297,6 +297,7 @@ func NewTab() { SetScrollable(true). SetWrap(false). SetText(addLeftMargin(renderedNewTabContent)). + ScrollToBeginning(). SetChangedFunc(func() { App.Draw() }). @@ -344,7 +345,7 @@ func NewTab() { bottomBar.SetLabel("") bottomBar.SetText("") - // Force a draw, just in case + // Draw just in case App.Draw() } diff --git a/go.mod b/go.mod index aa37221..2803782 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.14 require ( github.com/fsnotify/fsnotify v1.4.9 // indirect github.com/gdamore/tcell v1.3.1-0.20200608133353-cb1e5d6fa606 - github.com/makeworld-the-better-one/go-gemini v0.5.1 + github.com/makeworld-the-better-one/go-gemini v0.5.2 github.com/mitchellh/go-homedir v1.1.0 github.com/mitchellh/mapstructure v1.3.1 // indirect github.com/pelletier/go-toml v1.8.0 // indirect diff --git a/go.sum b/go.sum index b6318cc..b7c584f 100644 --- a/go.sum +++ b/go.sum @@ -124,8 +124,8 @@ github.com/lucasb-eyer/go-colorful v1.0.3 h1:QIbQXiugsb+q10B+MI+7DI1oQLdmnep86tW github.com/lucasb-eyer/go-colorful v1.0.3/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0= github.com/magiconair/properties v1.8.1 h1:ZC2Vc7/ZFkGmsVC9KvOjumD+G5lXy2RtTKyzRKO2BQ4= github.com/magiconair/properties v1.8.1/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= -github.com/makeworld-the-better-one/go-gemini v0.5.1 h1:lE0hoU4l7Uje+c9cmdqv9AFi1QNKERmfKZaOLBpzRsg= -github.com/makeworld-the-better-one/go-gemini v0.5.1/go.mod h1:P7/FbZ+IEIbA/d+A0Y3w2GNgD8SA2AcNv7aDGJbaWG4= +github.com/makeworld-the-better-one/go-gemini v0.5.2 h1:jdVNniCBZm/oGXRg+xitCy9dTJXKSG/VoxfeEprvZ8U= +github.com/makeworld-the-better-one/go-gemini v0.5.2/go.mod h1:P7/FbZ+IEIbA/d+A0Y3w2GNgD8SA2AcNv7aDGJbaWG4= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=