Questions tagged [nnn]

5 questions
1
vote
1 answer

Strange escape sequences in terminal

I have kitty, and I use nnn as file manager. I actiavted the "preview-tui" plugin in nnn. When I hover over a folder, I see something like this: What are those strange escape sequences?
robertspierre
  • 271
  • 2
  • 10
1
vote
3 answers

How to Copy Text of a Filename Using nnn File Manager

Using nnn (which is a terminal-based file manager), how can you copy the text of a file or folder's name to the clipboard? For your convenience, this will install and launch nnn in Debian (if you'd like to help me figure it out): sudo apt install…
Lonnie Best
  • 4,895
  • 6
  • 27
  • 42
0
votes
1 answer

Recover Directory imediatly after failed 'nnn' (filebrowser) renaming

After building a local data-server with a bunch of older hard drives on one HDD I've observed that I had switched the naming of two directories. With the 'nnn' file-browser (with the 'r' keybinding, which calls the 'vi' editor in which you can…
alex
  • 953
  • 2
  • 13
  • 29
0
votes
0 answers

Preserving environment variables (custom shell prompts) in nnn subshells

I run two different terminal emulators with different zsh prompts depending on whether I am in one or the other (with the second being the "default"): TERM_EMU=$(ps --pid $(ps --pid $$ -o ppid=) -o comm=) if [ $TERM_EMU = 'term1' ]; then …
0
votes
1 answer

How to Open a File with SUDO from within nnn File Manager

While using nnn, I need to edit a file that requires sudo privileges. I love that I'm able to navigate quickly to the file I want to edit using nnn, and how it immediately opens the file in my editor. Yet upon making modifications, I cannot save the…
Lonnie Best
  • 4,895
  • 6
  • 27
  • 42