I have a scenario when using Sublime Text 4, In my markdown document, there is a single line string like this:
abbrlink: f5eb228d
I want to implement the following autofill function when I used Sublime Text snippet, When I input ‘pic’, hope a string like this is generated:
![](f5eb228d/)
Now, I created a snippet like this:
<snippet>
<content><![CDATA[
![]()
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>pic</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
But I don’t know how to match f5eb228d
in current opened file? Please help me how to complete this function, or have other solutions?
Thanks