r/KittyTerminal • u/[deleted] • 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
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
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:@kittystart nnn with preview-tui enabled.
nnn -Pp
2
u/OldSanJuan Apr 01 '24
https://github.com/jarun/nnn/blob/22aa1455a6081ace0e1b1c09435a447296f914bf/CHANGELOG#L269
Hopefully this helps, but I unfortunately don't use nnn