Improve everyday.

general.md

|

General tips for tmux utilisation

Swap panes

PREFIX { - Swap active pane left PREFIX } - Swap active pane right

PREFIX : swap-pane -s {start} -t {end} - Swap panes

### Rebind keys

-n - rebind a key without prefix M - Alt key

Use Alt-vim keys without prefix key to switch panes

Remember to disable the menu access key from your terminal settings (edit -> keyboard shortcuts -> disable menu access keys)

bind -n M-h select-pane -L
bind -n M-j select-pane -D
bind -n M-k select-pane -U
bind -n M-l select-pane -R

Shift arrow to switch windows

bind -n S-Left  previous-window
bind -n S-Right next-window

Split panes conserving the directory

bind '%' split-window -h -c '#{pane_current_path}'  - Split panes horizontal
bind '"' split-window -v -c '#{pane_current_path}'  - Split panes vertically
bind 'c' new-window -c '#{pane_current_path}'       - Split panes vertically

Comments