Window Title Pattern Matching

Stored Windows Editor

Window Title Pattern Matching

To set a title pattern match string for a stored window, simply double click on its “Title Match Pattern” column.

Setting a pattern match string for a stored window forces Stay to restore any window with a title that matches the pattern to the size and position of the stored window.

Stay’s pattern matching system uses the ICU regular expression syntax.

Example Pattern Match Strings

Match all windows: .*

Match text anywhere in title: TEXT

Exactly match title: ^TEXT$

Match text at the beginning of the title: ^TEXT

Match text at the end of the title: TEXT$

Match title not containing text: ^(?!.*TEXT).*$

Match Terminal window by ⌘-key: ⌘1