-
Notifications
You must be signed in to change notification settings - Fork 344
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
Proposal: More consistent filter/setter rule names #1333
Comments
For reference
Ideally this new names can be parsed automatically as "set_"/"match_" + prop_name |
Yeah, sounds good. I think it would also be good to write some documentation about this. Rules are added one by one and it might go wrong again in the future |
Making it work programmatically would also be a solution to force it to be consistent |
That was the idea, like creating an enum with the rule property (urgency, color, ...) and one with actions (set, match, ...maybe we'll add more...) and programmatically parse them. This seems like a nice qol goal for v2 |
I found that an old issue proposed the same thing #349 🤦🏻 |
I am undecided about using @fwsmit @zappolowski what do you think about this ^^^^ If I could I would make a poll, but I don't think it is possible. |
I'm not sure either. Making a poll is a good idea |
I made it in discussions. I don't know how much reach it will have unfortunately. |
I propose a more consistent syntax for filters and rules following the good example of
match_transient/set_transient
.We can add for every notification property a
match_*
and aset_*
value for filtering and modifying respectively.This is much more consistent than the currently somewhat confusing names (
msg_urgency/urgency
, etc).Obviously for backwards compatibility the current name will still work (as an alias for the appropriate new name).
If I get to implement this I will also probably change the rules internal representation (see #607).
If you have any ideas about this let me know 👍🏻
The text was updated successfully, but these errors were encountered: