On Friday, July 28, 2017 at 12:25:41 PM UTC-7, Dan Fjerstad wrote:
>
> I'm trying to make a custom new journal button. I can't seem to figure out
> how to pass a tiddler name containing a space in the macro.
>
> For example: Take the core new-journal button macro, which gets the
> journal tags from $:/config/NewJournal/Tags. So I want to put a tag in
> there that contains a space, as opposed to a one-word tag like "Journal".
> Anything I put there, the macro will automatically interpret the spaces as
> delineating a separate tag. I've tried putting it in quotes ("a tag"),
> single quotes ('a tag'), and triple quotes ("""a tag"""). The macro never
> makes a tag with a space, instead making separate tags, even with quotation
> marks hanging off them.
>
The contents of $:/config/NewJournal/Tags is a space-separated list (a
common syntax in TiddlyWiki, used in many places). This syntax uses
"doubled-square brackets" (another common TiddlyWiki syntax) to enclose
titles that contain spaces. Thus, to enter a tag value that contains a
space, you would enter something like this:
SomeTag [[A Tag With Spaces]] AnotherTag
note: tag values are case sensitive
Here's a PermaLink to some of the relevant documentation on TiddlyWiki.com:
http://tiddlywiki.com/#Title%20List:%5B%5BTitle%20List%5D%5D%20Filters%20%5B%5BIntroduction%20to%20filter%20notation%5D%5D
enjoy,
-e
Eric Shulman
TiddlyTools.com: "Small Tools for Big Ideas!" (tm)
InsideTiddlyWiki: The Missing Manuals
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/05090fee-2304-4d2a-9b4b-37dc8b4357b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.