Skip to content

Latest commit

 

History

History
72 lines (51 loc) · 1.69 KB

README.md

File metadata and controls

72 lines (51 loc) · 1.69 KB

tmux-pane

Tmux plugin for controlling panes. You can install this plugin with TPM.

# .tmux.conf
set -g @plugin 'simnalamburt/tmux-pane'

This plugin was forked from tmux-pain-control and customized for my use cases.

 

Bindings

Notice most of the bindings emulate vim cursor movements.

pane resizing

Resizing panes

  • prefix + h
    resize current pane 5 cells to the left
  • prefix + j
    resize 5 cells in the down direction
  • prefix + k
    resize 5 cells in the up direction
  • prefix + l
    resize 5 cells to the right

These mappings are repeatable.

The amount of cells to resize can be configured with @pane_resize option. See configuration section for the details.



pane splitting

Splitting panes

  • prefix + \
    split current pane horizontally
  • prefix + -
    split current pane vertically

Newly created pane always has the same path as the original pane.






Swapping windows

  • prefix + < - moves current window one position to the left
  • prefix + > - moves current window one position to the right

 

Configuration

You can set @resize_vertical and @resize_horizontal Tmux option to choose number of resize cells for the resize bindings.

set-option -g @resize_vertical "5"       # Default: "3"
set-option -g @resize_horizontal "15"    # Default: "10"

 

License

MIT