Re: Binding keys to shell commands

2013-01-31 Thread Thomas Adam
On 31 January 2013 01:52, Thiago Padilha wrote: > Thanks for the patch. I forgot to free() the result from format_expand(): diff --git a/cmd-run-shell.c b/cmd-run-shell.c index 730e213..29ad953 100644 --- a/cmd-run-shell.c +++ b/cmd-run-shell.c @@ -108,6 +108,7 @@ cmd_run_shell_exec(struct cmd *

Re: Binding keys to shell commands

2013-01-30 Thread Thiago Padilha
Nvm, got it from your github mirror On Wed, Jan 30, 2013 at 10:52 PM, Thiago Padilha wrote: > 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 wrote: > >> On Wed, Jan 30,

Re: Binding keys to shell commands

2013-01-30 Thread Thiago Padilha
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 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

Re: Binding keys to shell commands

2013-01-30 Thread Thomas Adam
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 interactiv

Binding keys to shell commands

2013-01-30 Thread Thiago Padilha
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 f