IncludePlugin vs MatchTagsPlugin

58 views
Skip to first unread message

Robert Mark Bram

unread,
May 19, 2008, 8:12:02 PM5/19/08
to TiddlyWiki
Hi All,

I have included a few tiddlers via the IncludePlugin and I can find
them by their tags using YourSearchPlugin i.e. searching for "#TagOne
#TagTwo" works. But MatchTagsPlugin doesn't find them i.e. these are
both empty:
<<list filter "[tag[TagOne AND TagTwo]]">>
<<matchTags popup TagOne AND TagTwo>>

Is this something I haven't understood about how stuff works or is it
something that can be fixed? :)

Rob
:)


http://tiddlywiki.abego-software.de/#IncludePlugin
http://tiddlywiki.abego-software.de/#YourSearchPlugin
http://www.TiddlyTools.com/#MatchTagsPlugin

Eric Shulman

unread,
May 19, 2008, 11:18:03 PM5/19/08
to TiddlyWiki
> I have included a few tiddlers via the IncludePlugin and I can find
> them by their tags using YourSearchPlugin i.e. searching for "#TagOne
> #TagTwo" works. But MatchTagsPlugin doesn't find them i.e. these are
> both empty:
> <<list filter "[tag[TagOne AND TagTwo]]">>
> <<matchTags popup TagOne AND TagTwo>>

Tiddlers in TW are held internally in a single common 'store' object.
IncludePlugin works by loading tiddlers from other documents into
alternative store objects and modifies several core functions that
access tiddlers to look in those alternative store objects in addition
to the standard core store.

However, it doesn't modify *all* core access functions, so that it is
still possible to distinguish 'real' tiddlers from those that were
included from another file. One of the *unmodified* functions is
called "store.forEachTiddler()", which was being used by
MatchTagsPlugin to iterate over the tiddlers to find matching tags.

In order make MatchTags compatible with IncludePlugin, I have re-coded
it to use a different core function, "store.reverseLookup()", which
*is* modified by IncludePlugin to allow access to both the 'real'
tiddlers and the included tiddlers. This should fix your problem.
Please give it a try and let me know.

Get the update (v1.7.0) here:
http://www.TiddlyTools.com/#MatchTagsPlugin

enjoy,
-e



Robert Mark Bram

unread,
May 20, 2008, 12:42:56 AM5/20/08
to TiddlyWiki
Hi Eric,

> In order make MatchTags compatible with IncludePlugin, I have re-coded
> it to use a different core function, "store.reverseLookup()", which
> *is* modified by IncludePlugin to allow access to both the 'real'
> tiddlers and the included tiddlers. This should fix your problem.
> Please give it a try and let me know.
>
> Get the update (v1.7.0) here:
> http://www.TiddlyTools.com/#MatchTagsPlugin

Brilliant.. works nicely, thank you!

Rob
:)

Sergey Litvinov

unread,
May 27, 2016, 10:17:21 AM5/27/16
to TiddlyWiki, Tiddl...@googlegroups.com
Hi Eric.
I have the same problem here... still it exists. 
Unfortunately current version of MatchTagsPlugin again misses tiddlers from included tiddlywiki using the IncludePlugin (I use tw classic of course). Also the standard "list" macro doesn't see them as well when I switch on the MtachTagsPlugin. Can you help please?

вторник, 20 мая 2008 г., 3:12:02 UTC+3 пользователь Robert Mark Bram написал:
Reply all
Reply to author
Forward
0 new messages