[Geany-Users] Run pre-hook command before saving file

Matthew Brush mbrush at xxxxx
Wed Oct 31 14:37:27 UTC 2018

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.

Matthew Brush


More information about the Users mailing list