Replies: 1 comment 2 replies
-
Hi @linonetwo you are correct. I think the commonest solution to this problem would be to maintain a "delete marker" tiddler for tiddlers that have been deleted. The marker would be a special tiddler that marks the tiddler as having been deleted. The marker would be synced just like an ordinary tiddler, but would behave like a shadow tiddler and not appear in lists etc. We may be able to store these delete markers as subtiddlers in a special $:/Deleted tiddler to give us the behaviour of shadow tiddlers. I note that I think this could all be done in wikitext, by providing an alternate delete button that performs the required logic. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As I can read in the
TiddlyWebAdaptor.prototype.deleteTiddler
, it will be called byDeleteTiddlerTask
, which is stored inSyncer.prototype.processTaskQueue
, which is in JS's memory.So if an HTML wiki using a sync adaptor connect with a nodejs server, is then saved as an HTML file, this deletion task is not persisted.
After this HTML file is reloaded in the mobile browser, the deleted tiddler will not keep deleted, it will comeback (I haven't tested this), is this true? We may need to store all these tasks, so sync adaptor works properly on deletion or rename.
Context:
I'm writing a custom syncer to sync between HTML wiki and nodejs wiki in https://github.com/tiddly-gittly/tw-mobile-sync
Beta Was this translation helpful? Give feedback.
All reactions