TiddlyWiki / TiddlyDesktop

A custom desktop browser for TiddlyWiki 5 and TiddlyWiki Classic, based on nw.js
1.71k stars 124 forks source link

Does TD support folders for TiddlyWiki Classic? #151

Open YakovL opened 6 years ago

YakovL commented 6 years ago

Hi Jeremy, I've downloaded TD to test several ideas with it, one thing I was hoping to do is to edit .tid files from TWc repository to further build TWc site with it (another thing I was thinking about is to edit plugins in TWs but also send .tid files to github). But trying to open the content folder (with TWc's site .tid files) showed me this:

Looks like a TW5 with no tiddlers at all (some missing system tiddlers?)

So TD doesn't support "folders" for TWc, does it? If so, why those files are not treated as TW5 tiddlers and I get this result? Perhaps it may be ok to edit those in TW5 interface, so I just have to "fix" it somehow. Best regards, Yakov.

Jermolene commented 6 years ago

Hi @YakovL I'm afraid TiddlyDesktop only supports wiki folders for TiddlyWiki 5, but you could indeed use it to edit the tiddlers within TW5 for later use within TiddlyWiki Classic. The tw2parser plugin is useful for displaying TWC text within TW5.

YakovL commented 6 years ago

I see. But do you have any idea why I see the interface like that? Search doesn't show any results as well so it looks like empty TW5 with broken styles.. Does .tid format differ for TWc and TW5? Is there some description of it somewhere?

Jermolene commented 6 years ago

Hi @YakovL you're ending up with a TW5 HTML file that has TWC tiddlers in it, and that lacks the standard $:/themes/tiddlywiki/* theme plugins. So it's displaying as a broken TW5; you can fix it by adding the themes to your tiddlywiki.info file:

{
    "description": "My Wiki",
    "plugins": [
        "tiddlywiki/tw2parser",
        "tiddlywiki/tiddlyweb",
        "tiddlywiki/filesystem"
    ],
    "themes": [
        "tiddlywiki/vanilla",
        "tiddlywiki/snowwhite"
    ]
}
Jermolene commented 6 years ago

(I edited the comment above to add the tiddlyweb and filesystem plugins, which will be required for saving tiddlers back to the file system).

YakovL commented 6 years ago

Hi Jeremy, I'm not sure what's tiddlywiki.info file is (I can't see one in TD's folder or even in the content folder). Should I create one? Is this what are talking about?

..right, creating one inside the content folder worked.. but only to fix the interface, the wiki still seems to be empty: image

YakovL commented 6 years ago

Hi @Jermolene, any ideas here? Is it reproducible for you? (should be easy: just clone the TWc repo, add tiddlywiki.info into content/ and try to open folder with TD)

Jermolene commented 6 years ago

Hi @YakovL you might want to check the TiddlyWikiFolders docs on tiddlywiki.com; it sounds like you're missing the "tiddlers" folder to contain the .tid files. Here's an example of a wiki folder:

https://github.com/Jermolene/TiddlyWiki5/tree/master/editions/introduction