"Save" problem

94 views
Skip to first unread message

Lynn C. Chiu

unread,
Dec 29, 2015, 4:17:25 PM12/29/15
to tiddl...@googlegroups.com
Hello everyone,

   I am three days new to TiddlyWiki. My goal is to use TiddlyWiki as a future-proofed document for all my research files. I already have two months worth of plaintext files imported into my wiki and added plugins for mind-mapping and GDT functionality.  

   Today, instead of saving my TiddlyWiki5 with the "save" button from my Chrome browser, I went ctrl-S to overwrite the .html local file. This broke my wiki. When I opened it up again, the sidebar functions are clickable but not functionable. There seems to be an overlay of two wikis: my home view (with the default tiddlers) and those that were open when the file was last saved. I can close and edit the former but not the latter. I have attached a picture that shows the "overlay" on the upper right.

  I have two questions before I build another wiki from scratch. 

  (1) Is using the "save" or "download" button the best ways to save the wiki?
  (2) Is it possible to easily retrieve imported notes from, say, the source code, of my wiki?
  
  Sorry for the newbie questions!

Thank you!

Lynn


   
Screenshot (44).png

Eric Shulman

unread,
Dec 29, 2015, 6:27:45 PM12/29/15
to TiddlyWiki
On Tuesday, December 29, 2015 at 1:17:25 PM UTC-8, Lynn C. Chiu wrote:
   Today, instead of saving my TiddlyWiki5 with the "save" button from my Chrome browser, I went ctrl-S to overwrite the .html local file. This broke my wiki. When I opened it up again, the sidebar functions are clickable but not functionable. There seems to be an overlay of two wikis: my home view (with the default tiddlers) and those that were open when the file was last saved. I can close and edit the former but not the latter. I have attached a picture that shows the "overlay" on the upper right. 
...
  (1) Is using the "save" or "download" button the best ways to save the wiki?

As you've learned, you must not use the browser's 'save' command, as it does doesn't save the right stuff.  Because the TW page display is dynamically generated, the browser's "page" includes both the TWCore and tiddler data that was loaded from the original file... PLUS the rendered output from processing that data.  When you save the file with the browser's command, it saves the whole thing...TWCore runtime, tiddler data, and rendered output.  When you then reload the file, it still runs the TWCore to render the tiddler data... but it also has a static 'snapshot' of the HTML that had been displayed when you saved the file.  The results is, as you've noted, is that the document seems to render twice, with one rendering being interactive, the other static (and rendered on top of each other, due to application of CSS rules).

  (2) Is it possible to easily retrieve imported notes from, say, the source code, of my wiki?

NO WORRIES!  Your data should still be intact within the damaged TW5 file.  To confirm this, I used ctrl-S (browser save) with one of my own TW5 files to reproduce the problem.  Then I dragged that 'broken' TW5 file onto an empty TW5.... and it can still find and IMPORT all the tiddlers from that file into a fresh, unmangled TW5. You can then save that file locally.

Note: one possible area I was not able to confirm: do international (multi-byte) characters survive this recovery process intact?  You should try using some multi-byte characters in your content and see if the browser's save stored them correctly.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
Inside TiddlyWiki: The Missing Manuals

Lynn C. Chiu

unread,
Dec 30, 2015, 10:28:03 AM12/30/15
to TiddlyWiki
Thanks so much for the detailed explanations, Eric. The only problem I have with extracting tiddlers from the mangled file: the sidebar is inactive, I cannot search for or click to tabs that would display my tiddlers. I'll try international characters!

Lynn

Eric Shulman

unread,
Dec 30, 2015, 11:49:46 AM12/30/15
to TiddlyWiki
On Wednesday, December 30, 2015 at 7:28:03 AM UTC-8, Lynn C. Chiu wrote:
Thanks so much for the detailed explanations, Eric. The only problem I have with extracting tiddlers from the mangled file: the sidebar is inactive, I cannot search for or click to tabs that would display my tiddlers. I'll try international characters!

You don't need to interact with the mangled document.  Just drag and drop the file onto an open empty TW5.  That will trigger the "import" handler.  All the tiddlers in the mangled document will be listed (with checkboxes to select which tiddlers to import).  Then press the "import" button and save-and-reload the new document so your imported plugins can take effect.

enjoy,
-e

ih...@newsfromgod.com

unread,
Dec 30, 2015, 12:23:57 PM12/30/15
to tiddl...@googlegroups.com

Quoting "Lynn C. Chiu" <chiu...@gmail.com>:

>> On Tuesday, December 29, 2015 at 1:17:25 PM UTC-8, Lynn C. Chiu wrote:
>>>
>>> Today, instead of saving my TiddlyWiki5 with the "save" button from my
>>> Chrome browser, I went ctrl-S to overwrite the .html local file. This broke
>>> my wiki. When I opened it up again, the sidebar functions are clickable but
>>> not functionable. There seems to be an overlay of two wikis: my home view
>>> (with the default tiddlers) and those that were open when the file was last
>>> saved. I can close and edit the former but not the latter. I have attached
>>> a picture that shows the "overlay" on the upper right.
>>>
>> ...
>>> (1) Is using the "save" or "download" button the best ways to save the
>>> wiki?

Hi Lynn,

In order easily save you also have the following options:
1) Tiddlyfox addon for Firefox
(https://addons.mozilla.org/en-US/firefox/addon/tiddlyfox/)
2) Twixie - if you are using windows or linux
(https://ihm4u.github.io/twexe)

thanks

Reply all
Reply to author
Forward
0 new messages