Bulk Import of Plain TXT Files into Full Tiddlers

169 views
Skip to first unread message

Qalisto

unread,
Nov 20, 2019, 7:32:31 PM11/20/19
to TiddlyWiki
Relative to my prior post about migration of data from old PIM, I wonder what is the "state of the art" for TW5 for potential 'bulk import' of a correctly pre-formatted plain text file consisting of text paragraphs that I want to become Tiddlers.

Even better, is there a coding trick which will enable me to "format" the Text Blocks in order to create new Tiddlers, en masse, where the Tiddler "Title", "Tag" and then the "block of text" will neatly IMPORT?


It looks recent.  Will this do the trick?  (Or is it still being tested? )    I don't want to try something that looks promising, but may inadvertently "corrupt" my master TW5 file simply owing to its "youth".

Regards,
== Q

Ste Wilson

unread,
Nov 25, 2019, 3:21:10 PM11/25/19
to TiddlyWiki
Twcommander is quite new and shiny.
As always back up! :)

Thomas Elmiger

unread,
Nov 25, 2019, 5:36:27 PM11/25/19
to TiddlyWiki
Hi Qalisto

a correctly pre-formatted plain text file consisting of text paragraphs that I want to become Tiddlers.

Would you be able to export to Excel (xlsx) too?

I just imported an export from a ticketing system into TW very successfully using https://tiddlywiki.com/editions/xlsx-utils/

Good luck!
Thomas

Michael Wiktowy

unread,
Nov 25, 2019, 5:59:08 PM11/25/19
to TiddlyWiki
Along the same lines, if you can get your text into a csv format, Evan's csv unpack plugin https://evanbalster.com/tiddlywiki/csv_unpack.html worked really well for me.

/Mike

TonyM

unread,
Nov 25, 2019, 8:01:07 PM11/25/19
to TiddlyWiki
Qalisto

Using the import facility you can import many file types into tiddlywiki. Text in particular will exist within the body or text field of the each tiddler. 

Unlike the default import if you look at the BrowseWidget you have a parameter "multiple",
 where by it is easy to select multiple files to import at once. 

Once you have all (or a sample of) your text files imported you can set about designing ways to manipulate the content of your tiddlers, 
perhaps generate new ones with structured data, perhaps parse them or build a viewtemplate that interrogates the text field.

Perhaps you could extract information from tiddlers and feed it into data tiddlers or push it into the fields of tiddlers.

The sky is the limit if you ask me.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages