Would it be possible to clear the image preview from the screen when the user runs the :shell (or :sh) command? I have nnoremap cd :shell<CR> in my vifmrc so that I can easily change directories to whatever directory I happen to have open at the time in vifm. The problem comes from having an image preview open and running the command, as the image preview doesn't go away after going back to the shell prompt. The only ways to solve the problem are to either toggle the preview window visibility via :view before using :sh or going to something like a directory or text file which doesn't use Ueberzug.
Edit: I found a workaround to doing it. I just use the following remap:
nnoremap cd :!$XDG_CONFIG_HOME/vifm/scripts/vifmimg clear & $SHELL<CR>
Would it be possible to clear the image preview from the screen when the user runs the
:shell
(or:sh
) command? I havennoremap cd :shell<CR>
in my vifmrc so that I can easily change directories to whatever directory I happen to have open at the time in vifm. The problem comes from having an image preview open and running the command, as the image preview doesn't go away after going back to the shell prompt. The only ways to solve the problem are to either toggle the preview window visibility via:view
before using:sh
or going to something like a directory or text file which doesn't use Ueberzug.Edit: I found a workaround to doing it. I just use the following remap:
Where
XDG_CONFIG_HOME
is~/.config