[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-07 Thread Danielo Rodríguez
Hello Mans, If you have adopted Matabelle's solution I think you should stick to it. My macro is just a patch El jueves, 7 de mayo de 2015, 8:44:13 (UTC+2), Måns escribió: Hi Matabele Great :-) Thank you very much!! I simply pasted the code from the clone button into your maketid widget -

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-07 Thread Måns
Hi Matabele I edited your MakeTid widget: Changed all tw- labels to tm-labels Now it seems to almost work as I hoped I still have some problems with new titles (it creates tiddlers titled NewTiddler (not current tiddler title) and adds 1, 2, 3 to it... Cheers Måns Mårtensson Den

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-07 Thread Måns
Tip: Scroll to the top of the story river to see it in action... (skjul means hide, vis means show - ny means new... Den torsdag den 7. maj 2015 kl. 10.03.04 UTC+2 skrev Måns: Hi again Now I made it work :-) http://xn--mns-ula.dk/kinabog/ The trick was to inject the current tiddler

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-07 Thread Måns
EDIT: Sorry... I was to quick ... It didn't suppress opening the clone for editing anyway Den torsdag den 7. maj 2015 kl. 08.44.13 UTC+2 skrev Måns: Hi Matabele Great :-) Thank you very much!! EDIT: Sorry... I was to quick ... It didn't suppress opening the clone for editing

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-07 Thread Måns
Hi again Now I made it work :-) http://xn--mns-ula.dk/kinabog/ The trick was to inject the current tiddler title - and tags into the maketid widget's attribute values and set the current tiddler as the template... Cheers Måns Mårtensson Den torsdag den 7. maj 2015 kl. 09.42.14 UTC+2 skrev

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-07 Thread Måns
Thanks Danielo :-) Den torsdag den 7. maj 2015 kl. 09.32.38 UTC+2 skrev Danielo Rodríguez: Hello Mans, If you have adopted Matabelle's solution I think you should stick to it. My macro is just a patch El jueves, 7 de mayo de 2015, 8:44:13 (UTC+2), Måns escribió: Hi Matabele Great :-)

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-07 Thread Måns
Hi Matabele Great :-) Thank you very much!! I simply pasted the code from the clone button into your maketid widget - and it just works :-) $maketid edit=no$button message=tm-new-tiddler param=currentTiddler tooltip={{$:/language/Buttons/Clone/Hint}}

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-07 Thread Matabele
Hi Mans I will get around to updating my widgets for the more recent versions of TW sometime soon -- they were built for the old version and will need various code tweaks. Don't know why the $maketid widget isn't picking up the title specified in the parameters -- it was designed to do so.

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-07 Thread Måns
Hi Matabele Don't know why the $maketid widget isn't picking up the title specified in the parameters -- it was designed to do so. It did - it was just me. I tried to use your maketid widget with no attributes set and the core clone button which have: param=currenTiddler and hoped that

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-06 Thread Danielo Rodríguez
I made the same question some time ago. I ended up creating a small javascript macro for it and a pull request to the core. The pull request was to allow prefixes like zeroes and spaces. I can share that macro if you are interested -- You received this message because you are subscribed to

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-06 Thread Danielo Rodríguez
Just to be clear, the only thing the macro does is returning a new unique name, if I remember well my own ideas... -- 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

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-06 Thread Måns
Hi Danielo Yes please :-) Do you think I can combine it with an action-setfield widget message to silently create a new tiddler with a unique title based on the current tiddler title every time I click the button? eg. New tiddler 1, New tiddler 2 etc ... Cheers Måns Mårtensson Den onsdag

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-06 Thread Måns
Hi c pa Thank you very much - however I can't see how your code will let me create a new tiddler title every time I click the testButton? 1) Silently create tiddlers with new titles based on the first (current) tiddler's title (not a clone) 2) Silently create multiple clones of the current

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-06 Thread Matabele
Hi Mans Perhaps this http://gwiz.tiddlyspot.com/#:MakeTidWidget%20sample-template meets your needs? regards On Tuesday, May 5, 2015 at 10:08:33 AM UTC+2, Måns wrote: Hi TwWizards How do I make a clone button which creates tiddlers silently? As I understand I have to use the

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-05 Thread Mat
Just a chime in that I'd like to know too (for the FastNewTiddler http://fastnewtiddler.tiddlyspot.com/project) :-) On Tuesday, May 5, 2015 at 10:08:33 AM UTC+2, Måns wrote: Hi TwWizards How do I make a clone button which creates tiddlers silently? As I understand I have to use the

[tw] Re: How do I make a clone button which creates tiddlers silently?

2015-05-05 Thread 'c pa' via TiddlyWiki
This works: \define setfield(tiddlerName,templateName,fieldName) $set name=fieldValue value={{$templateName$!!$fieldName$}} $action-setfield $tiddler=$tiddlerName$ $field=$fieldName$ $value=fieldValue / /$set \end \define createSilentTarget(tiddlerName,templateName,buttonName)