Re: bind -t cmd-with-args?

Wed, 03 Feb 2010 13:32:39 -0800

On Wed, Feb 03, 2010 at 09:43:22PM +0100, clemens fischer wrote:
> 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.

If you don't use vi mode you don't need to care about it or use -c.
 
> 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

You should use the former and use C-b > inside copy mode.

> 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

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