On Wednesday, April 23, 2014 9:52:59 PM UTC+2, Danielo Rodríguez wrote:
>
> 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?
>

IMO the only way to deal with cm is to automate the build process.
... a command line driven build process, that loads the .js libraries, adds 
the .meta files to make them work with TW and build a custom edition.
... or a TW based build process, that let's you download a striped down 
version. 
 

> In other order of things I would like to discuss the better way to make 
> the plugin easily configurable.
>

I think configuration is good. But I personally think a good documentation, 
how to add modes and stuff would be better, than to create a monster 
plugin, that contains 80% of stuff, that I don't need and _don't want_. .. 
speaking from a users point of view.  
 

> I would like to let users change dynamically the mode and the theme.
>

Theming is a matter of taste. So what ever your default setting is, it will 
be wrong for someone. So you basically would need to include all themes, 
which makes the stuff bloated. ...
eg: I personally don't like dark themes. 
 

> 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.
>

It mainly needs memory. Since TW has a problem already with mobile devices, 
imo small is beautiful. 

I want to define a set of basic configurations also that should be loaded 
> if nothing is defined.
>

Let the user decide. ... I think for a TW5 default configuration, you have 
the wrong modes.
For TWc I did include: tiddlywiki, javascript, css, html, xml, python

I'm pretty sure, you may ask yourself, why python is part of this list, 
since TW doesn't use it. ... TiddlyWeb does :)

So as a user I'd ask: Why .. php? vbscript? 

Thanks in advance.
> Here is the current codemirror config, a MONSTER
>

I think, there should be a custom build process that can create a 
personalized edition, that only contains the stuff that is really needed. 
eg: only one keymap mode ... preferably a small one. 

-------------

So you could create something, that contains the bare minimum (modes), that 
works with TW5 ... js, css, html ... 
one dark theme, one light theme, basic keybindings. 
or
You create something, that meets your needs, as your personal edition, 
which can be used by others as a reference to create there own editions. 

------------
If you are interested in the TWclassic setting you can have a look at my cm 
space: http://codemirror.tiddlyspace.com/
As you can see. There are 2 highlighting modes. a) highlight overlay for 
tiddlers .. b) highlighting in edit mode. 

I did record a 6 min video, how to set things up with TWc and TiddlySpace. 
https://www.youtube.com/watch?v=J5tq5xv0FHU  .... This may give you an 
overview, how I did it. 

Main docs: http://codemirror.tiddlyspace.com/#CodeMirrorPluginInfo
I did split the configuration into 2 parts a "global" setting and a "mode" 
setting: http://codemirror.tiddlyspace.com/#CodeMirrorConfig

The __completely outdated__ build process is at github. It uses build 
tools, that where used to create TWclassic. Now TW5 is able to create a TWc 
version.
I didn't update the build process, since the new mechanism is completely 
different. https://github.com/pmario/tw.CodeMirrorPlugin

have fun!
-mario

-- 
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