Discussion:
[tw5] How protect tiddlers?
(too old to reply)
Mat
2018-08-06 16:35:56 UTC
Permalink
How can I ensure a tiddler is not overwritten?

I do not mean that someone would click the *edit* button etc but rather
myself *generating* a tiddler that accidently has the same ID (i.e title)
as an already existing tiddler.

Is it at all possible to protect a tiddler against this?

I guess the second best would be to make it a shadow tid, i.e so that it
can be overwritten but then at least restored. What, then, is the best
workflow to convert a tiddler into a shadow tid? AFAIK there is no quick
button to do so (e.g changing the tiddler *type* to "shadow" or some such)

Ideas?

<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/8459a5e8-c160-4ed2-9cff-698e5cf978f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
passingby
2018-08-06 16:40:00 UTC
Permalink
if you are creating a tiddler by hand, TW gives you a warning about pre
existing tiddler.
Post by Mat
How can I ensure a tiddler is not overwritten?
I do not mean that someone would click the *edit* button etc but rather
myself *generating* a tiddler that accidently has the same ID (i.e title)
as an already existing tiddler.
Is it at all possible to protect a tiddler against this?
I guess the second best would be to make it a shadow tid, i.e so that it
can be overwritten but then at least restored. What, then, is the best
workflow to convert a tiddler into a shadow tid? AFAIK there is no quick
button to do so (e.g changing the tiddler *type* to "shadow" or some such)
Ideas?
<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/3adaa767-412f-4339-880c-c089fec7cc75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mat
2018-08-06 17:33:11 UTC
Permalink
Yes, I know, but thanks.


BTW, one way I have solved this before - but it's not appropriate in this
case - is to give the tiddlers cryptic titles that are unlikely to be
overwritten and then also use an extra "alias" field plus a viewtemplate to
show this alias as if it were the title etc.

Anyway, further ideas anyone?

<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/d244222f-06c5-473c-97c7-35cb754c397b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Mark S.' via TiddlyWiki
2018-08-06 18:23:18 UTC
Permalink
What do you mean by "generated" ? There's hmm ... 3 ways I can think of to
create tiddlers, one of which has tiddler-collision built-in. If you use
that (ActionCreateTiddlerWidget) then it will automatically make a new name
if there is an existing name.

The other approach would be to check for the existence of a tiddler, and
skip creating it, perhaps making a report so you can handle it per case.

-- Mark
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/af612cbb-4d29-4441-b9b7-b974d6d85a47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mat
2018-08-06 20:45:06 UTC
Permalink
Post by 'Mark S.' via TiddlyWiki
What do you mean by "generated" ? There's hmm ... 3 ways I can think of
to create tiddlers, one of which has tiddler-collision built-in. If you use
that (ActionCreateTiddlerWidget) then it will automatically make a new name
if there is an existing name.
The use case is this: I'm currently creating a bigger wiki to use in my
work and I occasionally need some quick "special thing" like several tids
with some extra pre-set fields or similar. So rather than go searching for
a proper solution for this I whip up some button for it or some listwidget
that makes a table with EditTextWidgets etc. This is what I mean with
"generated". I often only have indirect control of the titles (e.g via a
filter) and might assume they don't already exist.

ActionCreateTiddlerWidget - oddly, I'm not even sure I knew about this!!!?
I think my default has been to use tm-new-tiddler or ActionSetFieldWidget.
Thanks!


The other approach would be to check for the existence of a tiddler, and
Post by 'Mark S.' via TiddlyWiki
skip creating it, perhaps making a report so you can handle it per case.
Safety checks rather than actual prevention of overwrite might, yeah if the
circumstances allow. Thanks again.

<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/a1c56975-5b40-40bd-ba40-d4165f280903%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Mark S.' via TiddlyWiki
2018-08-06 21:21:53 UTC
Permalink
Post by Mat
Safety checks rather than actual prevention of overwrite might, yeah if
the circumstances allow. Thanks again.
<:-)
Since you're filling in forms, the form could hide the "Submit" button if
the to-be-generated tiddler exists and replace it with a warning message.

-- Mark
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/c3f020c8-8cc4-49c2-93fe-2d89f3e4edad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mat
2018-08-06 21:39:44 UTC
Permalink
Post by 'Mark S.' via TiddlyWiki
Since you're filling in forms, the form could hide the "Submit" button if
the to-be-generated tiddler exists and replace it with a warning message.
hehe, no it's not proper forms. Its typically just some table I throw
together with EditTextWidgets for direct setting of field values, which
"incidentally" creates the tiddler if it didn't exist already.

