Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
7 of 9 tasks
XhstormR opened this issue Apr 28, 2024 · 1 comment
Open
7 of 9 tasks
Labels

Comments

@XhstormR
Copy link

XhstormR commented Apr 28, 2024

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
@XhstormR XhstormR added the bug label Apr 28, 2024
@XhstormR XhstormR changed the title file preview panel get stuck when use plugin preview-tui with tmux and bat [plugin] file preview panel get stuck when use plugin preview-tui with tmux and bat Apr 29, 2024
@XhstormR
Copy link
Author

XhstormR commented May 3, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant