bind a key to multiple commands in copy mode

2011-04-22 Thread Randy Stauner
I can bind a key in copy mode (bind-key -t vi-copy Y end-of-line), but I haven't yet found a way to bind a single key to multiple copy-mode commands... Specifically I am trying to recreate a key I used in screen a lot... in copy mode Y would just copy the whole current line... so for tmux I was t

Re: bind a key to multiple commands in copy mode

2011-04-22 Thread Randy Stauner
I first tried using send-keys (bind-key -t vi-copy send-keys ^ ' ' $ Enter) but send-keys isn't a valid command in copy-mode. On Fri, Apr 22, 2011 at 5:20 PM, Randy Stauner wrote: > I can bind a key in copy mode (bind-key -t vi-copy Y end-of-line), > but I haven't yet found a way to bind a single

Re: bind a key to multiple commands in copy mode

2011-04-22 Thread Micah Cowan
On 04/22/2011 05:26 PM, Randy Stauner wrote: > I first tried using send-keys (bind-key -t vi-copy send-keys ^ ' ' $ Enter) > but send-keys isn't a valid command in copy-mode. Drop the -t vi-copy; you want to use a normal-map binding so you can use the normal-map command (of course, this means you'