Index | Thread | Search

From:
"Igor Zornik" <mocheryl@mocheryl.org>
Subject:
[NEW] sysutils/pistol 0.5.3
To:
"OpenBSD ports" <ports@openbsd.org>
Date:
Sun, 21 Sep 2025 10:31:00 +0200

Download raw body.

Thread
Hello, ports.

Pistol if a file previewer, but it's actually meant to complement
(terminal-based) file browsers such as sysutils/lf which is how I use
it. Here is the most basic example how to see it in action. First set
the previewer in ~/.config/lf/lfrc:

    set previewer ~/.config/lf/previewer

Then in ~/.config/lf/previewer make it use pistol for previewing:

    #!/bin/sh
    pistol "$1"

Something like the above, for instance, makes it a lot easier to browse
over archives.

I've put the port in the attachment and the output of package info
below.

Comment:
general purpose file previewer

Description:
Pistol is a file previewer for command line file managers.

Pistol is a Go program (with (almost) 0 dependencies) and its MIME
type detection is internal. Moreover, it features native preview
support for almost any archive file and for text files along with
syntax highlighting.

In case Pistol encounters a MIME type it doesn't know how to handle
natively and you haven't configured a program to handle it, it'll
print a general description of the file type it encountered.

Maintainer: Igor Zornik <mocheryl@mocheryl.org>

WWW: https://github.com/doronbehar/pistol