i extended `saveactions` plugin to add this kind of functionality - it is not as seamless as would be if incorporated into core code but works good enough. Supports points #1 and #3 from this comment https://github.com/geany/geany/issues/905#issuecomment-1501065105 (not #2 though)
PR: https://github.com/geany/geany/pull/3904
https://github.com/geany/geany/assets/9273621/d91235c1-d2a6-46f8-894b-db7941...