HI Danielo,
for my visualeditor plugin I wrote a shell script to automatically create 
the tiddlywiki.files as there were lot (more than a hundred) files to load 
for the extension. May be it will be some use to you:
https://github.com/buggyj/TW5-visualeditor/tree/master/build the files are 
mktwfiles.sh and twfileshelper.sh.

cheers

BJ
On Wednesday, April 23, 2014 8:52:59 PM UTC+1, Danielo Rodríguez 
wrote:<https://github.com/buggyj/TW5-visualeditor/blob/master/build/twfileshelper.sh>
>
> Hello,
>
> I'm adding codemirror modes , themes and addons. 
> But this is a very hard work since I have to create lots of tiddlers and 
> add them the corresponding fields and tags.  Is there any way to do this 
> process more easy?
>
> In other order of things I would like to discuss the better way to make 
> the plugin easily configurable.
> I would like to let users change dynamically the mode and the theme. 
> Currently I have an approach that is working, but I load all the modules 
> despite they are needed by the current mode or not. I don't know if this 
> cause poor performance. I want to define a set of basic configurations also 
> that should be loaded if nothing is defined.
>
> I'm making good progress with it but I need a bit of help here.
>
> Thanks in advance.
> Here is the current codemirror config, a MONSTER
>
> {
>   "require": [
>       "$:/plugins/tiddlywiki/codemirror/addon/dialog.js",
>       "$:/plugins/tiddlywiki/codemirror/addon/searchcursor.js",
>       "$:/plugins/tiddlywiki/codemirror/keymap/vim.js",
>       "$:/plugins/tiddlywiki/codemirror/keymap/emacs.js",
>       "$:/plugins/tiddlywiki/codemirror/mode/vbscript.js",
>       "$:/plugins/tiddlywiki/codemirror/mode/javascript.js",
>       "$:/plugins/tiddlywiki/codemirror/mode/css.js",
>       "$:/plugins/tiddlywiki/codemirror/mode/php.js",
>       "$:/plugins/tiddlywiki/codemirror/mode/htmlmixed.js",
>       "$:/plugins/tiddlywiki/codemirror/mode/htmlembedded.js",
>       "$:/plugins/tiddlywiki/codemirror/addon/edit/closebrackets.js",
>       "$:/plugins/tiddlywiki/codemirror/addon/edit/closetag.js",
>       "$:/plugins/tiddlywiki/codemirror/addon/fold/comment-fold.js",
>         "$:/plugins/tiddlywiki/codemirror/addon/fold/xml-fold.js",
>         "$:/plugins/tiddlywiki/codemirror/addon/fold/brace-fold.js",
>         "$:/plugins/tiddlywiki/codemirror/addon/fold/foldgutter.js",
>         "$:/plugins/tiddlywiki/codemirror/addon/fold/foldcode.js",
>       "$:/plugins/tiddlywiki/codemirror/keymap/extra.js",
>       "$:/plugins/tiddlywiki/codemirror/addon/edit/matchbrackets.js"
>   ],
>   "configuration": {
>       "theme": "erlang-dark",
>       "mode":"javascript",
>       "showCursorWhenSelecting": true,
>       "indentUnit":4,
>       "lineWrapping":false,
>       "autoCloseBrackets" : true,
>        "autoCloseTags" : true,
>       "foldGutter": true,
>       "matchBrackets":true,
>       "gutters": ["CodeMirror-linenumbers", "CodeMirror-foldgutter"]
>   }
> }
>
>

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to