<p>A better solution would be to add an option in build menu to reload the document after a command execution (<code>prettier %f && geany %f</code>) or to replace all text with the command output, because I can use different command and different options based on filetype, for example minify <a href="https://github.com/tdewolff/minify">https://github.com/tdewolff/minify</a> have support only for 6 filetype but I want to minimize other formats with different command.<br>
Example:<br>
json prettify: <code>python -m json.tool %f</code><br>
json compact: <code>jq -c . %f</code><br>
css prettify: <code>prettier %f</code><br>
css compact: <code>minify %f</code></p>

<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/issues/2156?email_source=notifications&email_token=AAIOWJ5LMRWFTVJRII7BVA3PWEQTJA5CNFSM4HN2SO4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVW62QI#issuecomment-493743425">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7JPXVBPZXSKNNBPG3PWEQTJANCNFSM4HN2SO4A">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJYWPDEKQTL3KE7HTGDPWEQTJA5CNFSM4HN2SO4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVW62QI.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/issues/2156?email_source=notifications\u0026email_token=AAIOWJ5LMRWFTVJRII7BVA3PWEQTJA5CNFSM4HN2SO4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVW62QI#issuecomment-493743425",
"url": "https://github.com/geany/geany/issues/2156?email_source=notifications\u0026email_token=AAIOWJ5LMRWFTVJRII7BVA3PWEQTJA5CNFSM4HN2SO4KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVW62QI#issuecomment-493743425",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>