Sublime Forum

Snippet - how to trigger by tree slashes (///)?

#1

Hi All,

How can I trigger a snippet by three slashes (///)?

I’ve tried the following combinations, no one of them work:

<tabTrigger>///</tabTrigger>
<tabTrigger>\/\/\/</tabTrigger>

Thank you!

0 Likes

#2

I vaugely remember there is an issue with special chars in trigger but I can’t find discussion about that at this moment. ST 4 seems to works fine with your example (while ST 3211 does’t).

0 Likes

#3

When should the ST4 be ready?

0 Likes

#4

god knows. it’s ready when it’s ready :man_shrugging:

0 Likes

#5

:rofl::rofl::rofl: as soon as better … :innocent::innocent::innocent:

0 Likes

#6

I believe @jfcherng was thinking about this issue:

There have been improvements to allow special characters in some situations, but I don’t have details on the exact effects for a trigger like yours. I believe it should work by itself, but it will also impose the drawbacks mentioned in the issue above.

Here’s a related issue that has been fixed:

0 Likes

#7

Hi FichteFoll,

So, as for your example, what’s the trigger should be? How to replace it with a whitespace?

Thank you!

0 Likes

#8

Either use alphanumeric characters for your trigger or remove / from your (syntax’s) word_separators setting (ST4 only).

0 Likes