One nice feature of screen is its ability to assign keyboard shortcuts to groups called "classes". With bind -c
, you could assign that shortcuts to a particular class, and binding command -c <class>
to a key allowed you to select that class. This allowed multi-tier keyboard shortcuts. For example, I used the x
key to select a class dedicated common commands. By having these launcher shortcuts in their own class, it is possible to use mnemonic keys without worrying about conflicts with the normal set of key-bindings. Is there any way to replicate this feature in tmux
?
Example
# from my .screenrc
bind -c execute o screen -t imap 10 offlineimap.sh -o
bind -c execute m screen -t mpd ncmpcpp
bind -c execute w screen -t vw vimwiki
# ... more application launchers
bind x command -c execute
Usage: prefixx enters the launcher key class, where I put all my application keyboard shortcuts.