Wonderful job!
Why not to have this in the core! It can have an option in the Setting to 
be displayed or hidden.

Added to TW-Scripts.

Cheers
Mohammad

On Monday, February 11, 2019 at 9:56:29 AM UTC+3:30, talha131 wrote:
>
> Tony this is not a plugin but gets the job done. 
>
> I tag this tiddler with $:/tags/TagDropdown.
>
> \define tagSortFunc(mainTag, order:"ascend")
>
> <$reveal type="match" default="ascend" text=<<__order__>> ><$action-listops  
> $tiddler=<<__mainTag__>>  $filter="[tag<__mainTag__>sortan[]]"/></$reveal>
> <$reveal type="nomatch" default="ascend" text=<<__order__>> ><$action-listops 
>  $tiddler=<<__mainTag__>>  $filter="[tag<__mainTag__>!sortan[]]"/></$reveal>
>
> \end
>
> \define sortInTagDropdown()
> <$button tooltip="Sort tiddlers A → Z" aria-label="Sort tiddlers A → Z" 
> class='tc-btn-invisible'>Sort {{!!title}} tiddlers A → Z<$macrocall 
> $name="tagSortFunc" mainTag={{!!title}}/></$button>
> <$button tooltip="Sort tiddlers Z → A" aria-label="Sort tiddlers Z → A" 
> class='tc-btn-invisible'>Sort {{!!title}} tiddlers Z → A<$macrocall 
> $name="tagSortFunc" mainTag={{!!title}} order="no-ascend"/></$button>
>
> \end
> <<sortInTagDropdown>>
>
> The result is 
>
> The eject icon is from openall plugin.
>
> This tiddler needs CSS tweaking though.
> ​
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d78085c6-e5a9-4b80-96ee-4f33063b11b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to