slash-command-dispatch icon indicating copy to clipboard operation
slash-command-dispatch copied to clipboard

Please support commands in inline code blocks

Open xaviergmail opened this issue 1 year ago • 1 comments
trafficstars

I have a command that uses star globbing (example: /e2e non-parallel-tests/*.js parallel/role-*/*.js) When writing this command outside an inline code block, the two matching stars turn it to italics as such: /e2e non-parallel-tests/.js parallel/role-/*.js.

This then prevents us from being able to copy/paste commands from previous comments for reuse.

I'd like to suggest the addition of an option to allow us to pass commands not only like this:

/command [args...]

[Rest of comment...]

but like this as well:

`/command [args...]`

[Rest of comment...]

xaviergmail avatar Mar 15 '24 18:03 xaviergmail

Hi @xaviergmail

I understand your issue, but I don't think allowing commands in code blocks to be executable is a good approach. Most users will intuitively understand that content inside code blocks is non-executable I think. Adding this could also potentially break some users workflows.

I'll have a think if there is some other workaround to your issue.

peter-evans avatar Mar 18 '24 09:03 peter-evans