bollux.git/.git
3 years agoChange implementation of URL array origin/master
Case Duckworth [Thu, 18 Jun 2020 13:24:01 +0000 (08:24 -0500)]
Change implementation of URL array

3 years agoHandle unknown protocols better (by not handling them)
Case Duckworth [Mon, 8 Jun 2020 20:56:45 +0000 (15:56 -0500)]
Handle unknown protocols better (by not handling them)

3 years agoReload page if no links
Case Duckworth [Mon, 8 Jun 2020 20:37:29 +0000 (15:37 -0500)]
Reload page if no links

3 years agoImplement 'sleep' as a builtin
Case Duckworth [Mon, 8 Jun 2020 20:37:03 +0000 (15:37 -0500)]
Implement 'sleep' as a builtin

3 years agoSet BOLLUX_URL on 3* status codes
Case Duckworth [Mon, 8 Jun 2020 20:30:20 +0000 (15:30 -0500)]
Set BOLLUX_URL on 3* status codes

3 years agoFix bye message
Case Duckworth [Mon, 8 Jun 2020 20:24:43 +0000 (15:24 -0500)]
Fix bye message

3 years agoComment less invocation
Case Duckworth [Mon, 8 Jun 2020 20:20:14 +0000 (15:20 -0500)]
Comment less invocation

3 years agoRemove unneeded variables
Case Duckworth [Mon, 8 Jun 2020 20:19:54 +0000 (15:19 -0500)]
Remove unneeded variables

3 years agoFold text better
Case Duckworth [Mon, 8 Jun 2020 20:04:26 +0000 (15:04 -0500)]
Fold text better

`fold_line` now has a lot of options that determine how to fold the
text so that each line can be separately styled with ANSI escapes.  It
turns out that `less` only styles the first line of multi-line blocks
that are ANSI-escaped, so this was necessary to make it look "good."

3 years agoEnable extglob on extglob
Case Duckworth [Mon, 8 Jun 2020 16:16:13 +0000 (11:16 -0500)]
Enable extglob on extglob

3 years agoLog function name
Case Duckworth [Mon, 8 Jun 2020 15:13:34 +0000 (10:13 -0500)]
Log function name

3 years agoNotes for TOFU
Case Duckworth [Mon, 8 Jun 2020 15:11:53 +0000 (10:11 -0500)]
Notes for TOFU

3 years agoSpecify permissions 0.4.3
Case Duckworth [Mon, 8 Jun 2020 13:36:45 +0000 (08:36 -0500)]
Specify permissions

3 years agoActually fix regression in Makefile
Case Duckworth [Mon, 8 Jun 2020 13:33:18 +0000 (08:33 -0500)]
Actually fix regression in Makefile

3 years agoFix Makefile 0.4.2
Case Duckworth [Mon, 8 Jun 2020 13:13:32 +0000 (08:13 -0500)]
Fix Makefile

3 years agoEscape URL queries
Case Duckworth [Mon, 8 Jun 2020 05:42:16 +0000 (00:42 -0500)]
Escape URL queries

3 years agoFix regression with BOLLUX_URL not being set
Case Duckworth [Mon, 8 Jun 2020 05:41:52 +0000 (00:41 -0500)]
Fix regression with BOLLUX_URL not being set

3 years agoChange formatting of quotes and fix list
Case Duckworth [Mon, 8 Jun 2020 05:36:42 +0000 (00:36 -0500)]
Change formatting of quotes and fix list

3 years agoAdd quote support to text/gemini typesetting
Case Duckworth [Mon, 8 Jun 2020 05:14:10 +0000 (00:14 -0500)]
Add quote support to text/gemini typesetting

3 years agoAdd -servername to openssl command 0.4.1
Case Duckworth [Mon, 8 Jun 2020 04:26:28 +0000 (23:26 -0500)]
Add -servername to openssl command

3 years agoFix makefile
Case Duckworth [Mon, 8 Jun 2020 00:51:35 +0000 (19:51 -0500)]
Fix makefile

3 years agoAdd comments
Case Duckworth [Mon, 8 Jun 2020 00:23:14 +0000 (19:23 -0500)]
Add comments

3 years agoUpdate manpage
Case Duckworth [Sun, 7 Jun 2020 23:44:56 +0000 (18:44 -0500)]
Update manpage

3 years agoChange display and keymaps
Case Duckworth [Sun, 7 Jun 2020 23:43:28 +0000 (18:43 -0500)]
Change display and keymaps

