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

elextr notifications at xxxxx
Sun May 19 01:17:34 UTC 2019


@codebrainz might be thinking of [templates commands](https://www.geany.org/manual/current/index.html#special-command-wildcard) where set environment variables and set, but custom commands do not seem to do so.

I tend to prefer the command arguments approach over the environment variables since no existing command will understand the `GEANY_XXX` variables so their use is restricted to shell scripts or user written commands, but there is a chance that and existing command might understand something like the filetype passed as an argument the way @GFdevelop showed.  But a `%` letter should be chosen to not overlap with the build command replacements, so `%e` is taken.  Perhaps `%t` for fileType.

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


More information about the Github-comments mailing list