[tw5] Re: Is this a bug? Add tag to a tiddler

2020-04-25 Thread Mohammad
Jed, Thank you for clarification!


On Saturday, April 25, 2020 at 2:49:22 PM UTC+4:30, Jed Carty wrote:
>
> The tags field is always sorted by the core, sometimes this only happens 
> when the wiki is reloaded, but the core will always sort the tags field 
> into alphabetical order when the wiki starts, the order of the tags field 
> at other times isn't reliable and won't be saved.
>

-- 
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/cf3d65ed-2640-4863-9e4c-5092c7829946%40googlegroups.com.


[tw5] Re: Is this a bug? Add tag to a tiddler

2020-04-25 Thread Jed Carty
The tags field is always sorted by the core, sometimes this only happens 
when the wiki is reloaded, but the core will always sort the tags field 
into alphabetical order when the wiki starts, the order of the tags field 
at other times isn't reliable and won't be saved.

-- 
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/058c282a-0d9f-45bc-8357-f20ad14c911b%40googlegroups.com.


[tw5] Re: Is this a bug? Add tag to a tiddler

2020-04-24 Thread Mohammad
Thanks Mark!

On Saturday, April 25, 2020 at 12:15:08 AM UTC+4:30, Mark S. wrote:
>
> You're right. Or almost. Using the $tags attribute with list-ops ends up 
> sorting the list. Add tag "abc" to see the sorting.
>
> But if you set it up this way:
>
> <$action-listops $tiddler=<> $field="tags" 
> $subfilter="+[prepend[done]]" />
>
> the it will *prepend* "done", and if you do it this way:
>
> <$action-listops $tiddler=<> $field="tags" 
> $subfilter="+[append[done]]" />
>
> it will *append* "done".
>
> So I guess using "$tags" has a "feature" that the result always gets 
> sorted.
>
> On Friday, April 24, 2020 at 12:28:09 PM UTC-7, Mohammad wrote:
>>
>> Mark have you noted to the last line of code and what it shows?
>>
>> ''Tags'': <$text text={{{[get[tags]]}}}/>
>>
>> This shows the real order I think!
>>
>> But as you said in the tags-wrapper (under subtitle) always sows them 
>> sorted!
>>
>

-- 
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/2cf55faf-91cd-4ae6-8408-736e031fbaa6%40googlegroups.com.


[tw5] Re: Is this a bug? Add tag to a tiddler

2020-04-24 Thread 'Mark S.' via TiddlyWiki
You're right. Or almost. Using the $tags attribute with list-ops ends up 
sorting the list. Add tag "abc" to see the sorting.

But if you set it up this way:

<$action-listops $tiddler=<> $field="tags" 
$subfilter="+[prepend[done]]" />

the it will *prepend* "done", and if you do it this way:

<$action-listops $tiddler=<> $field="tags" 
$subfilter="+[append[done]]" />

it will *append* "done".

So I guess using "$tags" has a "feature" that the result always gets sorted.

On Friday, April 24, 2020 at 12:28:09 PM UTC-7, Mohammad wrote:
>
> Mark have you noted to the last line of code and what it shows?
>
> ''Tags'': <$text text={{{[get[tags]]}}}/>
>
> This shows the real order I think!
>
> But as you said in the tags-wrapper (under subtitle) always sows them 
> sorted!
>

-- 
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/4bd61055-11f1-4e7c-8569-d8e40bde478b%40googlegroups.com.


[tw5] Re: Is this a bug? Add tag to a tiddler

2020-04-24 Thread Mohammad
Mark have you noted to the last line of code and what it shows?

''Tags'': <$text text={{{[get[tags]]}}}/>

This shows the real order I think!

But as you said in the tags-wrapper (under subtitle) always sows them 
sorted!

-- 
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/511cebd7-b33d-4e8a-a52a-a45522f92c88%40googlegroups.com.


[tw5] Re: Is this a bug? Add tag to a tiddler

2020-04-24 Thread 'Mark S.' via TiddlyWiki
Whenever I try it, no matter which way, the tag list is sorted 
alphabetically. 
You can see this by adding a "abc" tag to the top. I think
the tag field is special, and TW takes extra steps to make sure it is 
sorted. 

On Friday, April 24, 2020 at 9:10:18 AM UTC-7, Mohammad wrote:
>
> Why $checkbox adds tag to the end of tags field but $action-listops to 
> beginning?
>
> Why not they behave the same?
>
>
> <$button> tag by button
> <$action-listops $tiddler=<> $tags="+[append[done]]" />
> 
>
>
> <$checkbox tag=done>Is it done?
>
>
> ''Tags'': <$text text={{{[get[tags]]}}}/>
>
>
> To reproduce drag and drop the attached tiddler into 
> https://tiddlywiki.com/
> and use $button and $checkbox and see the result!
>
> --Mohammad
>
>

-- 
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/8fc3815b-8907-4970-ba33-5c3761f45f79%40googlegroups.com.


[tw5] Re: Is this a bug? Add tag to a tiddler

2020-04-24 Thread Mohammad
Mat,
 If you try the example, strangely append add tags to the beginning!
even with $tags="done" still $listops adds tag to the beginning!

--Mohammad

On Friday, April 24, 2020 at 9:27:35 PM UTC+4:30, Mat wrote:
>
> Append = add to end
>
> Checkbox adds a tag, not sure where, but the system sorts them.
>
> <:-)
>
>

-- 
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/cc8a0690-c24c-448e-a70e-6d6892282f96%40googlegroups.com.


[tw5] Re: Is this a bug? Add tag to a tiddler

2020-04-24 Thread Mat
Append = add to end

Checkbox adds a tag, not sure where, but the system sorts them.

<:-)

-- 
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/d9546d35-7b59-4c3a-9bec-03a2afad91de%40googlegroups.com.


[tw5] Re: Is this a bug? Add tag to a tiddler

2020-04-24 Thread Mohammad
For email reader, the first sentences is corrected as

Why $checkbox adds tag to the end of tags field but $action-listops to 
beginning?

-- 
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/56caf34b-7e55-4e7c-94b1-3e4117856509%40googlegroups.com.