-
Notifications
You must be signed in to change notification settings - Fork 23
Importing data from TiddlyWiki
Want to import a wealth of data you have stashed inside a TiddlyWiki? Well here’s how you do it!
Note that i am assuming that you are using some form of TiddlyWiki which stores its tiddlers in a html file on the filesystem.
Basically there is a simple rake task, db:rucksack:import_tiddlywiki
, which will automatically import tiddlers from a TiddlyWiki file pointed to by the TIDDLYWIKI_FILE environment variable.
Note that before you run this task it is important that you have installed RuckSack in a database (db:rucksack:install
). The import script does not set up anything.
So to sum it up, here’s what you’ll likely be running from the rucksack directory:
export TIDDLYWIKI_FILE=/path/to/my/tiddlywiki.html
rake db:rucksack:import_tiddlywiki
Provided all goes well, you should get a listing of all the tiddlers the task has imported into Rucksack. You should also notice that several pages have been created which correspond to the tiddlers. Each page has a note with the title of the tiddler and its content. And you’ll note that it has been tagged up correctly too.
Why a page for each note? Well it’s just the way it is
If you want to group the notes into different pages, simply add the page you want to move the note to to the sidebar (i.e. make it a favourite), and then drag your note to the page heading.