Is this a bug: removing a tiddler which is tagged say with xx is not removed from xx list filed

45 views
Skip to first unread message

Mohammad

unread,
Dec 18, 2019, 11:27:21 PM12/18/19
to TiddlyWiki
For example 

  1. you have 5 tiddlers all tagged with xx
  2. reorder them using the tag pill (this will add a list field to xx with ordered title of above 5 tiddlers)
  3. and then delete two of them
  4. now open the xx tiddler and look at the list field you see deleted tiddlers still are listed there!!  this will remain until you reorder them again!

why?

PMario

unread,
Dec 19, 2019, 4:08:36 AM12/19/19
to TiddlyWiki
On Thursday, December 19, 2019 at 5:27:21 AM UTC+1, Mohammad wrote:
now open the xx tiddler and look at the list field you see deleted tiddlers still are listed there!!  this will remain until you reorder them again!

why?

It's an oversight.
Does it cause problems for you? Then file an issue at github.
-m

Jeremy Ruston

unread,
Dec 19, 2019, 8:47:37 AM12/19/19
to TiddlyWiki
Hi Mohammad

It is actually intentional. The alternative behaviour would be that when modifying a tiddler to remove a tag the core would also update any of the tag list fields referencing that tiddler. The core avoids such complicated semantics in the tiddler store to keep the foundations of TiddlyWiki simple and predictable.

Meanwhile, the current behaviour can be very useful. It means that re-tagging a tiddler will generally remember its position in the list.

Best wishes

Jeremy.


--
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/38d68deb-4e36-49b3-afbd-5cdf3fa0c145%40googlegroups.com.

Mohammad

unread,
Dec 19, 2019, 9:23:50 AM12/19/19
to TiddlyWiki
Thanks Jeremy!

@Mario
Thank you for your reply! these kind of things make confusion!
 I will ask to know what is the reason for such behavior.


--Mohammad

TonyM

unread,
Dec 19, 2019, 5:18:20 PM12/19/19
to TiddlyWiki
Mohammad,

If you remove a tag after setting a precise order (thus updating the list) but add the tag back immediately it previous position is retained. Perhaps this is a side effect, but its a good one. 

The list field could be considered a system field that is used to deliver a particular functionality. If you want to use the list field rather than the tag filters then you could add an additional filter to exclude the items in the list that do not meet a particular condition such as not a tiddler, not a tag, not tagging.

I did look into the mechanism that uses the list field for tag order and it is particular in its implementation and has some gotchas for the nooby.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages