Hi
Yes, it would be nice if it worked. Currently conditionals and
comparisons expand their arguments again but the others do not. Your
second suggestion would probably be better avoid that.
On Fri, Nov 30, 2018 at 09:27:50AM -0800, Luiz-Otavio Zorzella wrote:
> Let's say I want the status to be a customized version of
> "pane_current_path", and I want to *both* use a "=-12" (last twelve chars)
> modifier and an "s/reallylong/short/" modifier.
> The documentation states nothing about combining multiple of these, but
> the obvious syntax for that would be:
> #{=-12:#{s/reallylong/short/:pane_current_path}}
> Indeed, the syntax for comparators (i.e. a**#{==:#{host},myhost}a**) seems
> to suggest that nesting expressions work. But this does not work.
> Another obvious way to combine would be:
> #{=-12:s/reallylong/short/:pane_current_path}
> But that does not work either. I also tried with space and comma and
> semicolon, and none works:
> #{=-12 s/reallylong/short/:pane_current_path}
> #{=-12,s/reallylong/short/:pane_current_path}
> #{=-12;s/reallylong/short/:pane_current_path}
> which leads me to believe that it's not possible to do this.
> Z
>
> --
> You received this message because you are subscribed to the Google Groups
> "tmux-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.