Wrap the content within the button with
<$list filter="[!is[system]!has[sort-key]]">

</$list>
so that on subsequent clicks only tiddlers without a sort-key will be 
updated/touched.

I believe there would also be a way to generate a list of titles without 
stop words and their matching tiddler title in a data tiddler (or JSON to 
handle other characters in the title) and use this as the input to an 
ordered list. This may leave the option to list the item twice, once 
without the stop words, once with it.

Regards
tony


On Sunday, March 22, 2020 at 12:32:54 PM UTC+11, TonyM wrote:
>
> Folks,
>
> I back my last post up with an example you can test on TiddlyWiki.com
>
> ;Exceptions before
> <$list filter="[!is[system]prefix[The ]] [!is[system]prefix[A ]] 
> [!is[system]prefix[An ]] +[sort[]]">
>
> </$list>
>
>
> <$button>
> <$list filter="[!is[system]!prefix[The ]] [!is[system]!prefix[A ]] 
> [!is[system]!prefix[An ]]">
>     <$action-setfield $field="sort-key" $value=<<currentTiddler>> />
> </$list>
> <$list filter="[!is[system]prefix[The ]]">
>     <$action-setfield $field="sort-key" $value={{{ 
> [<currentTiddler>removeprefix[The ]] }}} />
> </$list>
> <$list filter="[!is[system]prefix[A ]]">
>     <$action-setfield $field="sort-key" $value={{{ 
> [<currentTiddler>removeprefix[A ]] }}} />
> </$list>
> <$list filter="[!is[system]prefix[An ]]">
>     <$action-setfield $field="sort-key" $value={{{ 
> [<currentTiddler>removeprefix[An ]] }}} />
> </$list>
> Set ALL sort Keys
> </$button>
>
>
>
> ;Exceptions after
> <$list filter="[!is[system]prefix[The ]] [!is[system]prefix[A ]] 
> [!is[system]prefix[An ]] +[sort[sort-key]]">
>
> </$list>
>
> Notes
>
>    - The above is a first draft, and it updates every tiddler not just 
>    those with unwanted prefixes
>    - The code could be a list that feeds the prefixes into it and be much 
>    more compact.
>    - There may be a way to sort based on title except for those with a 
>    sort-key, but not sure yet
>
> Regards
> Tony
>
> On Sunday, March 22, 2020 at 10:34:46 AM UTC+11, TonyM wrote:
>>
>> Folks
>>
>> As with the prefix sort issue its a simple matter to make a sort field in 
>> every tiddler and use that instead.
>>
>> However other than prefixes in natural language including more in a title 
>> is building a compound key. This always results in complications like this. 
>> I would avoid prefixes in tiddler except as a namespace like $:/
>>
>> rregards
>> Tony populate it with a list and actions inside a button.
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/71eae390-6077-473c-8c42-72b30b1ed378%40googlegroups.com.

Reply via email to