[AddOn] file-backups - "TiddlyWiki File Save and Backup" is an official FireFox AddOn

658 views
Skip to first unread message

PMario

unread,
Dec 19, 2017, 11:35:42 AM12/19/17
to tiddl...@googlegroups.com
Hi Folks,

I'm happy to announce, that:

AddOn: file-backups "TiddlyWiki File Save and Backup" is an official FireFox AddOn!

It works for TiddlyWiki 5 and TiddlyWikiClassic.

How it works:
 - "One image is worth a 1000 words". So have a look at 1000+ images ;)
 - Watch the Video!

If you like it: Support it :)

Features:
 - Supports TiddlyWiki 5
 - Supports TiddlyWiki Classic
 - Detects, if a file TW is opened in 2 tabs OR 2 windows
   - Shows a warning banner, that will be closed if clicked

 - Files changed from outside download directory, opens "Save As" dialog
 - Ubuntu version shows "Open in new tab banner" instead

 - Improved Workflow

 - The AddOn uses less permissions now.
    - browser tabs ... and
    - activeTabs ... To create the "backup / download" icon
    - local storage ... to save settings and backup-counter
    - downloads area ... to be able to do its work :)

Learn More:
 - next post :)

have fun!
mario
PS - If you like it: Support it :)

PMario

unread,
Dec 19, 2017, 11:35:55 AM12/19/17
to tiddl...@googlegroups.com
Feedback:
 - Here and https://github.com/pmario/file-backups/issues

What's next:
 - update Video
 - Chrome support
 - Save special "tagged" versions (outside the backup rotation) ... github PR work in progress.

Version Overview
- latest: V 0.3.3
- Initial intro thread

Tested with:

I did test them with FF57 and FF58-beta+ for

 - Windows 10
 - Ubuntu 17.10

According to feedback from my initial thread and the github repo it works with FF57+ on:

 - Mac OSX 10.13
 - windows 8

Similar Projects:

  "savetiddlers" - which has a different backup strategy.


Thomas Elmiger

unread,
Dec 20, 2017, 7:34:54 AM12/20/17
to TiddlyWiki
Hi Mario,

Sounds like good news, but the (previous) version stopped working for me yesterday at home and today at the office, both in FF 57 Win and in FF Developer 58 on the Mac :(

After an update to the new version on Windows the downloads happen again, but without TW noticing the save process (TW 5.1.14) – the download icon stays red and an alert pops up when I close TW after saving.

Is there a special upgrade procedure? Can there be a connection between you/FF publishing a new version and the old version stopping to work?

All the best,
Thomas

Zyb

unread,
Dec 20, 2017, 8:55:55 AM12/20/17
to TiddlyWiki
Same for me after I updated the addon yesterday. The TW is being saved it seems (so no data loss when you close it despite the warning), but it is not marked as saved.

Ton Gerner

unread,
Dec 20, 2017, 8:59:07 AM12/20/17
to TiddlyWiki
Hi Mario, Thomas,

I can confirm the behaviour Thomas mentiones.

Yesterday I created a new Firefox profile (I had 'invisible' radio buttons) and got problems with saving after installing the (new 0.3.3) file-backups add-on: saving worked (you could see the flickering download arrow), but the save button stayed red.
But one TW did not save at all with the following error in the console:

saver-handler: Saving wiki with method autosave through saver tiddlyfox $:/core/modules/utils/logger.js:33:10
save
-wiki error:
Error
columnNumber
: 1
fileName
: "undefined"
lineNumber
: 0
message
: "filename must not contain back-references (..)"
stack
: ""
__proto__
: Object { }


Although my radio buttons reappeared with the new profile, I decided this morning to use my 'old' profile (which had to my best knowlegde an earlier version of the file-backups add-on, 0.2 or so) again to regain normal saving.
And yes it did: normal saving with disappearing red save button. Also the TW that did not save with the new profile/add-on, saved again.

But after a few hours - without changing a thing - I saw the 'normal' saving has disappeared and the save button stays red again (but saving works, even for the 'problematic' TW).
Checking the add-ons revealed version 0.3.3. Can it be that it was updated by Firefox syncing?

Cheers,

Ton


Mark S.

unread,
Dec 20, 2017, 11:28:50 AM12/20/17
to TiddlyWiki
It doesn't work for me either. I'm using the older 3.3 version from 12/8 (at least that is what the date says). I haven't let FF update. Sometimes it tries to default save, and other times it ignores requests to save.

In other words, nothing changed -- but everything stopped. As if some timer were tripped.

I switched to BJ's save mechanism. But now (at least with the custom path) it doesn't see the junctions as being *below* downloads, and it also wants to use the default mechanism, but with about twice as many dialogs to dismiss.

I'm wondering if a windows update changed junction/link behavior.

So, is everyone having problems on Windows, or is it multiple systems?

Thanks!
Mark

Furicle

unread,
Dec 20, 2017, 11:30:49 AM12/20/17
to TiddlyWiki
I'm seeing the red checkmark not clear as well - I have updated to 0.3.3 and I am on Windows 10 (64 bit)

But it is saving, it's just not clearing the mark....

Mark S.

unread,
Dec 20, 2017, 1:50:22 PM12/20/17
to TiddlyWiki
I take it back. I can save with BJ's save mechanism.

Mark S.

unread,
Dec 20, 2017, 2:02:48 PM12/20/17
to TiddlyWiki
Trying again with 0.8.

It works! But the red check mark doesn't go away and, if you try to close the page it will warn you (incorrectly) that it hasn't been saved.

-- Mark

BJ

unread,
Dec 20, 2017, 2:17:26 PM12/20/17
to TiddlyWiki

 Hi Mark,

unfortunately l don't have windows 10, so cannot test. (I am not seeing a problem with xubuntu 14.04)

Do you see anything in the browser console (or the web console)? - you can open the browser console via the 'web developer' menu, which is got to thru the 'hamburger icon'

Mark S.

unread,
Dec 20, 2017, 2:38:39 PM12/20/17
to TiddlyWiki
Hi BJ,

Sorry for the post-storm.

I may have just needed to reboot FF. Yours was working before I tried Mario's latest version. His works, but doesn't reset the save flag.

Thanks!
Mark

PMario

unread,
Dec 20, 2017, 3:59:38 PM12/20/17
to TiddlyWiki
On Wednesday, December 20, 2017 at 1:34:54 PM UTC+1, Thomas Elmiger wrote:
Sounds like good news, but the (previous) version stopped working for me yesterday at home and today at the office, both in FF 57 Win and in FF Developer 58 on the Mac :(

Seems to be odd. ... I'm didn't see anything in the plugin description area, that says, that creating a mozilla store version, does invalidate self signed versions..

Did you try to re-install 0.3.1 from github? https://github.com/pmario/file-backups/releases/tag/V0.3.1
 
After an update to the new version on Windows the downloads happen again, but without TW noticing the save process (TW 5.1.14) – the download icon stays red and an alert pops up when I close TW after saving.

I did a fresh install from mozilla store. It seems I can reproduce the issue. ... The funny thing is, I didn't change anything in the save process... 0.3.3. just added some changes, where the mozilla sign process responded with warnings. ... Will have a close look

 
Is there a special upgrade procedure? Can there be a connection between you/FF publishing a new version and the old version stopping to work?

I did just install 0.3.1 from github, while 0.3.3 was installed from the store. ... Worked for me.


Sorry for the inconveniencies !

-mario

PMario

unread,
Dec 20, 2017, 4:02:53 PM12/20/17
to TiddlyWiki
On Wednesday, December 20, 2017 at 2:59:07 PM UTC+1, Ton Gerner wrote:
Checking the add-ons revealed version 0.3.3. Can it be that it was updated by Firefox syncing?

May be yes. ... I'll check it :(

Thomas Elmiger

unread,
Dec 20, 2017, 4:50:25 PM12/20/17
to TiddlyWiki
I switched back to 0.3.1 and – after a browser restart – everything seems to work again. Firefox Developer for Mac is on 58.0b12 (64-Bit) at the moment.

Updating seems to happen automatically if you leave the extension setting on "Standard". I switched to "Off" now ("Aus" in German).

PMario

unread,
Dec 20, 2017, 5:25:32 PM12/20/17
to TiddlyWiki
On Wednesday, December 20, 2017 at 10:50:25 PM UTC+1, Thomas Elmiger wrote:
I switched back to 0.3.1 and – after a browser restart – everything seems to work again. Firefox Developer for Mac is on 58.0b12 (64-Bit) at the moment.

Updating seems to happen automatically if you leave the extension setting on "Standard". I switched to "Off" now ("Aus" in German).

Update is on the way! ... But it needs to be reviewed. ... I'll post an update, when it is active.

V0.3.3 doesn't loose data, it just didn't update the tw "dirty" handling.

For now, Version 0.3.1 should be used: https://github.com/pmario/file-backups/releases/tag/V0.3.1  and automatic plugin update set to off.

Thank you, for your patience!

mario

PMario

unread,
Dec 20, 2017, 5:35:20 PM12/20/17
to TiddlyWiki
Hi folks,

Me again :)

... It seems to be activated. .. Please test again. ... and ...

have fun!
mario

PMario

unread,
Dec 20, 2017, 5:39:17 PM12/20/17
to TiddlyWiki
On Wednesday, December 20, 2017 at 2:59:07 PM UTC+1, Ton Gerner wrote:
Hi Mario, Thomas,

I can confirm the behaviour Thomas mentiones.

Yesterday I created a new Firefox profile (I had 'invisible' radio buttons) and got problems with saving after installing the (new 0.3.3) file-backups add-on: saving worked (you could see the flickering download arrow), but the save button stayed red.

This should be fixed with 0.3.4 now.
 
But one TW did not save at all with the following error in the console:

saver-handler: Saving wiki with method autosave through saver tiddlyfox $:/core/modules/utils/logger.js:33:10
save
-wiki error:
Error
columnNumber
: 1
fileName
: "undefined"
lineNumber
: 0
message
: "filename must not contain back-references (..)"
stack
: ""
__proto__
: Object { }



I'm not sure about this problem atm. ...

This message: message: "filename must not contain back-references (..)"

shouldn't be possible with 0.3.x ... So did it pop up as you used 0.2.x ??

-m

Birthe C

unread,
Dec 20, 2017, 6:19:03 PM12/20/17
to TiddlyWiki
Windows 7 Firefox 57.2 and 0.3.4 file-backups add-on works now.
You fixed it faster than I could restart Firefox ;-). Thank you.

