[TW5] A list of transclusion targets

121 views
Skip to first unread message

Arkady Grudzinsky

unread,
Jan 26, 2018, 3:07:16 AM1/26/18
to TiddlyWiki

Is there a filter operator to get a list of all transclusion targets.

I want to get a list of missing transclusion targets, but that, I suppose, can be achieved by using all[missing] operator on the results of the one I want.

I am importing tiddlers from one TW file to another. The tiddlers heavily use transclusion to generate various lists. If transclusion target is not present, the lists will not be generated correctly and, in many cases, I will not know it because I will see an empty space which is legitimate if the list is empty. I want to make sure I import all transclusion targets. Now I have to open tiddlers and visually inspect them for transclusions.

Thanks.

-- 

Arkady

TonyM

unread,
Jan 26, 2018, 8:15:09 AM1/26/18
to TiddlyWiki
Arkady,

Could you not generate a list of Tiddlers in the source wiki refered to in transclude statements then use this to export the not yet moved tiddlers then import into your new wiki?

Regards
Tony

Arkady Grudzinsky

unread,
Jan 26, 2018, 9:36:12 AM1/26/18
to TiddlyWiki
​Tony,

Don't I still need to generate a list of transclusion targets in the source wiki to do that?​


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/QbjdrX56do0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@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/8ba30992-74ce-4966-9d7c-8eee17071f38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Arkady

TonyM

unread,
Jan 26, 2018, 6:05:56 PM1/26/18
to TiddlyWiki
Arkady,

Yes, Correct, I was trying to make sense of your request. I imagine a search using regex and the prefix {{ and Suffix }} will find your list, however there are limits in tiddlywiki.

I do not yet know regex in detail.

Perhaps export the selected tiddlers to a json file, open the json file with a text editor and search for "{{" you only need to locate all names. This depends on how many you need to find

Regards
Tony



On Saturday, January 27, 2018 at 1:36:12 AM UTC+11, Arkady Grudzinsky wrote:
​Tony,

Don't I still need to generate a list of transclusion targets in the source wiki to do that?​
On Fri, Jan 26, 2018 at 5:15 AM, TonyM <anthony...@gmail.com> wrote:
Arkady,

Could you not generate a list of Tiddlers in the source wiki refered to in transclude statements  then use this to export the not yet moved tiddlers then import into your new wiki?

Regards
Tony

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/QbjdrX56do0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.



--
Arkady

Thomas Elmiger

unread,
Jan 26, 2018, 6:26:57 PM1/26/18
to TiddlyWiki
Hi Arkady,

Something like this could help, if you transcluded in {{brackets}}:

Make a tiddler titled "TransclusionList" with this in it:

<$list filter="""[regexp:text[{{]sort[]] -[[TransclusionList]] -[is[system]] -[has[draft.of]]""">

<<extract start:"{{" end:"}}" limit:"no" prefix:"<li>" suffix:"</li>" mode:"link">>

</$list>

===

You will need my extract macro for this:
https://tid.li/tw5/hacks.html#Extract%20Macro


Good luck!
Thomas

Arkady Grudzinsky

unread,
Jan 27, 2018, 2:28:31 AM1/27/18
to TiddlyWiki
Thomas, Tony,

Great ideas.  Thanks.  That will work.

Don't you think, there should be a filter operator for this?  Perhaps, the missing transcluded tiddlers should even be included in the [all[missing]] filter results.

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/QbjdrX56do0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

For more options, visit https://groups.google.com/d/optout.



--
Arkady
Reply all
Reply to author
Forward
0 new messages