Migrating to TW5

88 views
Skip to first unread message

Alexander Kempshall

unread,
Oct 6, 2018, 2:33:23 AM10/6/18
to TiddlyWiki
Hi All

I've been a long time user of Tiddlywiki possibly for the past 10 to 12 years.

I've done a few upgrades over time, but none as major as the upgrade to TW5. I think I'm currently on 2.6.6 using FireFox 60.2.2esr and they don't seem to get on well together.

I thought I might be able to do an automatic upgrade. When I press the upgrade button in backstage It tells me that "There was a problem saving the backup file" when I try to save expliticly from the option in backstage it tells me that

It's not possible to save changes. Possible reasons include:
- your browser doesn't support saving (Firefox, Internet Explorer, Safari and Opera all work if properly configured)
- the pathname to your TiddlyWiki file contains illegal characters
- the TiddlyWiki HTML file has been moved or renamed


I've presumed this is because my version of FireFox is > 57.

So, I've downloaded and installed empty.html and the plugin savetiddlers-master.zip. Changed the Story View from Classic to Zoomin. I think I've also set up a side menu.

In the past in the text of a tiddler I would add something like this

{{{
struct employee
{
   char name[80];
   int age;
   float wage;
} emp;

struct employee *p = &emp;

emp.wage = 123.23;
p->wage = 123.23;
}}}

and would get something like this

struct employee
{
   char name[80];
   int age;
   float wage;
} emp;

struct employee *p = &emp;

emp.wage = 123.23;
p->wage = 123.23;


If I try this in TW5 I get the message "Filter error: Missing [ in filter expression"

Do I have to forget all the formatting codes from previous versions of Tiddlywiki? Or have I lost the plot completely?

Alex







 

Mat

unread,
Oct 6, 2018, 3:42:22 AM10/6/18
to TiddlyWiki
Alexander, the core in TW5 is fundamentally different from TW2 so when you say;


I thought I might be able to do an automatic upgrade. When I press the upgrade button in backstage

...it seems you're trying something from within TW2. This is not possible.

Instead you must go to


and drop your TW2 file onto that area and follow the instructions thereafter.

Do understand that basically all code you may have (plugins etc etc) from TW2 will fail to work in TW5.

You may want to consider a softer route all together: Start with an empty TW5 and build it from scratch and take theopportunity to "correct the flaws" in your original TWs structure. Then, manually import only content tiddlers on a per-need basis. I found this "route" better for my cases because my old TW2s had grown very complex over the years so it was impossible to retro fit it into TW5.

<:-)

Alexander Kempshall

unread,
Oct 6, 2018, 4:29:34 AM10/6/18
to TiddlyWiki
Hi Mat

You may want to consider a softer route all together: Start with an empty TW5 and build it from scratch and take the opportunity to "correct the flaws" in your original TWs structure. Then, manually import only content tiddlers on a per-need basis. I found this "route" better for my cases because my old TW2s had grown very complex over the years so it was impossible to retro fit it into TW5.


Thanks for the suggestion. I'd already started with an empty TW5 using it as a training platform to work out saving and menus. I've pasted in one of my version 2 tiddlers and am digging around to get the formatting right. I seem to have found that I can use back ticks instead of curly brackets to get some of my formatting correct.

TonyM

unread,
Oct 6, 2018, 4:48:17 AM10/6/18
to TiddlyWiki
Alexander,

I have a similer story to you. I have kept my twc in TiddlyDesktop.

Moving to tw5 is a big jump, there are some features to help but I am confident once you get past the conceptual differences you will find many plugins are no longer needed and alternatives exist.

I suggest building solutions to various requirements like components eg projects, todo references and combine them later when you are comfortable. It is much easier to exchange content between wikis.

Dont reinvent the wheel, you have a nice new set of them 😀

Dont be shy
Ask for help here

Mark S.

unread,
Oct 6, 2018, 9:58:49 AM10/6/18
to TiddlyWiki
The 3 curly braces have now become 3 back ticks (```).

Three curly braces are used to interpret a filter and create a list, and so create an error in your situation.

If you do the standard upgrade, then all your tiddlers will be marked as tw classic. They may not look right, but they won't break things either. Then over time, as you need the tiddlers, you can fix them and bring them up to TW5 standards.

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