Saving in chrome

819 views
Skip to first unread message

A Sklpns

unread,
May 10, 2019, 3:28:45 AM5/10/19
to TiddlyWiki
Hello TW friends.
I am looking for a simple way to save both TW5 and TWC files under Google Chrome.
Something like the File Backups addon I use with Firefox (works great!).
Tried the savetiddlers Chrome extension (https://github.com/buggyj/savetiddlers)
but most of the time it doesn't save TW5's in a Google Drive folder (insufficients permissions error)
and it never saves TWC.
Any ideas? Is there possibly as simple a solution for Chrome as Firefox's File Backups addon?

Thanks in advance
sklpns

TonyM

unread,
May 10, 2019, 6:28:52 AM5/10/19
to TiddlyWiki
Hi

Unfortunatly timimi is not going to work for chrome soon.

I use tiddlyserver to access and save wikis in any browser.

Then I create a desktop icon from chrome to open it in its own window.

Regards
Tony

h0p3

unread,
May 10, 2019, 12:09:13 PM5/10/19
to TiddlyWiki
I tried again a while back since I'm a fan of Chromium's extensions. In general, it keeps getting harder to save TW for me. Currently, the only method that works for me on Chromium is through a node server. Unfortunately, I run into lots of saving errors and lag from servers too though (savetrail plugin is an absolute necessity for me). The singlefile option has been hands-down the most reliable back when I used it, but I've not found a clean way to do it in Chromium anymore.

@TiddlyTweeter

unread,
May 10, 2019, 12:23:39 PM5/10/19
to TiddlyWiki
Vital issue.

WHAT is universal?

TW has got a lot better on saving. But its not yet "All And Everything" (my favourite work by Gurdjieff [http://www.giurfa.com/all_and_everything.pdf]).

IF there were ONE then promotion would be easier

Canonical Clown
J.

Mark S.

unread,
May 10, 2019, 12:29:27 PM5/10/19
to TiddlyWiki
Imagine this.

You start your day by double-clicking your TiddlyWiki file. It loads up in your browser. You work throughout the day, saving the usual way. When it's time to pack up, you double click on an icon  to transfer your data to Google Drive, or wherever your file's home drive is.

This is a method I suggested at the very start of the Foxalypse. It got largely panned.

The trick is a batch file. When you launch the batch file, it copies the latest version of your TW file out of the download directory into it's target, home directory.  As you work, your TW file is being saved into your downloads directory  with names like "myTW(1), myTW(2)..." The bonus of this approach is that you automatically have backups of every save.

-- Mark

@TiddlyTweeter

unread,
May 10, 2019, 12:49:48 PM5/10/19
to TiddlyWiki
I wonder if it could be honed to auto-restore?

Mark S.

unread,
May 11, 2019, 12:45:38 AM5/11/19
to TiddlyWiki
I image a batch file could be made that loops on itself, pausing for maybe 5 minutes, and then copying over any changed file. Is that what you're thinking?

@TiddlyTweeter

unread,
May 11, 2019, 3:47:13 AM5/11/19
to TiddlyWiki
Yeah. Something like that.

Thanks for the thought. I had a look at what you can do on timing in Windows batch files and see its not so difficult. When I get some time I might play with it. It opens up being able to use others browsers with TW?

J.

A Sklpns

unread,
May 11, 2019, 8:29:23 AM5/11/19
to TiddlyWiki
Everyone: thank you!
Will try tiddlyserver as soon as I get home. Also: will the batch script idea work with TWC's? Thanks again!

Tom Adams

unread,
May 29, 2019, 5:15:01 PM5/29/19
to TiddlyWiki
On Friday, May 10, 2019 at 12:28:45 AM UTC-7, A Sklpns wrote:
Hello TW friends.
I am looking for a simple way to save both TW5 and TWC files under Google Chrome.

I use several Chromebooks running ChromeOS.  I wanted to access the same tiddlywiki from any of them, so I needed to put them on my Google Drive.  After a few tries, I figured it out.
  • Create a Drive Downloads folder in Google Drive > My Drive.
  • In Chrome settings, search for Downloads and change the location of the Downloads folder to the one you just created in Google Drive
  • Create a tiddlywikilocations folder in Drive Downloads
  • Download tiddlywiki empty.html and savetiddlers-0.8.zip into tiddlywikilocations
  • Unzip savetiddlers-0.8 folder into tiddlywikilocations 
  • In Chrome > More tools > Extensions, turn on Developer mode, then 
  • Click load unpacked and navigate to Google Drive > My Drive > Drive Downloads > tiddlywikilocations > savetiddlers-0.8 
  • Select the Extension folder and click Open.  You will get an error message, but ignore it. It has no affect on Chrome
Now when you make changes in tiddlywiki and click the save checkmark, it should save the new version of empty.html, and the previous version into a backupdir in the tiddlywikilocations folder.


A Sklpns

unread,
Jun 9, 2019, 4:52:40 AM6/9/19
to TiddlyWiki
Thank you very much Tom. Had tried that but while this works for TW5 it doesn't seem to work for TWC files.
Thanks again

Mark S.

unread,
Jun 9, 2019, 8:56:36 AM6/9/19
to TiddlyWiki
Windows or Mac or ?

A Sklpns

unread,
Jun 9, 2019, 1:35:39 PM6/9/19
to TiddlyWiki
Windows (7 and 10, work and home respectively).
Thank you!

Mark S.

unread,
Jun 9, 2019, 3:50:52 PM6/9/19
to TiddlyWiki
I've been testing a powershell script for several weeks. https://groups.google.com/d/msg/tiddlywiki/tMLfNs1K3JU/gkrGu-ubAQAJ

So far it's been working great. You have to be sure to use a unique file stem (NOT "empty" or "tiddlywiki", the default download names). You set your browser to download automatically into your download directory. The script checks every X seconds (where you pick the time) and then copies the latest version into your original file location with the original file name.

It should work with any browser and any version of TW.

The script needs improvement, but it would be useful if more than 2 of us were using it ;-)

Tom Adams

unread,
Jun 12, 2019, 1:13:13 PM6/12/19
to TiddlyWiki
I've found a quirk with Savetiddlers extension for Chrome.  Every time I shut down my Chromebook, I lose the extension and have to reload it before I open my tiddlywiki.  If I forget to reload the extension, open and save my tiddlywiki, it gets saved in my downloads folder instead of tiddlywikilocations, and no previous version is saved.  

Does anyone know of a way to make the Savetiddlers extension persistent, like all the other extensions?  
Why does this happen?


On Friday, May 10, 2019 at 12:28:45 AM UTC-7, A Sklpns wrote:

passingby

unread,
Jun 12, 2019, 2:51:57 PM6/12/19
to TiddlyWiki
I am using Tiddlydrive with google drive. Love it.

A Sklpns

unread,
Jun 14, 2019, 3:47:00 AM6/14/19
to TiddlyWiki


Dear friends,
thanks fro the input!
Got some exams coming up, will test right after
and get back to you
Thank you!

A Sklpns

unread,
Jun 15, 2019, 2:39:06 AM6/15/19
to TiddlyWiki
Mark S., friends
I'm trying to test the script but I got stuck at step 0:
Chrome in Windows 10 will act as expected when pressing the save changes button
in TW5 as well as an empty TWC 2.9.2 (most recent version), ie it will download
the file in the downloads folder.

It wont however do the same with my own files (TWC 2.9.2 and 2.6.0):
it fails with something like ''download failed: network error''.
I've tested after disabling all the plugins and still get the same error.
Any ideas?
Thanks in advance
sklpns

Mark S.

unread,
Jun 15, 2019, 9:21:11 AM6/15/19
to TiddlyWiki
Since this thread has, unfortunately, been marked as complete, it might not get the attention it needs.

It seems your question is really about saving TWC under Chrome. Perhaps you could repost your question over in the TWC
forum:


It might be helpful to also specify what version of Chrome you are using.

Good luck!

TonyM

unread,
Jun 16, 2019, 4:17:01 AM6/16/19
to TiddlyWiki
Mark

I have not looked at the details of your PowerShell script but I have some thoughts on making it very efficient and perhaps easy to configure.

Where would be the best place or thread to continue that conversation?

regards
Tony

BJ

unread,
Jun 16, 2019, 8:34:44 AM6/16/19
to TiddlyWiki
Just to confirm that you can only save twc files in firefox with savetiddlers extension (this is due to how twc saves itself - it reads the last version from disk which it modifies - ff lets you read from the disk but not chrome )

all the best
BJ

Mark S.

unread,
Jun 16, 2019, 10:36:58 PM6/16/19
to TiddlyWiki
For the moment, TT's thread seems like a good place:


If there's a lot of activity, we'll have to think of somewhere else.

-- Mark

A Sklpns

unread,
Jun 23, 2019, 4:26:07 PM6/23/19
to TiddlyWiki
Friends,

Mark S.,
thank you for continuing the conversation over at the TWC group,

BJ,
here is a "matrix" of the problem so to speak

Windows 10 / Google Chrome Version 75.0.3770.100 (Official Build) (64-bit)

1. TW5 version 5.1.15 saves as expected: it downloads the file in the Downloads folder
2. ''Empty'' TWC file version 2.9.2 from https://classic.tiddlywiki.com/ saves as expected: Chrome downloads the file in the Downloads folder
3. My own TWC file version 2.9.2 (size: 4.96 MB) doesn't save as expected: instead of downloading the file Chrome fails with a ''download failed - Network error'' message  
4. My own TWC file version 2.6.0 (size: 4.60 MB) doesn't save as expected: instead of downloading the file Chrome fails with the following pop up
 "It's not possible to save changes. Possible reasons include:- your browser doesn't support saving (Firefox, Internet Explorer, Safari and Opera all work if properly configured)- the pathname to your TiddlyWiki file contains illegal characters\n- the TiddlyWiki HTML file has been moved or renamed".

All of the above files save correctly under Firefox 67.0.4 (64-bit) in Windows 10 using the File Backups firefox addon (https://pmario.github.io/file-backups/, https://addons.mozilla.org/de/firefox/addon/file-backups/)

Thank you!
sklpns

BJ

unread,
Jun 24, 2019, 5:06:16 AM6/24/19
to TiddlyWiki
Hi sklpns,
as far as I am aware the savetiddlers  extension works as expected on firefox and chrome.

Older versions of twclassic, before the changes for html5 saving was implemented, will not save.

There is a bug with the current twclassic saving mechanism: it copies all the dom, and this includes the injected messagebox from savetiddlers (which it should not save), and this causes savetiddlers to subsequently think that another saver is in use and therefore stops saving. In order for savetiddlers to work someone needs to fix this bug in the twclassic.

cheers

BJ

A Sklpns

unread,
Jul 18, 2019, 5:53:44 PM7/18/19
to TiddlyWiki
BJ, friends,

thank you-and sorry for not responding for so long, got caught up with exams etc
Haven't tried the savetiddlers extension as I use both TWC and TW5

With firefox the "file-backups" Extension for Firefox by pmario
(https://pmario.github.io/file-backups/) saves both with no problem at all! 

Maybe some of our friends over at the TWC group will take on the TWC bug-sadly I am not a
programmer, so...

Thank you
sklpns


PMario

unread,
Aug 29, 2019, 3:56:41 AM8/29/19
to TiddlyWiki
On Monday, June 24, 2019 at 11:06:16 AM UTC+2, BJ wrote:
...
There is a bug with the current twclassic saving mechanism: it copies all the dom, and this includes the injected messagebox from savetiddlers (which it should not save), and this causes savetiddlers to subsequently think that another saver is in use and therefore stops saving. In order for savetiddlers to work someone needs to fix this bug in the twclassic.

@ BJ have a closer look at this post: https://groups.google.com/d/msg/tiddlywikidev/lWlZk9qKUH4/Id66zZhABQAJ of mine. ... It may contain a links to a fix for your problem.

have fun!
mario

PMario

unread,
Aug 29, 2019, 4:00:27 AM8/29/19
to TiddlyWiki
On Friday, May 10, 2019 at 9:28:45 AM UTC+2, A Sklpns wrote:
...
Any ideas? Is there possibly as simple a solution for Chrome as Firefox's File Backups addon?

There is a new beta on the way. https://github.com/pmario/file-backups/releases ...

It also contains some changes that should get me closer to a chrome version. I had to remove the URL icon, since Chrome only allows 1 icon active at a time. I decided to go with the diamond ;)

Since MS Edge is on the way, I also want to support this one with a future file-backups version.

have fun!
mario

A Sklpns

unread,
Aug 31, 2019, 9:50:40 AM8/31/19
to TiddlyWiki
PMario,
copy that, looking forward to the chrome version.
Thank you!
sklpns

A Sklpns

unread,
Sep 17, 2019, 5:39:37 PM9/17/19
to TiddlyWiki
PMario, BJ, friends,


(PMario) @ BJ have a closer look at this post: https://groups.google.com/d/msg/tiddlywikidev/lWlZk9qKUH4/Id66zZhABQAJ of mine. ... It may contain a links to a fix for your problem.

Have you done something? The SaveTiddlers extension seems to be saving TWC v. 2.9.2 files in Chrome!
Thank you,
sklpns
Reply all
Reply to author
Forward
0 new messages