How to easily edit transcluded text?

149 views
Skip to first unread message

kat

unread,
Aug 18, 2019, 7:11:23 PM8/18/19
to TiddlyWiki
I have a bunch of tiddlers in my wiki that contain transcluded text from other tiddlers.

I keep finding myself going to edit a tiddler, realizing the text is transcluded from another tiddler, then having to then search for that tiddler to edit the original transcluded tiddler.

This is getting kind of frustrating so I wondered if there was a good solution that would make it easy to see in a non-invasive way that a tiddler contains transclusions, and then easily edit the transcluded tiddler without lots of awkward searching/jumping around?

thanks!

Aidan Grey

unread,
Aug 18, 2019, 7:37:58 PM8/18/19
to tiddl...@googlegroups.com
Dont you just open the tiddler, see what was handcuffed, and go directly t to that tiddler? Im confused how it could be difficult.

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e0ba47a9-b760-4d28-bc8d-b7e921820cec%40googlegroups.com.

kat

unread,
Aug 18, 2019, 8:16:23 PM8/18/19
to TiddlyWiki
It's not difficult, just inconvenient.

I have to open edit mode, close it, search for another tiddler, then edit that tiddler. It's fine on occasion but I keep running into this situation so I was wondering if anyone had any ideas for how to streamline this process.

On Monday, August 19, 2019 at 12:37:58 AM UTC+1, Aidan Grey wrote:
Dont you just open the tiddler, see what was handcuffed, and go directly t to that tiddler? Im confused how it could be difficult.

On Sun, Aug 18, 2019, 5:11 PM kat, <ededs...@gmail.com> wrote:
I have a bunch of tiddlers in my wiki that contain transcluded text from other tiddlers.

I keep finding myself going to edit a tiddler, realizing the text is transcluded from another tiddler, then having to then search for that tiddler to edit the original transcluded tiddler.

This is getting kind of frustrating so I wondered if there was a good solution that would make it easy to see in a non-invasive way that a tiddler contains transclusions, and then easily edit the transcluded tiddler without lots of awkward searching/jumping around?

thanks!

--
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 tiddl...@googlegroups.com.

TonyM

unread,
Aug 18, 2019, 8:50:36 PM8/18/19
to TiddlyWiki
Kat

There are some smart ways to address this but the quick and easy is [[edit|tiddlername]] at bottom of each of the tiddlers you may edit.

This could be moved into a macro which responds to a toggle to hide or display.

Regards
Tony

Mark S.

unread,
Aug 18, 2019, 9:07:26 PM8/18/19
to TiddlyWiki
One way is to to add a template to the transclusion.

So, if you make a tiddler "ta" (for Template A) with the following contents:

{{!!text}} <$link to=<<currentTiddler>>>{{!!title}}</$link>


then in your transclusions you add a template. Like

{{My tiddler with this text||ta}}


Now a link will appear next to the transcluded text. So when you want to find and edit the text, it's only a click away.

Or your template could look like this:

{{!!text}} <$button>Edit<$action-sendmessage $message="tm-edit-tiddler" $param=<<currentTiddler>>/></$button>


This will create an actual button that will immediately open up the corresponding tiddler for editing when clicked.

Good luck!

CJ Veniot

unread,
Aug 18, 2019, 9:08:24 PM8/18/19
to tiddl...@googlegroups.com
G'day,

I use transclusion heavily, and have gotten into the habit of doing this kind of thing ...

In tiddler "A" that transcludes tiddler "B":

! [[B]]
{{B}}



Cheers !

Diego Mesa

unread,
Aug 18, 2019, 10:22:35 PM8/18/19
to TiddlyWiki
Kat,

The great Tobias Beer has the "inc" plugin (which I have not tried yet in 5.1.20):


That solves this exact problem.

kat

unread,
Aug 19, 2019, 9:50:44 AM8/19/19
to tiddl...@googlegroups.com
Thanks Diego that is perfect and does indeed solve my exact problem.

Tony,

Thanks for your reply. What are some of the other smart ways to address this?

Thanks again.

Birthe C

unread,
Aug 19, 2019, 12:46:03 PM8/19/19
to TiddlyWiki
Hi Kat,

I tried in my wiki version 5.1.20 and it worked.
You have to use it in the tiddler trancluding the other tiddlers. I understood you had a lot of those tiddlers so that will quite some work.


Birthe

TonyM

unread,
Aug 19, 2019, 6:03:25 PM8/19/19
to TiddlyWiki
Kat,

Thanks for your reply. What are some of the other smart ways to address this?

You describe your current wiki as containing
I have a bunch of tiddlers in my wiki that contain transcluded text from other tiddlers.

If you look at the way you manage and use these transcluded tiddlers there are a lot of alternate ways to manage them. 
  • The way you name transcluded tiddlers could be via a macro in which you can show or hide an edit button
  • It is also possible to search for transclusions and list them at the bottom of a tiddler as links, 
  • You could simply name all transclusions in tiddler fields and list these as links
  • Your could tag each transcluded tiddler with the current one (as the excise tool does)
  • Your could make a custom EditorToolbar button to facilitate this
Regards
Tony
 
Reply all
Reply to author
Forward
0 new messages