<table>
<$list filter="...">
<tr><td>{{!!title}}</td><td><$edit-text field=foo/></td></tr>
</$list>
</table>

...that kinda thing. Even if I make the titles show as links I can miss
their existance when there are multiple such editors and I quickly
copy-paste stuff into them, then overwrites can happen and I won't really
notice.

<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/5524a72e-e333-4db1-b0e2-3488c6e01243%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Mark S.' via TiddlyWiki
2018-08-06 22:18:01 UTC
Permalink
You could put a nested list inside the current list that checks for the
prior existence and shows only link if it exists but shows the edit fields
if it doesn't.

-- Mark
Post by 'Mark S.' via TiddlyWiki
Since you're filling in forms, the form could hide the "Submit" button if
Post by 'Mark S.' via TiddlyWiki
the to-be-generated tiddler exists and replace it with a warning message.
hehe, no it's not proper forms. Its typically just some table I throw
together with EditTextWidgets for direct setting of field values, which
"incidentally" creates the tiddler if it didn't exist already.
<table>
<$list filter="...">
<tr><td>{{!!title}}</td><td><$edit-text field=foo/></td></tr>
</$list>
</table>
...that kinda thing. Even if I make the titles show as links I can miss
their existance when there are multiple such editors and I quickly
copy-paste stuff into them, then overwrites can happen and I won't really
notice.
<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/0f47802b-ab81-4773-9e8e-bac765583ec5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mat
2018-08-06 23:20:13 UTC
Permalink
Post by 'Mark S.' via TiddlyWiki
You could put a nested list inside the current list that checks for the
prior existence and shows only link if it exists but shows the edit fields
if it doesn't.
That's a neat idea. Will try to keep it in mind. :-)

I'm still hoping for some more general approach to protect tiddlers though.
It probably is shadow tids like Mario suggests, but I'm not sure how to
shadowify individual tiddlers in a simple way. There ought to be a simple
tiddler tool button for it, but then again, what does it mean that one
tiddler is shadowified....

<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/bb825426-9ce8-4b77-964f-a7da06c8a235%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
'Mark S.' via TiddlyWiki
2018-08-06 23:51:28 UTC
Permalink
Well, here's how you can shadowize your own tiddlers:

https://tiddlywiki.com/dev/#How%20to%20create%20plugins%20in%20the%20browser

Note that you don't see the result of your plugin saving until you reload.
It seems to me that it would fairly straight forward to make a javascript
"cheater" macro and button that could add new items to your "save-me"
Plugin. (cheater because macros aren't supposed to modify things, but there
you go).

But I don't think it will help as much as you think. So, something gets
written over, and you realize the mistake and can roll it back. BUT, what
about the new data that you had input that created the mistake? Don't you
still want that? That's why the catch-it-when-you-edit might be the better
all-up plan.

Have fun,
-- Mark
Post by Mat
Post by 'Mark S.' via TiddlyWiki
You could put a nested list inside the current list that checks for the
prior existence and shows only link if it exists but shows the edit fields
if it doesn't.
That's a neat idea. Will try to keep it in mind. :-)
I'm still hoping for some more general approach to protect tiddlers
though. It probably is shadow tids like Mario suggests, but I'm not sure
how to shadowify individual tiddlers in a simple way. There ought to be a
simple tiddler tool button for it, but then again, what does it mean that
one tiddler is shadowified....
<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/8b84cd11-c7c5-47cb-abb8-dd412ce0c835%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
passingby
2018-08-06 18:34:30 UTC
Permalink
Yes, I know, but thanks. That's why I mentioned "generated" tiddlers,
where I will not notice when a tid is overwritten.
Apologies, my bad, did not read properly.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/8f08866b-aaaa-49e1-9deb-5d3619d973ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
@TiddlyTweeter
2018-08-06 17:36:12 UTC
Permalink
Post by Mat
How can I ensure a tiddler is not overwritten?
I don't think you can beyond the single warning. Overwritten items are not
kept.
Post by Mat
I guess the second best would be to make it a shadow tid ...
Interesting idea. But would it really help? Reversion would be to some
standard thing? Wouldn't a versioning approach be more suited? Something
like ... http://twjam5beta.tiddlyspot.com/ a comprehensive versioning
system that got very little notice at the time the beta emerged.
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/842e14d2-9d85-4834-8b07-664c75147d39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PMario
2018-08-06 20:08:36 UTC
Permalink
Hi Mat,

I'd go with the shadow tiddler approach.

