-
-
Save Jermolene/1c1ff69c7afe91550057 to your computer and use it in GitHub Desktop.
Convert .txt tiddlers to wikitext
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$tw.wiki.each(function(tiddler,title) {if(title.substr(-4) === ".txt") {$tw.wiki.addTiddler(new $tw.Tiddler(tiddler,{title: title.substr(0,title.length-4), type: "text/vnd.tiddlywiki"}));$tw.wiki.deleteTiddler(title);}}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A hack to find all tiddlers whose title ends with
.txt
and remove the extension and convert the tiddler type totext/vnd.tiddlywiki
.