If you want to use user options with set-option you need to use -F and
include them as a first variable, for example:

set -F pane-active-border-style '#{@my-pane-active-border-style}'


On Wed, 10 Feb 2021, 22:39 Jason White, <[email protected]> wrote:

> Hello,
> Started fiddling with user options. I have this configuraiton:
>
> set -g @my-pane-active-border-style "fg=brightwhite,bold,bg=colour34"
> set -g @my-pane-border-style        "fg=brightwhite,bold,bg=colour243"
>
> bind-key a if -F "#{pane_synchronized}" \
>     "setw synchronize-panes off; \
>      setw pane-active-border-style @my-pane-active-border-style ; \
>      setw pane-border-style @my-pane-border-style" \
>     "setw synchronize-panes on; \
>      setw pane-active-border-style fg=brightwhite,bold,bg=colour1; \
>      setw pane-border-style fg=brightwhite,bg=colour1"
>
> When the section using the user options is called I get the error:
> "Invalid style: @my-pane-active-border-style".
>
> $ tmux show -gv @my-pane-active-border-style
> fg=brightwhite,bold,bg=colour34
>
> The issue appears to be tmux not recognizing @name as a user option. If
> so, what's the proper syntax?
>
> Thank you.
> -Jason
>
> --
> Jason White
> "The single biggest problem in communication is the illusion that it has
> taken place." - George Bernard Shaw
>
> --
> 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 view this discussion on the web, visit
> https://groups.google.com/d/msgid/tmux-users/YCRflgC5n5pUk5v0%40equinox.home.menelos.com
> .
>

-- 
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 view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/CAEdLfcFrhfq2btEaN%2Bo%3D8_zA_8u%2BDJ5ZA6yVVLyCBJUBKZd%2BPA%40mail.gmail.com.

Reply via email to