<p>How can I use "Send selection to" based on file type? At this time I'm have multiple shortcuts, for example:<br>
prettify json CTRL+1 --> <code>prettier --parser json</code><br>
prettify css CTRL+2 --> <code>prettier --parser css</code><br>
compact json CTRL+3 --> <code>minify --type json</code><br>
compact css CTRL+4 --> <code>minify --type css</code><br>
etc...<br>
My idea is to have:<br>
prettify CTRL+1 --> <code>prettier --parser %e</code><br>
compact CTRL+2 --> <code>minify --type %e</code><br>
where %e is the type of file.<br>
Is there any existing solution?</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=AAIOWJ7FAT6W2JGKU7BA4XTPWASHHA5CNFSM4HN2SO4KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GURJMDQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY3QTFDTCO5UU6BJVTPWASHHANCNFSM4HN2SO4A">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ5EDCVNHVZANPGAOMTPWASHHA5CNFSM4HN2SO4KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GURJMDQ.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=AAIOWJ7FAT6W2JGKU7BA4XTPWASHHA5CNFSM4HN2SO4KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GURJMDQ",
"url": "https://github.com/geany/geany/issues/2156?email_source=notifications\u0026email_token=AAIOWJ7FAT6W2JGKU7BA4XTPWASHHA5CNFSM4HN2SO4KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GURJMDQ",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>