Commit Graph

856 Commits

Author SHA1 Message Date
Lionel Dricot 1da149e2fa changing licence 2023-08-17 13:41:04 +02:00
Lionel Dricot 7464b80e3e awesome progress with caching. Everything starts to make sense 2023-08-17 13:40:18 +02:00
Lionel Dricot a6e293a301 debugged --sync 2023-08-17 13:40:16 +02:00
Lionel Dricot 21784dc0d6 debugging --sync 2023-08-17 13:39:29 +02:00
Lionel Dricot c03a161e56 last_mode is broken, Im confused 2023-08-17 13:39:29 +02:00
Lionel Dricot 1b0c3774b6 Ansirenderer has been renamed to ansicat.
Downloading of images has been moved into netcache.
Offpunk go_to_url starts to be sane and easier.
2023-08-17 13:39:29 +02:00
Lionel Dricot 09c37dee5c opnk seems to be functional. Lists are still missing 2023-08-17 13:39:29 +02:00
Lionel Dricot 323c088683 opnk is now basically working 2023-08-17 13:39:29 +02:00
Lionel Dricot 654f03c53c introducing openk 2023-08-17 13:39:29 +02:00
Lionel Dricot 10c07a794c we got rid of GeminiItem 2023-08-17 13:39:29 +02:00
Lionel Dricot ddd7dbd42c nearly got rid of geminiitem 2023-08-17 13:39:29 +02:00
Lionel Dricot f64b3da658 geminiitem got rid of get_body 2023-08-17 13:39:29 +02:00
Lionel Dricot 2a7509b7d1 working on get_body 2023-08-17 13:39:29 +02:00
Lionel Dricot b0b1fc43f5 moving out the self.url thing 2023-08-17 13:39:29 +02:00
Lionel Dricot 4526e39443 debug XDG folders 2023-08-17 13:39:29 +02:00
Lionel Dricot 6211d454be next work : reimplementing list and local files 2023-08-17 13:39:29 +02:00
Lionel Dricot ee96e2c3e7 works at Volvo 2023-08-17 13:39:29 +02:00
Lionel Dricot 4f6ab9225b get_link now in ansirenderer 2023-08-17 13:39:29 +02:00
Lionel Dricot 12c61f4317 pictures are working 2023-08-17 13:39:27 +02:00
Lionel Dricot 9ba09b2c01 continuing work to remove GeminiItem 2023-08-17 13:38:45 +02:00
Lionel Dricot 4f5a7af9ff more certificate management in netcache 2023-08-17 13:38:45 +02:00
Lionel Dricot 2ed2bd7a88 migrating certificate management to netcache 2023-08-17 13:38:45 +02:00
Lionel Dricot 9a9b5bb267 Cleaning up GeminiItem
Work has started to remove GeminiItem completely and switch to an
{url:renderer} dictionnary. Maybe also add a tmpfile.
2023-08-17 13:38:45 +02:00
Lionel Dricot acb49f83c0 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-08-17 13:38:45 +02:00
Lionel Dricot 709fd853b0 debugging offpunk 2023-08-17 13:38:45 +02:00
Lionel Dricot 072eee8325 offpunk starts to work 2023-08-17 13:38:45 +02:00
Lionel Dricot d3c9957ec5 renderer in ansirenderer 2023-08-17 13:38:45 +02:00
Lionel Dricot 601cfdbba9 ansirenderer now working both directly or from stdin 2023-08-17 13:38:45 +02:00
Lionel Dricot c775590bac pour le moment incapable de décider si ansirenderer doit prendre le path du fichier ou directement le texte en input 2023-08-17 13:38:45 +02:00
Lionel Dricot 2e08b9a73c starting to adapt offpunk 2023-08-17 13:38:45 +02:00
Lionel Dricot 4c93e18037 default to stdin 2023-08-17 13:38:45 +02:00
Lionel Dricot b580a74530 first working pipe between netcache and ansirenderer 2023-08-17 13:38:45 +02:00
Lionel Dricot ffb31d6a27 ansirenderer cli 2023-08-17 13:38:45 +02:00
Lionel Dricot 0265d8489c --offline and --path arguments 2023-08-17 13:38:45 +02:00
Lionel Dricot f6ff77da2b monkey patching 2023-08-17 13:38:45 +02:00
Lionel Dricot 2b4bd04fa9 netcache now works for gemini 2023-08-17 13:38:45 +02:00
Lionel Dricot d4768d6e8d work in progress 2023-08-17 13:38:45 +02:00
Lionel Dricot cb2958e4b6 real work has started with porting Gemini code 2023-08-17 13:38:45 +02:00
Lionel Dricot 4038adf5a9 gopher,finger and spartan in netcache 2023-08-17 13:38:45 +02:00
Lionel Dricot 8e732d0cfa netcache now downloads http 2023-08-17 13:38:45 +02:00
Lionel Dricot 6a6c0c0907 netcache CLI 2023-08-17 13:38:45 +02:00
Lionel Dricot c4cdcde94d working on netcache 2023-08-17 13:38:40 +02:00
Lionel Dricot c3a98d761e first netcache 2023-08-17 13:37:45 +02:00
Lionel Dricot a644315ed2 to the point where netcache become an evidence 2023-08-17 13:37:45 +02:00
Lionel Dricot a5853d2d66 introducing offutils.py 2023-08-17 13:37:45 +02:00
Lionel Dricot f6b70f938d progress toward independance 2023-08-17 13:37:31 +02:00
Lionel Dricot 8800a6bbc2 experiment 2023-08-17 13:34:07 +02:00
Lionel Dricot e4bc908919 release 1.10 before breaking all the things 2023-07-31 13:33:27 +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