3 years agoComment unused options
Case Duckworth [Sun, 7 Jun 2020 22:59:56 +0000 (17:59 -0500)]
Comment unused options

3 years agoChange less options
Case Duckworth [Sun, 7 Jun 2020 22:59:36 +0000 (17:59 -0500)]
Change less options

3 years agoSupport status code 11
Case Duckworth [Sun, 7 Jun 2020 21:51:48 +0000 (16:51 -0500)]
Support status code 11

3 years agoUpdate README
Case Duckworth [Sun, 7 Jun 2020 19:06:46 +0000 (14:06 -0500)]
Update README

3 years agoUpdate README
Case Duckworth [Sun, 7 Jun 2020 19:05:10 +0000 (14:05 -0500)]
Update README

3 years agoUpdate documentation 0.4.0
Case Duckworth [Sun, 7 Jun 2020 19:02:57 +0000 (14:02 -0500)]
Update documentation

3 years agoSet timeout origin/gopher
Case Duckworth [Sun, 7 Jun 2020 18:34:59 +0000 (13:34 -0500)]
Set timeout

3 years agoAdd gophertypes 7 and hopefully others (download)
Case Duckworth [Fri, 5 Jun 2020 04:51:28 +0000 (23:51 -0500)]
Add gophertypes 7 and hopefully others (download)

3 years agoAdd gopher support; clean up
Case Duckworth [Fri, 5 Jun 2020 01:14:05 +0000 (20:14 -0500)]
Add gopher support; clean up

3 years agoVersion bump 0.3.0
Case Duckworth [Thu, 4 Jun 2020 04:22:55 +0000 (23:22 -0500)]
Version bump

3 years agoUpdate docs
Case Duckworth [Wed, 3 Jun 2020 13:17:34 +0000 (08:17 -0500)]
Update docs

3 years agoAdd G bind
Case Duckworth [Wed, 3 Jun 2020 12:43:46 +0000 (07:43 -0500)]
Add G bind

3 years agoAdd back/forward binds to statusline
Case Duckworth [Wed, 3 Jun 2020 04:08:21 +0000 (23:08 -0500)]
Add back/forward binds to statusline

3 years agoFix title extraction
Case Duckworth [Wed, 3 Jun 2020 03:37:27 +0000 (22:37 -0500)]
Fix title extraction

3 years agoChange variables and update manpages
Case Duckworth [Wed, 3 Jun 2020 03:24:49 +0000 (22:24 -0500)]
Change variables and update manpages

3 years agoCustomize Bye Message
Case Duckworth [Wed, 3 Jun 2020 03:14:36 +0000 (22:14 -0500)]
Customize Bye Message

3 years agoChange ssl_cmd setting
Case Duckworth [Wed, 3 Jun 2020 03:03:08 +0000 (22:03 -0500)]
Change ssl_cmd setting

3 years agoAdded explicit support for TLS v1.3
Parker Ellertson [Tue, 2 Jun 2020 22:16:28 +0000 (15:16 -0700)]
Added explicit support for TLS v1.3

From 8d20bf3b790991a33c0ab721a2746ec222a74f2a Mon Sep 17 00:00:00 2001
From: Parker Ellertson <pellertson@firemail.cc>
Date: Tue, 2 Jun 2020 15:06:34 -0700
Subject: [PATCH bollux] Added explicit support for TLS v1.3

3 years agoAdd wip
Case Duckworth [Wed, 3 Jun 2020 02:53:52 +0000 (21:53 -0500)]
Add wip

This is where all my works in progress are going to go.
Expect it to be really messy.

3 years agoAdd history file origin/history
Case Duckworth [Wed, 3 Jun 2020 02:51:24 +0000 (21:51 -0500)]
Add history file

I added a history file at $XDG_DATA_HOME/bollux/history.
Its format is of the form
<date %FT%T> <URL> <TITLE>
the date is generated with the printf trick.  I should probably be doing
version checking or at least say we require bash 4+.

The code to get the title of the page is pretty gross.  Basically I have
to run the content of the pipeline through like, two times? A read loop.
Check out ll. 333-348 to see how weird it is.

3 years agoReimplement extract_links in bash
Case Duckworth [Wed, 3 Jun 2020 02:07:46 +0000 (21:07 -0500)]
Reimplement extract_links in bash

