X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tmux-window.pl;h=5e2601c599b3f0842da08517794eeaa0ec61c00a;hb=b47d157a1a282eb2ce95536e108e8f11593ce367;hp=9f3971cdde7e1d7e25856b2986f2c9b7a9cb518a;hpb=8246405a007bc1a4e9ba0454f0ebb0d97f616ec3;p=config%2Fdotfiles.git diff --git a/tmux-window.pl b/tmux-window.pl index 9f3971c..5e2601c 100644 --- a/tmux-window.pl +++ b/tmux-window.pl @@ -6,7 +6,7 @@ # At the moment Tmux doesn't support mappings with multiple keys, e.g. prefix # ;0, prefix ;1 etc. (where ; is the common secondary prefix key). But this # works in GNU screen and is very useful to switch to windows quickly, e.g. -# prefix ;3 to switch to window 13 or ;;5 to switch to window 25. +# prefix ;3 to switch to window 13 or prefix ;;5 to switch to window 25. # # To simulate this missing feature ; and 0-9 must be rebound when prefix ; is # used, and unbound when ; or 0-9 was pressed and the window selected. This @@ -14,14 +14,14 @@ # # For each number (0-9) the following mapping is generated (example with 0): # -# bind-key -n 0 select-window -t :10 \; \ -# unbind-key -n 0 \; \ +# bind-key -n 0 unbind-key -n 0 \; \ # ... # unbind-key -n 9 \; \ -# unbind-key -n \\; # this unmaps ; +# unbind-key -n \\; \ # this unmaps ; +# select-window -t :10 \; # -# Due to Tmux's handling of errors (they abort the rest of the mapping) the -# select-window command is actually executed as last part of the mapping. +# Due to Tmux's handling of errors, they abort the rest of the mapping, the +# select-window command is executed as last part of the mapping. # # If a secondary chaining (e.g. prefix ;;3) is requested, a second file like # the generated one must be loaded with ; to jump to windows 20-29. Therefore @@ -41,9 +41,9 @@ # bind-key \; source-file "/path/to/tmux-window1.conf" # # tmux-window1.conf automatically contains the path to tmux-window2.conf, -# therefore chaining for ;;3 will work to jump to window 33. +# therefore chaining for ;;3 will work to jump to window 23. -# Copyright (C) 2012 Simon Ruderich +# Copyright (C) 2012-2013 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by