You just go to the build dir and type 
./mktwfiles

I have only tried this with linux, but I expect it to work with linux like 
shells on other systems.

My plugin sources files are structured like so:

visualeditor/build
                /files
'files' contains all the files that I need to include into the plugin
'build' contains the shell scripts to make the 'tiddlywiki.files'
There are two script files: 
twfileshelper.sh contains the prototype of the entries within the 
'tiddlywiki.files'
mktwfiles.sh gathers all path/filenames of all the files inside the 
'/files' directory 
then passes them thru the twfileshelper then put the results into 
tiddlywiki.files

You would need to changes the entries that refer to my plugin with in 
twfileshelp.sh
simply change the line ""title": "$:/plugins/bj/visualeditors" to you 
plugin location.

within mktfiles the first two word " find ../files" point to the location 
of files relative
to the build directory which you may need to change to reflect your plugins 
directory structure.

On Friday, April 25, 2014 3:04:50 AM UTC+1, Danielo Rodríguez wrote:
>
> Hello BJ,
>
> Do you have any explanation of how to use it?
> Thanks for your share.
>
> El jueves, 24 de abril de 2014 20:22:49 UTC+2, BJ escribió:
>>
>>
>> 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