nnn: Problem using kitty preview

I’m having a similar problem like https://github.com/jarun/nnn/issues/578 (preview pane closes immediatley after opening). kitty @ launch man man works fine.

I’m calling NNN_PLUG='p:kitty-preview' n -a. When I open the plugin I see a short flicker of the preview, then it’s gone.

This is my env:

COLORTERM=truecolor
DISPLAY=/private/tmp/com.apple.launchd.BGywV6KAIn/org.macosforge.xquartz:0
EDITOR=kak
HOME=/Users/bastian
HOMEBREW_GITHUB_API_TOKEN=XXXXXXXX
KITTY_WINDOW_ID=8
LANG=de_DE.UTF-8
LESS=-g -i -M -R -S -w -z-4
LESSOPEN=|/usr/local/bin/lesspipe.sh %s
LESS_ADVANCED_PREPROCESSOR=1
LOGNAME=bastian
MANPAGER=sh -c 'col -bx | bat -l man -p'
NNN_ARCHIVE=\.(7z|bz2|gz|tar|tgz|zip)
NNN_BMS=d:~/Documents;u:~/;D:~/Downloads/
NNN_COLORS=1234
NNN_OPENER=/Users/bastian/.config/nnn/plugins/nuke
NNN_PLUG=f:finder;o:fzopen;p:preview-kitty;d:diffs;t:nmount;v:imgview;g:-_git diff;l:-_git log;b:-_bat $nnn*;s:-pdfview
PAGER=less
PATH=/usr/local/bin:/usr/local/sbin:/Users/bastian/.local/bin:/Users/bastian/.cache/dein/repos/github.com/junegunn/fzf/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Apple/usr/bin:/usr/local/MacGPG2/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Library/TeX/texbin:/usr/local/sbin:/Applications/kitty.app/Contents/MacOS
PWD=/Users/bastian
SHELL=/usr/local/bin/fish
SHLVL=1
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.dXY9WGEm9I/Listeners
STARSHIP_SHELL=fish
TERM=xterm-kitty
TERMINFO=/Applications/kitty.app/Contents/Frameworks/kitty/terminfo
TMPDIR=/var/folders/7w/jr1m8lhx12sfmydz5b7gklrw0000gn/T/
USER=bastian
VISUAL=kak
XPC_FLAGS=0x0
XPC_SERVICE_NAME=net.kovidgoyal.kitty.29400
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x3

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 46 (30 by maintainers)

Commits related to this issue

Most upvoted comments

Good, the next step will be to make it work in the version made by @marioortizmanero in #634, but we can wait until it’s integrated.

@basbebe So you can conform that this version works without crashing?

sorry.

yes, this works!

@leovilok @jarun Thank you. I solved my problem with preview-tui 👍

Same here… can’t get preview working… -a switch is invalid in osx

The feature is available in nnn v3.2

-a is compiled in by default. So if you are on nnn v3.2, it should be available.