~lioploum/offpunk

checking if "grep" supports "--color=auto" to supports OpenBSD (reported by Dylan D’Silva)
564e1df0 — Ploum 6 days ago
just another photo for the archives
35d85c18 — Ploum 7 days ago
"alias" now allows custom command to be aliased

"abbrevs" has been deprecated
7260e73d — Ploum 7 days ago
changing "datetime.UTC" to "datetime.timezone.utc" for retrocompatibility with python < 3.11
39cbc707 — Étienne Mollier 10 days ago
man/opnk.1: refresh command description.

Signed-off-by: Étienne Mollier <emollier@debian.org>
0ae109b1 — Étienne Mollier 10 days ago
man/offpunk.1: refresh manual for offpunk 2.4.

This change removes references to --tls-* arguments and documents
the --images-mode.

Signed-off-by: Étienne Mollier <emollier@debian.org>
43337a95 — Étienne Mollier 10 days ago
man/netcache.1: refresh manual.

This change updates netcache description to match the help argument
output, and includes newly introduced --ids argument.  In addition,
it also includes missing description of --offline.

Signed-off-by: Étienne Mollier <emollier@debian.org>
c156362e — Étienne Mollier 10 days ago
man/ansicat.1: refresh ansicat description.

Signed-off-by: Étienne Mollier <emollier@debian.org>
refactor: simplify set_prompt and add tests

I was going through the code and I found some nits in the prompt
code (using `.get` with a default value on dicts) and decided to
take the occasion to setup some tests.

I've updated the README accordingly (tests need `pytest` and
`pytest-mock` to be installed).

The `README.md` has been reformated using a markdown linter, I hope you
don't mind.
63159989 — Ploum 13 days ago
changelog for 2.5
chore: apply PEP8 formatting using ruff
Version 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
90e97df9 — Ploum 14 days ago
dec vt 220
39138a56 — Ploum 15 days ago
Gopher: hide lines starting with TAB (drkhsh.at), reported by Dylan D’Silva
527a1e85 — Ploum 17 days ago
web browser
3685ab1f — Ploum 17 days ago
what is offpunk improved
914c8425 — Ploum 17 days ago
what does it mean
1728698c — Peter Cock a month ago
Issues installing on macOS, e.g. finding timg 1.3.2+

Hello,

I read about offpunk via Mastodon, and was curious to give it a try -
particularly the image rendering at the terminal which was intriguing.
I am currently trying this on macOS Intel, but if it works for me
would also use macOS ARM, and Linux on Intel.

I could install offpunk itself easily (via "pip install offpunk", or
"git clone ..."), and could work out most of the soft dependencies
easily enough.

However, running "version" inside offpunk says it would like chafa (at
least version 1.10 from the email archives) and/or timg 1.3.2+

I ran into some confusion with rival image projects called timg, and
sadly it looks like the one offpunk wants is harder to install:
https://github.com/hzeller/timg/issues/141

Likewise chafa doesn't currently have macOS binaries (for Intel or
ARM), but that may be happening soon:
https://github.com/hpjansson/chafa/issues/223

For python-pil, it looks like pillow is fine (the maintained fork):
https://pypi.org/project/pillow/

Having a few more details on https://offpunk.net/install.html would
help, even a simple listing of recommended packages, minimum versions,
and a link to the home page?

Finally, a small bug report: The code in opnk.py to check if the
version of less is at least 572 does not account for non-integer
versions like this:

$ which less
/usr/bin/less
$ less --version | head -n 2
less 581.2 (POSIX regular expressions)
Copyright (C) 1984-2021  Mark Nudelman

Possible patch below, generated with "git diff -p > less_macos_version.patch"

Thank you,

Peter

--
f16221fd — Ploum a month ago
fix parameter "interactive=False" not being sent to gemini redirections
b76e2fba — Ploum a month ago
fix crash in netcache when a port cannot be parsed in the URL
Next