nvim-notify icon indicating copy to clipboard operation
nvim-notify copied to clipboard

Dismiss notification by id

Open chrisgrieser opened this issue 1 year ago • 3 comments
trafficstars

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?

chrisgrieser avatar Jan 02 '24 13:01 chrisgrieser

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

rcarriga avatar Jan 03 '24 15:01 rcarriga

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

chrisgrieser avatar Jan 03 '24 16:01 chrisgrieser