Messed up EditTemplate

18 views
Skip to first unread message

tak...@googlemail.com

unread,
Jan 16, 2008, 4:17:48 AM1/16/08
to TiddlyWiki
I've screwed up my EditTemplate, so now when I edit stuff I just get
nothing. How can I roll back my chages and revert back to the original
EditTemplate Shadow Tiddler???

FND

unread,
Jan 16, 2008, 4:24:27 AM1/16/08
to Tiddl...@googlegroups.com
> I've screwed up my EditTemplate, so now when I edit stuff I just get
> nothing. How can I roll back my chages and revert back to the original
> EditTemplate Shadow Tiddler???

Since the SafeMode* doesn't restore the templates (yet), the easiest
method would be to download an empty TiddlyWiki and import all tiddlers
except the problematic one(s) from your old TW document.

HTH.


-- F.


* http://www.tiddlywiki.com/#SafeMode%20StartupParameters

Eric Shulman

unread,
Jan 16, 2008, 4:31:01 AM1/16/08
to TiddlyWiki
> > I've screwed up my EditTemplate, so now when I edit stuff I just get
> > nothing. How can I roll back my chages and revert back to the original
> > EditTemplate Shadow Tiddler???
>
> Since the SafeMode* doesn't restore the templates (yet), the easiest
> method would be to download an empty TiddlyWiki and import all tiddlers
> except the problematic one(s) from your old TW document.

The most direct method of fixing your document is to open the file
using a plain text editor and search for:
<div title="EditTemplate">
Replace this with:
<div title="BadEditTemplate">
Save the changes and open the file in your browser. Then, simply edit
[[BadEditTemplate]] to correct the original problem, and rename the
tiddler back to "EditTemplate". That should do it!

HTH,
-e


FND

unread,
Jan 16, 2008, 4:34:53 AM1/16/08
to Tiddl...@googlegroups.com
> The most direct method of fixing your document is to open the file
> using a plain text editor

Make sure to create a backup first - we've had reports of such attempts
going awry.


-- F.

wolfgang

unread,
Jan 16, 2008, 4:40:46 AM1/16/08
to TiddlyWiki
Hi everyone,

Even easier would be to delete just the messed up EditTemplate! Since
it's shadowed, it would restored to its default afterwards.

But because 'delete' isn't included in view mode by default (actually
this is one of the good reason to have this toolbar command included
in the ViewTemplate too) - NukeShadows Bookmarklet of Saq would also
delete all adaptations of the Templates and StyleSheet tiddlers.

http://lewcid.org/tiddlywiki-bookmarklets/

However, if you wouldn't want to loose all your adaptations there -
you better go with F's advise in that case.

Regards,

W.

FND schrieb:

wolfgang

unread,
Jan 16, 2008, 4:58:09 AM1/16/08
to TiddlyWiki
Agreed, one of those reporters was me, when I made small changes to a
TW StoreArea by an external editor, and reopening it in the browser
all instances of, for example: ">>" at the end of macro calls were
changed to "&gt;&gt;" - even by an editor which isn't supposed to do
such replacements.

W.

Saq Imtiaz

unread,
Jan 16, 2008, 5:02:08 AM1/16/08
to Tiddl...@googlegroups.com
Please note, do NOT use Notepad for directly editing a TW file. It will horribly mangle the file.

Use a 'progammers text editor' such as Notepad++, Context, EditPad or VIM

Saq


W.
http://lewcid.org ) : TiddlyWiki news, plugins, themes and educational usage

Eric Shulman

unread,
Jan 16, 2008, 5:03:34 AM1/16/08
to TiddlyWiki
A *good* text editor app should be able to automatically create a
backup file.... and in any event, making a backup before editing is
just good common sense, anyway!

-e

wolfgang

unread,
Jan 16, 2008, 5:13:28 AM1/16/08
to TiddlyWiki
Thanks for your suggestion Saq. Though at that time it was Notepad++
which created such replacements in the first place. As a double check
I used Scite, which supposedly isn't doing such replacements at all.
but the same erroneous replacements occurred with this editor too!

After consulting for an advise and sending my corrupted file to some
more knowledgeable here at GoogleGroops, the real cause still wasn't
be possible to be pinned down.

It was discussed in this thread:
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/76024a1511cff976/f38b56818278f06e?q=notepad%2B%2B&lnk=ol&

Regards,

W.

