Set parameter of commands during editing

WHAT DO YOU RECOMMEND

When editing, sometimes I want to set the parameter of a command before its converted to certain type of block.

Take Code as an example. When type /code and press Tab, a code snippet block will be generated. However, syntax highlight language is inherited from the previous one. So if I want to change its highlight type, I have to use mouse (or trackpad). This is an interruption for my editing flow.

Same applies to /callout. I have to click to change a emoji. It’s okay, but it could be better if I can set the emoji while sending the command.

HOW COULD IT BE DONE

A possible case would be: entering /code:lang=go, and a code block with Golang syntax highlight is generated.

Alternative methods

Support some kind of keyboard shortcut for each block type, but it might be too complex and hard to use.