version 2.6 - February 24th 2025 FOR PACKAGERS: dependency to python-pil (or pillow) has been dropped - NEW BEHAVIOUR: not rendered ressources (like PDF) are not opened automatically. The user is prompted to type "open" to see the ressource. This allows the ressource to be part of history, be bookmarked, etc… Offpunk: - new "--command" command-line argument to immediately launch one or multiple commands - "add" now accepts link number as a second argument (suggested by JMCS) - "url" now accepts link number as an argument (suggested by JMCS) - "url" can be piped to any shell command: "url|" or "url 121|" (suggestion of Stephen) Ansicat and rendering: - new "preformat_wrap" option available to wrap even <pre> - PlainText rendering has been vastly improved with wrap, margin and link detection - fix wrong wraping in gophermap (patch by JMCS) Opnk and opening files: note: "opnk" will be renamed "openk" in 3.0 - "opnk" now supports following link like in "opnk $URL XX" where XX is a link number. - "opnk" is now reading the offpunrc file to use predefined handlers - "handler" with now automatically add "%s" at the end of the command if not present - "handler" now supports file exension or full mimetype Deprecation and removal: - removed support for chafa < 1.10, as announced in 2.4. python-pil is not used anymore. - removed the "cat" command as it has no purpose (you can use "!cat" instead) and there was a potential crash (reported by Stephen) - new "feed" command to replace the "view feed" (which is deprecated)
Release 2.5 - January 30th 2025 - "abbrevs" has been replaced by "alias" - "alias" now allows custom command to be aliased - PEP8-ification by Vincent Jousse - changing "datetime.UTC" to "datetime.timezone.utc" for retrocompatibility with python < 3.11 - checking if "grep" supports "--color=auto" to supports OpenBSD (reported by Dylan D’Silva)
2.4 - November 21st 2024 NEW WEBSITE: Official homepage is now https://offpunk.net (or gemini://offpunk.net). Sources are in the /tutorial/ folder and contributions are welcome. NEW FEATURE: This release includes work by Bert Livens to add gemini client-side certificates (see "help certs"). This means you can browse gemini capsule while being identified (such as astrobotany) - Deprecation warning if using Chafa < 1.10 - introducing the "tutorial" command (which is only a link to offpunk.net for now) - netcache: use client-certificate when going to a url like gemini://username@site.net (by Bert Livens) - offpunk/netcache: added the "cert" command to list and create client certificates (Bert Livens) - "open" now accept integer as parameters to open links (suggested by Matthieu Rakotojaona) - fix cache not being properly accessed when server redirect to same host with standard port (gemini.ucant.org) - fix crash when expired certificate due to not_valid_after deprecation - fix crash in netcache when a port cannot be parsed in the URL - fix parameter "interactive=False" not being sent to gemini redirections - fix problem with non-integer version of less (Patch by Peter Cock) - Gopher: hide lines starting with TAB (drkhsh.at), reported by Dylan D’Silva
2.3 - June 29th 2024 This is a maintainance release. It adds support for Wayland clipboard and, under the hood, move certificates from sqlite to the filesystem. - netcache: moved the certificate cache to the filesystem instead of a database (by Bert Livens) - Wayland clipboard support through wl-clipboard (new suggested dependency) - Xclip clipboard support (in case xsel is missing) - offpunk/netcache: fix IPv6 as an URL (bug #40) - ansicat: display empty files (instead of opening them with xdg-open) - fix escape sequence warning in python 3.12 (by Étienne Mollier) (Debian #1064209) - ansicat : fix crash when feedparser is crashing on bad RSS - netcache: fix spartan protocol error - opnk: fix a crash when caching returns None - ansicat: remove the treshold argument when launching chafa (strange artifacts with new version)
2.2 - February 13th 2023 - cache folder is now configurable through $OFFPUNK_CACHE_PATH environment variable (by prx) - offpunk: adding an URL to a list now update the view mode if url already present - netcache: solve an infinite gemini loop with code 6X (see also bug #31) - ansicat: added support for <video> HTML-element - ansicat: if chafa fails to load an image, fallback to timg if available - offpunk: add list autocompletion to "tour" - offpunk: removed "blackbox", which has not been used nor maintained - offpunk: "gus" was broken, it is functionnal again - opnk/offpunk: more informative prompt in less - ansicat: added support for HTML description elements <dt> and <dd> (by Bert Livens) - opnk: added "--mode" command-line argument (bug #39) - offpunk: support for "preformatted" theming (bug #38) - opnk/netcache: added "--cache-validity" command-line argument (bug #37) - ansicat: consider files as XML, not SVG, if they don’t have .svg extension - offpunk: fix "view link" crashing with link to empty files
v2.1 - December 15th 2023 Two years ago, I started to modify AV-98 in order to browser Gemini offline. https://ploum.net/2021-12-06-offline-av98.html https://ploum.net/2021-12-17-offline-gemini.html It is interesting to reflect on those last two years and look at what this little experiment has become. A tool I use daily. In fact, on of my main tools with Neovim and Neomutt. Also a community. People contributing. Sending patches, bug reports or even thank you notes. A few people hanging out on the offpunk:matrix.org room. I’m really grateful for that and for all the people who make the Gemini-sphere alive. This 2.1 release is also a more relaxed release. The 2.0 release was well received, widely packaged and has very few bugs (comparing to 1.0). So nothing ground breaking but, besides a few bug fixed (including the infamous gemini redirection bug), some little nice-to-have features. Like highlighting "new links" in Gemini and RSS pages. I was unsure if it would work, turns out that it is the best thing ever invented to read Gemini Antenna or long RSS feeds. Also added: "copy title" and "copy link", allowing you to quickly reference a page in a personnal note or an email. And, one day, I realized that I often wanted to know where a given link was pointing to (a bit like hovering your mouse on a link in a traditional browser). So I added a "view XX" where XX is the number of the link. What is really interesting with this feature is how I wrote it: I realized I had a need, opened the offpunk.py, wrote a few lines of code to test it and… that was it. No correction to do. It was good at the very first try. Which is a testament to the fact that the 2.0 refactorisation was actually a good thing. So, here is it, the 2.1 release. Enjoy! Changelog since 2.0: - freshly updated gemtext/rss links are highlighted ("new_link" theme option) - offpunk : new "copy title" and "copy link" function - offpunk : new "view XX" feature where XX is a number to view information about a link - ansicat: added "--mode" option - redirections are now reflected in links and the cache (bug #28) - ansicat: avoid a crash when urllib.parse.urljoin fails - offpunk: Fix a crash when gus is called without parameters (Von Hohenheiden) - ansicat: fixed a crash when parsing wrong hidden_url in gemini (bug #32) - offpunk: offpunk --version doesn’t create the cache anymore (bug #27) - ansicat: fix a crash with HTML without title (bug #33) - netcache: gemini socket code can crash when IPv6 is disabled (mailing-list)
Version 2.0 - November 16th 2023 Offpunk 2.0 is a major stepstone as it breaks the "one-file-app" paradigm. Offpunk is now splitted in several components usable as standalane tools: - netcache, to cache or access networked ressource - ansicat, to render HTML/gemtext/image and other format in plain ANSI coloured text - opnk, to open any file or url in less if possible or fallback to xdg-open - offpunk Starting with 2.0, offpunk is now licensed undes the AGPL license as a symbol to support the copyleft philosophy. Changes since 1.10 - IMPORTANT: Licence has been changed to AGPL for ideological reasons - IMPORTANT: Contact adress has been changed to offpunk2 on the same domain (because of spam) - IMPORTANT: code has been splitted into several differents files. - IMPORTANT: migrating from flit to hatchling (patch by Jean Abou Samra) Major features: - New command-line tool: "netcache" - New command-line tool: "ansicat" - New command-line tool: "opnk" - "theme" command allows customization of the colours - "--config-file" allows to start offpunk with custom config (#16) - "view source" to view the source code of a page - introduced the "default_protocol" options (default to gemini) Improvments: - Reading position is saved in less for the whole session - Rendering is cached for the session, allowing faster browsing of a page already visited - "redirect" supports domains starting with "*" to also block all subdomins - "--images-mode" allow to choose at startup which images should be dowloaded (none,readable,full) - Support for embedded multi-format rendering (such as RSS feeds with html elements) - The cache is now automatically upgraded if needed (see .version in your cache) - Images of html files are now downloaded with the html (slower sync but better reading experience) - "--sync" can optionnaly take some lists as arguments, in order to make for specific sync - initial tentative to support podcasts in RSS/Atom feeds Other notable changes from 1.X: - "accept_bad_ssl_certificates" now more agressive for http and really accepts them all - Gopher-only: we don’t support naming a page after the name of the incoming link - Gemini-only: support for client generated certificates has been removed - "file" is now marked as a dependency (thank Guillaume Loret)
2.0-beta2 - November 8th 2023 Changes since beta1 - IMPORTANT: migrating from flit to hatchling (patch by Jean Abou Samra) - "--sync" can optionnaly take some lists as arguments, in order to make for specific sync - "view source" to view the source code of a page - initial tentative to support podcasts in RSS/Atom feeds - new PlaintextRenderer which display .txt files without any margin/color/linebreaks - default URL blocked list is now its own file to make contributions easier - prompt color is now part of the theme - improves handling of base64 images - fixes gophermap being considered as gemtext files - fixes opening mailto links - fixes existing non-html ressources marked a to_fetch even when not needed (simple and/or confusion) - fixes a crash with RSS feeds without <link> element - fixes a crash with data:image/svg+xml links - fixes a bug in HTML renderer where some hX element were not closed properly - fixes input in Gemini while online - fixes a crash with invalid URL - fixes a crash while parsing invalid dates in RSS - fixes hang/crash when meeting the ";" itemtype in gopher - attempt at hiding XMLparsedAsHTMLWarning from BS4 library - chafa now used by default everywhere if version > 1.10 - ignoring encoding error in ansicat
v2.0-beta1 - September 05th 2023 This is an an experimental release. Bug reports and feedbacks are welcome on the offpunk-devel list. - WARNING: pyproject.toml has not been updated and is currently non-functional. Help needed! - IMPORTANT: Licence has been changed to AGPL for ideological reasons - IMPORTANT: Contact adress has been changed to offpunk2 on the same domain (because of spam) - IMPORTANT: code has been splitted into 7 differents files. Installation/packaging should be adapted. Major features: - New command-line tool: "netcache" - New command-line tool: "ansicat" - New command-line tool: "opnk" - "theme" command allows customization of the colours - "--config-file" allows to start offpunk with custom config (#16) Improvments: - Reading position is saved for the whole session - Rendering is cached for the session, allowing faster browsing of a page already visited - "redirect" supports domains starting with "*" to also block all subdomins - "--images-mode" allow to choose at startup which images should be dowloaded (none,readable,full) - Support for multi-format rendering (such as RSS feeds with html elements) - The cache is now automatically upgraded if needed (see .version in your cache) Other changes from 1.X: - Images of html files are now downloaded with the html (slower sync but better reading experience) - URL do not default anymore to "gemini://" if not protocol are indicated. (ongoing discussion in #21) - "accept_bad_ssl_certificates" now more agressive for http and really accepts them all - Gopher-only: we don’t support naming a page after the name of the incoming link - Gemini-only: support for client generated certificates has been removed - "file" is now marked as a dependency (thank Guillaume Loret)
1.10 - July 31st 2023 This is the last release before a huge refactorisation that will break everything. So consider it as the last "stable" release for a while. This is mostly a bugfix release. - IMPORTANT : new optional dependency : python-chardet - IMPORTANT : Gopher directory index filename changed from "index.txt" to "gophermap". To update the cache to the new format run the `migrate-offpunk-cache` script (Sotiris Papatheodorou) - "set accept_bad_ssl_certificates True" now also used for Gemini expired certificates - Add missing chardet module (Sotiris Papatheodorou) - Fix merging dictionaries with common keys (Sotiris Papatheodorou) - Fix Gopher requests (rewrite URL parsing code per RFC 4266)