Drag and drop files using dragon.
-
Add the following line in
~/.config/xplr/init.lua
local home = os.getenv("HOME") package.path = home .. "/.config/xplr/plugins/?/init.lua;" .. home .. "/.config/xplr/plugins/?.lua;" .. package.path
-
Clone the plugin
mkdir -p ~/.config/xplr/plugins git clone https://github.com/sayanarijit/dragon.xplr ~/.config/xplr/plugins/dragon
-
Require the module in
~/.config/xplr/init.lua
require("dragon").setup() -- Or require("dragon").setup{ mode = "selection_ops", key = "D", drag_args = "", drop_args = "", keep_selection = false, bin = "dragon", } -- Select files and type `:sD` to drag -- Type `:sD` without selecting anything to drop