El lunes, 22 de agosto de 2016, 19:50:03 (UTC+2), Brian Theado escribió:
>
> Hi Danielo. Thanks for sharing your plugin, it looks really interesting.
>
>
Hello Brian. Thank you for giving it a try!!
 

>
> I can see it isn't only about autosave (nice explanation), but the 
> autosave without using a browser plugin is a really nice feature on its own 
> (as Josiah also mentioned). If I were to use this plugin for the autosave 
> functionality only (i.e. without a couchdb server), I would feel a little 
> nervous about have all my tiddler data stored only in the browser's 
> IndexedDB storage. Rather than being diligent about backing up my browser's 
> profile directory, I got to thinking it would be nice to have a download 
> button which downloads a full tiddlywiki including all the tiddlers from 
> the pouchdb database. That way I could autosave to browser storage 
> throughout the day and maybe once or twice a day hit the download button to 
> store a full tiddlywiki file as the backup.
>

I perfectly understand how do you feel, because it's something I think 
about it several times. Indeed when I wrote the first version of the plugin 
(wow, more than a year ago!) that was one of my first targets and goals. 
But I started to leave it aside and I finally forgot about it on the first 
release. Why? Because I was unable to anticipate user's preferences, in 
fact I was unable to anticipate my own preferences. I mean, what would be 
better? To download a JSON file representing the database? To download a 
copy of the wiki with all the tiddlers ? Should such version include the 
plugin or should it get rid of it? Should the downloaded version be 
composed of regular plain tiddlers or just have one single tiddler 
representing the whole database? Should the exported versions of the 
database include all the tiddler's revisions or just the last one? As you 
can see, a lot of questions I'm not able to answer, not to mention that 
they were difficult to implement for me at that moment. Now that I'm 
starting to get some user feedback I may take better decisions.
 

>
> I was even thinking that when the user does not have a couchdb server 
> configured, the default behavior for download could be to download the full 
> tiddlywiki. Because it is only when the couchdb server is configured that 
> the "thin" tiddlywiki is useful. What do you think?
>

As I have mention, that was indeed the intention, but was harder than I 
expected. Tiddliwiki does not provide a method to generate what should be 
downloaded, it's TW core who generates the content and then passes it to 
the saver, so I would need some kind of hook for such feature, but it is 
definetively on the roadmap.
 

>
> But then that brings me to a further idea that the plugin could notice 
> when a "thick" version of a TW file is loaded and it could automatically 
> sync the tiddlers into the pouchdb localstore. Seems like that might be 
> tricky to get right, but the idea is that the "thick" tiddlywiki file 
> becomes a replacement for a couchdb server. 
>

What do you mean with a "thick" version? A regular TW which contains 
tiddlers that are not saved on the local storage? That could only happen if 
you install the plugin in an already existing database. I don't have plans 
to support that configuration as a priority, because my priority is that 
NoteSelf is used as a TW edition. Anyway, if you could expand on your 
definition of "thick" version I will be very grateful because seems like an 
interesting idea.

 

> This "import into pouchdb" functionality would also be useful if someone 
> had an existing tiddlywiki and they wanted to start using the pouchdb 
> plugin with it.
>

Now that I'm thinking about it it does not looks so difficult... An 
interactive version would be definitely easier. An automatic one could be a 
bit pain in the neck.
 

>
> I know these ideas are not in line with your main use case, but I just 
> wanted to share.
>

And they are Very welcome! Please don't hesitate to share all the ideas you 
get.
Regards 

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/540f8ef4-c51d-4357-a03d-0c6df54a4d12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to