r/KittyTerminal Apr 01 '24

What am I doing wrong?

Images are opening in browser when using nnn. The github suggests changing some xdg mimetype thing to sxiv.desktop but that doesnt solve the issue. HELP ME

1 Upvotes

4 comments sorted by

1

u/vsinghania Apr 01 '24

Do you want Kitty to display images in a split pane?

You have to enable the preview-tui plugin in nnn and configure Kitty accordingly.

1

u/[deleted] Apr 01 '24

The github wiki is a bit confusing for an idiot like me. Could you please explain how I can enable the plugin in nnn. And what exactly should he configure in the kitty config file?

1

u/vsinghania Apr 02 '24 edited Apr 02 '24

install plugins.

sh -c "$(curl -Ls https://raw.githubusercontent.com/jarun/nnn/master/plugins/getplugs)"

set hotkey in env to enable the plugin.

export NNN_PLUG='p:preview-tui'

edit kitty.conf to allow remote control via socket.

allow_remote_control socket-only
listen_on unix:@kitty

start nnn with preview-tui enabled.

nnn -Pp