Commit Graph

697 Commits

Author SHA1 Message Date
Lionel Dricot 3155585c9e introducing openk 2023-08-04 19:09:48 +02:00
Lionel Dricot 2e02d06b0e we got rid of GeminiItem 2023-08-03 23:17:12 +02:00
Lionel Dricot ed019fa04e nearly got rid of geminiitem 2023-08-03 16:54:29 +02:00
Lionel Dricot 91e8b7aa16 geminiitem got rid of get_body 2023-07-31 19:01:57 +02:00
Lionel Dricot b3051efe72 working on get_body 2023-07-31 18:53:26 +02:00
Lionel Dricot 9609a8d91f moving out the self.url thing 2023-07-31 18:37:30 +02:00
Lionel Dricot 2034821325 debug XDG folders 2023-07-31 17:56:08 +02:00
Lionel Dricot a6fee03d2b next work : reimplementing list and local files 2023-07-31 13:19:28 +02:00
Lionel Dricot 7ba6bac5a4 works at Volvo 2023-07-31 09:34:12 +02:00
Lionel Dricot 26ed1769de get_link now in ansirenderer 2023-07-30 23:35:34 +02:00
Lionel Dricot 9ee95e7a1b pictures are working 2023-07-30 23:12:01 +02:00
Lionel Dricot 7786b91993 continuing work to remove GeminiItem 2023-07-30 16:59:32 +02:00
Lionel Dricot 3051f60253 more certificate management in netcache 2023-07-28 18:31:04 +02:00
Lionel Dricot dade6a3bda migrating certificate management to netcache 2023-07-28 18:08:45 +02:00
Lionel Dricot eed83a7a95 Cleaning up GeminiItem
Work has started to remove GeminiItem completely and switch to an
{url:renderer} dictionnary. Maybe also add a tmpfile.
2023-07-22 23:32:10 +02:00
Lionel Dricot 767ab82f29 Ok, it starts to work.
Offpunk is now able to display pages, pictures and follow links. A lot
of TODO have been clearly identified. I think that the whole
GeminiItem() object will be removed and URL will be accessed directly
with a dict{url, renderer} to avoid redrawing all the time.

Next challenge: remove GeminiItems!
2023-07-22 00:27:43 +02:00
Lionel Dricot 72ea43a59c debugging offpunk 2023-07-21 18:02:05 +02:00
Lionel Dricot d95d4dc5af offpunk starts to work 2023-07-21 17:33:55 +02:00
Lionel Dricot 1a3d839ab3 renderer in ansirenderer 2023-07-21 14:22:09 +02:00
Lionel Dricot 268e50a781 ansirenderer now working both directly or from stdin 2023-07-21 11:52:39 +02:00
Lionel Dricot cd3177ac87 pour le moment incapable de décider si ansirenderer doit prendre le path du fichier ou directement le texte en input 2023-07-21 01:03:40 +02:00
Lionel Dricot ce65850987 starting to adapt offpunk 2023-07-20 01:17:34 +02:00
Lionel Dricot c7734e3a92 default to stdin 2023-07-18 23:43:45 +02:00
Lionel Dricot 0b0fcc3e42 first working pipe between netcache and ansirenderer 2023-07-18 17:40:36 +02:00
Lionel Dricot 0cd988b055 ansirenderer cli 2023-07-18 12:33:30 +02:00
Lionel Dricot 965f8916c2 --offline and --path arguments 2023-07-18 12:16:08 +02:00
Lionel Dricot 4fd8b89f49 monkey patching 2023-07-18 00:45:14 +02:00
Lionel Dricot b745b04f7a netcache now works for gemini 2023-07-18 00:39:06 +02:00
Lionel Dricot a7c8ed33d5 work in progress 2023-07-09 11:35:58 +02:00
Lionel Dricot 6d43b13520 real work has started with porting Gemini code 2023-07-09 11:16:19 +02:00
Lionel Dricot 0a385d5334 gopher,finger and spartan in netcache 2023-07-09 10:56:40 +02:00
Lionel Dricot ef808afe1d netcache now downloads http 2023-07-08 00:43:56 +02:00
Lionel Dricot 3c760c914a netcache CLI 2023-07-07 23:45:52 +02:00
Lionel Dricot 76b00b8c04 working on netcache 2023-07-04 23:20:39 +02:00
Lionel Dricot a6974bb404 first netcache 2023-07-04 16:10:20 +02:00
Lionel Dricot 644e8ba08e to the point where netcache become an evidence 2023-07-04 13:59:16 +02:00
Lionel Dricot 927017d143 introducing offutils.py 2023-07-04 13:55:01 +02:00
Lionel Dricot ea36f45d94 progress toward independance 2023-07-03 23:48:55 +02:00
Lionel Dricot 86a67d47fa experiment 2023-07-03 11:43:06 +02:00
Lionel Dricot 1a40ad786f Improved help for list and sync, suggestion from smokey 2023-07-02 23:46:34 +02:00
Sotiris Papatheodorou - sotiris at papatheodorou.xyz 2cc599afdd Change the Gopher index filename to gophermap
This seems to be the most common convention among gopher servers (e.g.
Gophernicus, go-gopher).

Added a script to migrate the cache to the new format. Alternatively the
following command can be used for migration in a POSIX system:

find ~/.cache/offpunk/gopher/ -type f -name 'index.txt' -exec sh -c 'mv {} "$(dirname {})/gophermap"' \;
2023-04-14 11:11:24 +02:00
Maeve Sproule - code at sprock.dev a73790f0fb Rewrite gopher URL parsing code per RFC 4266
The previous code was using the first path segment as an item type, if
it was present and a single character long. However, the standard
requires the first character after the slash to be used, if present,
regardless of whether if forms a complete path segment. This rewrite
conforms the code to the standards behaviour, and fixes both the
original problem with gopher://alexschroeder.ch/ and the problem created
with other gopherholes in my attempt to fix it.

I've also changed one piece of code that generates a gopher URL to
better conform to the standard, by avoiding the introduction of leading
slashes. This should prevent any gopherholes that don't accept leading
slashes (including gopher://alexschroeder.ch/) from having problems with
requests sent from offpunk.
2023-04-09 12:10:34 +02:00
Maeve Sproule - code at sprock.dev be2836e218 Fix gopher requests 2023-04-08 22:09:30 +02:00
Lionel Dricot b1de7c59e4 forgot debug statement 2023-04-04 20:57:17 +02:00
Lionel Dricot 5b0e63b5a5 should fix gopher requests 2023-04-03 23:18:45 +02:00
Lionel Dricot 25b2c4ef53 removing an else condition which is obviously crashing and should not be there 2023-04-03 21:18:42 +02:00
Sotiris Papatheodorou - sotiris at papatheodorou.xyz 454994002a Fix merging dictionaries with common keys
The previous code would throw KeyError if a key was present in both
os.environ and env, e.g. when LESSHISTFILE is defined in the
environment. The current code ensures that for keys present in both
dictionaries the value from env will be used.
2023-04-02 14:39:56 +02:00
Lionel Dricot fff1f39877 set accept_bad_certificates now also works for expired Gemini certificates 2023-03-30 11:28:58 +02:00
Lionel Dricot a0ce56d45e Adding chardet to README 2023-03-27 20:51:03 +02:00
Anna “CyberTailor” - cyber+misc at sysrq.in 453f8af9f9 add chardet to optional dependencies 2023-03-27 20:45:41 +02:00