Updates to search

10 views
Skip to first unread message

mark.ke...@gmail.com

unread,
Sep 30, 2025, 6:34:09 PM (2 days ago) Sep 30
to TiddlyWikiClassic
Hello all

I made a quick plugin below but in looking through some of the updates made, it may no longer be necessary. My goal was to create a minimum search length, but I think as of 2.9.4 , search requires minimum 2 characters before it activates.

//{{{
config.macros.search.doSearch = function(txt)
{
if(txt.value.length > 2) {
story.search(txt.value,config.options.chkCaseSensitiveSearch,config.options.chkRegExpSearch);
txt.setAttribute("lastSearchText",txt.value);
}
};
//}}}

Thanks
Mark Kerrigan

Yakov

unread,
Oct 1, 2025, 4:38:03 AM (23 hours ago) Oct 1
to TiddlyWikiClassic
Hello Mark, it's in the core indeed, although it may be a good idea to add an option to configure this, like txtMinSearchLength

среда, 1 октября 2025 г. в 01:34:09 UTC+3, mark.ke...@gmail.com:
Reply all
Reply to author
Forward
0 new messages