Filter question: !<currentTiddler>

56 views
Skip to first unread message

Atronoush Parsi

unread,
May 17, 2021, 4:00:57 AM5/17/21
to tiddl...@googlegroups.com
  1. open https://tiddlywiki.com/
  2. create three tiddlers called Tid01 Tid02 Tid03 all tagged with new
 
I wrote the below wikitext in Tid01

<$list filter="[tag[new]!<currentTiddler>]">

</$list>

In another test I wrote the below wikitext in Tid01

<$list filter="[tag[new]!is[current]">

</$list>



Both give the same result! Do you recommend the first snippets!

--Atro

PMario

unread,
May 17, 2021, 7:11:00 AM5/17/21
to TiddlyWiki
Hi,
I think both are good. IMO it depends on your personal taste.

Pereformace wise they should be very similar and the number is already limited by [tag[new]
-m

TW Tones

unread,
May 17, 2021, 8:45:13 PM5/17/21
to TiddlyWiki
Do look at this https://tiddlywiki.com/#Performance

[all[tiddlers]tag[x]!is[current].. may be better for performance even although there is a presumed all[] in your filter.

Tones

Mohammad Rahmani

unread,
May 18, 2021, 12:27:56 AM5/18/21
to tiddl...@googlegroups.com
On Tue, May 18, 2021 at 5:15 AM TW Tones <anthony...@gmail.com> wrote:
Do look at this https://tiddlywiki.com/#Performance

Good point!

[all[tiddlers]tag[x]!is[current].. may be better for performance even although there is a presumed all[] in your filter.

I like to have some good practice, and this seems one of them!

Tones

On Monday, 17 May 2021 at 21:11:00 UTC+10 PMario wrote:
Hi,
I think both are good. IMO it depends on your personal taste.

Pereformace wise they should be very similar and the number is already limited by [tag[new]
-m
On Monday, May 17, 2021 at 10:00:57 AM UTC+2 Atronoush wrote:
  1. open https://tiddlywiki.com/
  2. create three tiddlers called Tid01 Tid02 Tid03 all tagged with new
 
I wrote the below wikitext in Tid01

<$list filter="[tag[new]!<currentTiddler>]">

</$list>

In another test I wrote the below wikitext in Tid01

<$list filter="[tag[new]!is[current]">

</$list>



Both give the same result! Do you recommend the first snippets!

--Atro

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b6d3aed1-a025-4a09-b90d-7ed2c94622d1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages