Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/simnalamburt/tmux-pane

:desktop_computer: Key-bindings for tmux pane control
https://github.com/simnalamburt/tmux-pane

Last synced: 3 months ago
JSON representation

:desktop_computer: Key-bindings for tmux pane control

Awesome Lists containing this project

README

        

tmux-pane
========
Tmux plugin for controlling panes. You can install this plugin with [TPM].
```shell
# .tmux.conf
set -g @plugin 'simnalamburt/tmux-pane'
```
This plugin was forked from [tmux-pain-control] and customized for my use cases.

[TPM]: https://github.com/tmux-plugins/tpm
[tmux-pain-control]: https://github.com/tmux-plugins/tmux-pain-control

 

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](#configuration) 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.

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

 

### License
[MIT](LICENSE.md)