Clean out a TiddlyWiki ?

412 views
Skip to first unread message

Dan

unread,
Feb 9, 2012, 5:37:57 PM2/9/12
to TiddlyWiki
Is there a simple way to clean out an existing TiddlyWiki and take it
back to an "empty" state? This is in place of locating an older
version of an empty TiddlyWiki.

passingby

unread,
Feb 9, 2012, 11:13:17 PM2/9/12
to tiddl...@googlegroups.com
One can use Eric's plugin for exporting the tiddlers along with core code into a new tiddlywiki document.
http://www.tiddlytools.com/#ExportTiddlersPlugin

Just select one random tiddler and export it to a new TW and then later delete that one tiddler after opening the new TW.

HansBKK

unread,
Feb 9, 2012, 11:59:29 PM2/9/12
to tiddl...@googlegroups.com

> back to an "empty" state?  This is in place of locating an older version of an empty TiddlyWiki.

Of course you will also lose any plugins or other system-level content, but that maybe what you want.

As I build a new TW design I use tags (all my TWs use taggly tags anyway) so that every non-shadow tiddler is tagged either 1. system  2. content or 3 meta

The last one is for non-code tiddlers that are there for infrastructure, e.g. navigation menus, how-to's for the user etc. That way I can export/import/clone TWs that have all the customized functionality but without the user content itself.

Alex Hough

unread,
Feb 10, 2012, 3:45:06 AM2/10/12
to tiddl...@googlegroups.com
i think it would be a nice improvement to have a sortable table in the
import tab. That way you could point your new TW towards you old one,
then view them grouped by tags.

I think making improvements to already existing features might keep
things simple the long run.

I believe the TW5 node code can strip tiddlers out as well...

Alex

> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/tiddlywiki/-/WJ1Vsv7JZX4J.
>
> 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.

HansBKK

unread,
Feb 10, 2012, 8:36:53 AM2/10/12
to tiddl...@googlegroups.com
On Friday, February 10, 2012 3:45:06 PM UTC+7, Alex Hough wrote:
i think it would be a nice improvement to have a sortable table in the import tab. That way you could point your new TW towards you old one, then view them grouped by tags.

If I understand you correctly, I believe Eric's import tool from tiddlytools.com will do what you're looking for. 

PMario

unread,
Feb 10, 2012, 9:40:01 AM2/10/12
to TiddlyWiki

Dan

unread,
Feb 10, 2012, 11:23:31 AM2/10/12
to TiddlyWiki
Thanks for your response.
I'm new here and learning the lingo, etc.
Not sure what TW5 node code is.

Maybe someday I can get up to speed and help out other newbies myself.
Dan

On Feb 10, 2:45 am, Alex Hough <r.a.ho...@gmail.com> wrote:
> i think it would be a nice improvement to have a sortable table in the
> import tab. That way you could point your new TW towards you old one,
> then view them grouped by tags.
>
> I think making improvements to already existing features might keep
> things simple the long run.
>
> I believe the TW5 node code can strip tiddlers out as well...
>
> Alex
>
> On 10 February 2012 04:59, HansBKK <hans...@gmail.com> wrote:
>
>
>
>
>
> >> back to an "empty" state?  This is in place of locating an older version
> >> of an empty TiddlyWiki.
>
> > Of course you will also lose any plugins or other system-level content, but
> > that maybe what you want.
>
> > As I build a new TW design I use tags (all my TWs use taggly tags anyway) so
> > that every non-shadow tiddler is tagged either 1. system  2. content or 3
> > meta
>
> > The last one is for non-code tiddlers that are there for infrastructure,
> > e.g. navigation menus, how-to's for the user etc. That way I can
> > export/import/clone TWs that have all the customized functionality but
> > without the user content itself.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "TiddlyWiki" group.
> > To view this discussion on the web visit
> >https://groups.google.com/d/msg/tiddlywiki/-/WJ1Vsv7JZX4J.
>
> > 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.- Hide quoted text -
>
> - Show quoted text -

Dan

unread,
Feb 10, 2012, 11:25:27 AM2/10/12
to TiddlyWiki
I will take a look at this Plugin and see if I can get it working.
I have had limited success with plugins so far.
i.e some seem to work, some don't.
Thanks for responding.
Dan

On Feb 9, 10:13 pm, passingby <passingby...@gmail.com> wrote:
> One can use Eric's plugin for exporting the tiddlers along with core code
> into a new tiddlywiki document.http://www.tiddlytools.com/#ExportTiddlersPlugin

Dan

unread,
Feb 10, 2012, 12:16:11 PM2/10/12
to TiddlyWiki
Well I give this a try.
I manually added these plugins from Eric's site.
ExportTiddlersPluginInfo
ImportTiddlersPlugin
ExportTiddlersPlugin
ImportTiddlersPluginInfo

Now when I navigate to the ExportTiddlersPlugin Tiddler...
I see
In the Inline control panel (live):
section I get
Error in macro <<exportTiddlers>>
Error while executing macro <<exportTiddlers>>: No such macro

Any clue as to what step I'm missing?

On Feb 9, 10:13 pm, passingby <passingby...@gmail.com> wrote:
> One can use Eric's plugin for exporting the tiddlers along with core code
> into a new tiddlywiki document.http://www.tiddlytools.com/#ExportTiddlersPlugin

Eric Shulman

unread,
Feb 10, 2012, 12:44:30 PM2/10/12
to TiddlyWiki
> I manually added these plugins from Eric's site.
>    ExportTiddlersPluginInfo
>    ImportTiddlersPlugin
>    ExportTiddlersPlugin
>    ImportTiddlersPluginInfo
>
>      Error in macro <<exportTiddlers>>
>      Error while executing macro <<exportTiddlers>>: No such macro
> Any clue as to what step I'm missing?

The ...Plugin tiddlers need to be tagged with 'systemConfig'
The ...PluginInfo tiddlers do NOT get tagged
Then save-and-reload for the plugin code to be applied in your
document.

Once the plugins are properly installed, you can view the interactive
import or export control panels directly from the backstage commands
(import replaces the TWCore importer, and export is added as a new
command). You can also access the controls panels by opening the
[[ImportTiddlers]] or [[ExportTiddlers]] *shadow* tiddlers that are
automatically created by the plugins (see More>Shadows in the right-
hand sidebar tabs).

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

----
WAS THIS ANSWER HELPFUL? IF SO, PLEASE MAKE A DONATION
http://www.TiddlyTools.com/#Donations
note: donations are directly used to pay for food, rent,
gas, net connection, etc., so please give generously and often!

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact

Dan

unread,
Feb 10, 2012, 1:13:47 PM2/10/12
to TiddlyWiki
Thank you Eric for a response.
I have the tiddlers tagged, just like they were in your TiddlyTools.
When I go up to the backstage, both Import and Export show an error.
specifically...

Error while executing macro <<exportTiddlers>>:
[object Error]

and

nullError in macro <<importTiddlers>>:
[object Error]

Am I missing something else just really simple here?

Dan

Dan

unread,
Feb 10, 2012, 1:37:56 PM2/10/12
to TiddlyWiki
More info.
I see the same errors in IE, Chrome and Firefox.
Would the be a browser version or java version thing?

Also noted that in advanced options(show other options) chkbox,
some acutally show up in the older Firefox browser, but
don't show up in IE or Chrome. What do you think is going on there?
Dan
> >    http://www.TiddlyTools.com/#Contact- Hide quoted text -

Eric Shulman

unread,
Feb 10, 2012, 2:41:12 PM2/10/12
to TiddlyWiki
> I see the same errors in IE, Chrome and Firefox.
> Would the be a browser version or java version thing?

TW is all *Javascript* - with the exception of tiddlysaver.jar, which
is only used to provide external file I/O functions in Chrome (IE and
FireFox have built-in file I/O functions).

It *could* be a browser version issue. However, given that the same
errors are occurring in completely different browsers, this doesn't
seem likely.

