diff --git a/README.md b/README.md index 6e604a4..cc495e3 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,10 @@ |-----------------------------------------|----------------------------------------------------------------------------------------| | `` and `` | Toggle the status bar on and off respectively | | `c` and `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 `}` | Rotate the window up and down respectively | -| `=` and `-` | Select an even layout horizontally and vertically respectively | +| `{` and `}` | Join a window as a split pane top/bottom and left/right respectively (leave pane: `!`) | +| `-` 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 and swap the current window with the provided window number respectively | | `$` and `#` | Rename the current session and window with the provided name respectively | diff --git a/tmux.normal.conf b/tmux.normal.conf index f28bb9a..8e41693 100644 --- a/tmux.normal.conf +++ b/tmux.normal.conf @@ -69,17 +69,17 @@ bind c new-window bind [ split-window -v -c "#{pane_current_path}" bind ] split-window -h -c "#{pane_current_path}" # -# [ 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 -h -s "%%"' +# { 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 -h -s "%%"' # -# { and } to rotating up and down 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 +# - and = to evenly laying out the panes top->bottom and left->right respectively 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 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" diff --git a/tmux.powerline.conf b/tmux.powerline.conf index 0ab3475..355deb0 100644 --- a/tmux.powerline.conf +++ b/tmux.powerline.conf @@ -69,17 +69,17 @@ bind c new-window bind [ split-window -v -c "#{pane_current_path}" bind ] split-window -h -c "#{pane_current_path}" # -# [ 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 -h -s "%%"' +# { 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 -h -s "%%"' # -# { and } to rotating up and down 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 +# - and = to evenly laying out the panes top->bottom and left->right respectively 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 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"