I configured nnn with global file preview plugin/setting. But when I activate with it open in a new separate window. I want to open in another new terminal window. In tmux it works fine. It opens in the right pane. What settings should I need to change?
I need like this
It’s stated in the documentation:
The previews will be shown in a tmux split. If that isn’t possible, it will try to use a kitty terminal split. And as a final fallback, a different terminal window will be used ($NNN_TERMINAL).
In other words, you have to set the
NNN_TERMINAL environment variable to the terminal emulator you want to use.
Save the file. Log out and log back in for changes to take effect.
This file has been truncated.
# Description: Terminal based file previewer
# Note: This plugin needs a "NNN_FIFO" to work. See man.
# - Supports 6 independent methods to preview with:
# - tmux (>=3.0), or
# - kitty with allow_remote_control and listen_on set in kitty.conf, or
# - wezterm (https://wezfurlong.org/wezterm), or
# - QuickLook on WSL (https://github.com/QL-Win/QuickLook), or
# - Windows Terminal (https://github.com/Microsoft/Terminal | https://aka.ms/terminal) with WSL, or
# - $NNN_TERMINAL set to a terminal (it's xterm by default).
# - less or $NNN_PAGER
# - tree or exa/eza or (GNU) ls
# - mediainfo or file
# - mktemp
# - unzip
# - tar
I set NNN_TERMNIAL=bash but when I activate the preview it changes/shows in the same terminal window but I want in a separate new terminal window.
while adding konsole it gave an error. So I changed it to bash
bash is shell, not a terminal emulator. You need to set the variable to a terminal emulator like konsole, alacritty, or whatever.
Dude. You made a typo. It shouldn’t be capital K. It’s
For the post here i typed konsole but in the variable file I gave Konsole only …
You typed “Konsole” with a capital “K”. Like I mentioned already, it needs to be “konsole” with a small “k”.
Oopsy … I read it wrong sorry … 1min lemme change it
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.