Thanks for the patch.

What feature is your work on hook-support going to add? Any idea when you will merge it?




On Wed, Jan 30, 2013 at 10:11 PM, Thomas Adam <thomas@xteddy.org> wrote:
On Wed, Jan 30, 2013 at 09:42:24PM -0300, Thiago Padilha wrote:
> Hi
>
> I have a shell function that accepts a pane id as argument. This function
> works fine when invoked interactively:
>
> $ shell_function $TMUX_PANE
>
> I would like to invoke this function from any pane, running a interactive
> shell or not, by binding this function to a key combination, however I
> can't figure out how to send the the focused pane id to the function.
>
> On the man page I read that some tmux commands accept a format string that
> can expand to information about tmux(including the current pane id) so I
> tried this(to no success, it seems run-shell doesn't expand the format
> string):
>
> run-shell 'shell_function #{pane_id}'
>
> Any tip on how I may accomplish this?

See the attached patch.

Note that this is ripped out of my on-going work for hook-support (and
tweaked a little to work on top of current tmux code).

It is not intended for submission to tmux since my work on hook-support will
obsolete it.  Hence why there's no man page entries, etc.

-- Thomas Adam