rcarriga / nvim-notify

A fancy, configurable, notification manager for NeoVim
MIT License
2.88k stars 72 forks source link

Dismiss notification by id #240

Open chrisgrieser opened 6 months ago

chrisgrieser commented 6 months ago

Right now, we can use a notification id to replace a notification, and we can use dismiss to dismiss all notifications. Would it be possible to dismiss a specific notification by id?

rcarriga commented 6 months ago

Would you mind describing the use case to be able to do this?

chrisgrieser commented 6 months ago

In my plugin, I want to keep certain notifications on screen for a bit longer (using timeout = false). When I then want to dismiss the notification, the option I have is to dismiss all notifications, which has the undesired side effect of also dismissing any other notifications (from other plugins or from the user) as well


the concrete use case: In my plugin tinygit, I want to display commit-diffstats while the user is entering a commit message Pasted image 2024-01-03 at 17 08 31@2x