Sunday, October 31, 2021

Re: NNN / Plugins

su.root wrote:
> I can't seem to get any of the nnn plugins to work; eg sxiv with
> imgview plugin makes the screen flicker and nothing happens
>
> [...]
>
> imgview plugin
> https://github.com/jarun/nnn/blob/master/plugins/imgview
>
> I am unable to utilise the debug feature with nnn (don't think this has
> been enabled) Would be most grateful if I could get some pointers Would
> be most grateful if I could get some pointers.

Which debug feature do you mean? I don't see such a thing described in
the manpage or the --help output.

The "imgview" plugin doesn't work, because it's not POSIX compliant
(even if the authors say otherwise) and uses sort and grep switches
that don't exist on OpenBSD.

These "plugins" are just shell scripts. You can invoke them on the
command line with ./imgview <image>. You won't see much because the
author has disabled all possible output with ">/dev/null 2>&1"
everywhere.

Feel free to remove those and fix the script or replace the tools with
the gnu variantes that support these switches (ggrep, gsort, etc.).

I rolled my own opener for nnn. Not exactly the same as imgview, but
maybe enough for you, too. https://codevoid.de/0/p/open.sh

I don't think your problems with nnn are port related.

Best regards,
Stefan

No comments:

Post a Comment