Please make these two separate pull requests, don't mix more than one thing even if they relate to the same area of functionality.
Please update the manual to reflect the changes.
I would suggest use %f to substitute the filename to be consistent with build commands and because its inconsistent with the context action command which uses %s to substitute the selection.
Otherwise looks ok on first inspection.
--- Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/792#issuecomment-163033960