Commit Graph

154 Commits

Author SHA1 Message Date
Case Duckworth 23273c9fba Add INSTALL section 2020-06-01 15:13:31 -05:00
Case Duckworth c42383d009 update README 2020-06-01 15:08:53 -05:00
Case Duckworth 228c930ffd Add rudimentary history support.
This commit adds `history_init`, `history_append`, `history_back`, and
`history_forward` functions.

The history is implemented as an array, HISTORY, which is appended to
with history_append when pages are visited, and a pointer, HN, which
points to the current position in the array.  When history_back is
called, it moves the pointer back 2 and calls blastoff to the URL there.
When history_forward is called, it does not move the pointer and
blastsoff to the URL.  Why back and forward basically have an off-by-one
error is beyond me at this time.

ISSUES:
- if the user goes back then forward, the history is not rewritten for
later URLs. for example, if the history is

	1.gmi	2.gmi	3.gmi*

where the * indicates the current history position, when the user goes
back 2, it looks like this:

	1.gmi*	2.gmi	3.gmi

if the user then navigates to another page:

	1.gmi	4.gmi*	3.gmi

3.gmi is still in the history, so the user can go forward from 4.  This
is unexpected as far as every other client that I know of goes.
2020-06-01 14:58:51 -05:00
Case Duckworth 0861cd12dd Accept but ignore pre lines with alt text 2020-06-01 09:08:48 -05:00
Case Duckworth c6c1dcb0ec Add quit message and set title 2020-05-31 10:58:44 -05:00
Case Duckworth 88d7ae33a9 Trim mime and only look at it once 2020-05-31 10:28:59 -05:00
Case Duckworth 25976f00db Handle different charsets 2020-05-31 10:07:03 -05:00
Case Duckworth 635f035a3b Change config and args order 2020-05-31 08:50:27 -05:00
Case Duckworth 27e7ce4b3e Log, don't echo 2020-05-31 08:47:46 -05:00
Case Duckworth 359794cdf8 Version bump 2020-05-31 08:44:25 -05:00
Case Duckworth b3fe6fc20e Fix config file location 2020-05-31 08:40:26 -05:00
Case Duckworth d3cf8d1cfb Fix line endings 2020-05-30 17:09:52 -05:00
Case Duckworth 0251dc1c44 Version bump 2020-05-30 16:58:12 -05:00
Case Duckworth e31ba53ca5 Remove port number from parsed authority
When navigating to a link with the port included, request_url doesn't do
the right thing.  For now I've changed the code in transform_resource to
remove the port from the authority field, but that is probably not the
right place to put it.

I'm going to deal with this later though.
2020-05-30 16:54:30 -05:00
Case Duckworth 0f87b59ee6 Update docs 2020-05-30 16:46:04 -05:00
Case Duckworth cf5bbfa32b Change margin stuff 2020-05-30 16:45:56 -05:00
Case Duckworth 8a8c5deaf3 Update typesetting of text/gemini 2020-05-30 16:00:12 -05:00
Case Duckworth d2377ae016 Archive 2020-05-30 15:59:52 -05:00
Case Duckworth eccddbfc39 Change some functions to only Bash 2020-05-30 14:35:17 -05:00
Case Duckworth 7dcbff5d33 Remove unneeded files 2020-05-30 13:41:12 -05:00
Case Duckworth c62e428c16 Bring URL transforming up to spec
URL transformation (formerly called "munging") is now (afaict) fully
compliant with the RFC spec. It's also implemented in pure bash and is
available as a library at https://git.sr.ht/~acdw/shurlie.
2020-05-30 13:38:18 -05:00
Case Duckworth 482e2659ae Backup 2020-05-30 13:35:32 -05:00
Case Duckworth 2e6b42e5c1 Start testing transform_uri 2020-05-28 08:37:40 -05:00
Case Duckworth ac0d28c9ec Change typesetting 2020-05-28 08:37:06 -05:00
Case Duckworth 4a1bcfd6d9 Add Makefiles 2020-05-26 19:31:06 -05:00
Case Duckworth e7d7619145 Fix dumb mistake 2020-05-26 18:23:37 -05:00
Case Duckworth 14ddf62440 Add Makefile 2020-05-26 07:02:25 -05:00
Case Duckworth f7e87e3d06 Add less prompts 2020-05-25 22:18:43 -05:00
Case Duckworth 7e20aacc1f Update README 2020-05-25 21:48:36 -05:00
Case Duckworth 3ab62dfc8e Add LICENSE 2020-05-25 21:42:16 -05:00
Case Duckworth 37d105bb50 Add usage and header 2020-05-25 21:41:42 -05:00
Case Duckworth 709334eb96 Major rewrite, v0.1 2020-05-25 21:37:55 -05:00
Case Duckworth 181766f806 Update README 2020-05-24 00:28:01 -05:00
Case Duckworth a490c43b3d Add tee to prepare for links 2020-05-24 00:26:02 -05:00
Case Duckworth 9bdc70b12a Update display() to use less and better mimetypes 2020-05-23 23:49:48 -05:00
Case Duckworth bcc28cfae8 Add option parsing and change order of operations 2020-05-23 19:49:20 -05:00
Case Duckworth 40b7e1b98a Fix redirects 2020-05-23 19:49:06 -05:00
Case Duckworth b7f4dbe8d3 Change awk to gawk 2020-05-23 19:48:49 -05:00
Case Duckworth 341fb268c2 Read statusline until \r 2020-05-23 19:47:44 -05:00
Case Duckworth 677b0b2622 Add SNI support 2020-05-23 19:47:23 -05:00
Case Duckworth cf12497051 Add URL normalizing functions for use later 2020-05-23 19:46:58 -05:00
Case Duckworth 185df06e79 Fix redirecting issues 2020-05-23 19:46:22 -05:00
Case Duckworth ace5aa5c97 Add usage() 2020-05-23 19:45:21 -05:00
Case Duckworth d212d90fb3 Fix colors 2020-05-22 23:06:30 -05:00
Case Duckworth 1b4c540448 Change file descriptors and add functions 2020-05-22 20:34:27 -05:00
Case Duckworth ff83e5b0a2 Wait for responses 2020-05-22 20:16:32 -05:00
Case Duckworth eaa28da3af Statify URL and require things 2020-05-22 18:56:28 -05:00
Case Duckworth fa65687de5 Bump version 2020-05-22 17:19:59 -05:00
Case Duckworth 684292b90b Download non-text mimetypes 2020-05-22 17:12:15 -05:00
Case Duckworth f7d7152060 Reorder variables 2020-05-22 17:11:31 -05:00