Hi The commands used for modes are a completely separate namespace than standard commands and there is no command for saving the buffer.
You can just bind it to a prefixed key then do use that as normal inside copy mode (ie with the prefix). -c is to bind a key for command mode when using vi keys. On Wed, Feb 03, 2010 at 05:07:18PM +0100, clemens fischer wrote: > I am trying to to bind a command in table vi-copy that saves (possibly > part of) a buffer to some file: > > bind-key -c -t vi-copy > save-buffer /home/ino/hardcopy.txt > > tmux answers: > > usage: bind-key [-cnr] [-t key-table] key command [arguments] at line ... > > I'm not even sure wheather I need the "-c" option for "command-mode" or > not. What is "command-mode"? > > "cmd_bind_key_parse()@tmux-1.1/cmd-bind-key.c" has near the end: > > if (data->tablename != NULL) { > if (argc != 1) > goto usage; > data->modecmd = xstrdup(argv[0]); > } else { > if ((data->cmdlist = cmd_list_parse(argc, argv, cause)) == NULL) > goto error; > } > > which indicates that command bindings in tables may not have arguments. > Is this deliberate behaviour? > > > Regards, clemens > > > ------------------------------------------------------------------------------ > The Planet: dedicated and managed hosting, cloud storage, colocation > Stay online with enterprise data centers and the best network in the business > Choose flexible plans and management services without long-term contracts > Personal 24x7 support from experience hosting pros just a phone call away. > http://p.sf.net/sfu/theplanet-com > _______________________________________________ > tmux-users mailing list > tmux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/tmux-users ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users