Skip to content

🖥️ Key-bindings for tmux pane control

License

Notifications You must be signed in to change notification settings

simnalamburt/tmux-pane

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🖥️ Key-bindings for tmux pane control

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%