On Monday, February 18, 2019 at 9:32:45 AM UTC-8, Mohammad wrote:
>
> Mark
>
>
> - what does the below line mean?
>
> <$list filter="$myfilter$ +[suffix<sfx>limit[2]count[]regexp[2]]"
> emptyMessage=<<suffix-actions>> variable="cnt">
>
>
> I don't understand the filter,how does it work?
>
>
It's checking how many items have the same suffix that would be created by
eliminating characters. If there are two or more items, no action happens.
If there is only 1 item, then the action happens.
>
> - Seems the below macro is not needed
>
> \define makeregexp() ^.{$(n)$}$(sfx)$$
>
>
>
>
Yes. I mentioned that there was some clean-up. I forgot that I could use
the suffix operator to test for the endings.
>
> - Why we need to makelink in
>
> \define makelink() [[$(newTitle)$]]
>
>
> and use it here:
>
> <$text text=<<makelink>>/>
>
>
>
>
Try it without and see if it works. But I think it's needed because it's
going to be wikified. So if you didn't wrap up the text the output would be
generated as pure text. So if you had tiddlers a1, b1, cd and "ab 1" they
would get generated as a1 b1 cd ab 1 . Oh! In your testing, be sure to
include a tiddler with spaces in the name. In my testing I added "ab 1". If
you could guarantee that your tiddlers never had spaces in their titles
than the code could be much simpler.
Thanks!
-- Mark
--
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/83a80207-3ee0-4258-8591-3c924455391d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.