Adds the :NotificationsClear user command and the require("notify").clear_history() lua function to clear notification history.
Details
The implementation simply resets the internal notification history table to an empty table. I am not sure how this interacts with any potential asynchronous activity, but I figured that if something is waiting to be pushed into the history table, it doesn't really matter for practical purposes if it gets pushed before or after the table is reset.
I added a documentation header in the code and I updated the readme to reflect the new command and new function.
Summary
Adds the
:NotificationsClear
user command and therequire("notify").clear_history()
lua function to clear notification history.Details
The implementation simply resets the internal notification history table to an empty table. I am not sure how this interacts with any potential asynchronous activity, but I figured that if something is waiting to be pushed into the history table, it doesn't really matter for practical purposes if it gets pushed before or after the table is reset.
I added a documentation header in the code and I updated the readme to reflect the new command and new function.
Notes
Closes #158