[Crossposted from the main TW group here: 
https://groups.google.com/forum/#!topic/tiddlywiki/XQ90336dG2w]

I should probably begin by saying that I am the noobiest of noobs. I know 
nothing about coding, just dipping my toes in for the first time. So I have 
a super, super basic question. 

I'm trying to make a modification to the CodeMirror autocomplete plugin. In 
particular, instead of autocompleting any word in the current tiddler, or 
autocompleting HTML, I want it to autocomplete tiddler titles (think Roam 
Research); basically I'm trying to do what SnowGoon's TW5-extendedit 
<https://github.com/snowgoon88/TW5-extendedit> plugin does, except in 
CodeMirror. But CodeMirror is written in JavaScript, not WikiText. So my 
question is this: how do I load, say, the text of a tiddler, or the title 
of a tiddler, into a variable in JavaScript? Is there a list of methods 
somewhere? Reading through code from SnowGoon's plugin I came across the 
command "$tw.wiki.getTiddlerData()", but I don't know exactly how it works, 
or what other similar commands there are. I tried looking through the 
developer documentation for TW <https://tiddlywiki.com/dev/> but couldn't 
find anything (I'm guessing this is because I failed to search well enough 
rather than because it's not there). Could anyone point me to the correct 
place in the documentation, or explain how to do this? 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/tiddlywikidev/f49d25b7-b168-4ec7-bde8-c50df5da4972%40googlegroups.com.

Reply via email to