-m
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/bfdfdf7e-5e3e-4cb3-a540-c3390b776769%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mat
2018-08-06 20:54:07 UTC
Permalink
Post by PMario
I'd go with the shadow tiddler approach.
Yeah, thanks.... but if tiddlers are individually shadowified then they're
not protected are they? I mean isn't a plugin at risk of being overwritten
if one uses the same title? Or is a full page reload required for it to
actually be saved as overwritten?

Plus... how would I shadowify tiddlers on an individual basis anyway
without a lot of effort?

BTW I just got an idea; would it be possible to shadowify only fields, i.e
the title fields!? I'm not sure this make sense at all but maybe it
triggers some ideas :-)


Thanks for input Mario!

<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/873d9d0d-78bf-4de8-8a64-dd705bdef270%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PMario
2018-08-07 10:33:54 UTC
Permalink
Post by Mat
Yeah, thanks.... but if tiddlers are individually shadowified then they're
not protected are they?
No ... In TW everything is a tiddler and therefore can be changed. .. Also
the core is a tiddler ... A big one :) but still a tiddler.

The only thing you get is the "overwrite warning" when you start editing.
...
Post by Mat
I mean isn't a plugin at risk of being overwritten if one uses the same
title?
Yes ... That's a feature, by design. ...

You can prepare stuff for someone else. But as soon as they want to modify
it, they should be able to do so. ... Even if they break it.
Post by Mat
Or is a full page reload required for it to actually be saved as
overwritten?
If you create a new plugin, a full page reload will be needed, that the
plugin will be activated. ... Overwriting a plugin TEXT tiddler will be
active immediately. Overwriting code tiddlers will need a restart.
Post by Mat
Plus... how would I shadowify tiddlers on an individual basis anyway
without a lot of effort?
You'd need some additional plugins, that need to do the handling.
Post by Mat
BTW I just got an idea; would it be possible to shadowify only fields, i.e
the title fields!?
No ... shadow-tiddlers only.

-m
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/9dd27682-ef90-42b6-9899-0d7bf2001d8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mat
2018-08-07 11:04:07 UTC
Permalink
PMario wrote:

I mean isn't a plugin at risk of being overwritten if one uses the same
Post by PMario
Post by Mat
title?
Yes ... That's a feature, by design. ...
But so it wouldn't make sense to shadowify individual tiddlers
then. Instead have to be put into some container tiddler (really a plugin).
This means I cannot create a tiddler and spontaneously decide to "protect"
it and then go on to deal with another tiddler.


If you create a new plugin, a full page reload will be needed, that the
Post by PMario
plugin will be activated. ... Overwriting a plugin TEXT tiddler will be
active immediately. Overwriting code tiddlers will need a restart.
Code = "application/javascript" type, or what does actually "code tiddler"
mean? Wikitext is text, right?


Thanks!


<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/36e7f963-24bf-4c1e-b3c7-279b8bb9a20d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PMario
2018-08-07 11:28:40 UTC
Permalink
Post by Mat
Code = "application/javascript" type, or what does actually "code tiddler"
mean? Wikitext is text, right?
wikitext is text. yes.

-m
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/64564d07-3249-4ac7-8c6d-6ae774c469a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PMario
2018-08-07 11:34:34 UTC
Permalink
Post by Mat
I mean isn't a plugin at risk of being overwritten if one uses the same
Post by PMario
Post by Mat
title?
Yes ... That's a feature, by design. ...
But so it wouldn't make sense to shadowify individual tiddlers
then. Instead have to be put into some container tiddler (really a plugin).
As I wrote. The only thing, that's possible at the moment is: get a
"warning" when you start editing.

The good thing is: If you mess up your changes, you can delete the
"content-tiddler" and the shadow tiddler will take over again.
Post by Mat
This means I cannot create a tiddler and spontaneously decide to "protect"
it and then go on to deal with another tiddler.
Protect it ... from what?

You can't protect a tiddler from other users. .. TW gives everyone the
freedom to change everything. .. and I personally think that's a good
thing.

-m
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/fa46aa7c-98bf-4094-b248-7a584631ec34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mat
2018-08-07 22:56:40 UTC
Permalink
Guys, just a thank you for your input on the matter. Even if there doesn't
seem to be a spot-on solution, you have given me some ideas.

<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/11046563-de7b-479d-af54-85217c4f848e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
passingby
2018-08-07 12:39:19 UTC
Permalink
Another idea is to completely forego putting titles in the title field. Put
them in caption field or a description field. And use timestamps as titles.
So two tiddlers of the same caption could exist side by side no problem.
Post by Mat
How can I ensure a tiddler is not overwritten?
I do not mean that someone would click the *edit* button etc but rather
myself *generating* a tiddler that accidently has the same ID (i.e title)
as an already existing tiddler.
Is it at all possible to protect a tiddler against this?
I guess the second best would be to make it a shadow tid, i.e so that it
can be overwritten but then at least restored. What, then, is the best
workflow to convert a tiddler into a shadow tid? AFAIK there is no quick
button to do so (e.g changing the tiddler *type* to "shadow" or some such)
Ideas?
<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/2ebc6682-6867-4034-b226-c207726a4ec9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
TonyM
2018-08-08 00:30:52 UTC
Permalink
Mat,

