Hi,

I am very new to TW and enjoy a lot is functionalities in my work for about 
2 weeks.I will be very interesting in using the completion functionality of 
codemirror https://codemirror.net/demo/complete.html. I tried to inspire 
myself on previous thread about codemirror  but did not manage to make it 
works... Maybe someone has already tried and could help me.

What I did as for now is copying the content of 
https://codemirror.net/demo/complete.html into a tiddler called 
$:/plugins/tiddlywiki/codemirror/addon/edit/autoComplete.js 
and labeled it as a application/javascript with field *library* and value* 
module-type.*
Then complete  $:/config/CodeMirror so that it reads:

{
  "require": [
      "$:/plugins/tiddlywiki/codemirror/mode/javascript/javascript.js",
      "$:/plugins/tiddlywiki/codemirror/addon/dialog/dialog.js",
      "$:/plugins/tiddlywiki/codemirror/addon/search/searchcursor.js",
    "$:/plugins/tiddlywiki/codemirror/addon/edit/autoComplete.js"
  ],

  "configuration": {
      "showCursorWhenSelecting": true
  }}

Thanks in advance for any hints...


-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/db805126-5a27-456a-aaf4-5c903b470a92%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to