Skip to content

Conversation

@birkirb
Copy link

@birkirb birkirb commented Sep 12, 2025

Not sure if this useful but I did have to do quite a bit of debugging to figure why those rules weren't being applied, so perhaps this will save someone that effort or inspire a clarification somewhere else in the documentation.

Note that specifically trying to match on initialClass or initialTitle, doesn't seem to work. (which is what matching on title and class does anyway)
@fufexan
Copy link
Member

fufexan commented Sep 12, 2025

The paragraph at the beginning of the section mentions this:

Static rules are evaluated once when the window is opened and never again. This essentially means that it is always the initialTitle and initialClass which will be found when matching on title and class, respectively.

@birkirb
Copy link
Author

birkirb commented Sep 13, 2025

Hmm.. it doesn't imply you can't match explicitly on them though.

How about we edit that part into something like this?

Static rules are evaluated once when the window is opened and never again. This essentially means that it is always the initialTitle and initialClass which must then be matched via title and class, respectively.

or perhaps

Static rules are evaluated once when the window is opened and never again. This in effect means that it is always the initialTitle and initialClass values that are evaluated, but they must be matched via title and class, respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants