Commit Graph

856 Commits

Author SHA1 Message Date
Lionel Dricot 699fed78b9 Introducing themes
You can now customize the colors of offpunk by using the command
"theme".

See "help theme" or use the autocomplete.
2023-08-31 00:40:35 +02:00
Lionel Dricot 1e002f3456 early support for themes in ansicat 2023-08-30 17:02:54 +02:00
Lionel Dricot 97b02a666f do not use cache for local files 2023-08-30 14:06:07 +02:00
Lionel Dricot 5c5fcb3f9e new full_links_only mode to fetch all links from links saved in mode=full 2023-08-30 11:54:24 +02:00
Étienne Mollier 7ad75380a6 Homogenize shebang
Before the change, ansicat, netcache and opnk assume that the
interpreter location is always /bin/python.  While some distributions
do provide python at this location, even as a python3 interpreter,
some others such as Debian do not provide a plain python interpreter
anymore, at least not by default.  There exist packages to provide the
version 2 or the version 3 of the interpreter at that location, but
the three possible configurations (v2, v3 or none) are left at the
discretion of the administrator, so in practice can't really be
predicted in advance.

This change applies the same shebang as offpunk.py and the cache
migration script.  Use of /usr/bin/env has also the side effect of
easing use of python3 interpreters installed at weird locations.

Signed-off-by: Étienne Mollier <emollier@debian.org>
2023-08-30 09:22:08 +02:00
Lionel Dricot 5d9df83ea0 cache_migration doesn’t need to be executable 2023-08-29 12:21:43 +02:00
Lionel Dricot c356a4607c automatic handle of cache migration 2023-08-29 11:47:51 +02:00
Lionel Dricot 68451fbc0a tentative of upgrading pyproject 2023-08-28 23:52:59 +02:00
Lionel Dricot 751c4eb2b2 removing unecessary Debian reference from manpages 2023-08-28 23:18:07 +02:00
Lionel Dricot d8bba70fe2 cleanup of the cache should always be full 2023-08-28 14:54:24 +02:00
Lionel Dricot 11adf1aca9 changelog update 2023-08-27 23:25:01 +02:00
Étienne Mollier 5d675f4ceb offpunk.1: cross reference other manual pages.
Signed-off-by: Étienne Mollier <emollier@debian.org>
2023-08-27 22:47:02 +02:00
Étienne Mollier 7a22ea3c8a Provide manuals for new commands.
This patch add stubs of documentation for ansicat(1), netcache(1),
migrate-offpunk-cache(1) and opnk(1) in prevision of offpunk 2.0
release.  The migration script manual notably resolves issue #15.

Signed-off-by: Étienne Mollier <emollier@debian.org>
2023-08-27 22:46:49 +02:00
Lionel Dricot a1ce45403f I broke the feed renderer. Now it works 2023-08-27 13:46:33 +02:00
Lionel Dricot d7fe66b204 support for multiformat rendering (trying view full for RSS) 2023-08-27 13:11:34 +02:00
Lionel Dricot 95c790f69d fix bug #20 due to a stupid line added without testing 2023-08-25 14:14:06 +02:00
Lionel Dricot 7c17b4f15d fixes bug #18 2023-08-24 15:31:08 +02:00
Lionel Dricot 392c42ae48 "--images-mode" allow to choose at startup which images should be dowloaded (none,readable,full)
It default to downloading "readable" images.
download_images_first option will also be deprecated
2023-08-24 15:14:49 +02:00
Lionel Dricot 3f6a9df107 fixes bug #19 2023-08-23 15:04:19 +02:00
Lionel Dricot 8c4f4eee65 compute size of lists 2023-08-22 15:43:17 +02:00
Lionel Dricot 10b3a84be5 Solve the infamous application/javascript bug
Lot of html pages are now recognized as application/javascript. We now
force the HtmlRenderer for application/javascript.

Contact address has also be changed to offpunk2 everywhere
2023-08-22 14:59:20 +02:00
Lionel Dricot f4818c966e adding file as a dependancy 2023-08-21 01:08:13 +02:00
Lionel Dricot 8beae920a7 removing code of the client-side certificate (untested and unused for years) 2023-08-19 10:17:37 +02:00
Lionel Dricot 238d4352a9 missed an import in opnk 2023-08-18 12:45:28 +02:00
Lionel Dricot 68581d4ff0 removing unecessary message when accessing unavailable ressources 2023-08-17 16:43:44 +02:00
Lionel Dricot fe06f17b16 better handling of changing width with opnk 2023-08-17 15:38:47 +02:00
Lionel Dricot 38fcc89193 fixed do_cat and do_shell 2023-08-17 14:16:40 +02:00
Lionel Dricot e14c9dcd09 now blocking subdomains too 2023-08-17 13:42:59 +02:00
Lionel Dricot 5d3453c4b9 removing client generated certificate code 2023-08-17 13:42:59 +02:00
Lionel Dricot 462d257c36 implemented grep and better restoring of last mode 2023-08-17 13:42:57 +02:00
Lionel Dricot 99a3730618 restore redirect code and accept_bad_ssl 2023-08-17 13:41:41 +02:00
Lionel Dricot c149cb17f4 added --config-file (bug #16) 2023-08-17 13:41:41 +02:00
Lionel Dricot 147e628bc2 fixes reload of local ressources 2023-08-17 13:41:41 +02:00
Lionel Dricot af18214c41 except when reloading, we use the cache if younger than 60 seconds 2023-08-17 13:41:41 +02:00
Lionel Dricot 39f080036c small changelog 2023-08-17 13:41:41 +02:00
Lionel Dricot e34de67015 comment out some certificate code 2023-08-17 13:41:41 +02:00
Lionel Dricot 091e41ecf9 fix root function 2023-08-17 13:41:41 +02:00
Lionel Dricot 392b4c085d inverted logic to restore position in lists 2023-08-17 13:41:41 +02:00
Lionel Dricot 24112ba2b4 fixed opnk with local files 2023-08-17 13:41:41 +02:00
Lionel Dricot d88d2cdc20 Removed blackbox (it was broken for years)
Also, fixed the non-interactive mode of fetch_gemini
2023-08-17 13:41:41 +02:00
Lionel Dricot 91013f5d3d removing debugging output 2023-08-17 13:41:41 +02:00
Lionel Dricot c7740e0d5e fixing crashes in the network code 2023-08-17 13:41:41 +02:00
Lionel Dricot b7286b8039 lists are always displayed in cat 2023-08-17 13:41:41 +02:00
Lionel Dricot 67e7c6d7e7 images are now displayed using chafa 2023-08-17 13:41:41 +02:00
Lionel Dricot 58af0d61ca shit with env variable not expanded 2023-08-17 13:41:41 +02:00
Lionel Dricot 33def82b2a things start to look usable 2023-08-17 13:41:41 +02:00
Lionel Dricot 13fffcd882 list of todos 2023-08-17 13:41:41 +02:00
Lionel Dricot dbb32a9a45 user expanding of XDG variables 2023-08-17 13:41:41 +02:00
Lionel Dricot 0ee76865f5 debug folders wrongly added to git 2023-08-17 13:41:41 +02:00
Lionel Dricot 4e8418541d support for mailto 2023-08-17 13:41:39 +02:00