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
- Host: GitHub
- URL: https://github.com/sayanarijit/dual-pane.xplr
- Owner: sayanarijit
- License: mit
- Created: 2022-01-06T04:44:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-07T05:56:00.000Z (over 2 years ago)
- Last Synced: 2025-04-05T00:25:19.759Z (6 months ago)
- Language: Lua
- Homepage: https://blog.xplr.dev/post/45811/1-2-or-3-panes-choose-a-layout-that-works-for-you
- Size: 34.2 KB
- Stars: 17
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](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/pluginsgit 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)