[tw5] Re: Codemirror Theme and Autocomplete query

2020-06-03 Thread Reet Pandher
So found the issue with the theme.
I had to change *ThemeName.css* to *ThemeName* in* tiddler title *and the *name 
field *and it worked !!
Such a silly thing caused so much trouble.

On Wednesday, June 3, 2020 at 10:26:58 PM UTC+5:30, 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 
> 
>  
> and blackboard.css 
> 
>
> Regarding Autocomplete:
> I used Saq's solution 
>  
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/52a2bf9b-4e76-4206-992c-b39a91401503%40googlegroups.com.


[tw5] Re: Codemirror Theme and Autocomplete query

2020-06-03 Thread Steven X
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 
> 
>  
> and blackboard.css 
> 
>
> Regarding Autocomplete:
> I used Saq's solution 
>  
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e75528ab-3a70-416c-a6be-62f7c9687880%40googlegroups.com.


[tw5] Re: Codemirror Theme and Autocomplete query

2020-06-03 Thread Reet Pandher
swt.. this solves my remaining autocomplete woes!!
thanks tonym

On Thursday, June 4, 2020 at 7:10:41 AM UTC+5:30, TonyM wrote:
>
> Reet,
>
> Remember there is also the editor toolbar button, the link icon, which 
> allows you to search for titles, and insert them as a link. Autocomplete is 
> about completing what you type, its when tiddlywiki knows what you want. 
>
> It should not be too hard to make a link editor toolbar for system 
> tiddlers as well, or with filters so you can refine the search, perhaps 
> even to tiddlers with specific content.
>
> Regards
> Tony
>
>
> On Thursday, June 4, 2020 at 2:56:58 AM UTC+10, 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 
>> 
>>  
>> and blackboard.css 
>> 
>>
>> Regarding Autocomplete:
>> I used Saq's solution 
>>  
>> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fa3073b1-c4eb-480e-8b31-44293972c32c%40googlegroups.com.


[tw5] Re: Codemirror Theme and Autocomplete query

2020-06-03 Thread TonyM
Reet,

Remember there is also the editor toolbar button, the link icon, which 
allows you to search for titles, and insert them as a link. Autocomplete is 
about completing what you type, its when tiddlywiki knows what you want. 

It should not be too hard to make a link editor toolbar for system tiddlers 
as well, or with filters so you can refine the search, perhaps even to 
tiddlers with specific content.

Regards
Tony


On Thursday, June 4, 2020 at 2:56:58 AM UTC+10, 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 
> 
>  
> and blackboard.css 
> 
>
> Regarding Autocomplete:
> I used Saq's solution 
>  
> 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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/220ad41d-141b-4854-bb48-a883e94920be%40googlegroups.com.