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
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users