Hi,

On 11 September 2012 03:08, Ben Williams <ben...@gmail.com> wrote:
> Hi,
>
> Is it possible to use multiple modifier keys in tmux bindings? i.e.
> rather than just M-right for alt+right, something like MS-right for
> alt+shift+right. I've read the man pages and it doesn't seem like it's
> possible, but, I may be missing something.

It is possible.  When you consider that:

bind-key a send-prefix

for example implies the prefix key, and that tmux provides the ability
to not use the prefix key for bindings as in:

bind-key -n a some-command

Then in your example, you would want:

bind-key -n M-S-Left previous-window
bind-key -n M-S-Right next-window

Note that this implies setting "xterm-keys" to "on" -- and ensuring
your terminal emulator can handle this.  I only use XTerm, and suspect
that's the only one which will likely work.  This wouldn't work at the
VT, for example.

Kindly,

-- Thomas Adam

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to