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

https://github.com/sayanarijit/dual-pane.xplr

Implements support for dual-pane navigation into xplr
https://github.com/sayanarijit/dual-pane.xplr

Last synced: 4 months ago
JSON representation

Implements support for dual-pane navigation into xplr

Awesome Lists containing this project

README

          

[![dual-pane82c66cadbbfcf1fe.gif](https://s10.gifyu.com/images/dual-pane82c66cadbbfcf1fe.gif)](https://gifyu.com/image/SSy11)

This plugin implements support for dual-pane navigation into xplr.

## 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/dual-pane.xplr ~/.config/xplr/plugins/dual-pane
```

- Require the module in `~/.config/xplr/init.lua`

```lua
require("dual-pane").setup()

-- Or

require("dual-pane").setup{
active_pane_width = { Percentage = 70 },
inactive_pane_width = { Percentage = 30 },
}

```

## Usage

Press `ctrl-w` and then `h` / `ctrl-h` or `left` / `ctrl-left` to activate the left pane.

Press `ctrl-w` and then `l` / `ctrl-l` or `right` / `ctrl-right` to activate the right pane.

Press `ctrl-w` and then `w` / `ctrl-w` to toggle active pane.

Press `ctrl-w` and then `q` / `ctrl-q` to quit active pane.

## Features

- Retains focus, sorters & filters.
- Shares selection.

# Also See

- [tree-view.xplr](https://github.com/sayanarijit/tree-view.xplr)
- [zentable.xplr](https://github.com/sayanarijit/zentable.xplr)
- [tri-pane.xplr](https://github.com/sayanarijit/tri-pane.xplr)