Iron-E f4bb0c5641
feat(persistence): pre_save option to call before saving (#22)
* feat(persistence): `pre_save` option to call before saving

This commit adds the `pre_save` option, which is a `fun()|nil` that will
be called (if present) before saving the current session. Use cases
include filtering buffers, executing `User` autocmds, etc.

* docs: `pre_save` option
2023-02-28 10:05:58 +01:00
..