Closed XhstormR closed 3 months ago
I used ov instead of less and it works fine now.
change preview-tui:
"NNN_PAGER=${NNN_PAGER:-less -P?n -R -C}" # pager options
to
"NNN_PAGER=${NNN_PAGER:-ov}" # pager options
Thanks for the update and workaround. Closing the issue.
Environment details (Put
x
in the checkbox along with the information)-adexoiUH -Te -Pp
export NNN_PLUG='p:preview-tui;o:fzopen;c:fzcd;z:autojump;x:!chmod +x $nnn*;'
nnn
masterExact 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 pagerless
.Update: This defect also appears in the preview directory function, so the bug should be related to the pager
less
.