summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2015-05-24 15:58:41 -0400
committerJune McEnroe <june@causal.agency>2015-05-24 15:58:41 -0400
commit0d8d0383fa4b3b08730e686011a1a37e6249daa1 (patch)
tree69369927a6cec6e6f7ef664a8e580dfe5d75177c
parentReplace effuse with simple shell scripts (diff)
downloadsrc-0d8d0383fa4b3b08730e686011a1a37e6249daa1.tar.gz
src-0d8d0383fa4b3b08730e686011a1a37e6249daa1.zip
Swap windows instead of moving them
-rw-r--r--.tmux.conf3
1 files changed, 3 insertions, 0 deletions
diff --git a/.tmux.conf b/.tmux.conf
index c202a31e..e6e63991 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -28,6 +28,9 @@ set -g status-right-bg white
 # Create new windows in same directory
 bind t new-window -c '#{pane_current_path}'
 
+# Move windows around by swapping
+bind . command-prompt "swap-window -t '%%'"
+
 # Split windows like vim, in same directory
 bind s split-window -v -c '#{pane_current_path}'
 bind v split-window -h -c '#{pane_current_path}'