[twdev] [TW5] Is anyone able to turn jscolor into a plugin?

2014-04-07 Thread Stephan Hradek
Hi! As FireFox does not (seem to) have a colorpicker for (for example the) color fields of tiddlers, I searched a bit and found jscolorhttp://jscolor.comwhich I think is really useful. My problem in converting it is that I have no idea: a) where to patch/modify code so that jscolor.color(

[twdev] Re: [TW5] Is anyone able to turn jscolor into a plugin?

2014-04-07 Thread Stephan Hradek
The nightly FF won't run on my old OS X :( -- 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 tiddlywikidev+unsubscr...@googlegroups.com. To post to this group,

Re: [twdev] Feature request for $:/core/modules/widgets/fieldmangler.js with code

2014-04-07 Thread Arlen Beiler
Hi guys, just checking in to see how everything is going. I'd love to see these two bits in 5.0.9, but if there is other things you are waiting on, that's fine. Also, the newtiddler bit answers everything in skeeve's plugin without needing a separate tiddler for the skeleton. I'm also adding a

Re: [twdev] Feature request for $:/core/modules/widgets/fieldmangler.js with code

2014-04-07 Thread Danielo Rodríguez
Hello Arlen Could you explain a little bit what are you talking about? Some of your sentences makes me curious about the bits you talk about. But since you have commented here and in github I'm a bit lost. Are those things to be implemented in the next TW5 release? -- You received this

Re: [twdev] Feature request for $:/core/modules/widgets/fieldmangler.js with code

2014-04-07 Thread Jeremy Ruston
Hi Arlen I'd love to see these two bits in 5.0.9, but if there is other things you are waiting on, that's fine Apologies, I've been tied up for the last few days with the saner-filters branch where I'm working on improving filter performance. For that matter, why don't we just use the .tid

Re: [twdev] [tw5] drag n drop plugins and tiddlyweb/tank

2014-04-07 Thread Jeremy Ruston
Hi Chris This is because it is trying to save to a bag that does not exist: default. The tiddler appears to be assigned this bag when it is dropped (or maybe it gets it from the origin?) Ah, yes, sounds like the plugin is coming in with a bag field, and TW5 is blindly accepting it. I guess we

Re: [twdev] [tw5] drag n drop plugins and tiddlyweb/tank

2014-04-07 Thread chris . dent
On Mon, 7 Apr 2014, Jeremy Ruston wrote: This is because it is trying to save to a bag that does not exist: default. The tiddler appears to be assigned this bag when it is dropped (or maybe it gets it from the origin?) Ah, yes, sounds like the plugin is coming in with a bag field, and TW5 is

Re: [twdev] Re: [TW5] Is anyone able to turn jscolor into a plugin?

2014-04-07 Thread Stephan Hradek
Am Montag, 7. April 2014 18:53:22 UTC+2 schrieb Jeremy Ruston: Hi Stephan The edit-text widget has a postRender method that is called immediately after the DOM nodes for the text input have been created. So if you subclass it you can define that method and have it call jscolor to

Re: [twdev] [tw5] drag n drop plugins and tiddlyweb/tank

2014-04-07 Thread Jeremy Ruston
Hi Chris Yes, I just tried simply removing the contents of the bag field rather than setting it to an appropriate bag and the right thing happened. So I would guess killing that field on drag would be the right way to go. Great, I'll fix that for 5.0.9. If a tiddler has the type

Re: [twdev] Re: [TW5] Is anyone able to turn jscolor into a plugin?

2014-04-07 Thread Jeremy Ruston
Both sounds promising. Could you give me links to github where I could find the relevant stuff? Sure. The edit-text widget is here (highlighted on the line that invokes postRender): https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/widgets/edit-text.js#L66 You'll find

Re: [twdev] Feature request for $:/core/modules/widgets/fieldmangler.js with code

2014-04-07 Thread Arlen Beiler
Ok, finally got it. processVariables tiddler:new-tiddler-test This takes the tiddler text in the specified tiddler and calls substituteVariableReferences. It also has a text attribute for passing straight text. This is a javascript macro. /*\ title: $:/Arlen/macros/processVariables.js type:

Re: [twdev] [tw5] drag n drop plugins and tiddlyweb/tank

2014-04-07 Thread chris . dent
On Mon, 7 Apr 2014, Jeremy Ruston wrote: To get the tiddler back as a tiddler in JSON form it needs to put with a 'type' field that is not application/json. Ouch. This is tricky. Is it too late for a single tiddler that contains tiddlers to have a type of its own like

Re: [twdev] Feature request for $:/core/modules/widgets/fieldmangler.js with code

2014-04-07 Thread Arlen Beiler
OK, everyone. That's done and working. Now I am able to use a separate tiddler as the template, or a macro in the same one. If it is a separate tiddler, it only uses the text of the tiddler. It does not worry about anything else. Here is the macro:

Re: [twdev] Feature request for $:/core/modules/widgets/fieldmangler.js with code

2014-04-07 Thread Arlen Beiler
Danielo, this is pull request 510 and centers around creating new tiddlers using the x-tiddler format, aka .tid files. I wanted a way to be able to create new tiddlers with whatever fields I wanted and whatever text, and have the template in the same tiddler as where it was used so I wouldn't need

[twdev] Multitids and plugins

2014-04-07 Thread Arlen Beiler
Hi Everyone, It would be nice if plugin bunch tiddlers could be multitid format instead of JSON. Or is the multitid format not versatile enough. Or a way to generate the JSON would be nice too. Just a thought. --Arlen -- You received this message because you are subscribed to the Google Groups

Re: [twdev] [tw5] drag n drop plugins and tiddlyweb/tank

2014-04-07 Thread PMario
On Monday, April 7, 2014 8:10:10 PM UTC+2, Chris Dent wrote: Ah, yes, sounds like the plugin is coming in with a bag field, and TW5 is blindly accepting it. I guess we should remove the bag field on import so that the same processing would occur as with a manually newly created

[twdev] Re: Multitids and plugins

2014-04-07 Thread PMario
Hi Arlen, Did you see: How to create plugins in the browser at http://tiddlywiki.com ? Can you describe your usecase a bit closer? -mario -- You received this message because you are subscribed to the Google Groups TiddlyWikiDev group. To unsubscribe from this group and stop receiving emails

Re: [twdev] Re: Multitids and plugins

2014-04-07 Thread Arlen Beiler
Well, that's the use case. I do remember seeing it but forgot about it. Thanks On Mon, Apr 7, 2014 at 5:46 PM, PMario pmari...@gmail.com wrote: Hi Arlen, Did you see: How to create plugins in the browser at http://tiddlywiki.com ? Can you describe your usecase a bit closer? -mario --

Re: [twdev] Re: Multitids and plugins

2014-04-07 Thread Arlen Beiler
Hey, another question about that. Is that dependants or dependancies? On Mon, Apr 7, 2014 at 6:05 PM, Arlen Beiler arlen...@gmail.com wrote: Well, that's the use case. I do remember seeing it but forgot about it. Thanks On Mon, Apr 7, 2014 at 5:46 PM, PMario pmari...@gmail.com wrote: Hi

Re: [twdev] Feature request for $:/core/modules/widgets/fieldmangler.js with code

2014-04-07 Thread Danielo Rodríguez
Hello Arlen. I suspect your macro can be useful for some of my proyects but I'm not sure. What does it exactly? I tried to deduce reading the code with no luck. Do you have any running example? Thank you! El lunes, 7 de abril de 2014 23:03:59 UTC+2, Arlen Beiler escribió: Danielo, this is