Multi shortcut triggers

Example shortcut1, shortcut2, shortcut2, etc can trigger the same snippet
Use case: replace a collection of trigger words (to avoid) with an alternative word

It seems like this would also be covered by Regex shortcuts:

As a short-term fix you could create a separate snippet for each shortcut and use the {import} command to import a single source snippet into each one.

2 Likes

Sweet! Regex would handle this with perfection.

Is it possible to pass a parameter within the {import} statement?

You can't pass parameters, but {import}'s share the same variables as the main snippet.

So you can do something like:

{x=1}
{import: /something}

And the /something import will have access to the value of x.

1 Like

Thank you - you genuinely saved my day

It’d be great to see this covered in the docs as well, especially a section on how to reuse and combine templated snippets