<p>Nice-ish, but as usual with placeholders like this in commands, it is subject to unexpected behavior if it expands to something with control characters -- as the command is then parsed by some other logic.  We already have this problem with almost every placeholder, but maybe it'd be worth not adding new ones…<br>
Here maybe it can be as simple as <code>g_shell_escape()</code> as we don't implicitly run in a shell but parse with <code>g_shell_parse_argv()</code> (on *NIX only?).  Yet it can cause other issues if the user uses <code>sh -c "..."</code>, but at least it'd be consistent from the start, we wouldn't break existing commands further.</p>

<p>BTW, this might (unlikely) break existing custom commands if they contain a bare <code>%s</code>.  There should be a way to easily enter bare <code>%s</code>.  On *NIX, using <code>%''s</code> would be fine, not sure if it'd work on Windows, someone would have to check (at least the code path).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/pull/792#issuecomment-185281231">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJyUQwLq3Gao_JBGed-AxRkT-JQ76ks5plJW4gaJpZM4GxDdm.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/792#issuecomment-185281231"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>