diff --git a/README.md b/README.md index 5a868a3..ffd9f7d 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,6 @@ | `[` and `]` | Split the window vertically and horizontally 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 and swap the current window with the provided window number respectively | | `$` and `#` | Rename the current session and window with the provided name respectively | | `` and `` | Move to the previously selected pane and window respectively | diff --git a/tmux.normal.conf b/tmux.normal.conf index f1f41eb..9b5e767 100644 --- a/tmux.normal.conf +++ b/tmux.normal.conf @@ -72,10 +72,6 @@ bind = select-layout even-horizontal 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" -bind > run-shell "while [[ ! $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') = $(tmux list-windows | tail -n 1 | sed 's|:.*$||') ]]; 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" -# # . and , to move and swap the current window respectively (. is set by default) bind , command-prompt "swap-window -t '%%'" # diff --git a/tmux.powerline.conf b/tmux.powerline.conf index 6dc53f9..77126ed 100644 --- a/tmux.powerline.conf +++ b/tmux.powerline.conf @@ -72,10 +72,6 @@ bind = select-layout even-horizontal 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" -bind > run-shell "while [[ ! $(tmux list-windows | grep -e '(active)$' | sed 's|:.*$||') = $(tmux list-windows | tail -n 1 | sed 's|:.*$||') ]]; 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" -# # . and , to move and swap the current window respectively (. is set by default) bind , command-prompt "swap-window -t '%%'" #