Skip to content

Should nnn -p - emit file details to stdout? #1064

@hovsater

Description

@hovsater

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

  • Operating System: macOS, 11.3.1
  • Desktop Environment: macOS
  • Terminal Emulator: Kitty, 0.20.3
  • Shell: bash, 5.1.8
  • Custom desktop opener (if applicable):
  • Program options used: -p -
  • Configuration options set:
  • Issue exists on nnn master

Exact steps to reproduce the issue

When providing -p -, my assumption was that file selection would output to stdout, but when pressing f to get file details, this output is also outputted to stdout, which is kind of unexpected. If I instead, provide a regular file to -p like so nnn -p output.txt, pressing f does not output into it.

  1. nnn -p -
  2. Press f
  3. Press enter
  4. See output below
16777220 24380305 -rw-r--r-- 1 kevinsjoberg wheel 0 0 "Jun 10 18:14:55 2021" "Jun 10 18:14:55 2021" "Jun 10 18:14:55 2021" "Jun 10 18:14:55 2021" 4096 0 0 /private/tmp/test.txt


  empty

  inode/x-empty; charset=binary

/private/tmp/test.txt
  1. nnn -p output.txt
  2. Press f
  3. Press enter
  4. See output below
/private/tmp/test.txt

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions