I want to disable the preview-tui when I don't need it.
Don't think it is supported, you could implement it yourself.
I'm heading to bed so I can't be of help right now.
An idea I'll leave before I go to bed: imagine if you could toggle the preview-tui with 1 keystroke from nnn 馃ゲ
An idea I'll leave before I go to bed: imagine if you could toggle the
preview-tuiwith 1 keystroke fromnnn馃ゲ
it's my dream 馃槆
I am using preview-tui with xterm. I press ^C on the preview pane and it will close. I press the plugin shortcut again if I need it.
it's my dream
@akimdi You have the power to make your dreams come true :
echo 'kill $(lsof -tac cat "$NNN_FIFO")' > ~/.config/nnn/plugins/close-preview-tui
chmod +x ~/.config/nnn/plugins/close-preview-tui
# open preview window with Alt+p , close it with Alt+c
NNN_PLUG='p:preview-tui;c:close-preview-tui' nnn -a
(a prettier version is left as an exercise to the reader :stuck_out_tongue: )
NNN_PLUG='p:preview-tui;c:close-preview-tui' nnn -a
works fine but not always.
Thanks :)
I guess the solution would be to create a toggle-tui-preview command. All it would have to do is first check whether or not a preview pane is open. If it is open, close it. If it isn't open, open it.
Most helpful comment
@akimdi You have the power to make your dreams come true :
(a prettier version is left as an exercise to the reader :stuck_out_tongue: )