This script converts Tomboy notes to TiddlyWiki tiddlers. It may be useful for those who want to switch to TiddlyWiki but have some Tomboy notes around.
Introduction
The script preserves Tomboy cross-references (and converts them into wiki-links), but it ignores font styling and highlights. The converted notes have the creation date as their last modification in Tomboy, and the modification date is the time when you run the script. To easily locate converted notes they are tagged as from_tomboy.
I heard there is a Tomboy plugin to convert notes to TiddlyWiki, but I did not try it as I no longer have Tomboy installed. In fact, if you still have Tomboy installed you may try it.
Requirements
This is a shell script, but it requires:
- xmlstarlet, a command line tool to work with XML files (i.e. parse Tomboy notes)
- Python, it is used to convert dates (anyone is welcome to replace it with Perl or whatever, but I think Python is quite common nowadays)
Download
How to use
1. Backup your TiddlyWiki file. Make sure it is not open in the browser (otherwise it may be overwritten later).
2. Convert the notes and save the results until later:
$ tomboy2tiddly ~/.tomboy/*.note > tomboy_notes
(I suppose tomboy2tiddly is in your $PATH).
3. Open the file with your TiddlyWiki in the text editor, and insert the contents of previously saved tomboy_notes inside <div id="storeArea"></div>. Putting it just after the `<div id="storeArea"> works for me.
You may achieve it everything with just one command and vim:
vim +/id=\"storeArea +'read!tomboy2tiddly ~/.tomboy/*.note' +wq mywiki.html
but be cautios.