You can't bind multiple commands to keys in modes. One key to one command.

-------- Original message --------
From: Jan Larres <j...@majutsushi.net> 
Date: 15/11/2013  02:29  (GMT+01:00) 
To: tmux-users@lists.sourceforge.net 
Subject: Can't bind multiple commands with bind -t 
 
Hi,

In principle it is possible to bind multiple commands to one key like
this:

  bind-key r source-file ~/.tmux.conf \; display "Reloaded ~/.tmux.conf"

But if the -t option is given this does not work:

  $ tmux bind-key -t vi-copy Escape cancel \\\; display "foo"
  not enough arguments

The problem is that in cmd-bind-key.c in the -t case the arguments are
checked like this:

  if (args->argc != 2 && args->argc != 3) {

That should probably be

  if (args->argc < 3) {

instead.

Cheers,
Jan


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users
------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to