Hi.
Would it be possible to hook a command prior to save a file?
My use case: I want to "compile" or "parse" my source file to check syntax errors prior to save a python file since once it's saved, I have a web server that reloads itsel when the sources change but crashes if it finds a syntax error.
*Greetings,*
* Abel.*
On 2018-10-31 4:29 a.m., Abel wrote:
Hi.
Would it be possible to hook a command prior to save a file?
My use case: I want to "compile" or "parse" my source file to check syntax errors prior to save a python file since once it's saved, I have a web server that reloads itsel when the sources change but crashes if it finds a syntax error.
You could do it with a plugin[0], though it wouldn't let you not save, just to do something before save.
Regards, Matthew Brush
[0]: https://www.geany.org/manual/reference/pluginsignals_8c.html#a7bed36b3340943...