mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
Floating popups in FreeCAD #315
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @RaymondKroon on GitHub (Mar 20, 2024).
I tried to make all popups float for FreeCAD, however the only solution I see is adding all titles, which kinda sucks.
The popups have the same Class and same EXE:
I am trying to make "float everything except when the title startswith FreeCAD" work.
Matching strategy "DoesNotStartWith" does not exist, so I tried Regex. However it seems that the floating_identifiers are run globally, and not in the context of the application? So the regex that I tried seems to make everything floating? (I am not sure however, it also seems like Komorebi is not running properly when adding the regex)
Is there a solution to make al popups floating without manually adding all titles?
@LGUG2Z commented on GitHub (Mar 20, 2024):
I'll be working on composite rules and negative matchers to address extreme edge cases like this in the next release 🤞
@LGUG2Z commented on GitHub (Mar 20, 2024):
Initial testable outline of composite rules here:
6cf99a3578This initial config format is subject to change before the next release, but you can try it now if you build from the linked commit
the
float_ruleskey can now take a{}rule object or a[]list of rule objects. With lists of rule objects (ie. composite rules), every single rule in the list must evaluate to true in order for the window to be floated; if any one of the rules in the list fails, the rule will not be applied.@RaymondKroon commented on GitHub (Mar 22, 2024):
Nice! I am running the testable version, and it works great.
@LGUG2Z commented on GitHub (Mar 23, 2024):
@RaymondKroon
e0652d953anegative matching strategies added here