[TW5] Plugin update: Autosave for EditorCounter – Never lose hours of work again

288 vues
Accéder directement au premier message non lu

Thomas Elmiger

non lue,
4 mars 2017, 06:35:5504/03/2017
à TiddlyWiki
Hi all

Yesterday I lost about one hour’s work when my computer crashed – I had forgotten to save my wiki and after a restart the tiddler I had open in edit mode was gone. – Now I lost another few hours of my life to make sure this never happens again!

A new feature is available in my EditorCounter plugin (version 0.6.1):

Autosave

Autosave will try to save your wiki in the background after adding or removing 200 characters. You can change this value in the settings.


Please activate the new feature in the plugins’ settings and give it a try.

As always: remember to back up your wikis.

And as always you can find my plugins here: http://tid.li/tw5/plugins.html#Get%20More%20Plugins – feedback ist highly appreciated.


Stay safe!

Thomas

David Szego

non lue,
4 mars 2017, 23:10:0304/03/2017
à TiddlyWiki
Hey Thomas, that Clipboard plugin is a must-have!!

I'm going to give the EditorCounter a try ... I'm always weary of autosaving when there's code involved (autosave your bugs!) but it'll be very useful for regular text Tiddlers. Is there an easy way of selecting tags that turn off autosave?

And I love the to-do plugin you've got. I don't yet understand all the buttons, but it's a great start for a very nice clean to-do-list layout. Great UI in the works.

Thomas Elmiger

non lue,
5 mars 2017, 05:01:2505/03/2017
à TiddlyWiki
Thank you David!

Could you explain a bit more on how you would like to “select tags that turn off autosave?”

Until now you can switch autoave on and off on the plugin’s settings tab. Of course one could make a button anywhere – in edit mode/editor toolbar? – that does the same …

Cheers, Thomas

David Szego

non lue,
6 mars 2017, 23:12:0906/03/2017
à TiddlyWiki

You're right, that didn't sound so clear!

I'd like to be able to select which tags indicate that this Tiddler should not get auto-saved. For instance, all $:/ (system) tags, or "plugins" or "noAuto", or such.

This would let me ensure that I don't auto-save halfway through writing code, which would likely trigger a crash as soon as I reload (due to halfway-written code!)

Danielo Rodríguez

non lue,
7 mars 2017, 04:01:4307/03/2017
à TiddlyWiki

Dear everyone,

I just want to mention that autosave is a built-in function into any tw edition using a sync adaptor. This includes NoteSelf!

Thomas Elmiger

non lue,
7 mars 2017, 04:49:4907/03/2017
à TiddlyWiki
Hi Danielo

Thanks for the hint!


I just want to mention that autosave is a built-in function into any tw edition using a sync adaptor. This includes NoteSelf!

According to http://tiddlywiki.com/#AutoSave the built-in autosave is triggered by clicking a save- or delete-button. My EditorCounter autosave function is triggered WITHOUT clicking a button in the user interface. This way (my way) a "Draft of …" tiddler is saved after the author has typed or removed a defines number of characters.

Maybe I shoud call it fully automatic save for better distincion?

Cheers, Thomas

Thomas Elmiger

non lue,
7 mars 2017, 12:22:4107/03/2017
à TiddlyWiki
Hi David

Until now I had not been aware of the fact that "Draft of …" tiddlers (that's what my fully automatic tool saves) are loaded and executed and thus are able to crash TW like normal tiddlers. I’m tempted to suggest to the core team to change that …

Until then: Could you live with a button in the editor view that let's you disable autosave while you work on dangerous stuff?

Cheers, Thomas

David Szego

non lue,
8 mars 2017, 11:14:0908/03/2017
à TiddlyWiki
Good idea.

I don't think Draft.of's are executed, (maybe sometimes they could be?) but they may be transcluded in lists that don't include -[has[draft.of]] and other cases. So, just a precautionary measure.

Danielo Rodríguez

non lue,
21 mars 2017, 13:44:1321/03/2017
à TiddlyWiki

Hello Thomas
 

According to http://tiddlywiki.com/#AutoSave the built-in autosave is triggered by clicking a save- or delete-button. My EditorCounter autosave function is triggered WITHOUT clicking a button in the user interface. This way (my way) a "Draft of …" tiddler is saved after the author has typed or removed a defines number of characters.

Maybe I shoud call it fully automatic save for better distincion?

Cheers, Thomas

I understand your confusion.
I do mean AutoSave in the same sense as you. I am very surprised to discover that this feature is not documented on any place (not tiddlywiki.com, nor tiddlywki.com/dev). By deafult, when a SyncAdaptor is used, tiddlywiki performs automatic synchronizations every second. You can see it here:


So this is Automatic save, which includes draft tiddlers. If we speak technically, it is not automatic save, but automatic synchronization.

Regards

 

Arlen Beiler

non lue,
21 mars 2017, 14:25:1321/03/2017
à TiddlyWiki
Is the difference here that Thomas's plugin will trigger save for the regular saver mechanism even when a draft is the only thing that changed? This would apply to TiddlyFox and download savers, but not the sync adapter that syncs individual tiddlers, including drafts. The sync mechanism is what noteself and the NodeJS server both use.


 

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/623092a1-77d2-4af4-a632-2abfdefed09a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Thomas Elmiger

non lue,
21 mars 2017, 14:51:1921/03/2017
à TiddlyWiki
Hello Danielo and Arlen

I think I copied my save function from somewhere below the search button, I don’t remember that exactly. I use

$tw.rootWidget.dispatchEvent({type: "tm-auto-save-wiki"});

so this seems to be a technical auto save mechanism and not a sync mechanism. In my experience it does exactly the same as the save button, just without pressing the button. Perfect for my local workflow.

Stay safe,
Thomas

@TiddlyTweeter

non lue,
21 mars 2017, 16:37:2321/03/2017
à TiddlyWiki
is this thread about counting?

your gadget counts characters and words accurately for me. Homo Countus Exactus.

but maybe its about "autosave"? i never switched it on. why? 200 characters mean nothing to me. 30 minutes of my time do. that is why i auto-backup every thirty minutes.

Philosophies? :-)

Best wishes
josiah

Thomas Elmiger

non lue,
14 mai 2017, 09:43:0314/05/2017
à TiddlyWiki
Hi David,

There is a new version (0.6.3) – in the settings you can enable an option to show an option to enable/disable autosave directly from the editor.

Happy coding!
Thomas

Thomas Elmiger

non lue,
14 mai 2017, 09:50:4614/05/2017
à tiddl...@googlegroups.com

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/M0tXH37TXEU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message