Including all TW files in a given folder

2 views
Skip to first unread message

Linck Atlanta, Ga

unread,
Jan 6, 2010, 10:26:13 PM1/6/10
to TiddlyWiki
I am attempting to reference several TW files within another. And, I
have successfully used the includetiddler plugin like this:

<<include "file:///C:/Documents%20and%20Settings/TWFiles/
MyTWFile1.html">>

However, I will be adding other TW files as I go along and do not want
to go in every time I do and add another line like above. Instead I
was hoping there was some way of just including ALL TW files in a
given folder, so that I could simply drop the file in that folder and
have it therefore referenced by my main TW file...

Something like this:

<<include "file:///C:/Documents%20and%20Settings/TWFiles/*.*">>

Possible?

Tobias Beer

unread,
Jan 7, 2010, 8:03:35 AM1/7/10
to TiddlyWiki
I don't think it is possible, though I would be rather excited if it
was.

If you wanted that kind of automation, maybe an option would be to
have abstract names in a sequence... like files called.

a.htm
b.htm
c.htm

...and whenever there's no "d.htm", your IncludeScript would simply
stop.

Tobias.

Linck Schlich

unread,
Jan 7, 2010, 12:08:11 PM1/7/10
to tiddl...@googlegroups.com
That is a great idea for a start... Ill play around with it and let you know if i stumble upon something... Thank you for your time.  

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To post to this group, send email to tiddl...@googlegroups.com.
To unsubscribe from this group, send email to tiddlywiki+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.




Anthony Muscio

unread,
Jan 7, 2010, 7:00:57 PM1/7/10
to tiddl...@googlegroups.com
This is not a direct answer but why not make a tiddler containing the short names of you external tiddlywikies eg;
FROM <<include "file:///C:/Documents%20and%20Settings/TWFiles/
MyTWFile1.html">

USE 
MyTWFile1
MyTWFile2
etc...

Then make a macro to einclude all listed
in part
<<include "file:///C:/Documents%20and%20Settings/TWFiles/
%1.html">

This is thus a trivial process of adding the short name to a tiddler which may itself be automated.

Good luck

TonyM

If you have not found an easy way to do it with TiddlyWiki, you have missed something.
www.tiddlywiki.com



Linck Schlich

unread,
Jan 7, 2010, 8:53:46 PM1/7/10
to tiddl...@googlegroups.com
Well done . Thank you

Sent from my iPhone

Reply all
Reply to author
Forward
0 new messages