ibnishak / Timimi

Webextension to save Tiddlywiki
https://ibnishak.github.io/Timimi/
GNU Affero General Public License v3.0
205 stars 23 forks source link

Disable Timimi for current Wiki #35

Open AnthonyMuscio opened 4 years ago

AnthonyMuscio commented 4 years ago

I love Timimi and use it as a rule. I love FireFox in which Timimi runs. However I sometimes want to use other save methods when I open a TiddlyWiki from the File:// addresses, these now include

Otherwise I need to turn off Timimi for the Whole browser, or use a different browser. It is nice to update with Timimi then if I could turn it off the next save will occur via the other method. Other methods can be disabled as they come as plugins but Timimis minimum config (Which is great) has no plugin or switch since it exist only in the browser add ons.

I was wondering if there were a way to configure a wiki in someway that Timimi would ignore the fact its a tiddleywiki file and not save it as it would normally.

Perhaps a raw tiddler of some form with an appropriate parameter could be tested before each save or load via timimi? Such that it will use another saver, ultimately reverting to the default file save by download.

Thanks in advance Tony

ibnishak commented 4 years ago

There is a mechanism currently in place for this. In Tiddlywiki, the savers are ranked. Higher the rank, more preferred the saver is. Timimi opted to share the rank of Tiddlyfox. So as far as Tiddlywiki5 is concerned, Timimi is Tiddlyfox. Timimi itself can neither reduce the rank of Tiddlyfox, nor can a Firefox addon disable itself.

Probably the only possible mechanism to achieve what you are asking for is to disable the tiddler named "$:/core/modules/savers/tiddlyfox.js". Then Tiddlywiki5 will look for next highest ranked mechanism.

Telumire commented 3 years ago

Hi, I know I am late but I am in the same situation and I am sure others are too.

The easiest workaround I've found personally is just to remove my pseudo in the GitHub saver configuration and put it back when I want to save locally with timimi.

However, it seems possible to create a toggle to switch between savers, as shown here:

https://gitter.im/TiddlyWiki/public?at=5d63fc15f2821072aa19c996

The solution itself is only alluded to and I lack the knowledge to fill in the blanks, so if anyone knows how to do it, please share it :)