Can you describe *exactly*, step-by-step, how you copied the plugins
from TiddlyTools? One possible common mistake that people make is to
copy the *rendered* plugin content, rather than first editing and then
copying/pasting the tiddler *source* into your document.

> Also noted that in advanced options(show other options) chkbox,
> some acutally show up in the older Firefox browser, but
> don't show up in IE or Chrome.  What do you think is going on there?

Here's some clues to consider:

TW options are stored as cookies, where the name of the cookie begins
with "chk" for checkboxes, or "txt" for text inputs (e.g.,
"chkAutoSave" and "txtUserName").

IE, Chrome, and Firefox all maintain their own separate sets of
cookies, so the cookies for a given TW document can be different for
each browser.

Some browsers do not permit cookies to be saved when they are created
from local "file:" URLs. Although the option values are applied
during the current browser session, they do not get stored, and do not
persist across sessions.

Typically, plugin-defined "chk" options are given initial true/false
default values when the plugin is loaded during startup. However, an
undefined "chk" option has a implicit value of false. This means that
the plugin doesn't have to initialize the option value during startup,
and can simply wait for the user to interactively set it by clicking
on a <<option chkSomething>> checkbox control. In this case, the
option won't appear in the Advanced Options until it has actually been
used for that document.

hope this helps,

Dan

unread,
Feb 10, 2012, 3:05:21 PM2/10/12
to TiddlyWiki
On Feb 10, 1:41 pm, Eric Shulman <elsdes...@gmail.com> wrote:
...
> Can you describe *exactly*, step-by-step, how you copied the plugins
> from TiddlyTools? One possible common mistake that people make is to
> copy the *rendered* plugin content, rather than first editing and then
> copying/pasting the tiddler *source* into your document.
>

Regarding copying the Plugins, I would go to Edit or the Plugin I
wanted,
then copy the Tiddler name to a new tiddler in my Wiki.
Then I'd copy the contents(source) to the new tiddler in my Wiki
Then I'd copy the tags, to the new tiddler in my Wiki.
Then I'd save it and reload it to test.
I think those are the correct manual steps, unless I'm missing
something or
something else is assumed.


I don't know about the Advanced Options display, but it doesn't seem
to work,
except in the old FireFox browser. I'll check some of the IE options
regarding cookies.

I'd be happy to send this almost empty TW to you if it would help
get to the bottom of it faster. Note it is version 2.2.6 because the
newest version give me an error in macro <<timeline>> right after
downloading it from the TiddlyWiki site. No timeline error with
2.2.6.

Thanks again for your responses.
Dan

HansBKK

unread,
Feb 10, 2012, 4:10:46 PM2/10/12
to tiddl...@googlegroups.com
To eliminate browser issues for now, just get everything working in FF 3.6 (portable if you have a newer FF registry-installed).

Once everything's working the way you like it, test in the newer browsers.

Dan

unread,
Feb 10, 2012, 4:25:24 PM2/10/12
to TiddlyWiki
Using latest download of FF from portableapps (version 10?)
same issues.

Chris

unread,
Feb 10, 2012, 7:56:34 PM2/10/12
to TiddlyWiki
If I am reading your original inquiry correctly - then it is as simple
as going to AdvancedOptions and checking "chkSaveEmptyTemplate". Then
do a saveChanges as normal - and you should see an empty tw file
generated along side your current tw file.

Hope this is close to what you wanted?

Chris.

HansBKK

unread,
Feb 10, 2012, 11:50:26 PM2/10/12
to tiddl...@googlegroups.com
No, I explicitly stated, and repeat now for emphasis: Portable Firefox v3.6 (the latest/last release from FF3 is the one that shows up when you google.

I'm not saying the new hotness browsers *are* causing problems, but given your level of inexperience it would IMO be best to eliminate that possibility, at least for the moment.

Personally I use that browser platform for all my TWs, and I've been getting up to speed on TW (in fits and spurts) for 4+ years now.

Reply all
Reply to author
Forward
0 new messages