There's a way to know when a file is saved? Event?


I need to know when a file is saved to run some command on my package.
Where I need to listen to a event or assign callback? Any documentation link?

Thanks in advance.


You should be able to subscribe to the saved event on the buffer, similar to how this package does it:

We don’t have docs on events yet!