Re: bind -t cmd-with-args?

Wed, 03 Feb 2010 13:24:59 -0800

Nicholas Marriott wrote:

> 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.

I don't understand, sorry.  Just what is "command-mode"?  I thought
"bind -c -t <table> <key> <cmd>" means: when inside <table>, switch to
the "normal" command mode where any command can be used.

I already tried, "bind-key -c -t vi-copy > 'save-buffer
/home/ino/hardcopy.txt'" doesn't work, but the error message is
different.

Did you mean I should use either:

  bind-key > save-buffer /home/ino/hardcopy.txt

or

  bind-key -c > save-buffer /home/ino/hardcopy.txt

Currently I have the first version in .tmux.conf, but I'm looking for
the convenience to save that buffer from inside copy-mode.


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

Reply via email to