sidneys / pb-for-desktop

The missing Desktop application for Pushbullet.
https://sidneys.github.io/pb-for-desktop
MIT License
508 stars 43 forks source link

Disable/filter certain notifications #76

Closed YodaEmbedding closed 5 years ago

YodaEmbedding commented 6 years ago

It would be nice to selectively disable certain types of notifications.

Use case: For instance, disabling Facebook Messenger notifications.

sidneys commented 6 years ago

@SicariusNoctis

Thank you for your suggestion – could you elaborate? How would you expect this feature work from a User Story perspective (e.g. simple text-based filters, a more involved graphical interface,...)?

Cheers. S

sidneys commented 6 years ago

Closing due to missing information.

YodaEmbedding commented 6 years ago

Sorry for the late response.

For a typical user, the simplest method would be a mute button on a notification, just like the official Pushbullet app:

Personally, I use a very minimal notification daemon, without buttons, and would enjoy configuring a text file instead. For instance, one could filter by app name:

[Mute]
Messenger
WhatsApp

Or perhaps more advanced filters for content:

{
    "app": "Messenger",
    "content": "^John Smith.*",
    "filter": "mute"
}

In this example, I dislike reading messages from John Smith on my work PC.

sidneys commented 5 years ago

@SicariusNoctis

Thanks for the continuing feedback.

A beta version of this feature will ship shortly, using a plaintext file where filtering terms (regular expressions) can be inserted, against which each notifications body and title will be tested, similar as per your proposal.

Cheers, S

sidneys commented 5 years ago

@SicariusNoctis

This feature is included as of version v9.0.0. If any issues should occur, your feedback is very much welcome.

Cheers, S