<div dir="ltr">Hello,<br><br>I try to implement feature that format current source file on save. I modified TextDocument::save function to do that but it seems that this function is only called when a document is saved when we trigger build action (automatic save of modified documents).<div><br></div><div>After investigation I noticed that the save action (ctrl+s or save button) call directly KTextEditor::documentSave.</div><div><br></div><div>Are you any idea to catch this action before the document is saved ?<br><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div><br></div>GaĆ«l Le Baccon</div></div></div></div>