Build commands are intended to operate off saved files and the output is parsed 
for error messages, not to replace the contents.  

Prettification is something that the custom commands are intended to handle as 
they get the contents of the buffer or selection (not a saved file) and replace 
them in the buffer with the command output, exactly what you want because it 
doesn't overwrite your file until you are satisfied with it and hit save.  

All it needs is, as was originally requested, the ability to pass some filetype 
information to the command so the correct prettifying is applied.  If the 
command doesn't do that or if you want to choose between different commands, a 
script can do it based on the filetype passed to it.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/2156#issuecomment-493744539

Reply via email to