Use relevant search to add new tag

I would like to use rsort operator by @clsturgeon to add new tag by relevance, instead of alphabet.

I modify the tiddler $:/core/macros/tag-picker

Original

<$vars refreshTitle=<<qualify "$:/temp/NewTagName/refresh">> 
nonSystemTagsFilter="[tags[]!is[system]search:title<userInput>sort[]limit[8]]"
 systemTagsFilter="[tags[]is[system]search:title<userInput>sort[]limit[1]]">

Modified

<$vars refreshTitle=<<qualify "$:/temp/NewTagName/refresh">> 
nonSystemTagsFilter="[tags[]!is[system]search:title<userInput>rsort<userInput>limit[8]]" 
systemTagsFilter="[tags[]is[system]search:title<userInput>rsort<userInput>limit[1]]">

Now I can list Tags by relevance.

tags

However, the arrow keys Up and Down still following the alphabet order (See gif above as an example).

Are there any other places I should modify?

1 Like

Just a guess. Did you change the filters in the two fields: first-search-filter and second-search-filter (same tiddler) to use the rsort operator?

1 Like

Thanks @clsturgeon. Now it works for me. See an example here: https://new-tag.tiddlyhost.com/

Just create a new tiddler and add tag Wheat

2 Likes