https://github.com/sayanarijit/dragon.xplr
dragon integration for xplr
https://github.com/sayanarijit/dragon.xplr
Last synced: 3 months ago
JSON representation
dragon integration for xplr
- Host: GitHub
- URL: https://github.com/sayanarijit/dragon.xplr
- Owner: sayanarijit
- License: mit
- Created: 2021-06-30T23:17:54.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-11T08:31:57.000Z (almost 3 years ago)
- Last Synced: 2025-04-05T00:25:18.827Z (7 months ago)
- Language: Lua
- Homepage: https://xplr.dev
- Size: 10.7 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://gifyu.com/image/A8N1)
Drag and drop files using [dragon](https://github.com/mwh/dragon).
## Requirements
- [dragon](https://github.com/mwh/dragon)
- [curl](https://github.com/curl/curl)## Installation
### Install manually
- Add the following line in `~/.config/xplr/init.lua`
```lua
local home = os.getenv("HOME")
package.path = home
.. "/.config/xplr/plugins/?/init.lua;"
.. home
.. "/.config/xplr/plugins/?.lua;"
.. package.path
```- Clone the plugin
```bash
mkdir -p ~/.config/xplr/pluginsgit clone https://github.com/sayanarijit/dragon.xplr ~/.config/xplr/plugins/dragon
```- Require the module in `~/.config/xplr/init.lua`
```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
```