mirror of
https://github.com/prurigro/darkcloud-tmuxconfig.git
synced 2024-11-23 07:34:10 -05:00
Swap {/} and _/+ as it seems more logical + fix typos in comments
This commit is contained in:
parent
e16d7ede0b
commit
5aa5d6dde0
3 changed files with 21 additions and 21 deletions
|
@ -23,10 +23,10 @@
|
||||||
|-----------------------------------------|----------------------------------------------------------------------------------------|
|
|-----------------------------------------|----------------------------------------------------------------------------------------|
|
||||||
| `<Backslash>` and `<Ctrl><Backslash>` | Toggle the status bar on and off respectively |
|
| `<Backslash>` and `<Ctrl><Backslash>` | Toggle the status bar on and off respectively |
|
||||||
| `c` and `<Ctrl>c` | Create a new pane and create a new pane in the current directory respectively |
|
| `c` and `<Ctrl>c` | Create a new pane and create a new pane in the current directory respectively |
|
||||||
| `_` and `+` | Join a window as a split pane top/bottom and left/right respectively (leave pane: `!`) |
|
|
||||||
| `[` and `]` | Split the window vertically and horizontally respectively |
|
| `[` and `]` | Split the window vertically and horizontally respectively |
|
||||||
| `{` and `}` | Rotate the window up and down respectively |
|
| `{` and `}` | Join a window as a split pane top/bottom and left/right respectively (leave pane: `!`) |
|
||||||
| `=` and `-` | Select an even layout horizontally and vertically respectively |
|
| `-` and `=` | Select an even layout vertically and horizontally respectively |
|
||||||
|
| `_` and `+` | Rotate the window counter-clockwise and clockwise respectively |
|
||||||
| `<` and `>` | Move the current window to the first and last window respectively |
|
| `<` and `>` | Move the current window to the first and last window respectively |
|
||||||
| `.` and `,` | Move and swap the current window with the provided window number respectively |
|
| `.` and `,` | Move and swap the current window with the provided window number respectively |
|
||||||
| `$` and `#` | Rename the current session and window with the provided name respectively |
|
| `$` and `#` | Rename the current session and window with the provided name respectively |
|
||||||
|
|
|
@ -69,17 +69,17 @@ bind c new-window
|
||||||
bind [ split-window -v -c "#{pane_current_path}"
|
bind [ split-window -v -c "#{pane_current_path}"
|
||||||
bind ] split-window -h -c "#{pane_current_path}"
|
bind ] split-window -h -c "#{pane_current_path}"
|
||||||
#
|
#
|
||||||
# <ctrl>[ and <ctrl>] join another window as a pane split top/bottom and left/right respectively
|
# { and } join another window as a pane split top/bottom and left/right respectively
|
||||||
bind _ choose-window 'join-pane -v -s "%%"'
|
bind { choose-window 'join-pane -v -s "%%"'
|
||||||
bind + choose-window 'join-pane -h -s "%%"'
|
bind } choose-window 'join-pane -h -s "%%"'
|
||||||
#
|
#
|
||||||
# { and } to rotating up and down respectively
|
# - and = to evenly laying out the panes top->bottom and left->right respectively
|
||||||
bind -r { rotate-window -U
|
|
||||||
bind -r } rotate-window -D
|
|
||||||
#
|
|
||||||
# = and - to evenly laying out the panes left->right and top->bottom respectively
|
|
||||||
bind = select-layout even-horizontal
|
|
||||||
bind - select-layout even-vertical
|
bind - select-layout even-vertical
|
||||||
|
bind = select-layout even-horizontal
|
||||||
|
#
|
||||||
|
# _ and + to rotate counter-clockwise and clockwise respectively
|
||||||
|
bind -r _ rotate-window -U
|
||||||
|
bind -r + rotate-window -D
|
||||||
#
|
#
|
||||||
# < and > to move the current window to the first and last windows respectively
|
# < and > to move the current window to the first and last windows respectively
|
||||||
bind < run-shell "while [[ ! $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') = 1 ]]; do tmux swap-window -s $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') -t $(expr $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') - 1); done"
|
bind < run-shell "while [[ ! $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') = 1 ]]; do tmux swap-window -s $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') -t $(expr $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') - 1); done"
|
||||||
|
|
|
@ -69,17 +69,17 @@ bind c new-window
|
||||||
bind [ split-window -v -c "#{pane_current_path}"
|
bind [ split-window -v -c "#{pane_current_path}"
|
||||||
bind ] split-window -h -c "#{pane_current_path}"
|
bind ] split-window -h -c "#{pane_current_path}"
|
||||||
#
|
#
|
||||||
# <ctrl>[ and <ctrl>] join another window as a pane split top/bottom and left/right respectively
|
# { and } join another window as a pane split top/bottom and left/right respectively
|
||||||
bind _ choose-window 'join-pane -v -s "%%"'
|
bind { choose-window 'join-pane -v -s "%%"'
|
||||||
bind + choose-window 'join-pane -h -s "%%"'
|
bind } choose-window 'join-pane -h -s "%%"'
|
||||||
#
|
#
|
||||||
# { and } to rotating up and down respectively
|
# - and = to evenly laying out the panes top->bottom and left->right respectively
|
||||||
bind -r { rotate-window -U
|
|
||||||
bind -r } rotate-window -D
|
|
||||||
#
|
|
||||||
# = and - to evenly laying out the panes left->right and top->bottom respectively
|
|
||||||
bind = select-layout even-horizontal
|
|
||||||
bind - select-layout even-vertical
|
bind - select-layout even-vertical
|
||||||
|
bind = select-layout even-horizontal
|
||||||
|
#
|
||||||
|
# _ and + to rotate counter-clockwise and clockwise respectively
|
||||||
|
bind -r _ rotate-window -U
|
||||||
|
bind -r + rotate-window -D
|
||||||
#
|
#
|
||||||
# < and > to move the current window to the first and last windows respectively
|
# < and > to move the current window to the first and last windows respectively
|
||||||
bind < run-shell "while [[ ! $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') = 1 ]]; do tmux swap-window -s $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') -t $(expr $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') - 1); done"
|
bind < run-shell "while [[ ! $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') = 1 ]]; do tmux swap-window -s $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') -t $(expr $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') - 1); done"
|
||||||
|
|
Loading…
Reference in a new issue