On 16 Jan., 11:02, "Saq Imtiaz" <lew...@gmail.com> wrote:
> Please note, do NOT use Notepad for directly editing a TW file. It will
> horribly mangle the file.
>
> Use a 'progammers text editor' such as Notepad++, Context, EditPad or VIM
>
> Saq
>
> On Jan 16, 2008 10:58 AM, wolfgang <wolfgangl...@gmail.com> wrote:
>
>
>
>
>
> > > > The most direct method of fixing your document is to open the file
> > > > using a plain text editor
>
> > > Make sure to create a backup first - we've had reports of such attempts
> > > going awry.
>
> > > -- F.
>
> > Agreed, one of those reporters was me, when I made small changes to a
> > TW StoreArea by an external editor, and reopening it in the browser
> > all instances of, for example: ">>" at the end of macro calls were
> > changed to "&gt;&gt;" - even by an editor which isn't supposed to do
> > such replacements.
>
> > W.
>
> --
> Tiddly Learning (http://lewcid.org) : TiddlyWiki news, plugins, themes and
> educational usage

Saq Imtiaz

unread,
Jan 16, 2008, 5:16:22 AM1/16/08
to Tiddl...@googlegroups.com
I think the most obvious conclusion is that the average user should be encouraged to use existing UI methods for recovery, rather than directly editing the source of the file. That is not always a possibility, but in this case I thought Fred's suggestion to use a new TiddlyWiki file and import into it was spot on.

Saq
--
Tiddly Learning ( http://lewcid.org ) : TiddlyWiki news, plugins, themes and educational usage

Eric Shulman

unread,
Jan 16, 2008, 5:17:42 AM1/16/08
to TiddlyWiki
> Please note, do NOT use Notepad for directly editing a TW file. It will
> horribly mangle the file.
> Use a 'progammers text editor' such as Notepad++, Context, EditPad or VIM

While it is not my preferred text editor, I have successfully used
WordPad to edit the text of a TW file without it messing up the
contents.... and, although WordPad is only minimally more capable than
NotePad, it *is* present on every Windows box, so there's nothing to
install.

-e

FND

unread,
Jan 16, 2008, 5:17:46 AM1/16/08
to Tiddl...@googlegroups.com
> Thanks for your suggestion Saq. Though at that time it was Notepad++
> which created such replacements in the first place. As a double check
> I used Scite, which supposedly isn't doing such replacements at all.
> but the same erroneous replacements occurred with this editor too!

Argh, stop opening those old wounds - it still haunts me that we haven't
been able to figure that one out!

Also, we're straying off topic, making the poor OP read through all of
our rants...


-- F.

wolfgang

unread,
Jan 16, 2008, 5:38:51 AM1/16/08
to TiddlyWiki
> While it is not my preferred text editor, I have successfully used
> WordPad to edit the text of a TW file without it messing up the
> contents.... and, although WordPad is only minimally more capable than
> NotePad, it *is* present on every Windows box, so there's nothing to
> install.
>

Thanks for this suggestion Eric. Just tried it with WordPad and
surprisingly couldn't replicate my replace error anymore!

> I think the most obvious conclusion is that the average user should be
> encouraged to use existing UI methods for recovery, rather than directly
> editing the source of the file. That is not always a possibility, but in
> this case I thought Fred's suggestion to use a new TiddlyWiki file and
> import into it was spot on.

Or simple a combination of NukeShadows and ViewShadow Bookmarklet -
where one would be able to specify the shadowed tiddler to delete -
would be even more spot on.. ;-)

> Argh, stop opening those old wounds - it still haunts me that we haven't
> been able to figure that one out!

Sorry for that one. But for me that wasn't old and was still
preventing me to do changes to the StoreArea with the potential of an
external editor.
- And exactly to the point of how to recover a messed up with
TiddlyWiki

Contrarily, I am really glad TiddlyWiki GoogleGroups is such a lively
community, where a problem gets highlighted within minutes from all
possible perspectives and the background of so varied experience.

Regards,

W.

wolfgang

unread,
Jan 16, 2008, 4:35:01 PM1/16/08
to TiddlyWiki
>
> > Argh, stop opening those old wounds - it still haunts me that we haven't
> > been able to figure that one out!
>

You know what, actually there is reason to rejoice!

Because now also notepad++ doesn't do those weired replacements
anymore. However, all what I changed with my configuration since - and
therefore the only thing which could have solved my error - was
following YOUR advise for a seemingly unrelated problem I also had and
found in this thread about 'Upload Problems':

> If you're using Firebug, make sure you disable network
> monitoring (viaOptions on the Net tab) and the display
> of XmlHttpRequests (on theConsole tab).

http://groups.google.com/group/TiddlyWiki/browse_thread/thread/5833322a4e0905dc/5381914053e2907b?lnk=st&q=#5381914053e2907b

Thanks,

W.

FND

unread,
Jan 19, 2008, 11:54:10 AM1/19/08
to Tiddl...@googlegroups.com
> Because now also notepad++ doesn't do those weired replacements
> anymore. However, all what I changed with my configuration since - and
> therefore the only thing which could have solved my error - was
> following YOUR advise for a seemingly unrelated problem

What the -?
Changing Firebug options surely doesn't change anything with regards to
this problem of modifying the TW source with an external text editor!?

Anyway, let's not start this all over again...


-- F.

wolfgang

unread,
Jan 19, 2008, 8:07:24 PM1/19/08
to TiddlyWiki
Hi F,

but now I don't understand...

>
> Argh, stop opening those old wounds - it still haunts me that we haven't
> been able to figure that one out!
>

and 2 days later you bring it up yourself again:

>
> What the -? ...
>
> Anyway, let's not start this all over again...
>


?.. maybe it's time for holidays ;-)

Two days ago I was really happy that my old problem finally found an
end. I just wanted to let it be known - so that others might consider
this possibility in similar troubles too. Where even an united effort
to seek the culprit here at GoogleGroup wouldn't have helped.

And then, since the latest conclusion was that it couldn't be the
editor adding such replacements in the case of Scite - and since FF
compared to IE would render this differently again - we concluded:
something wrong in my browser configuration would be the most likely.
Therefore, Firebug indeed might have been at fault, because nothing
else changed here since then.

So really no need for such strong stroked through words. Aren't you
glad too, that my real difficulty has been solved?

kind regards,

W.

FND

unread,
Jan 20, 2008, 3:38:58 AM1/20/08
to Tiddl...@googlegroups.com
> So really no need for such strong stroked through words. Aren't you
> glad too, that my real difficulty has been solved?

Sorry, I didn't mean to offend you in any way - I was simply surprised.
Anyway, let's just leave it at that now.


-- F.

wolfgang

unread,
Jan 20, 2008, 5:59:48 AM1/20/08
to TiddlyWiki
And I was simply confused 8-)

Thanks for clarifying,

W.
Reply all
Reply to author
Forward
0 new messages