Re: [tw5] Re: Filter tiddlers with exactly one tag.

2021-09-25 Thread thor...@gmail.com
I am satisfied with the  `<$vars tagList={{{ 
[enlist{$:/temp/tagSearch}sort[]join[,]] }}}>` solution. I may have other 
questions to make my custom search tiddler look nicer, but that can be a 
separate thread if needed. Tyvm again for the help!

On Thursday, September 23, 2021 at 9:06:51 PM UTC-4 Eric Shulman wrote:

> On Thursday, September 23, 2021 at 3:57:35 PM UTC-7 thor...@gmail.com 
> wrote:
>
>> How might I make this searching tiddler more robust in the presence of 
>> "tags with spaces", since I also use spaces to delimit tags in the 
>> `edit-text`?
>>
>
> The problem is the use of
> `<$set name="tagList" filter="[enlist{$:/temp/tagSearch}sort[]join[,]]">`
>
> Let’s say you entered “foo [[bar baz]]” (i.e., two tags, “foo” and “bar 
> baz”).
>
> Then, you might expect the results of the above $set widget to be “foo,bar 
> baz”. However, because this string contains a space, the $set widget 
> *automatically 
> encloses the output in double square brackets*. Thus, the actual result 
> is “[[foo,bar baz]]”. Then, when you use `match` later on, it 
> expects those square brackets to be part of the literal string match.
>
> The solution is to use $vars with a “filtered transclusion” for the value, 
> instead of $set, like this:
> `<$vars tagList={{{ [enlist{$:/temp/tagSearch}sort[]join[,]] }}}>`
> Then, tagList will be “foo,bar baz”, as you intended.
>
> Alternatively, you *can* use $set, by adding “select=0” as an extra 
> parameter, like this:
> `<$set name="tagList" filter="[enlist{$:/temp/tagSearch}sort[]join[,]]" 
> select=0>`
> This tells the $set widget to only return the first list item (i.e., 
> item #0), without adding any square brackets.
> -e
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3d9522b5-d61a-459e-ab3f-85c7452fd766n%40googlegroups.com.


[tw5] TiddlyWiki and GNU Nano: custom syntax highlighting for complex Tiddlers

2021-09-25 Thread Charlie Veniot
Video on YouTube 

Not satisfied with available options for TiddlyWiki syntax highilighting, I 
decided to start fiddling with GNU nano as my TID editor when I need some 
visual help understanding/editing filters and widgets.

Still early going, but I've got the basics working pretty well.  I now just 
need to sit down and learn about regular expressions to fine-tune this 
thing to quasi-perfection.

Cheers !

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1f4d5e76-4072-4bf8-ba69-3b660e02b517n%40googlegroups.com.


[tw5] Re: pmario's file-backups not working in firefox with tw classic

2021-09-25 Thread PMario
On Saturday, September 25, 2021 at 7:01:55 PM UTC+2 rouil...@gmail.com 
wrote:
 

> I got a new copy from: http://tbgtd.tiddlyspot.com/. Used wget to 
> download it.


OK
 

> Put it in a new folder at tiddlywiki/tbGTD2/tbGTD2.html. Loaded it up and 
> it saves.
> Then I  copied the non-working tbGTD.html file on top of 
> tbGTD2/tbGTD2.html. 
> That saves as well.
>

hmmm. That's strange. Subdirectories should be created on demand. So it 
shouldn't matter, if files are moved and then saved again. 
 

> Moved the original file from tiddlywiki/tbGTD/tbGTD.html to 
> tiddlywiki/tbGTD_nosave/tbGTD.html 
> loaded it in firefox and it saves. One oddness is that the backup file was 
> created under
> twBackups/tbGTD.html/tbGTD(2021-09-25T16-14-03-974Z).html 
>

The first save will always create an "out of order" backup, with the 
original version of the file. So instead of (A) it saves this file. Then 
there will be (B) and than (A) ... and so on. That's intended.

The twBackups directory is always relative the the loaded file. So 
tbGTD.html should have a twBackups next to it. The directory tbGTD.html is 
also intended. So the directory structure looks right. 

rather than in twBackups
> where the other backups (initial dated backup and A-F tower of hanoi 
> backups). The next save
> created a B backup and not an A backup.
>
Got me as to why there was a backup issue.
>

As above. That's intended.
  

> I made a new tbGTD directory and copied my original tiddlywiki file over 
> and things are working now.
>
> Is there anything I can do to debug the failure if it happens in the 
> future?
>

You wrote, that you had a "nosave" file. If possible _and_ if you want to, 
you can send it to me privately. If not it may be interesting if you could 
remove all your content and then send me the "nosave" file. ... If it still 
has the problem. ... 

-mario


-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2799cc4a-6eda-42db-9b17-46cfa85cbd19n%40googlegroups.com.


[tw5] Re: pmario's file-backups not working in firefox with tw classic

2021-09-25 Thread John Rouillard
Hi Pmario:

I got a new copy from: http://tbgtd.tiddlyspot.com/. Used wget to download 
it.

Put it in a new folder at tiddlywiki/tbGTD2/tbGTD2.html. Loaded it up and 
it saves.
Then I  copied the non-working tbGTD.html file on top of 
tbGTD2/tbGTD2.html. 
That saves as well.

Moved the original file from tiddlywiki/tbGTD/tbGTD.html to 
tiddlywiki/tbGTD_nosave/tbGTD.html 
loaded it in firefox and it saves. One oddness is that the backup file was 
created under
twBackups/tbGTD.html/tbGTD(2021-09-25T16-14-03-974Z).html rather than in 
twBackups
where the other backups (initial dated backup and A-F tower of hanoi 
backups). The next save
created a B backup and not an A backup.

Got me as to why there was a backup issue.

I made a new tbGTD directory and copied my original tiddlywiki file over 
and things are working now.

Is there anything I can do to debug the failure if it happens in the future?

Thanks.
-- rouilj

On Saturday, September 25, 2021 at 2:44:48 AM UTC-4 PMario wrote:

> Hi,
> I did try it with 2.5.3 empty.html and it saves too. 
> There must have been some changes to the file, which are blocking the save 
> mechanism. 
> I don't have a link to the plugin. It would be nice if you could provide 
> one, so I can test the setting too
> -m
>
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d4e3e4a5-9518-426b-bff0-d5aa4b4a7889n%40googlegroups.com.


[tw5] Re: Question about styling tags

2021-09-25 Thread Justin H.
Hi, Soren! (I was just reading your book, in hopes of figuring this out 
haha) 

I tried using  svg.tc-image-close-button {fill: <>;}  Like 
you suggested, however it only changed the X to match the overall font, 
while I'm aiming to have it match the font color used for the font inside 
the tagpills, but I'm not sure what causes the tagpills to change from 
white font color to black font color and vice versa when selecting a color 
for the tag.

As far as the CSS border part i was curious about, I was planning to use 
the rgba() function in css to apply the opacity effect, but I don't know 
where the CSS that's used for the tagpill is stored at.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a2b1c0eb-0e01-434e-87af-374d5c1ef090n%40googlegroups.com.


[tw5] Re: Question about styling tags

2021-09-25 Thread Soren Bjornstad
On Saturday, September 25, 2021 at 9:00:53 AM UTC-5 ju...@gmail.com wrote:

> So, just a few questions, first one being is, how could I change the x for 
> removing a tag to match the font color of the text inside the tag? 


Try this in a tiddler tagged $:/tags/Stylesheet:

svg.tc-image-close-button {
fill: <>;
}

(Note: there's a color in the palette called `tag-foreground`, but it 
doesn't appear to actually be used for the tag foreground, rather 
`foreground` is. The <> macro retrieves the hex code of a color by 
name from the current palette; go to $:/PaletteManager to see the list of 
colors.)

Also, would it be possible to add a border around the tags with the same 
> color as the tag itself, but with say, 50% opacity, so the background would 
> make the border darker or lighter to prevent the tag from blending in with 
> the tiddler background?
>

I don't know enough CSS to know how to do this kind of border off the top 
of my head, but you would apply a similar styling rule to the class of the 
tag. I would start with tc-tag-label. The trick is to open your browser's 
devtools and click on the thing you want to style on the "Elements" tab, 
and you should be able to poke around from there to figure out what to 
style. Then it's just any tiddler tagged $:/tags/Stylesheet to get it 
included in the global stylesheet for the page.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/38a575bf-76f0-4844-91c6-db6705a4af2dn%40googlegroups.com.


[tw5] Re: Just a Filtering Code Pattern

2021-09-25 Thread Álvaro

- In the fields cases we have a workaround with `fields` operator. It has 
suffixs (exclude, include)
- I think that there in't any tiddler with those tags. The search is the 
tiddler with all these tags (¿and any other?)

In the case of titles, you find a issue, but I don't know its reason. I was 
trying to find a workaround but i wasn't lucky. I also found that the match 
operator doesn't support multiple parameters.

El sábado, 25 de septiembre de 2021 a las 16:30:26 UTC+2, TW Tones escribió:

> Of even this {{{ [tag[Common Operators],[HelloThere],[TableOfContents]] }}}
>
> On Sunday, 26 September 2021 at 00:27:45 UTC+10 TW Tones wrote:
>
>> Very interesting. 
>>
>> I think he documentation should be expanded to detail this. Multiple 
>> parameters to operators are only documented in a few operators, but if I 
>> read this correctly they can work on operators in *general*?
>>
>> If general you may expect this to work ```{{{ [title[tid1],[tid2],[tid3]] 
>> }}}``` it does not.
>> or {{{ [all[current]get[caption],[description]] }}}``` it does not.
>> On Sunday, 26 September 2021 at 00:18:58 UTC+10 Eric Shulman wrote:
>>
>>> I just tested this on both 5.1.23 and 5.2.0pre. I created one tiddler 
>>> containing
>>> ```
>>> {{{ [tag[Tag 1],[Tag 2],[Tag 3],[Tag 4]] 
>>> :filter[tags[]count[]compare:eq[4]] }}}
>>> ```
>>>
>>> and another tiddler with the four tags (note capitalization and spaces 
>>> in the tag values).
>>>
>>> It *does* seem to work on both versions of TW
>>> -e
>>> On Saturday, September 25, 2021 at 7:02:19 AM UTC-7 TW Tones wrote:
>>>
 Alvaro;

 You suggested something like this
 {{{ [tag[Tag 1]**,**[Tag 2],[Tag 3],[Tag 4]] 
 :filter[tags[]count[]compare:eq[4]] }}}

 As far as I can see this does not work on the pre-release and the t6ag 
 format  [tag[Tag 1],[Tag 2],[Tag 3],[Tag 4]] (simplified)  is not 
 documented

 Does not work. So I asked if you tested this?


 On Saturday, 25 September 2021 at 22:11:48 UTC+10 Álvaro wrote:

> I don't know if I understand you.
>
>
> El sábado, 25 de septiembre de 2021 a las 5:31:18 UTC+2, TW Tones 
> escribió:
>
>> Alvaro;
>>
>> Have you tested this?
>>
>> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
>> :filter[tags[]count[]compare:eq[4]]  }}}
>>
>> I cant see it working. Here 
>>  is says 
>>
>> * NEW IN: 5.1.23 Filter operators support multiple parameters which 
>> are separated by a  ,  character.*
>>
>> *For example: [param1],[param2] or ,{param2}*
>> However as far as I can see only if such multiple parameters are 
>> documented in the operator in question.
>>
>> Tones
>> On Saturday, 25 September 2021 at 01:39:53 UTC+10 Álvaro wrote:
>>
>>> It works fine. I tried to find a alternative, but I wasn't lucky.
>>>
>>> When I resee your filter, I remember about the multiple parameters 
>>> in filter operator with commas (from last version, 5.1.23). And we can 
>>> add 
>>> a second filter run that it applies your filter to result of first run. 
>>> Then you can rewrite your filter something like this (in filtering 
>>> transclusion)
>>> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
>>> :filter[tags[]count[]compare:eq[4]]  }}}
>>>
>>> Although maybe it be less understandble for you.
>>>
>>>
>>> El viernes, 24 de septiembre de 2021 a las 10:59:50 UTC+2, 
>>> jn.pierr...@gmail.com escribió:
>>>
 That's fine by me.

 And yes filters are fun even if sometimes a bit tricky.

 So for the fun of it, you could arrange your filter so that the 
 input would be the 4 tags you want.

 something like that:

 \define fun(tags)
 <$set variable=occ filter="[[$tags]put your filter code 
 here...count[]]">Seen <> tiddlers with tags $tags$
 \end

 Sometimes, this fun has you coding javascript filter operator. 
 Would this be the case here? I have not thought about it yet.

 cheers,


 Le vendredi 24 septembre 2021 à 03:54:34 UTC+2, cj.v...@gmail.com 
 a écrit :

> Me and my interest in brain age games, I couldn't help but play 
> around with a filter to find all tiddlers that have all four 
> specified 
> tags, but only those four tags.
>
> You'll find three tiddlers in the attached json.  Download the 
> file, and drag into some TiddlyWiki instance (TiddlyWiki.com !) to 
> take a 
> gander.
>
> There are all kinds of ways to go about doing this sort of thing, 
> with some filter operators maybe better suited, but I find the result 
> a bit 
> easier for me to understand (more logical to me, or maybe more 

[tw5] Re: Just a Filtering Code Pattern

2021-09-25 Thread TW Tones
Of even this {{{ [tag[Common Operators],[HelloThere],[TableOfContents]] }}}

On Sunday, 26 September 2021 at 00:27:45 UTC+10 TW Tones wrote:

> Very interesting. 
>
> I think he documentation should be expanded to detail this. Multiple 
> parameters to operators are only documented in a few operators, but if I 
> read this correctly they can work on operators in *general*?
>
> If general you may expect this to work ```{{{ [title[tid1],[tid2],[tid3]] 
> }}}``` it does not.
> or {{{ [all[current]get[caption],[description]] }}}``` it does not.
> On Sunday, 26 September 2021 at 00:18:58 UTC+10 Eric Shulman wrote:
>
>> I just tested this on both 5.1.23 and 5.2.0pre. I created one tiddler 
>> containing
>> ```
>> {{{ [tag[Tag 1],[Tag 2],[Tag 3],[Tag 4]] 
>> :filter[tags[]count[]compare:eq[4]] }}}
>> ```
>>
>> and another tiddler with the four tags (note capitalization and spaces in 
>> the tag values).
>>
>> It *does* seem to work on both versions of TW
>> -e
>> On Saturday, September 25, 2021 at 7:02:19 AM UTC-7 TW Tones wrote:
>>
>>> Alvaro;
>>>
>>> You suggested something like this
>>> {{{ [tag[Tag 1]**,**[Tag 2],[Tag 3],[Tag 4]] 
>>> :filter[tags[]count[]compare:eq[4]] }}}
>>>
>>> As far as I can see this does not work on the pre-release and the t6ag 
>>> format  [tag[Tag 1],[Tag 2],[Tag 3],[Tag 4]] (simplified)  is not documented
>>>
>>> Does not work. So I asked if you tested this?
>>>
>>>
>>> On Saturday, 25 September 2021 at 22:11:48 UTC+10 Álvaro wrote:
>>>
 I don't know if I understand you.


 El sábado, 25 de septiembre de 2021 a las 5:31:18 UTC+2, TW Tones 
 escribió:

> Alvaro;
>
> Have you tested this?
>
> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
> :filter[tags[]count[]compare:eq[4]]  }}}
>
> I cant see it working. Here 
>  is says 
>
> * NEW IN: 5.1.23 Filter operators support multiple parameters which 
> are separated by a  ,  character.*
>
> *For example: [param1],[param2] or ,{param2}*
> However as far as I can see only if such multiple parameters are 
> documented in the operator in question.
>
> Tones
> On Saturday, 25 September 2021 at 01:39:53 UTC+10 Álvaro wrote:
>
>> It works fine. I tried to find a alternative, but I wasn't lucky.
>>
>> When I resee your filter, I remember about the multiple parameters in 
>> filter operator with commas (from last version, 5.1.23). And we can add 
>> a 
>> second filter run that it applies your filter to result of first run. 
>> Then 
>> you can rewrite your filter something like this (in filtering 
>> transclusion)
>> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
>> :filter[tags[]count[]compare:eq[4]]  }}}
>>
>> Although maybe it be less understandble for you.
>>
>>
>> El viernes, 24 de septiembre de 2021 a las 10:59:50 UTC+2, 
>> jn.pierr...@gmail.com escribió:
>>
>>> That's fine by me.
>>>
>>> And yes filters are fun even if sometimes a bit tricky.
>>>
>>> So for the fun of it, you could arrange your filter so that the 
>>> input would be the 4 tags you want.
>>>
>>> something like that:
>>>
>>> \define fun(tags)
>>> <$set variable=occ filter="[[$tags]put your filter code 
>>> here...count[]]">Seen <> tiddlers with tags $tags$
>>> \end
>>>
>>> Sometimes, this fun has you coding javascript filter operator. Would 
>>> this be the case here? I have not thought about it yet.
>>>
>>> cheers,
>>>
>>>
>>> Le vendredi 24 septembre 2021 à 03:54:34 UTC+2, cj.v...@gmail.com a 
>>> écrit :
>>>
 Me and my interest in brain age games, I couldn't help but play 
 around with a filter to find all tiddlers that have all four specified 
 tags, but only those four tags.

 You'll find three tiddlers in the attached json.  Download the 
 file, and drag into some TiddlyWiki instance (TiddlyWiki.com !) to 
 take a 
 gander.

 There are all kinds of ways to go about doing this sort of thing, 
 with some filter operators maybe better suited, but I find the result 
 a bit 
 easier for me to understand (more logical to me, or maybe more 
 self-explanatory, because of the way my brain works, I suppose.)  
 Maybe 
 just a difference between top-down view vs bottom-up view or something 
 ...

 Yeah, I find filters fun.

