<p></p>
<p>Hi, thanxs for your guide, I have modified and works fine, here the snippet( in callbacks.c/on_context_action1_activate() ) :</p>
<hr>
<hr>
<pre><code>    /* substitute the wildcard %s and run the command if it is non empty */
if (G_LIKELY(!EMPTY(command)))
{
        gchar *command_line = g_strdup(command);

        utils_str_replace_all(&command_line, "%s", word);

            // file name added as %f
        utils_str_replace_all(&command_line, "%f", doc->file_name);

        if (!spawn_async(NULL, command_line, NULL, NULL, NULL, &error))
        {
</code></pre>
<hr>
<hr>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/discussions/2775#discussioncomment-562713">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ5RVY5NTFTOQ2EUL4LTGXQC3ANCNFSM42H75XQQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3TOHSICHLAFXJCXULTGXQC3A5CNFSM42H75XQ2YY3PNVWWK3TUL52HS4DFWFCGS43DOVZXG2LPNZBW63LNMVXHJKTDN5WW2ZLOORPWSZGOAAEJMGI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/discussions/2775#discussioncomment-562713",
"url": "https://github.com/geany/geany/discussions/2775#discussioncomment-562713",
"name": "View Discussion"
},
"description": "View this Discussion on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>