You ask "How can I ensure a tiddler is not overwritten" but if it is and
you know it has being and you can recover it then do you have what you need?

If so there are dozens of ways to to achieve this, within noteself all
versions are retained,
there is this plugin http://j.d.revisions.tiddlyspot.com/
There is a trails plugin

In some ways it is actually about your workflow. Your tiddler generation
tool can test for the existence of a tiddler first or using the correct
method to create tiddlers will not overwite but increment the title with a
number.

If you generate and import tiddlers the bundles plugin can test for
overwrite before import and keep track of all imports in the import bundle.

I worry about the number of cats that get "skinned" given tiddlywiki "has
so many ways to skin a cat".

Regards
Tony
Post by Mat
How can I ensure a tiddler is not overwritten?
I do not mean that someone would click the *edit* button etc but rather
myself *generating* a tiddler that accidently has the same ID (i.e title)
as an already existing tiddler.
Is it at all possible to protect a tiddler against this?
I guess the second best would be to make it a shadow tid, i.e so that it
can be overwritten but then at least restored. What, then, is the best
workflow to convert a tiddler into a shadow tid? AFAIK there is no quick
button to do so (e.g changing the tiddler *type* to "shadow" or some such)
Ideas?
<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/b775d607-7e74-45e3-b69b-8e43f64216e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Mat
2018-08-08 01:04:26 UTC
Permalink
Post by TonyM
You ask "How can I ensure a tiddler is not overwritten" but if it is and
you know it has being and you can recover it then do you have what you need?
Thanks Tony. The thing is that in the use case I'm concerned with, I will
*not* know that it was overwritten. Plus the approach to *recover* rather
than to *prevent* overwriting in the first place is not the ideal solution
here. While I agree with e.g Mario that things should generally be
modifiable, I still want to be in control over circumstances that permits
or prevents modification.

But those are some interesting plugins! That jd plugin looks really useful
in the right context and I had missed or forgotten about the Trails plugin
<https://github.com/Jermolene/TiddlyWiki5/commit/bc61f7eebf9cf810d9b226c65a7f49744bd0a803>
.

Thank you.

<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/1f0453dd-8d65-42e6-9228-3c1bd7b8850a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
TonyM
2018-08-08 01:41:01 UTC
Permalink
Mat,

Perhaps your solution could be designed to clone any tiddler it is about to
replace to another name eg; $:/temp/overwritten/tiddlername (n)

Regards
Tony
Post by Mat
Post by TonyM
You ask "How can I ensure a tiddler is not overwritten" but if it is and
you know it has being and you can recover it then do you have what you need?
Thanks Tony. The thing is that in the use case I'm concerned with, I will
*not* know that it was overwritten. Plus the approach to *recover* rather
than to *prevent* overwriting in the first place is not the ideal
solution here. While I agree with e.g Mario that things should generally be
modifiable, I still want to be in control over circumstances that permits
or prevents modification.
But those are some interesting plugins! That jd plugin looks really useful
in the right context and I had missed or forgotten about the Trails plugin
<https://github.com/Jermolene/TiddlyWiki5/commit/bc61f7eebf9cf810d9b226c65a7f49744bd0a803>
.
Thank you.
<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/18c8638b-1dee-4290-b52d-626bc07ed51c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
TonyM
2018-08-08 02:36:56 UTC
Permalink
Mat,

Just an aside

Since you seem to be bulk creating tiddlers you may be interested in
this http://tobibeer.github.io/tw5-plugins/#make

a filter that allows to *create unique *or random tiddler titles

Regards
Tony
Post by Mat
How can I ensure a tiddler is not overwritten?
I do not mean that someone would click the *edit* button etc but rather
myself *generating* a tiddler that accidently has the same ID (i.e title)
as an already existing tiddler.
Is it at all possible to protect a tiddler against this?
I guess the second best would be to make it a shadow tid, i.e so that it
can be overwritten but then at least restored. What, then, is the best
workflow to convert a tiddler into a shadow tid? AFAIK there is no quick
button to do so (e.g changing the tiddler *type* to "shadow" or some such)
Ideas?
<:-)
--
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 tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
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/25a2c522-621b-42f1-97ab-939a476eea51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...