WezTerm port of tmux-pain-control.
Clone this repository into your $XDG_CONFIG_HOME/wezterm
directory:
git clone https://github.com/sei40kr/wez-pain-control.git $XDG_CONFIG_HOME/wezterm
local wezterm = require("wezterm")
local config = {}
if wezterm.config_builder then
config = wezterm.config_builder()
end
-- Add these lines:
require("wez-pain-control.plugin").apply_to_config(config, {})
return config
Default options
require("wez-pain-control.plugin").apply_to_config(config, {
pane_resize = 5,
})
Option | Default | Description |
---|---|---|
pane_resize |
5 |
The amount of cells to resize |
Key Binding | Action |
---|---|
leader+h , leader+ctrl+h |
Select pane on the left |
leader+j , leader+ctrl+j |
Select pane below |
leader+k , leader+ctrl+k |
Select pane above |
leader+l , leader+ctrl+l |
Select pane on the right |
Key Binding | Action |
---|---|
leader+shift+h |
Resize to the left |
leader+shift+j |
Resize in the down direction |
leader+shift+k |
Resize in the up direction |
leader+shift+l |
Resize to the right |
These mappings are repeatable.
Key Binding | Action |
---|---|
leader+- |
Split the current pane vertically (splits into two, top and bottom) |
leader+| |
Split the current pane horizontally (splits into two, left and right) |
leader+\ |
Unsupported |
leader+_ |
Unsupported |
Key Binding | Action |
---|---|
leader+< |
Move the current tab one position to the left |
leader+> |
Move the current tab one position to the right |