jarun / nnn

n³ The unorthodox terminal file manager
BSD 2-Clause "Simplified" License
19.1k stars 760 forks source link

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

Closed XhstormR closed 3 months ago

XhstormR commented 5 months ago

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

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: https://github.com/sharkdp/bat/issues/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
XhstormR commented 5 months ago

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 3 months ago

Thanks for the update and workaround. Closing the issue.