-
-
Notifications
You must be signed in to change notification settings - Fork 647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support exclusions in regular expression #173
Comments
I am also interested in a way to do this with yabai. Chunkwm had a feature when defining a rule to add an "--except" flag which I used for a few rules. Right now, I am doing this for Pycharm and it kind of works:
Once I tile the main window, other spawned windows will float. But I have to manually tile the main window. |
Either of these features would be great. For Microsoft Outlook I'm currently trying to send the main window to a particular desktop, tile the main and compose windows, and float the rest. Some experimentation suggests there isn't precedence (e.g. first/last matching rule applies) but perhaps I'm doing something wrong. An example set of rules:
The results are inconsistent; restarting yabai will apply the second rule, but close and reopen the window and it'll follow the floating rule. It seems occasionally the second rule will be followed when restarting Outlook. Changing the order rules are defined in
|
- Update yabai rules to open Outlook main window to Display 1 Space 3 - Currently cannot get rules working to float all windows apart from main and compose. See koekeishiya/yabai#173 (comment) - Switch Skype back to single-window mode (chats in main window) - Float all chat app main windows and manually assign them to all desktops
Implemented on master with the following syntax: |
Rules are applied in the order they were added. All rules that match will apply, not just the first one. If multiple rules specify a value for the same parameter, the latter rule will override that value, as it was applied last. |
Feature request
A common way to use regular expressions is to exclude matches. This can be done easily using regular expressions with negative-lookahead support, where
^(?!foo).*$
would match every line that does not begin withfoo
.yabai currently does not support negative lookahead.
An alternative to supporting a more advanced regex syntax would be to allow inverting matches, e.g. by supporting
[[!] app=<regex>]
instead of[app=<regex>]
filters, where the optional!
would invert the match.The text was updated successfully, but these errors were encountered: