Is there a way to toggle the saved state without saving?

Is there a way to toggle saved indicator and/or state?

Why would I want to do this? Let’s say I’m working with a hosted TW (e.g. tiddlywiki dot com, or a file on tw host). I don’t want or can’t save using the saver. Instead I export changed tiddlers. But I need a reminder when I have/haven’t saved, because I sometimes forget. Also, I might want to close out my tabs without interference from the browser.

hmmm, It may be possible to create a new $:/core/ui/Buttons/save-wiki button, that uses a different $:/config/SaveWikiButton/Template

At the moment the $:/config/SaveWikiButton/Template points to $:/core/save/all … Which you’ll need to change into the format you want to “download” your changes.

Once that’s done the saver handler should automatically clear the “dirty flag”. But I did not test that.

How do you save your changes? as a JSON file? Which filter?

Hope that makes sense?
-m

Hi @Mark_S , I was just trying to learn how to use Tones’ bookmarklets and he happens to have one on “dirty state” that at least seems to toggle in one direction.

https://bookmarklets.tiddlyhost.com/#Reset%20Dirty%20save%20status

1 Like

Yes, I was going to mention that. I am glad you pointed it out and its public location.

There is more we can do but setting out some more detailed requirements would help.

You can change the filters that triggers the dirty state and or rely on the local storage plugin with its caviets.

Preferably my own filter, though the storyriver filter could be a close 2nd. As a JSON.

The Reset Dirty save status bookmark didn’t seem to work for me, but perhaps the browser has to be reloaded first? Or maybe it changes the browser status, but not the TW indicator?

I will check later todaybut I use it every day in chrome and firefox including 5.3.0 and it clears the red status and no longer will prompt to save.

I’m using chromium (Version 114.0.5735.198 ) on linux. Not only doesn’t the dirty reset work, but also attempting to make a bookmark from the advanced search doesn’t work. I notice that the bookmarks are made without names. Here’s the contents of the dirty reset:

javascript:(function() %7B%0A%24tw.wiki.addTiddlers(%5B%5D)%3B%0A%7D)()

So this method works. In this example, whatever you have in the advanced search filter will be used for saving. The concern I would have is that if you used this with TiddlyHost, because it uses the tm-wiki-save, it would attempt to over-write your TW file with a JSON file. Which gets us back to that old problem of not being able to tell TW how we want to save (for instance, if you want to send a backup to github instead of TiddlyHost).

Thanks!

save-as-export-release-07161340.json (1.2 KB)

There is a pending PR PreferredSaver by xmaysonnave · Pull Request #4716 · Jermolene/TiddlyWiki5 · GitHub that implemented a selector to choose the preferred saver. It may be possible to activate 2 or even more savers.

We would need to re-activate the discussion about a mechanism like that. I personally would like to be able to save a wiki to GitHub and also make a local backup.

1 Like

You can do that already with a Download button. But you can’t easily switch between TiddlyHost and GitHub. It used to be you could erase credentials and force a switch, but that doesn’t work anymore, I think. So being able to specify which method you wanted would allow you to quickly switch between working platforms.

Although we want a save option to includ that arrived at automaticaly or named. For example may wiki may use tw-reciever or Timimi and I want to use another.