Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1019 Bytes

README.md

File metadata and controls

36 lines (28 loc) · 1019 Bytes

(pbo)Nuke: xplr file opener

open files from xplr with you favorite applications by mime or mime-regexp

plugin for xplr

forked from Junker nuke.xplr

Install with xpm

require("xpm").setup({
  plugins = {
    'dtomvan/xpm.xplr',
    'pbosab/nuke.xplr'
  }
})

Place this in .config/xplr/init.lua

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