Default Tiddler question

185 views
Skip to first unread message

axelm

unread,
Dec 29, 2011, 12:58:31 PM12/29/11
to tiddl...@googlegroups.com
Hello All,

I have a tiddler called "DefaultTiddlers".
The tiddlers listed in there open when the wiki is first opened.

Instead of manually listing the tiddlers in the "
DefaultTiddlers" tiddler,
how can I attach a tag like "Default" to any tiddler and then have it open when the wiki is first opened?

axelm

ocal TW

unread,
Dec 29, 2011, 1:43:46 PM12/29/11
to tiddl...@googlegroups.com
Hello axelm

If your default tag is "MyDefaultTag", you just have to write the following line in your "DefaultTiddlers"

[tag[MyDefaultTag]]

Regards

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To view this discussion on the web visit https://groups.google.com/d/msg/tiddlywiki/-/FLIldAn9cbEJ.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

colmjude

unread,
Dec 29, 2011, 1:47:29 PM12/29/11
to TiddlyWiki
Hi Axelm,

As far as I am aware when the defaultTiddlers are opened when the TW
is loaded, TW just looks are the text in the defaultTiddlers tiddler.
This means that a macro that would list all tiddlers tagged with
"Default" would not have executed.

You could write a plugin using the getTaggedTiddlers method and the
displayTiddlers method that could achieve a similar thing, or if you
are lucky someone else might have written one but I do think a plugin
is required.

Hope that helps,

Colm

colmjude

unread,
Dec 29, 2011, 1:58:33 PM12/29/11
to TiddlyWiki


On Dec 29, 6:43 pm, ocal TW <oca...@gmail.com> wrote:
> Hello axelm
>
> If your default tag is "MyDefaultTag", you just have to write the following
> line in your "DefaultTiddlers"
>
> [tag[MyDefaultTag]]
>

Awesome, I never knew that!
I have added it to the faq space on tiddlyspace so that it is recorded
somewhere [1].

- C

[1] - http://faq.tiddlyspace.com/recipes/faq_private/tiddlers/Using%20DefaultTiddlers%20to%20Open%20Tagged%20Tiddlers

Eric Shulman

unread,
Dec 29, 2011, 3:42:16 PM12/29/11
to TiddlyWiki
> > If your default tag is "MyDefaultTag", you just have to write the following
> > line in your "DefaultTiddlers"
> > [tag[MyDefaultTag]]
> Awesome, I never knew that!
> I have added it to the faq space on tiddlyspace so that it is recorded
> somewhere [1].

Note that DefaultTiddlers processing handles all TWCore filter syntax,
including
tiddlername
[tag[tagvalue]]
[fieldname[fieldvalue]]
[sort[fieldname]]
[limit[10]]

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

----
TiddlyTools needs YOUR financial support...
Help ME to continue to help YOU...
make a generous donation today:
http://www.TiddlyTools.com/#Donations

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact

Eric Shulman

unread,
Dec 29, 2011, 6:29:15 PM12/29/11
to TiddlyWiki
> Note that DefaultTiddlers processing handles all TWCore filter syntax,
> including
>    tiddlername
>    [tag[tagvalue]]
>    [fieldname[fieldvalue]]
>    [sort[fieldname]]
>    [limit[10]]

Also, if you install
http://www.TiddlyTools.com/#MatchTagsPlugin

then you can use full boolean logic expressions (and/or/not) for tag
matching. Instead of specifying just a single tag value in the
filter, e.g., [tag[tagvalue]], you can filter for complex combinations
of tag values, like this:
[tag[tag1 AND tag2 OR (tag3 and NOT tag4) OR tag5]
and you can use "-" as a special value to select *untagged* tiddlers,
e.g.:
[tag[tag1 OR -]]
you can also use regular expression (text pattern) syntax to specify
tag values:
[tag[(foo|bar).*]]
will match any tags that start with "foo" or "bar".
Reply all
Reply to author
Forward
0 new messages