3 years agoRemove iconv dash
Case Duckworth [Wed, 3 Jun 2020 02:05:42 +0000 (21:05 -0500)]
Remove iconv dash

3 years agoMerge branch 'master' into history
Case Duckworth [Tue, 2 Jun 2020 03:55:50 +0000 (22:55 -0500)]
Merge branch 'master' into history

3 years agoAdd keybind
Case Duckworth [Tue, 2 Jun 2020 03:55:40 +0000 (22:55 -0500)]
Add keybind

3 years agoFix beginning of history detection
Case Duckworth [Mon, 1 Jun 2020 20:36:33 +0000 (15:36 -0500)]
Fix beginning of history detection

3 years agoAdd INSTALL section
Case Duckworth [Mon, 1 Jun 2020 20:13:31 +0000 (15:13 -0500)]
Add INSTALL section

3 years agoupdate README
Case Duckworth [Mon, 1 Jun 2020 20:08:53 +0000 (15:08 -0500)]
update README

3 years agoAdd rudimentary history support.
Case Duckworth [Mon, 1 Jun 2020 19:58:51 +0000 (14:58 -0500)]
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.

3 years agoAccept but ignore pre lines with alt text
Case Duckworth [Mon, 1 Jun 2020 14:08:48 +0000 (09:08 -0500)]
Accept but ignore pre lines with alt text

3 years agoAdd quit message and set title
Case Duckworth [Sun, 31 May 2020 15:58:44 +0000 (10:58 -0500)]
Add quit message and set title

3 years agoTrim mime and only look at it once
Case Duckworth [Sun, 31 May 2020 15:28:59 +0000 (10:28 -0500)]
Trim mime and only look at it once

3 years agoHandle different charsets
Case Duckworth [Sun, 31 May 2020 15:07:03 +0000 (10:07 -0500)]
Handle different charsets

3 years agoChange config and args order
Case Duckworth [Sun, 31 May 2020 13:50:27 +0000 (08:50 -0500)]
Change config and args order

3 years agoLog, don't echo
Case Duckworth [Sun, 31 May 2020 13:47:46 +0000 (08:47 -0500)]
Log, don't echo

3 years agoVersion bump 0.2.2
Case Duckworth [Sun, 31 May 2020 13:44:25 +0000 (08:44 -0500)]
Version bump

3 years agoFix config file location
Case Duckworth [Sun, 31 May 2020 13:40:26 +0000 (08:40 -0500)]
Fix config file location

3 years agoFix line endings 0.2.1
Case Duckworth [Sat, 30 May 2020 22:09:52 +0000 (17:09 -0500)]
Fix line endings

3 years agoVersion bump 0.2
Case Duckworth [Sat, 30 May 2020 21:58:12 +0000 (16:58 -0500)]
Version bump

3 years agoRemove port number from parsed authority
Case Duckworth [Sat, 30 May 2020 21:54:30 +0000 (16:54 -0500)]
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.

3 years agoUpdate docs
Case Duckworth [Sat, 30 May 2020 21:46:04 +0000 (16:46 -0500)]
Update docs

3 years agoChange margin stuff
Case Duckworth [Sat, 30 May 2020 21:45:56 +0000 (16:45 -0500)]
Change margin stuff

3 years agoUpdate typesetting of text/gemini
Case Duckworth [Sat, 30 May 2020 21:00:12 +0000 (16:00 -0500)]
Update typesetting of text/gemini

3 years agoArchive
Case Duckworth [Sat, 30 May 2020 20:59:52 +0000 (15:59 -0500)]
Archive

3 years agoChange some functions to only Bash
Case Duckworth [Sat, 30 May 2020 19:35:17 +0000 (14:35 -0500)]
Change some functions to only Bash

3 years agoRemove unneeded files origin/url-rfc
Case Duckworth [Sat, 30 May 2020 18:41:12 +0000 (13:41 -0500)]
Remove unneeded files

3 years agoBring URL transforming up to spec
Case Duckworth [Sat, 30 May 2020 18:38:18 +0000 (13:38 -0500)]
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.

3 years agoBackup
Case Duckworth [Sat, 30 May 2020 18:35:32 +0000 (13:35 -0500)]
Backup

3 years agoStart testing transform_uri
Case Duckworth [Thu, 28 May 2020 13:37:40 +0000 (08:37 -0500)]
Start testing transform_uri

3 years agoChange typesetting
Case Duckworth [Thu, 28 May 2020 13:37:06 +0000 (08:37 -0500)]
Change typesetting