>>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4c736a0d-c005-4a57-ad34-f9b678d787d5n%40googlegroups.com.


[tw5] Re: Just a Filtering Code Pattern

2021-09-25 Thread TW Tones
Very interesting. 

I think he documentation should be expanded to detail this. Multiple 
parameters to operators are only documented in a few operators, but if I 
read this correctly they can work on operators in *general*?

If general you may expect this to work ```{{{ [title[tid1],[tid2],[tid3]] 
}}}``` it does not.
or {{{ [all[current]get[caption],[description]] }}}``` it does not.
On Sunday, 26 September 2021 at 00:18:58 UTC+10 Eric Shulman wrote:

> I just tested this on both 5.1.23 and 5.2.0pre. I created one tiddler 
> containing
> ```
> {{{ [tag[Tag 1],[Tag 2],[Tag 3],[Tag 4]] 
> :filter[tags[]count[]compare:eq[4]] }}}
> ```
>
> and another tiddler with the four tags (note capitalization and spaces in 
> the tag values).
>
> It *does* seem to work on both versions of TW
> -e
> On Saturday, September 25, 2021 at 7:02:19 AM UTC-7 TW Tones wrote:
>
>> Alvaro;
>>
>> You suggested something like this
>> {{{ [tag[Tag 1]**,**[Tag 2],[Tag 3],[Tag 4]] 
>> :filter[tags[]count[]compare:eq[4]] }}}
>>
>> As far as I can see this does not work on the pre-release and the t6ag 
>> format  [tag[Tag 1],[Tag 2],[Tag 3],[Tag 4]] (simplified)  is not documented
>>
>> Does not work. So I asked if you tested this?
>>
>>
>> On Saturday, 25 September 2021 at 22:11:48 UTC+10 Álvaro wrote:
>>
>>> I don't know if I understand you.
>>>
>>>
>>> El sábado, 25 de septiembre de 2021 a las 5:31:18 UTC+2, TW Tones 
>>> escribió:
>>>
 Alvaro;

 Have you tested this?

 {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
 :filter[tags[]count[]compare:eq[4]]  }}}

 I cant see it working. Here 
  is says 

 * NEW IN: 5.1.23 Filter operators support multiple parameters which are 
 separated by a  ,  character.*

 *For example: [param1],[param2] or ,{param2}*
 However as far as I can see only if such multiple parameters are 
 documented in the operator in question.

 Tones
 On Saturday, 25 September 2021 at 01:39:53 UTC+10 Álvaro wrote:

> It works fine. I tried to find a alternative, but I wasn't lucky.
>
> When I resee your filter, I remember about the multiple parameters in 
> filter operator with commas (from last version, 5.1.23). And we can add a 
> second filter run that it applies your filter to result of first run. 
> Then 
> you can rewrite your filter something like this (in filtering 
> transclusion)
> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
> :filter[tags[]count[]compare:eq[4]]  }}}
>
> Although maybe it be less understandble for you.
>
>
> El viernes, 24 de septiembre de 2021 a las 10:59:50 UTC+2, 
> jn.pierr...@gmail.com escribió:
>
>> That's fine by me.
>>
>> And yes filters are fun even if sometimes a bit tricky.
>>
>> So for the fun of it, you could arrange your filter so that the input 
>> would be the 4 tags you want.
>>
>> something like that:
>>
>> \define fun(tags)
>> <$set variable=occ filter="[[$tags]put your filter code 
>> here...count[]]">Seen <> tiddlers with tags $tags$
>> \end
>>
>> Sometimes, this fun has you coding javascript filter operator. Would 
>> this be the case here? I have not thought about it yet.
>>
>> cheers,
>>
>>
>> Le vendredi 24 septembre 2021 à 03:54:34 UTC+2, cj.v...@gmail.com a 
>> écrit :
>>
>>> Me and my interest in brain age games, I couldn't help but play 
>>> around with a filter to find all tiddlers that have all four specified 
>>> tags, but only those four tags.
>>>
>>> You'll find three tiddlers in the attached json.  Download the file, 
>>> and drag into some TiddlyWiki instance (TiddlyWiki.com !) to take a 
>>> gander.
>>>
>>> There are all kinds of ways to go about doing this sort of thing, 
>>> with some filter operators maybe better suited, but I find the result a 
>>> bit 
>>> easier for me to understand (more logical to me, or maybe more 
>>> self-explanatory, because of the way my brain works, I suppose.)  Maybe 
>>> just a difference between top-down view vs bottom-up view or something 
>>> ...
>>>
>>> Yeah, I find filters fun.
>>>
>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/30d92ecf-a87b-4d01-b96d-2bcb75bdcaadn%40googlegroups.com.


[tw5] Re: Just a Filtering Code Pattern

2021-09-25 Thread Eric Shulman


I just tested this on both 5.1.23 and 5.2.0pre. I created one tiddler 
containing
```
{{{ [tag[Tag 1],[Tag 2],[Tag 3],[Tag 4]] 
:filter[tags[]count[]compare:eq[4]] }}}
```

and another tiddler with the four tags (note capitalization and spaces in 
the tag values).

It *does* seem to work on both versions of TW
-e
On Saturday, September 25, 2021 at 7:02:19 AM UTC-7 TW Tones wrote:

> Alvaro;
>
> You suggested something like this
> {{{ [tag[Tag 1]**,**[Tag 2],[Tag 3],[Tag 4]] 
> :filter[tags[]count[]compare:eq[4]] }}}
>
> As far as I can see this does not work on the pre-release and the t6ag 
> format  [tag[Tag 1],[Tag 2],[Tag 3],[Tag 4]] (simplified)  is not documented
>
> Does not work. So I asked if you tested this?
>
>
> On Saturday, 25 September 2021 at 22:11:48 UTC+10 Álvaro wrote:
>
>> I don't know if I understand you.
>>
>>
>> El sábado, 25 de septiembre de 2021 a las 5:31:18 UTC+2, TW Tones 
>> escribió:
>>
>>> Alvaro;
>>>
>>> Have you tested this?
>>>
>>> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
>>> :filter[tags[]count[]compare:eq[4]]  }}}
>>>
>>> I cant see it working. Here  
>>> is says 
>>>
>>> * NEW IN: 5.1.23 Filter operators support multiple parameters which are 
>>> separated by a  ,  character.*
>>>
>>> *For example: [param1],[param2] or ,{param2}*
>>> However as far as I can see only if such multiple parameters are 
>>> documented in the operator in question.
>>>
>>> Tones
>>> On Saturday, 25 September 2021 at 01:39:53 UTC+10 Álvaro wrote:
>>>
 It works fine. I tried to find a alternative, but I wasn't lucky.

 When I resee your filter, I remember about the multiple parameters in 
 filter operator with commas (from last version, 5.1.23). And we can add a 
 second filter run that it applies your filter to result of first run. Then 
 you can rewrite your filter something like this (in filtering transclusion)
 {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
 :filter[tags[]count[]compare:eq[4]]  }}}

 Although maybe it be less understandble for you.


 El viernes, 24 de septiembre de 2021 a las 10:59:50 UTC+2, 
 jn.pierr...@gmail.com escribió:

> That's fine by me.
>
> And yes filters are fun even if sometimes a bit tricky.
>
> So for the fun of it, you could arrange your filter so that the input 
> would be the 4 tags you want.
>
> something like that:
>
> \define fun(tags)
> <$set variable=occ filter="[[$tags]put your filter code 
> here...count[]]">Seen <> tiddlers with tags $tags$
> \end
>
> Sometimes, this fun has you coding javascript filter operator. Would 
> this be the case here? I have not thought about it yet.
>
> cheers,
>
>
> Le vendredi 24 septembre 2021 à 03:54:34 UTC+2, cj.v...@gmail.com a 
> écrit :
>
>> Me and my interest in brain age games, I couldn't help but play 
>> around with a filter to find all tiddlers that have all four specified 
>> tags, but only those four tags.
>>
>> You'll find three tiddlers in the attached json.  Download the file, 
>> and drag into some TiddlyWiki instance (TiddlyWiki.com !) to take a 
>> gander.
>>
>> There are all kinds of ways to go about doing this sort of thing, 
>> with some filter operators maybe better suited, but I find the result a 
>> bit 
>> easier for me to understand (more logical to me, or maybe more 
>> self-explanatory, because of the way my brain works, I suppose.)  Maybe 
>> just a difference between top-down view vs bottom-up view or something 
>> ...
>>
>> Yeah, I find filters fun.
>>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b5e785e5-7b0a-427d-9d29-46d3185e7aa6n%40googlegroups.com.


[tw5] Re: Question about styling tags

2021-09-25 Thread Justin H.
Whoops, meant to put "and while *not *incredibly hard to click"

On Saturday, September 25, 2021 at 10:00:53 AM UTC-4 Justin H. wrote:

> So, just a few questions, first one being is, how could I change the x for 
> removing a tag to match the font color of the text inside the tag? 
>
> Using a white tag makes it more or less invisible, and while incredibly 
> hard to click, does look a bit odd.
>
> Also, would it be possible to add a border around the tags with the same 
> color as the tag itself, but with say, 50% opacity, so the background would 
> make the border darker or lighter to prevent the tag from blending in with 
> the tiddler background?
>
> If so, what exactly would I have to add to my own stylesheet to tinker 
> with this? I'm still learning the more complex parts of tw5, so any help is 
> greatly appreciated!
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d9257f36-e3c0-4079-84d2-2942170d376en%40googlegroups.com.


[tw5] Re: Just a Filtering Code Pattern

2021-09-25 Thread TW Tones
Alvaro;

You suggested something like this
{{{ [tag[Tag 1]**,**[Tag 2],[Tag 3],[Tag 4]] 
:filter[tags[]count[]compare:eq[4]] }}}

As far as I can see this does not work on the pre-release and the t6ag 
format  [tag[Tag 1],[Tag 2],[Tag 3],[Tag 4]] (simplified)  is not documented

Does not work. So I asked if you tested this?


On Saturday, 25 September 2021 at 22:11:48 UTC+10 Álvaro wrote:

> I don't know if I understand you.
>
>
> El sábado, 25 de septiembre de 2021 a las 5:31:18 UTC+2, TW Tones escribió:
>
>> Alvaro;
>>
>> Have you tested this?
>>
>> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
>> :filter[tags[]count[]compare:eq[4]]  }}}
>>
>> I cant see it working. Here  
>> is says 
>>
>> * NEW IN: 5.1.23 Filter operators support multiple parameters which are 
>> separated by a  ,  character.*
>>
>> *For example: [param1],[param2] or ,{param2}*
>> However as far as I can see only if such multiple parameters are 
>> documented in the operator in question.
>>
>> Tones
>> On Saturday, 25 September 2021 at 01:39:53 UTC+10 Álvaro wrote:
>>
>>> It works fine. I tried to find a alternative, but I wasn't lucky.
>>>
>>> When I resee your filter, I remember about the multiple parameters in 
>>> filter operator with commas (from last version, 5.1.23). And we can add a 
>>> second filter run that it applies your filter to result of first run. Then 
>>> you can rewrite your filter something like this (in filtering transclusion)
>>> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
>>> :filter[tags[]count[]compare:eq[4]]  }}}
>>>
>>> Although maybe it be less understandble for you.
>>>
>>>
>>> El viernes, 24 de septiembre de 2021 a las 10:59:50 UTC+2, 
>>> jn.pierr...@gmail.com escribió:
>>>
 That's fine by me.

 And yes filters are fun even if sometimes a bit tricky.

 So for the fun of it, you could arrange your filter so that the input 
 would be the 4 tags you want.

 something like that:

 \define fun(tags)
 <$set variable=occ filter="[[$tags]put your filter code 
 here...count[]]">Seen <> tiddlers with tags $tags$
 \end

 Sometimes, this fun has you coding javascript filter operator. Would 
 this be the case here? I have not thought about it yet.

 cheers,


 Le vendredi 24 septembre 2021 à 03:54:34 UTC+2, cj.v...@gmail.com a 
 écrit :

> Me and my interest in brain age games, I couldn't help but play around 
> with a filter to find all tiddlers that have all four specified tags, but 
> only those four tags.
>
> You'll find three tiddlers in the attached json.  Download the file, 
> and drag into some TiddlyWiki instance (TiddlyWiki.com !) to take a 
> gander.
>
> There are all kinds of ways to go about doing this sort of thing, with 
> some filter operators maybe better suited, but I find the result a bit 
> easier for me to understand (more logical to me, or maybe more 
> self-explanatory, because of the way my brain works, I suppose.)  Maybe 
> just a difference between top-down view vs bottom-up view or something ...
>
> Yeah, I find filters fun.
>


-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d59ad16a-d51c-4d14-be24-0394ef067cd1n%40googlegroups.com.


[tw5] Question about styling tags

2021-09-25 Thread Justin H.
So, just a few questions, first one being is, how could I change the x for 
removing a tag to match the font color of the text inside the tag? 

Using a white tag makes it more or less invisible, and while incredibly 
hard to click, does look a bit odd.

Also, would it be possible to add a border around the tags with the same 
color as the tag itself, but with say, 50% opacity, so the background would 
make the border darker or lighter to prevent the tag from blending in with 
the tiddler background?

If so, what exactly would I have to add to my own stylesheet to tinker with 
this? I'm still learning the more complex parts of tw5, so any help is 
greatly appreciated!

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/14f0d154-c063-491f-8cf4-ef42b81e60c6n%40googlegroups.com.


[tw5] Re: Just a Filtering Code Pattern

2021-09-25 Thread Álvaro
I don't know if I understand you.


El sábado, 25 de septiembre de 2021 a las 5:31:18 UTC+2, TW Tones escribió:

> Alvaro;
>
> Have you tested this?
>
> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
> :filter[tags[]count[]compare:eq[4]]  }}}
>
> I cant see it working. Here  
> is says 
>
> * NEW IN: 5.1.23 Filter operators support multiple parameters which are 
> separated by a  ,  character.*
>
> *For example: [param1],[param2] or ,{param2}*
> However as far as I can see only if such multiple parameters are 
> documented in the operator in question.
>
> Tones
> On Saturday, 25 September 2021 at 01:39:53 UTC+10 Álvaro wrote:
>
>> It works fine. I tried to find a alternative, but I wasn't lucky.
>>
>> When I resee your filter, I remember about the multiple parameters in 
>> filter operator with commas (from last version, 5.1.23). And we can add a 
>> second filter run that it applies your filter to result of first run. Then 
>> you can rewrite your filter something like this (in filtering transclusion)
>> {{{  [tag[Tag 1]*,*[Tag 2],[Tag 3],[Tag 4]]  
>> :filter[tags[]count[]compare:eq[4]]  }}}
>>
>> Although maybe it be less understandble for you.
>>
>>
>> El viernes, 24 de septiembre de 2021 a las 10:59:50 UTC+2, 
>> jn.pierr...@gmail.com escribió:
>>
>>> That's fine by me.
>>>
>>> And yes filters are fun even if sometimes a bit tricky.
>>>
>>> So for the fun of it, you could arrange your filter so that the input 
>>> would be the 4 tags you want.
>>>
>>> something like that:
>>>
>>> \define fun(tags)
>>> <$set variable=occ filter="[[$tags]put your filter code 
>>> here...count[]]">Seen <> tiddlers with tags $tags$
>>> \end
>>>
>>> Sometimes, this fun has you coding javascript filter operator. Would 
>>> this be the case here? I have not thought about it yet.
>>>
>>> cheers,
>>>
>>>
>>> Le vendredi 24 septembre 2021 à 03:54:34 UTC+2, cj.v...@gmail.com a 
>>> écrit :
>>>
 Me and my interest in brain age games, I couldn't help but play around 
 with a filter to find all tiddlers that have all four specified tags, but 
 only those four tags.

 You'll find three tiddlers in the attached json.  Download the file, 
 and drag into some TiddlyWiki instance (TiddlyWiki.com !) to take a gander.

 There are all kinds of ways to go about doing this sort of thing, with 
 some filter operators maybe better suited, but I find the result a bit 
 easier for me to understand (more logical to me, or maybe more 
 self-explanatory, because of the way my brain works, I suppose.)  Maybe 
 just a difference between top-down view vs bottom-up view or something ...

 Yeah, I find filters fun.

>>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c84aa10e-ef9b-47d3-a90f-f4100f3ef1b5n%40googlegroups.com.


[tw5] Re: pmario's file-backups not working in firefox with tw classic

2021-09-25 Thread PMario
Hi,
I did try it with 2.5.3 empty.html and it saves too. 
There must have been some changes to the file, which are blocking the save 
mechanism. 
I don't have a link to the plugin. It would be nice if you could provide 
one, so I can test the setting too
-m


-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7f04da26-6c69-4e18-aaf5-95c30521c18bn%40googlegroups.com.


[tw5] Re: pmario's file-backups not working in firefox with tw classic

2021-09-25 Thread PMario
Hi rouilj,

There haven't been any changes to the addOn. The exclamation mark is only 
there to see the "New Version available" button again. If there are changes 
to the plugin the icon should show an exclamation mark too. ... Then if you 
click the GotIt! button the icon should change back to the standard icon. 

But as I wrote. There haven't been any changes. ... 

I did test it with empty.html 2.9.2 from classic.tiddlywiki.com. Saving 
works as expected. ... 

So the question is: Did you change something prior to the failure. I'll 
have to test it with an older version. 
-m

On Friday, September 24, 2021 at 7:11:20 PM UTC+2 rouil...@gmail.com wrote:

>
> Hi all:
> At some point in the past 4 months or so I lost the ability to save a 
> twclassic
> tiddlywiki with pmario's file-backups addon.
>
> I get the following screen:
> [image: 2021-09-24 12_39_59-tbGTD - a tiddlywiki based system to Get 
> Things Done — Mozilla Firefox.png]
>
> this happens even if I restart the browser so the file is a fresh load.
>   * the file is readable/writable.
>   * the pathname is fine under: 
> /c/Users/username/Downloads/tiddlywiki/tbGTD/tbGTD.html where username is 
> lower case ascii characters no spaces etc.
>   * the file is in the same place
>   * the configured backup subdirectory is readable and writable as are all 
> the backups
>  in the directory.
> If I load another instance of the same file in my browser, the file loads 
> fine, but I
> don't get a warning that there are two instances loaded.
>
> The popup for file-backup is:
>
> [image: file_backup_panel.png]
>
> I am not sure why there is an '!' button there. Clicking on it changes the 
> text to "Got it" and changes the 'homepage & support' text to "New Version 
> Available?"
>
> Environment: Firefox 92.0.1 (64 bit), file-backup 0.4.0, windows 10.
> The TW version is: 2.5.3 from Aug 18, 200 with tbGTD installed.
>
> Anybody got an idea how to fix this?
>
> Thanks.
>
> -- rouilj
>
>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6291a238-15d7-42bf-9a36-fd093116fb17n%40googlegroups.com.