Commit Graph

22 Commits

Author SHA1 Message Date
d427287784 offpunk: fix IPv6 as an URL (bug #40) 2024-02-15 16:16:37 +01:00
0a9fb62582 check that the cache_path ends with / 2024-01-23 21:21:15 +01:00
prx
87837fd1fb implement set cache directory
Hi,
find below a patch which let user set a custom chache folder.

Environment variable OFFPUNK_CACHE_PATH is used.
This way, it can be set globally in a profile, or occasionnaly before running offpunk.
It also avoid the pain to parse options and dealing with flags in scripts.
Thank you for your attention.

Regards.

prx
2024-01-23 21:11:52 +01:00
92516082c1 Access to xdg folders now refactored to be a function
Instead of creating three global variables, a xdg() function now returns
the DATA,CONFIG and CACHE folders.

This allows us to create the cache only when tentatively accessed
(this fixes bug #27)
2023-12-04 11:10:20 +01:00
3164658352 Fixed a crash when parsing hidden_urls bug #32
GemtextRenderer is parsing the text for URLs not starting with "=>" and
adding them later to the list to avoid having to copy/paste with the
mouse. This is an hidden feature.

In this case, the url was not supposed to be one and included [] chars
which prevent urllib to know how to handle it.

The fix involved refactoring the looks_like_url functions out of offpunk
and add it to offutils so it can be used by ansicat to ensure a function
looks_like_url before giving it to urllib.
2023-12-02 00:11:34 +01:00
818257bcef renaming cache_migration to netcache_migration: fixes #25 2023-11-08 16:45:27 +01:00
29c447cd8e Revert completely previous fix.
Instead, if we do not support an inline image format, we don’t display
it at all instead of displaying a fake URL
2023-10-20 00:06:59 +02:00
979b80c5bd fixes a crash with data:image/svg+xml links 2023-10-20 00:02:35 +02:00
ea82e81d75 Improve handling of base64 images
Also makes images links absolute in the rendering
2023-09-13 21:49:52 +02:00
e14009f2a4 ansicat working again alone 2023-09-03 23:20:54 +02:00
514e853b6b create cache dir if it doesn’t exists. Thanks mart-e for reporting the bug. 2023-08-31 11:01:52 +02:00
c356a4607c automatic handle of cache migration 2023-08-29 11:47:51 +02:00
fe06f17b16 better handling of changing width with opnk 2023-08-17 15:38:47 +02:00
67e7c6d7e7 images are now displayed using chafa 2023-08-17 13:41:41 +02:00
dbb32a9a45 user expanding of XDG variables 2023-08-17 13:41:41 +02:00
1da149e2fa changing licence 2023-08-17 13:41:04 +02:00
7464b80e3e awesome progress with caching. Everything starts to make sense 2023-08-17 13:40:18 +02:00
a6e293a301 debugged --sync 2023-08-17 13:40:16 +02:00
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
09c37dee5c opnk seems to be functional. Lists are still missing 2023-08-17 13:39:29 +02:00
ddd7dbd42c nearly got rid of geminiitem 2023-08-17 13:39:29 +02:00
a5853d2d66 introducing offutils.py 2023-08-17 13:37:45 +02:00