3 years agoAdd Makefiles
Case Duckworth [Wed, 27 May 2020 00:31:06 +0000 (19:31 -0500)]
Add Makefiles

3 years agoFix dumb mistake v0.1.1
Case Duckworth [Tue, 26 May 2020 23:23:37 +0000 (18:23 -0500)]
Fix dumb mistake

3 years agoAdd Makefile
Case Duckworth [Tue, 26 May 2020 12:02:25 +0000 (07:02 -0500)]
Add Makefile

3 years agoAdd less prompts v0.1
Case Duckworth [Tue, 26 May 2020 03:18:43 +0000 (22:18 -0500)]
Add less prompts

3 years agoUpdate README
Case Duckworth [Tue, 26 May 2020 02:48:36 +0000 (21:48 -0500)]
Update README

3 years agoAdd LICENSE
Case Duckworth [Tue, 26 May 2020 02:42:16 +0000 (21:42 -0500)]
Add LICENSE

3 years agoAdd usage and header
Case Duckworth [Tue, 26 May 2020 02:41:42 +0000 (21:41 -0500)]
Add usage and header

3 years agoMajor rewrite, v0.1
Case Duckworth [Tue, 26 May 2020 02:37:55 +0000 (21:37 -0500)]
Major rewrite, v0.1

3 years agoUpdate README origin/less
Case Duckworth [Sun, 24 May 2020 05:28:01 +0000 (00:28 -0500)]
Update README

3 years agoAdd tee to prepare for links
Case Duckworth [Sun, 24 May 2020 05:26:02 +0000 (00:26 -0500)]
Add tee to prepare for links

3 years agoUpdate display() to use less and better mimetypes
Case Duckworth [Sun, 24 May 2020 04:49:48 +0000 (23:49 -0500)]
Update display() to use less and better mimetypes

3 years agoAdd option parsing and change order of operations
Case Duckworth [Sun, 24 May 2020 00:49:20 +0000 (19:49 -0500)]
Add option parsing and change order of operations

3 years agoFix redirects
Case Duckworth [Sun, 24 May 2020 00:49:06 +0000 (19:49 -0500)]
Fix redirects

3 years agoChange awk to gawk
Case Duckworth [Sun, 24 May 2020 00:48:49 +0000 (19:48 -0500)]
Change awk to gawk

3 years agoRead statusline until \r
Case Duckworth [Sun, 24 May 2020 00:47:44 +0000 (19:47 -0500)]
Read statusline until \r

3 years agoAdd SNI support
Case Duckworth [Sun, 24 May 2020 00:47:23 +0000 (19:47 -0500)]
Add SNI support

3 years agoAdd URL normalizing functions for use later
Case Duckworth [Sun, 24 May 2020 00:46:58 +0000 (19:46 -0500)]
Add URL normalizing functions for use later

3 years agoFix redirecting issues
Case Duckworth [Sun, 24 May 2020 00:46:22 +0000 (19:46 -0500)]
Fix redirecting issues

3 years agoAdd usage()
Case Duckworth [Sun, 24 May 2020 00:45:21 +0000 (19:45 -0500)]
Add usage()

3 years agoFix colors
Case Duckworth [Sat, 23 May 2020 04:06:30 +0000 (23:06 -0500)]
Fix colors

3 years agoChange file descriptors and add functions
Case Duckworth [Sat, 23 May 2020 01:34:27 +0000 (20:34 -0500)]
Change file descriptors and add functions

3 years agoWait for responses
Case Duckworth [Sat, 23 May 2020 01:16:32 +0000 (20:16 -0500)]
Wait for responses

3 years agoStatify URL and require things
Case Duckworth [Fri, 22 May 2020 23:56:28 +0000 (18:56 -0500)]
Statify URL and require things

3 years agoBump version
Case Duckworth [Fri, 22 May 2020 22:19:00 +0000 (17:19 -0500)]
Bump version

3 years agoDownload non-text mimetypes
Case Duckworth [Fri, 22 May 2020 22:12:15 +0000 (17:12 -0500)]
Download non-text mimetypes

3 years agoReorder variables
Case Duckworth [Fri, 22 May 2020 22:11:31 +0000 (17:11 -0500)]
Reorder variables

3 years agoNormalize line endings
Case Duckworth [Fri, 22 May 2020 21:11:39 +0000 (16:11 -0500)]
Normalize line endings