|
|
|
@ -1,21 +1,23 @@
|
|
|
|
|
## v1.1.0-dev
|
|
|
|
|
|
|
|
|
|
Three new features in this release, plus an unknown number of new
|
|
|
|
|
bugs.
|
|
|
|
|
bugs:
|
|
|
|
|
|
|
|
|
|
1. phetch will now disable color in menus when the `NO_COLOR` env
|
|
|
|
|
variable is set. See https://no-color.org/ for more information.
|
|
|
|
|
1. When the `NO_COLOR` env variable is set, phetch won't use colors
|
|
|
|
|
when rendering menus. See https://no-color.org/ for more information.
|
|
|
|
|
|
|
|
|
|
2. phetch has added support for the CP437 encoding! You can toggle it
|
|
|
|
|
on or off using `ctrl-e` (for encoding). See
|
|
|
|
|
https://en.wikipedia.org/wiki/Code_page_437 for information. Huuuge
|
|
|
|
|
2. CP437 encoding support! You can toggle it on or off using `ctrl-e`
|
|
|
|
|
(for encoding) when viewing a Gopher document, or using the
|
|
|
|
|
`--encoding` command line flag. See
|
|
|
|
|
https://en.wikipedia.org/wiki/Code_page_437 for information. Huge
|
|
|
|
|
thanks to Kjell for suggesting this feature and providing some
|
|
|
|
|
great test data!
|
|
|
|
|
|
|
|
|
|
3. phetch now supports a primitive form of wrapping long lines in text
|
|
|
|
|
views. It won't reflow the text, but it will make some phlogs and
|
|
|
|
|
other documents slightly more readable. Enable it with `--wrap NUM`
|
|
|
|
|
or by adding `wrap NUM` to your `phetch.conf`.
|
|
|
|
|
3. phetch now supports a primitive form of wrapping long lines when
|
|
|
|
|
rendering Gopher text documents. It won't reflow the text, but it
|
|
|
|
|
will make some phlogs and other documents slightly more readable.
|
|
|
|
|
Enable it with `--wrap NUM` or by adding `wrap NUM` to your
|
|
|
|
|
`phetch.conf`. You can disable it with `wrap 0`.
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
@ -26,7 +28,7 @@ making the page hard to scroll and read:
|
|
|
|
|
|
|
|
|
|
Now, by either passing `--wrap NUM` or adding `wrap NUM` to your
|
|
|
|
|
`phetch.conf` file, phetch will attempt to wrap long lines at the
|
|
|
|
|
nearest hypen or space:
|
|
|
|
|
nearest punctation or space:
|
|
|
|
|
|
|
|
|
|
![wrapped](https://user-images.githubusercontent.com/41523880/97058201-fa388e00-1541-11eb-84ef-c539304870a6.png)
|
|
|
|
|
|
|
|
|
@ -36,19 +38,19 @@ assumption that the client will do the wrapping, so it can end up
|
|
|
|
|
looking pretty messy in an ananchronistic client like phetch. Reading
|
|
|
|
|
those files is now a bit easier:
|
|
|
|
|
|
|
|
|
|
| not wrapped | wrapped |
|
|
|
|
|
|---|---|
|
|
|
|
|
| not wrapped | wrapped |
|
|
|
|
|
| -------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
|
|
|
| ![not wrapped](https://user-images.githubusercontent.com/41523880/97057857-1556ce00-1541-11eb-9cc1-6c6d438529ea.png) | ![wrapped](https://user-images.githubusercontent.com/41523880/97057869-1ee03600-1541-11eb-8e7b-ae47ff9ec871.png) |
|
|
|
|
|
|
|
|
|
|
This also works nicely on native Gopher content: phlog entries
|
|
|
|
|
sometimes have long URLs in their footnotes, and that could screw up
|
|
|
|
|
phetch's margin calculations.
|
|
|
|
|
|
|
|
|
|
Note that this doesn't do any *reflow* of text, so documents with long
|
|
|
|
|
Note that this doesn't do any _reflow_ of text, so documents with long
|
|
|
|
|
lines will still look a bit wonky, as you can see above. Some lines
|
|
|
|
|
will be too short. But it's a lot more usable, so we'll take it!
|
|
|
|
|
|
|
|
|
|
PS You can use smaller values to get weird with it:
|
|
|
|
|
PS: You can use smaller values to get weird with it:
|
|
|
|
|
|
|
|
|
|
![weird](https://user-images.githubusercontent.com/41523880/97057878-269fda80-1541-11eb-9435-89f97cce8825.png)
|
|
|
|
|
|
|
|
|
|