This would be very useful in order to make different window command mappings and swallow criteria mappings for windows that have the same class and instance and also have dynamic titles. This is also a necessary step on the road towards mapping windows matching filter criteria (such as the current window_command_mappings criteria to placeholder windows that swallow custom regex values (mainly just for the title).
An example use case for this feature would be:
I usually have my Alacritty terminal windows swallowed by class,instance,title
I sometimes have a file open in neovim in Alacritty, and when the layout and windows are restored, the window in which neovim was running is not immediately swallowed because neovim is not reopened (because restoring shell subprocesses is not practical to do), and so the newly restored Alacritty terminal window's title does not match the old neovim window.
With this new feature, I would be able to create a swallow criteria mapping like so:
This rule would match any window with the class "Alacritty" and a title
containing "nvim" and override the swallow criteria of those windows so that
the title would not be required to match.
One might have observed that this is not that helpful on its own, seeing as that
window might now end up swallowing any other Alacritty window, which is most
likely undesirable. However, the main goal here is actually to enable #94.
This would be very useful in order to make different window command mappings and swallow criteria mappings for windows that have the same class and instance and also have dynamic titles. This is also a necessary step on the road towards mapping windows matching filter criteria (such as the current
window_command_mappings
criteria to placeholder windows that swallow custom regex values (mainly just for the title).An example use case for this feature would be:
With this new feature, I would be able to create a swallow criteria mapping like so:
This rule would match any window with the class "Alacritty" and a title containing "nvim" and override the swallow criteria of those windows so that the title would not be required to match.
One might have observed that this is not that helpful on its own, seeing as that window might now end up swallowing any other Alacritty window, which is most likely undesirable. However, the main goal here is actually to enable #94.