Closed will closed 2 years ago
you can already do autocmd BufUnload <buffer>
to add custom cleanup, but mayb this is more intuitive
Oh, thanks! I didn't think of BufUnload
. That does appear to work for my (not very serious at all) use case
https://user-images.githubusercontent.com/1973/164551845-c950d2fb-d114-4a47-a2be-01c4de80d2ab.mov
It is maybe easier to discover a new command since you see it in the source if you look, but I'm happy either way. Feel free to just close this if you want.
@goolord Thanks for adding this! Would it be possible to request adding it to the documentation? I didn't realize it was there until I read the code. 🙂
@goolord Thank you! ❤️
When Alpha starts it sends the User AlphaReady autocommand. As a mirror to that this patch adds a User AlphaClosed which runs when closing Alpha to give users a chance to do whatever custom cleanup they need.