Hi David

Can you show the output you’re trying to obtain and show the fields you’re 
using of the tiddlers tagged InstalledPlugins?

Best wishes

jeremy.

> On 20 Jan 2019, at 20:53, David Nebauer <[email protected]> wrote:
> 
> Here is the actual use case where I concatenate a number of tiddlers 
> describing plugins. For each tiddler I am using the concatenated content of a 
> tiddler field as a heading, prefixing it with a '! ' heading token.
> 
> <$list filter="[tag[InstalledPlugin]sort[title]]">
>   <$setvars pluginNames="[input[][][, ]]" _input={{!!plugin.names}}>
>     <$wikify name="pluginsHeading" text="""! <$text text=<<pluginNames>>/>""" 
> output="html">
>       <<pluginsHeading>>
>     </$wikify>
>   </$setvars>
>   <$transclude mode="block" tiddler=<<currentTiddler>>/>
> </$list>
> 
> Here is where I needed the to use <$text> to ensure tildes in the field 
> content are honoured.
> Can the above snippet be simplified?
> 
> On Sunday, 20 January 2019 22:42:28 UTC+9:30, David Nebauer wrote:
> In playing about with listing tiddlers I discovered that passing a value like 
> "~WikiLink" to <$wikify> resulted in it being rendered as a wikilink despite 
> the tilde. However, adding a <$text> widget caused <$wikify> to behave as I 
> expected.
> 
> Here is an example:
> 
> <$set name="testVar" value="WikiLink ~NoWikiLink">
> 
>   <!-- I expect <$wikify> to honour the tilde, but it does not -->
> 
>   <$wikify name="testOutput1" text=<<testVar>> output="html">
>     <<testOutput1>>
>   </$wikify>
> 
>   <!-- I expect <$text> to have no effect, but it results in correct 
> behaviour from <$wikify> -->
> 
>   <$wikify name="testOutput2" text="<$text text=<<testVar>>/>" output="html">
>     <<testOutput2>>
>   </$wikify>
> 
> </$set>
> 
> This resulted in the following output:
> 
>     WikiLink <http://localhost:10744/#WikiLink> NoWikiLink 
> <http://localhost:10744/#NoWikiLink>
> 
>  <http://localhost:10744/#WikiLink>
> 
> 
>     WikiLink <http://localhost:10744/#WikiLink> NoWikiLink
> 
> 
> 
> I don't understand why the <$wikify> widget does not honour the tilde.
> 
> 
> 
> I don't understand why adding a <$text> widget causes the <$wikify> widget to 
> behave as expected.
> 
> 
> 
> I'm sure this makes sense to someone with intimate knowledge of how these 
> widgets operate, but it is counterintuitive to newbies who expect <$wikify> 
> to render wikitext, and <$text> to do the opposite, as described in 
> TextWidget <https://tiddlywiki.com/#TextWidget> help.
> 
> 
> 
> Is there a better solution than the <$text> one I stumbled across?
> 
> 
> 
> 
> -- 
> 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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <https://groups.google.com/group/tiddlywiki>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/b442eb9c-b992-4347-8563-5d7a8d1d6943%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/b442eb9c-b992-4347-8563-5d7a8d1d6943%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
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/CE25226F-9C55-4AD1-B4DB-52A50B147F02%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to