[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Binding a multi-key sequence to a multi-command
From: |
Micah Cowan |
Subject: |
Re: Binding a multi-key sequence to a multi-command |
Date: |
Wed, 12 Nov 2008 15:07:41 -0800 |
User-agent: |
Thunderbird 2.0.0.17 (X11/20080925) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Gorsuch, Ryan wrote:
>
> The manual indicates that I can bind several commands to a key using the
> "process" command but no examples or syntax are given.
>
> What I'd like to do is bind the sequence: "C-a s 1" to the commands:
> "split, focus, select 1" using a command class. What I have in mind is:
>
> bind 's' command -c split_and_switch
> bind -c split_and_switch 0 split, focus, select 0
> bind -c split_and_switch 1 split, focus, select 1
> bind -c split_and_switch 2 split, focus, select 2
>
> But I can't find any examples for binding multiple commands together.
> Any suggestions?
It could be used for that, but you really want "eval".
bind -c split_and_switch 0 eval split focus "select 0"
- --
HTH,
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer.
GNU Maintainer: wget, screen, teseq
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkkbYb0ACgkQ7M8hyUobTrFAxgCfXqaOZHobuGbA0LebdqXu4DtY
6HQAn38fO+WheHYyDNTDQFyRbMBu19Aw
=L/l4
-----END PGP SIGNATURE-----