nnn: Can't get preview to work
Environment details (Put x in the checkbox along with the information)
[x] Operating System: MacOS 10.14.6
[ ] Desktop Environment:
[x] Terminal Emulator: iTerm2
[x] Shell: zsh
[ ] Custom desktop opener (if applicable):
[ ] Program options used:
[ ] Configuration options set:
[x] Issue exists on nnn master
NNN_PLUG=f:fzcd;o:fzopen;z:fzz;d:diffs;t:treeview;v:preview-tui
NNN_FIFO=/tmp/nnn.fifo
TMUX v3.1b
nnn v3.2
Maybe I’m just dumb, but I can’t get the preview to work.
- I hover on file
- Press
; - Press
v nnnjust flickered but nothing show… what did I miss? 🤔
Please help. Thank you
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 45 (27 by maintainers)
@leovilok I made it future version proof to version 9. See commit 56eea7e195e98eedca374cfc24cc43afe73d43db. By the time tmux reaches v9 we can remove the check. 😉
Nice. I tried to make a .svg out of it so you could embed the animation in the readme (it’s not obvious that there is an animation if you click on it), but so far it’s not working.
I’ll post an update here with the file when/if I succeed.
Its live: https://github.com/jarun/nnn/blob/master/plugins/README.md
Thanks all for your help. All issues fixed, so here is a clean cast for the wiki or the plugin page: https://asciinema.org/a/336443
The performance of
nnnis really phenomenal (remember that it’s a phone), andtree-node-cliis also much faster than the module I tried before.@Kabouik interrupting is already implemented, just use
viu "$1" &instead ofviu "$1".@Kabouik it’s a shame that you have those “Terminated …” messages, try this replacement:
@kuntau this might be a bit simpler, but not v4.0 proof:
Excellent, thanks! For testing, I just removed the version check you quoted from
preview-tuiand that works. In my case it might be easier to do just that instead of changing the versiontmuxreports.The problem is
tmux next-3.2. The check we have currently is:which fails. I also compiled tmux from source and faced this problem. You can hack the code to change the version to “3.2”. That’s what I did.