An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

[![xplr-dragon.gif](https://s6.gifyu.com/images/xplr-dragon.gif)](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/plugins

git 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
```