jarun/nnn

[plugin] file preview panel get stuck when use plugin preview-tui with tmux and bat

Closed this issue · 2 comments

Environment details (Put x in the checkbox along with the information)

  • Operating System: MacOS
  • Desktop Environment: Darwin 23.4.0 x86_64 i386
  • Terminal Emulator: alacritty
  • Shell: fishshell, version 3.7.1
  • Custom desktop opener (if applicable):
  • Program options used: -adexoiUH -Te -Pp
  • Configuration options set: export NNN_PLUG='p:preview-tui;o:fzopen;c:fzcd;z:autojump;x:!chmod +x $nnn*;'
  • Plugins are installed
  • Issue exists on nnn master

Exact steps to reproduce the issue

nnn 4.9
tmux 3.4
bat 0.24.0
less 643

If the previewed file exceeds the window height, it will get stuck when scrolling to the end of the file, and then will display:Waiting for data... (^X or interrupt to abort). I found a similar issue: sharkdp/bat#1055 , also may be related to pager less.

image

Update: This defect also appears in the preview directory function, so the bug should be related to the pager less.

image

I used ov instead of less and it works fine now.

https://github.com/noborus/ov

change preview-tui:

  "NNN_PAGER=${NNN_PAGER:-less -P?n -R -C}"                # pager options
to
  "NNN_PAGER=${NNN_PAGER:-ov}"                # pager options
jarun commented

Thanks for the update and workaround. Closing the issue.