open files from xplr with you favorite applications by mime or mime-regexp
plugin for xplr
Install with xpm
require("xpm").setup({
plugins = {
'dtomvan/xpm.xplr',
'pbosab/nuke.xplr'
}
})
require("nuke").setup({
open = {
custom = {
{ mime_regex = "^image/.*", command = "imv {}" },
{ mime_regex = "^text/.*", command = "foot nvim {}" },
{ mime_regex = "^video/.*", command = "mpv {}" },
{ mime = "application/pdf", command = "zathura {}" },
},
},
})
local key = xplr.config.modes.builtin.default.key_bindings.on_key
key["enter"] = xplr.config.modes.custom.nuke.key_bindings.on_key.o