Small update… All this block level thinking has made inline tags more useful for me. Not as an alternative to the existing tag system built into Drafts, I hasten to add, but as a complement. This update picks up any hash-tags in the line your cursor is currently on.
Wouldn’t take much to also pick up on “@” tags if anyone would find that useful. For anyone savvy enough to DIY, you’ll be looking for a regex in the third action step.
I’ve paired this with a slight adjustment to my syntax definition file that highlights inline hashtags…
{
"match": "\\B#(\\d*[A-Za-z_]+\\w*)\\b(?!;)",
"scope": "color.accent03",
"exclusive": false,
"comment": "Hash tags in text",
"captures": {
"0": {
"scope": "color.accent06"
},
"1": {
"scope": "color.accent06"
}
}
},
(…could probably be refined further, but I’m still getting my head around these syntax definition adjustments, and this works for me for now…)