nnn: [preview-tui] updated tree breaks preview file/dir list

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

  • Operating System: Arch Linux
  • Desktop Environment: Sway
  • Terminal Emulator: foot
  • Shell: zsh
  • Custom desktop opener (if applicable):
  • Program options used:
  • Configuration options set:
  • Plugins are installed
  • Issue exists on nnn master

Arch Linux with tree 2.0.1-2, using preview-tui script, now file/dir listings don’t display correctly anymore. See [1] Running the same tree command that preview-tui uses, in a shell, it still works. See [2] Downgrading to 1.8.0-2 fixes, as expected.

[1] https://0x0.st/ooQa.png [2] https://0x0.st/ooQB.png

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (7 by maintainers)

Commits related to this issue

Most upvoted comments

Kitty does loop and close FDs in the range 3-200 when exec:ing its child process.

But that means it only applies to the first shell instance; when nnn runs, and when nnn exec’s a plugin, kitty is not involved in the process, and no FDs are closed. Unless nnn spawns a new kitty instance when you start a shell from it (it doesn’t for me).

No worries, and I hope I didn’t come off as being rude. The bash script was only meant as a way to show/prove that the leaked FD is the cause, and I could have been more clear about that.