[Github-comments] [geany/geany] Pass file type to "Send Selection" commands (#2156)

elextr notifications at xxxxx
Sun May 19 10:17:54 UTC 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20190519/120226fd/attachment.html>


More information about the Github-comments mailing list