I would try using TW's search function instead, by replacing

return {
    list: (!curWord ? [] : tiddlers.filter(function(item) {
        return item.match(regex);
    })).sort(),


with

return {
  list: 
$tw.wiki.filterTiddlers(`[all[tiddlers]search:title:literal[${curWord}]!prefix[$:/state]]`),


Steven

On Wednesday, 3 June 2020 12:56:58 UTC-4, Reet Pandher wrote:
>
> Regarding theme:
>
> I am unable to change the theme of the codemirror editor box in TW. I 
> followed the instructions given in *$:/plugins/tiddlywiki/codemirror/usage 
> *but no luck! It sticks to it's default theme.
> Themes i tried: blackboard-black 
> <https://github.com/FarhadG/code-mirror-themes/blob/master/themes/blackboard-black.css>
>  
> and blackboard.css 
> <https://github.com/codemirror/CodeMirror/blob/master/theme/blackboard.css>
>
> Regarding Autocomplete:
> I used Saq's solution 
> <https://saqimtiaz.github.io/sq-tw/code-mirror-autocomplete-demo.html> 
> for autocomplete and it works great but there is one small issue with it: 
> It requires you know the exact initial letter of the tiddler title or else 
> it won't show the correct tiddler! Is there any other modification 
> available that'll make work more like *edit-comptext* plugin. I would use 
> edit-comptext but sadly these two don't work together!
>
> Any help will be appreciated
>

-- 
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/e75528ab-3a70-416c-a6be-62f7c9687880%40googlegroups.com.

Reply via email to