-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
feat: globally suppress highlight notifications #5629
base: master
Are you sure you want to change the base?
feat: globally suppress highlight notifications #5629
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
Tested the following against 271d57e (pre-rebase) and works as expected: Hotkey usage:
Window context menu checkbox connection:
Window context menu checkbox action:
|
Would anyone be against me NOT implementing visual feedback to indicate the state of notification suppression (i.e. show an icon next in the notebook header like stream mode?) It would be nice from a user-perspective, but I'd rather get the core functionality in first. |
271d57e
to
582f452
Compare
{"toggleGlobalNotificationSuppression", | ||
ActionDefinition{ | ||
.displayName = "Toggle muting of all notifications", | ||
.argumentDescription = "[on, off, or toggle. default: toggle]", | ||
.minCountArguments = 0, | ||
.maxCountArguments = 1, | ||
.possibleArguments{{"Toggle", {}}, | ||
{"Enable notification muting", {"on"}}, | ||
{"Disable notification muting", {"off"}}}, | ||
.argumentsPrompt = "New value:", | ||
.argumentsPromptHover = "Should all highlight notifications be " | ||
"enabled, disabled, or toggled.", | ||
}}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bikeshed: Do we want this as a "negative" option? "Disable notification muting" is (kind-of) a double-negative - you're enabling notifications.
Oh, also: what about live notifications? "toggleGlobalNotificationSuppression" sounds like it would disable everything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point! Happy to run with "mute notifications" and "unmute notifications" 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adjusted in 513e190
This PR aims to implement global suppression of highlight notifications through a "Do Not Disturb"-like feature. I wanted to get this out of my head before I lost interest in it.
TODO:
Implements #5628.