I think perhaps #{} should me made to translate to # although in this
case it doesn't matter because if run-shell handled the pane ok it'd be
the same pane as display-message.


On Sun, Mar 24, 2013 at 04:28:18AM -0500, Chris Johnsen wrote:
> On Sun, Mar 24, 2013 at 4:12 AM, Chris Johnsen <chris_john...@pobox.com> 
> wrote:
> > You can probably use "-t :" to get things working:
> >
> >     bind ^H run -t : "tmux display-message '#{pane_title}'"
> >
> 
> Here is another alternative that tries to avoid the format expansion
> that display-message now does:
> 
>     bind ^H run "tmux display-message '#''{pane_title}'"
> 
> The key is to have the next character after the # not be A through Z
> or {. When this is the case, the # and the next character (single
> quote in the above case) left unchanged (and, for {if,run}-shell,
> passed to the shell). The shell will then do its parsing and
> concatenate the '#' string with the '{...}' string, leaving the
> expansion to display-message as it would have been prior to any of the
> recent changes to run-shell.
> 
> -- 
> Chris
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to