make a read only tiddler?

63 views
Skip to first unread message

david.j....@gmail.com

unread,
Jan 16, 2008, 8:13:04 PM1/16/08
to TiddlyWiki
Is there something similar to TemporaryTiddlersPlugin that would make
only the changes to a specific tiddler temporary? So that if a
specific tiddler were changed then the changes would not be saved for
that specific tiddler but all of the others would be saved.

One possible reason why this would be useful: if I have made several
changes before saving the document and then accidentally edit a
tiddler that I didn't mean to, I could just tag that one as "read
only". Then if I hit save, all of the desired content would be saved
and the unwanted changes would be skipped over.

I tired using the TemporaryTiddlersPlugin; however, it seems that if I
already have some content in a tiddler that was saved previously, and
I tag it temporary the tiddler is actually deleted.

I know that when changes are made in the open file the original
content is not saved in RAM, so therefore the plugin would have to
look back at the original file on disk and use the built-in import
functions to get the content from the "read only" tiddler just before
saving the file.

Would it be difficult to add this functionality to the current
TemporaryTiddlersPlugin, possibly by tagging tiddlers with readonly
instead of temporary?

Thanks,
David

Eric Shulman

unread,
Jan 16, 2008, 9:20:36 PM1/16/08
to TiddlyWiki
> One possible reason why this would be useful: if I have made several
> changes before saving the document and then accidentally edit a
> tiddler that I didn't mean to, I could just tag that one as "read
> only". Then if I hit save, all of the desired content would be saved
> and the unwanted changes would be skipped over.
>
> I tried using the TemporaryTiddlersPlugin; however, it seems that if I
> already have some content in a tiddler that was saved previously, and
> I tag it temporary the tiddler is actually deleted.

http://www.TiddlyTools.com/#UnsavedChangesPlugin
http://www.TiddlyTools.com/#LoadTiddlersPlugin

When both plugins are installed, the 'unsaved changes' list created by
the <<unsavedChanges>> macro includes a "revert" pushbutton that
automatically invokes <<loadTiddlers>> to re-import the last saved
copy of the tiddler from the stored file.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
Reply all
Reply to author
Forward
0 new messages