> On Saturday, March 23, 2013 at 11:05 PM, Aaron Jensen wrote: > > If I do this: > > bind ^H run "tmux display-message '#{pane_title}'" > > Then it will show blank instead of the current pane's title. It's as if it > loses the context of the current pane. And yes, I do need the `run`, the > real binding does more than this. > > This seems to be a recent regression.
You can probably use "-t :" to get things working: bind ^H run -t : "tmux display-message '#{pane_title}'" There have been several incompatibilities introduced in run-shell (and if-shell) recently: * non-optional synchronous execution * non-optional format_expand (with no way to "escape" format introducers) * unless "-t" is given, the above expansions are always to empty strings You have run directly into the last one, and possible the second one (depending on your full usage scenario). The last incompatibility might be softened with the attached patch (effectively making "-t :" the default, similar to how it works in most other places). It might be a good idea to introduce options to control the first two new behaviors (e.g. maybe "-w" for "wait", and "-F" to induce format expansion, like with display-message) so that they work better with existing uses. -- Chris
run-if-shell-default-session.patch
Description: Binary data
------------------------------------------------------------------------------ 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