Re: [PATCH] Expand variables in the run-shell command string

2013-02-23 Thread Nicholas Marriott
Applied with some minor tweaks, and changed to add -t to if-shell too. Thanks. On Sat, Feb 23, 2013 at 03:29:55PM -0300, Thiago Padilha wrote: > Ok here is the updated patch > > --- > cmd-if-shell.c | 20 ++-- > cmd-run-shell.c | 18 ++ > tmux.1 | 10 ++

Re: [PATCH] Expand variables in the run-shell command string

2013-02-23 Thread Thiago Padilha
Ok here is the updated patch --- cmd-if-shell.c | 20 ++-- cmd-run-shell.c | 18 ++ tmux.1 | 10 -- 3 files changed, 40 insertions(+), 8 deletions(-) diff --git a/cmd-if-shell.c b/cmd-if-shell.c index 6f0b151..011974f 100644 --- a/cmd-if-shell.c +

Re: [PATCH] Expand variables in the run-shell command string

2013-02-23 Thread Nicholas Marriott
Hi Thanks but can you do the same for the if-shell shell-command as well? In the manpage you need to markup FORMATS as .Sx FORMATS (there are some examples already in the file). On Sat, Feb 23, 2013 at 01:45:43PM -0300, Thiago Padilha wrote: > Let's say I want to write a shell script that opera

[PATCH] Expand variables in the run-shell command string

2013-02-23 Thread Thiago Padilha
Let's say I want to write a shell script that operates on the currently focused pane, to be executed with 'run-shell'. The only way to do that for now is to call 'tmux list-panes' inside the script and parse the output to determine the active pane. This patches modifies run-shell to expand tmux #{v