Tags defined by tag macro <<tag tag>> not searchable

80 views
Skip to first unread message

Stefan Spycher

unread,
Jan 9, 2018, 11:07:50 AM1/9/18
to TiddlyWiki
Hi,

I'd like to use inline tags to categorize and markup relevant content, and afterwards be able to search for those occurrences.
the tag pill macro <<tag foobar>> seems to cover the first part, but i fail to craft a filter that finds that tiddler with 'foobar' tag. although simple, [tag[foobar]] is where i'm stuck.
so either the <<tag>> macro doesn't generate 'first class' tags, or it's a bug, or i'm doing it wrong :)

any help would be appreciated

thanksl

magasine

unread,
Jan 9, 2018, 11:21:04 AM1/9/18
to TiddlyWiki

Stefan Spycher

unread,
Jan 10, 2018, 3:30:06 AM1/10/18
to TiddlyWiki
Thanks. i would have preferred the tag pill to work as expected, and not install a plugin. the referenced plugin works, sort of, but has its quirks. so for example, the tags are sticky, meaning, if i remove the inline markup (the #), the tag stays. plus it doesnt' remove the marker...so the hashtag or whatever symbol i choose is not parsed. 

@TiddlyTweeter

unread,
Jan 10, 2018, 4:58:37 AM1/10/18
to TiddlyWiki
Ciao Stefan

Right. Hashtag2tag won't auto-remove the TW tags when you remove the in-text #hashtag. It should be possible to expand the approach to do that, though personally I don't have the skill to know quite how.

FWIW there was some improvement in the approach that emerged from a discussion between myself & Mark S. Mark, basically solved most of the issues with Riz's version I had. It deals with issues of (1) consistent case of created tags; (2) limiting the action of the macro to specific Tiddler types (to prevent creation of TW tags where "#" is found in some Content Types where they have NON-hashtag meanings); (3) removing extraneous characters that #hashtag systems ignore (like apostrophes) but which TW treats as part of the tag unless you clip them off.

Thread: Twitter #hashtags to TiddlyWiki Tags -- HOW, safely

I can't give you a finished product for what you need BUT you may find reading this thread, and especially Mark S.' code helpful. I've been using the approach he helped me with successfully for several months now.

Best wishes
Josiah
Reply all
Reply to author
Forward
0 new messages