https://github.com/sayanarijit/alacritty.xplr
Alacritty integration for xplr
https://github.com/sayanarijit/alacritty.xplr
Last synced: 7 months ago
JSON representation
Alacritty integration for xplr
- Host: GitHub
- URL: https://github.com/sayanarijit/alacritty.xplr
- Owner: sayanarijit
- License: mit
- Created: 2021-09-02T02:54:11.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-29T08:16:06.000Z (over 2 years ago)
- Last Synced: 2024-05-02T02:12:38.547Z (over 1 year ago)
- Language: Lua
- Homepage: https://xplr.dev
- Size: 15.6 KB
- Stars: 9
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://gifyu.com/image/GJGU)
> **TIP:** Use it with [xclip.xplr](https://github.com/sayanarijit/xclip.xplr) for better copy-paste experience.
## Requirements
- [Alacritty](https://github.com/alacritty/alacritty)
## 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/alacritty.xplr ~/.config/xplr/plugins/alacritty
```- Require the module in `~/.config/xplr/init.lua`
```lua
require("alacritty").setup()-- Or
require("alacritty").setup{
mode = "default",
key = "ctrl-n",
send_focus = true,
send_selection = true,
send_vroot = true,
alacritty_bin = "alacritty",
extra_alacritty_args = "",
xplr_bin = "xplr",
extra_xplr_args = "",
}-- Press `ctrl-n` to spawn a new alacritty window with the current selection
```## Features
- Send current focus to the new session.
- Send current selection to the new session.
- Send active sorters and filters to the new session.
- Send current vroot