Hey, Mat —

Getting greedy but... possible to make array output be links? I tried this 
> but no worky:
> (= "[[" & nth([tag[Expenses]], 1) & "]]" =)


Oh, yeah!  This had actually crossed my mind.  The default array-to-string 
conversion isn't very useful except as a display format, because it's 
unrelated to TiddlyWiki semantics.  I was thinking, therefore, about 
stringifying them in the same format as TiddlyWiki's own filter output.  
That would mean output //wouldn't// actually be links unless the titles 
contained spaces, though.

It would be easy enough to make a tw_links function that generates markup 
for links.  I've also thought about a more general array-to-string function 
that would stringify an array with "before", "between" and "after" strings, 
so that link generation would look like this:

(= arraystring([tag[Expenses]], "[[", "]] [[", "]]")

One caveat is that the $formula macro doesn't actually wikify its output at 
the moment, which should probably be among my next agenda items.


On Monday, 18 December 2017 21:16:41 UTC-6, Mat wrote:
>
> Evan, what you're doing is just terrific! It is such a big chunk that has 
> been missing for so long. It's like you're coming into the dinner going 
> "...so, guys, I just built these things called *chairs* for us all" !
>
> <:-)
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" 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/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4320c834-1cc8-4b18-8817-33aabd9a6a19%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to