I would like to be able to set the window title prefix to [%TabCount%] for windows that have no %WindowName% set, and to [%TabCount%] • %WindowName % • for windows that do.
This could be done either by having two versions of the prefix or allowing some special markup to say that the enclosed text should only be included if the substitution(s) inside expand to have a value, like:
[%TabCount%]%% • %WindowName% •%%, where the double-% "%%" means "only if expansions all have content."
Version 4.7 of the extension introduces a new placeholder that makes this is possible. Your title prefix can be achieved with the following prefix: [%TabCount%] %IfWindowName( • %WindowName% • ,)%.
I would like to be able to set the window title prefix to
[%TabCount%]
for windows that have no%WindowName%
set, and to[%TabCount%] • %WindowName % •
for windows that do.This could be done either by having two versions of the prefix or allowing some special markup to say that the enclosed text should only be included if the substitution(s) inside expand to have a value, like:
[%TabCount%]%% • %WindowName% •%%
, where the double-% "%%" means "only if expansions all have content."