Birthe

PMario

unread,
Dec 20, 2017, 6:29:47 PM12/20/17
to TiddlyWiki
On Thursday, December 21, 2017 at 12:19:03 AM UTC+1, Birthe C wrote:
Windows 7 Firefox 57.2 and 0.3.4 file-backups add-on works now.
You fixed it faster than I could restart Firefox ;-). Thank you.

I didn't expect it, to be released, by mozilla, so fast either. It started with position 9/9 in the waiting queue. Next time I had a look it was 9/10 ...
So I created the post with V 0.3.1. ... After posting the message, it was released :) .. That's nice.

So it seems to be possible, to push / release web-extension fixes much faster now.

-m

Ton Gerner

unread,
Dec 21, 2017, 11:32:25 AM12/21/17
to TiddlyWiki
Hi Mario,


But one TW did not save at all with the following error in the console:...
 
I'm not sure about this problem atm. ...

This message: message: "filename must not contain back-references (..)"

shouldn't be possible with 0.3.x ... So did it pop up as you used 0.2.x ??

No, I'am sure it was *after* installing v0.3.3.
But I have to say that today while fiddling around at a certain moment I got a message saying something like: "Not possible to use two file-backup add-ons together; one switched off". I never saw more than one file-backup add-on in the list. May be it had something to do with a corrupt Firefox profile.

