Skip to content

pbosab/nuke.xplr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

(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

About

xplr file viewer and opener

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%