How to get all tags, in a .js plugin?

76 views
Skip to first unread message

David Szego

unread,
Mar 19, 2017, 6:11:50 PM3/19/17
to tiddly...@googlegroups.com
Hi all,

How, in a Javascript plugin, would I build an array of all tags? I'm looking for the same result I'd get using:

[tags[]!is[system]sort[title]

...which I could then iterate through in a parser.

Thanks,
David.


David Szego

unread,
Mar 20, 2017, 11:58:43 AM3/20/17
to TiddlyWikiDev
The answer itself:

filter = $tw.wiki.compileFilter("[tags[]!is[system]sort[title]]");
filter
.call($tw.wiki);

which returns the array I need, was easier than finding the answer!
See this thread (Thank you Felix Küppers circa 2014!):

https://groups.google.com/forum/#!searchin/tiddlywikidev/compiled$20filters|sort:relevance/tiddlywikidev/aCRvcsVwfU8/9fXBg9WNmCcJ
Reply all
Reply to author
Forward
0 new messages