Mohammad,
for more than a year I have been trying to exactly this working.
Thanks a lot!
Pit
Am 04.04.2019 um 17:21 schrieb Mohammad:
Hi Josiah,
You may like the below macro!
|
\define append-text(tidTitle,text:"",btnLabel:"Append Text",sep:"<br>")
<$button>$btnLabel$
<$list
variable="newText"filter="[<__tidTitle__>get[text]addsuffix<__sep__>addsuffix<__text__>]">
<$action-setfield $tiddler=<<__tidTitle__>>text=<<newText>>/>
</$list>
</$button>
\end
|
*Examples*
Test on Tiddlywiki.com. Create two tiddlers, titles TidA and TidB*
*
|
|Example 1:
<<append-text tidTitle:"Tidb" text:"This is another text">>
Example 2:
<$macrocall $name=append-text tidTitle="TidB" text={{TidA}} sep=" " />|
|
Remarks
Note changing a field needs some kind of triggering widgets! So, here
I used a button!
* *tidTitle *gets the title of tiddler you want to append text to it
* *text *the text to be appended
* *btnLabel*: the label for button
* sep: the separator is used when appending text to end of the text
of tiddler
If you want to append text of a base tiddler use syntax of example 2.
I hope other people gives their solutions, comment for a better and
more concise macro!
--Mohammad
On Thursday, April 4, 2019 at 7:05:32 PM UTC+4:30, @TiddlyTweeter wrote:
The use case is you create a tiddler and realise it would be
better added to another (not via transclusion, rather, the literal
content of "text" is appended to another Tiddler's "text" field.).
Do you know how to do this?
Any tips appreciated.
Best wishes
Josiah
--
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 tiddlywiki+unsubscr...@googlegroups.com
<mailto:tiddlywiki+unsubscr...@googlegroups.com>.
To post to this group, send email to tiddlywiki@googlegroups.com
<mailto:tiddlywiki@googlegroups.com>.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/d8d7561c-3e99-4511-a7d2-f75f46c51bdf%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/d8d7561c-3e99-4511-a7d2-f75f46c51bdf%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
_________________________________________________________________
________________________________________________________
Ihre E-Mail-Postfächer sicher & zentral an einem Ort. Jetzt wechseln und alte
E-Mail-Adresse mitnehmen! https://www.eclipso.de
--
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/23103c3c-8a5c-c5ae-5bb1-c4f9ecda8bbb%40eclipso.ch.
For more options, visit https://groups.google.com/d/optout.