I should like to use clifm from within xplr to do batch commands sometimes. If one looks at the zoxide and dua plugins one would think this is very easy to arrange. I have:
local function setup(args)
local x = xplr
args = args or {}
args.mode = args.mode or "default"
args.key = args.key or ";"
x.config.modes.builtin[args.mode].key_bindings.on_key[args.key] = {
help = "batch command",
messages = {
{
BashExec = [===[
clifm
clear
"$XPLR" -m 'LogSuccess: %q' "clifm returned"
]===],
},
"PopMode",
"ClearScreen",
},
}
end
return { setup = setup }
clifm behaves like normal, but when I quit clifm and xplr reappears, xplr does not respond to any input and must be killed by the multiplexer.
I should like to use clifm from within xplr to do batch commands sometimes. If one looks at the zoxide and dua plugins one would think this is very easy to arrange. I have:
clifm behaves like normal, but when I quit clifm and xplr reappears, xplr does not respond to any input and must be killed by the multiplexer.