julienXX / terminal-notifier

Send User Notifications on macOS from the command-line.
Other
6.37k stars 330 forks source link

How to prevent notifications from going to into history (like osx notification center) #249

Closed mattmcmanus closed 6 years ago

mattmcmanus commented 6 years ago

Please check everything that applies to your issue:

Howdy! I know, at least for growl and osx, that a user can configure whether the notifications should be kept in the history. I'm wondering if there is a way for the tool to say that it should not keep this in the history preemptively. Is this possible with the current APIs? I didn't see anything in the documentation. The grouping functionality may have the desired result of reducing the noise in the history (if it overwrites what's there) but I'm not sure.

julienXX commented 6 years ago

Hi @mattmcmanus yes the -group option is what you need, it replaces previous notification with the same groupe identifier.

mattmcmanus commented 6 years ago

Awesome. Thanks for letting me know.