Home

Awesome

wez-pain-control

WezTerm port of tmux-pain-control.

Installation

Clone this repository into your $XDG_CONFIG_HOME/wezterm directory:

git clone https://github.com/sei40kr/wez-pain-control.git $XDG_CONFIG_HOME/wezterm

Usage

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

Options

Default options

require("wez-pain-control.plugin").apply_to_config(config, {
    pane_resize = 5,
})

OptionDefaultDescription
pane_resize5The amount of cells to resize

Key Bindings

Navigation

Key BindingAction
leader+h, leader+ctrl+hSelect pane on the left
leader+j, leader+ctrl+jSelect pane below
leader+k, leader+ctrl+kSelect pane above
leader+l, leader+ctrl+lSelect pane on the right

Resizing Panes

Key BindingAction
leader+shift+hResize to the left
leader+shift+jResize in the down direction
leader+shift+kResize in the up direction
leader+shift+lResize to the right

These mappings are repeatable.

Splitting Panes

Key BindingAction
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

Swapping Windows

Key BindingAction
leader+<Move the current tab one position to the left
leader+>Move the current tab one position to the right