[tw5] Re: Select Widget display issues

2020-12-28 Thread scourfie...@gmail.com
Thanks Mark. No idea why that first one didn't work but the second one works perfectly. I actually modified it slightly as follows, since I'm using this tiddler as a mask for several others so wanted them to be able to display different values. \define tag-select-actions() <$vars lf="[["

[tw5] Re: Select Widget display issues

2020-12-27 Thread 'Mark S.' via TiddlyWiki
And here's a second version, that uses the action attribute. This is probably closer to the "official" way things should be done, and is easier to read. On Sunday, December 27, 2020 at 1:51:47 PM UTC-8 Mark S. wrote: > In case things got mangled in copy/paste, I've attached a JSON file with

[tw5] Re: Select Widget display issues

2020-12-27 Thread 'Mark S.' via TiddlyWiki
In case things got mangled in copy/paste, I've attached a JSON file with the code that you can import. On Sunday, December 27, 2020 at 1:47:58 PM UTC-8 Mark S. wrote: > It's hard to diagnose at a distance. But as you can see in the screenshot, > it's working on mine. Possibly something got

[tw5] Re: Select Widget display issues

2020-12-27 Thread 'Mark S.' via TiddlyWiki
It's hard to diagnose at a distance. But as you can see in the screenshot, it's working on mine. Possibly something got mangled when you copied the code? You could download your tiddler set in a JSON bundle, and then post them here. On Sunday, December 27, 2020 at 1:10:55 PM UTC-8

[tw5] Re: Select Widget display issues

2020-12-27 Thread scourfie...@gmail.com
Thanks Mark I've had a go using your code, but I'm still getting the same behaviour. Any ideas? Joseph On Sunday, 27 December 2020 at 19:28:47 UTC Mark S. wrote: > The reason it doesn't work is because when you put [[MySingleWordTag]] in > tags, TW strips off the [[ and ]], so your text no

[tw5] Re: Select Widget display issues

2020-12-27 Thread scourfie...@gmail.com
Thanks Mark I've applied your code as written but i'm still getting the same behaviour. Frustratingly, I can see what your trying to do, so I can't get my head around why it isn't working. On Sunday, 27 December 2020 at 19:28:47 UTC Mark S. wrote: > The reason it doesn't work is

[tw5] Re: Select Widget display issues

2020-12-27 Thread 'Mark S.' via TiddlyWiki
The reason it doesn't work is because when you put [[MySingleWordTag]] in tags, TW strips off the [[ and ]], so your text no longer matches. The following worked in my tests. It uses the filter run evaluation to determine if braces need to be added, only adding them if there is more than one