iOS only – I’m on iPadOS; assume that’s included in iOS scope
no TE fill-ins
Is this snippet working when typed in Drafts?
Yes, the snippet works when typed in Drafts.
Does it work if you use the <<snippet>> syntax in other action templates?
No, it doesn’t seem to work in other action templates.
I only had snippets in that one template, so I created a test with that snippet, and a different one:
xtod inserts the current date
xbul1 inserts the character
Template contents and screenshots are below for reference.
Test template contents
Test template - TE snippet expansion
## Snippets to test
1. **xtod** -- TE snippet that inserts the current date
2. **xbul1** -- TE snippet that inserts a checkmark emoji
## Test: typed snippets
**Expected:** when a TE snippet is typed, the snippet will expand as defined
1. **xtod** result when typed: Monday, Feb 7, 2022 `(passed)`
2. **xbul1** result when typed: ☑️ `(passed)`
## Test: <<embedded>> snippets
**Expected:** when New With Template action runs on this template, each <<snippet>> will be replaced by the same output as in the section above.
1. <<xtod>>
2. <<xbul1>>
Did some digging in the code, and, yes, this is not supported. Scripted expansion of templates does not support TextExpander expansions for technical reasons related to the limitations of TextExpander integration.
In case it’s helpful, here are the pages I touched on my journey to trying the above. (Thought it might be possible to add a note about the limitation…)
I think I started here:
Note: the “Drafts tags” link on this page referenced above links to https://reference.getdrafts.com/topics/templates.html, which redirects to https://docs.getdrafts.com/, which I remember being confused by. (But that happens fairly often, so… ¯\_(ツ)_/¯ )