https://github.com/sayanarijit/scp.xplr
Integrate xplr with scp
https://github.com/sayanarijit/scp.xplr
Last synced: 4 months ago
JSON representation
Integrate xplr with scp
- Host: GitHub
- URL: https://github.com/sayanarijit/scp.xplr
- Owner: sayanarijit
- License: mit
- Created: 2022-07-18T14:52:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T06:08:42.000Z (over 1 year ago)
- Last Synced: 2025-06-07T04:35:36.686Z (4 months ago)
- Language: Lua
- Homepage: https://xplr.dev
- Size: 32.2 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# scp.xplr
Integrate xplr with scp
https://user-images.githubusercontent.com/11632726/179600312-845a698d-2c68-4646-9186-00d70ebc9a4f.mp4
## Requirements
- scp
## 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/scp.xplr ~/.config/xplr/plugins/scp
```- Require the module in `~/.config/xplr/init.lua`
```lua
require("scp").setup()-- Or
require("scp").setup{
mode = "selection_ops" -- or `xplr.config.modes.builtin.selection_ops`
key = "S",
scp_command = "scp -r",
non_interactive = false,
keep_selection = false,
}-- Type `:sS` and send the selected files.
-- Make sure `~/.ssh/config` or `/etc/ssh/ssh_config` is updated.
-- Else you'll need to enter each host manually.
```## Features
- Send multiple files to multiple hosts
- Reads ssh config to find predefined hosts
- Toggle select all hosts using `ctrl-a`
- Navigate host list using numbers