As a sidenote: Today the file-backups add-on was automatically updated to 0.3.4. The same was true for my Firefox dev. ed. which changed from 0.3.1 to 0.3.4 (I can't remember installing a 0.3.1 version)

As mentioned in my last post I already had (CSS) problems with my Firefox profile. Today I started my profile from scratch and now everything works fine.

Thanks a lot for this terrific add-on.

Cheers,

Ton

@TiddlyTweeter

unread,
Dec 21, 2017, 5:20:37 PM12/21/17
to TiddlyWiki
PMario wrote:
... I didn't expect it, to be released, by mozilla, so fast either.
 

Right. But that's actually a major upside of the new architecture. Part of the early days of it will be keeping up. Previously It was about endless waiting.That's no longer needed as the architecture does 99% of the work already.

Its brilliant to see your work on this.

FYI. I'm still on ESR 52 till March to let things settle down a bit.

Just saying
Josiah

PMario

unread,
Dec 21, 2017, 6:02:06 PM12/21/17
to TiddlyWiki
On Thursday, December 21, 2017 at 5:32:25 PM UTC+1, Ton Gerner wrote:

As a sidenote: Today the file-backups add-on was automatically updated to 0.3.4. The same was true for my Firefox dev. ed. which changed from 0.3.1 to 0.3.4 (I can't remember installing a 0.3.1 version)


There are 2 ways to publish AddOns. ...

 - signed by mozilla, but "slef published" / hosted
 - signed by mozilla and hosted at mozilla store.


up to version 0.3.1 ... I did publish them at github, because I wanted to avoid the "review-delay" ... With TiddlyFox Jeremy had to wait days. ...

I didn't expect, that a "slef published" version will be auto-updated, after pushing it to the store. I thought, it had to be installed manually. ... It seems I was wrong.

... So I need to find out, how I can go with a "stable", and a "beta" channel. ... Will need to study the docs a bit closer :)

have fun!
mario



Stan001

unread,
Dec 22, 2017, 5:13:43 AM12/22/17
to tiddl...@googlegroups.com
Hello Mario,

In case you are interested in what works or not on for mac platform with version 0.3.4 as of 2017-12-22 11am CET you may have a look into attachment.

As you advised I'm on 0.3.1 with disabled updates, so all is fine.

Appreciate your work.

Take care, 

St.
2017-12-22 TWandFileBackup.docx

PMario

unread,
Dec 22, 2017, 6:23:21 AM12/22/17
to TiddlyWiki
On Friday, December 22, 2017 at 11:13:43 AM UTC+1, Stan001 wrote:
In case you are interested in what works or not on for mac platform with version 0.3.4 as of 2017-12-22 11am CET you may have a look into attachment.

Hi Stan,

Thank you for you feedback. ... If the blue diamond doesn't show up, it seems the whole plugin isn't initialized in the right way. ... But that may be a browser problem.

If you have file names like "test (1).html" that means the TW default save mechanism is active. ... that's ok.

@All
Is there someone else, with a mac, that did experience the same behavior with 0.3.4?

@Stan
I did just try to reinstall 0.3.4 with FF 57.01 on win10 and ubuntu,
I did setup the system similar to your setting. homepage and download dir, just to be sure. ... no problems ... But it's not the same OS :/

 - Can you open the browser dev environment with F12, when TW is loaded
 - select the "console" tab
 - and save the wiki.

There should be some text output. ... like

 - saver-handler: Saving wiki with method save through saver download  ... or
 - saver-handler: Saving wiki with method save through saver tiddlyfox
 
The second one should be there, if the plugin is active. The first one is the default saver.

Just to be sure. When Did you restart the OS the last time?

-mario

Stanislav Vitecek

unread,
Dec 23, 2017, 5:48:13 AM12/23/17
to TiddlyWiki GoogleGroups, pmar...@gmail.com
Hello Mario,

I made a new clen set of tests, which are documented in the attachment.

Observation:
The trick for mac, FF and TW and File Backups v 0.3.4 seems to be the necessary restart of mac to allow the Add on work properly. – It did not work right after the installation.

I’m glad. …but, well, it reminds me of windows some time ago…

Many many thanks for your work.

Merry Christmas,

Stan
2017-12-23 TWandFileBackup.pdf

PMario

unread,
Dec 23, 2017, 8:06:16 AM12/23/17
to TiddlyWiki
On Saturday, December 23, 2017 at 11:48:13 AM UTC+1, Stan001 wrote:
Observation:
The trick for mac, FF and TW and File Backups v 0.3.4 seems to be the necessary restart of mac to allow the Add on work properly. – It did not work right after the installation.

I’m glad. …but, well, it reminds me of windows some time ago…

:) ... That's funny. I only thought about this possibility, because a friend of mine told me, that he had to restart his mac some time ago, because of weired behaviour of a native program. He didn't do that for over a year. ...
 
Many many thanks for your work.

Glad that it works now :)

 Merry Christmas,

Merry Christmas,

- Mario

PMario

unread,
Dec 23, 2017, 8:09:48 AM12/23/17
to TiddlyWiki
Hi Stan,

The performance info you see in your control panel is because of the Performance Instrumentation setting int the ControlPanel: Settings

If you deactivate the setting you'll need to save and reloade the TW. ... It's for internal use.

-m

whatever

unread,
Dec 23, 2017, 8:18:07 AM12/23/17
to TiddlyWiki
Hi!

I wanted to install it in Waterfox 56.0.1 on Windows 10, but I got the "This add-on requires a newer version of Firefox (at least version 56.0). You are using Firefox 10.0." message. So I right-clicked on the disabled "Add to Firefox" button and saved it locally. Then I opened it in Waterfox and it let me install it. So I guess there's something fishy going on with Mozilla browser recognition.

w
Reply all
Reply to author
Forward
0 new messages