nnn: preview-tui does not work on MacOS

Cannot make preview-tui work on MacOS. Downloaded preview-tui and put it into .config/nnn/pluings Installed tmux as a dependency via MacPorts and all other additional dependencies. Updated fish shell config to include

set -x NNN_OPENER /Users/pavels/.config/nnn/plugins/nuke
set -x NNN_PLUG 'p:preview-tui'
set -x NNN_FIFO /tmp/nnn.fifo
set -x TERMINAL (which tmux)

I followed the preview-tui readme and run nnn -a. When in nnn I type ;p to invoke the plugin but the window just blinks for a millisecond and nothing happens 😦

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 47 (8 by maintainers)

Most upvoted comments

@ranelpadon I tried running ueberzug on my OSX VM by installing:

brew install python
brew install xquartz
brew install libxext
sudo pip3 install ueberzug

Then running `ueberzug results in error:

Xlib.error.DisplayNameError: Bad display name "/private/tmp/com.apple.launchd.JwjGcIcjbD/org.macosforge.xquartz:0"

trying after export DISPLAY=:0 results in

Xlib.error.DisplayConnectionError: Can't connect to display ":0" [Errno 61] Connection refused`

I would say that python-xlib needs to support XQuartz for ueberzug to work on OSX.

See if googling fifo "interrupted system call" helps. I don’t use macOS so can’t help with this local issue.

@ranelpadon I can actually reproduce the cannot open '100' (no such file or directory), will try to investigate. The integer expression expected should already be fixed on master however.

@tastyminerals is the executable set on preview-tui if not try chmod +x preview-tui.

Anyways I had never used OSX before but nnn with preview-tui worked out of the box after installing brew and running brew install tmux; brew install nnn; brew install tree Again this is on a VM so unless anyone else actually running OSX can confirm the issue I’d suggest you try to figure out your environment, good luck.

I actually went through the trouble of installing OSX-KVM on my laptop and could not reproduce the issue. preview-tui from master works fine on that hackintosh VM inside tmux.

Are you sure you’re acutally running tmux, have TERMINAL set to your terminal inside your shell profile, or have xterm installed? If any of those three are true the plugin should work.