On Sun Sep 21, 2025 at 10:31 AM CEST, Igor Zornik wrote:
> 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 <[email protected]>
>
> WWW: https://github.com/doronbehar/pistol

Ping.

Attachment: pistol.tgz
Description: application/compressed-tar

Reply via email to