It makes more sense to default to the terminals people are less likely
to have. If a user has `xterm` installed, then that is, most probably,
because it ships with X11. Whereas if a user has `st` or `alacritty`
instlled, then that is because he/she chose to install it.
`nuke` and `preview-tabbed` works as expected. I would assume `imgview`
should work as expected as well since `nsxiv` (at the moment at least)
is a drop-in replacement for sxiv, but I haven't tested it.
Closes: https://github.com/jarun/nnn/issues/1229
* Add a tabbed/xembed based file previewer plugin
This plugin is written in bash, because job control is not well
specified in POSIX sh (`jobs` can return anything).
We use `tabbed` [1] as a xembed [2] host, to have a single window
owning each previewer window.
Uses mpv, sxiv, zathura, and the nuke plugin.
[1]: http://tools.suckless.org/tabbed/
[2]: https://specifications.freedesktop.org/xembed-spec/xembed-spec-latest.html
* tabbed-preview: prevent focus steal with xdotool
* preview-tabbed: tabs->4 spaces
* preview-tabbed: add focus prevention timeout