request - switch from reactive "TW has been saved" to proactive "remember to save TW"

5 views
Skip to first unread message

M)

unread,
Aug 20, 2008, 12:48:28 PM8/20/08
to TiddlyWiki
Sometimes I feel like I have one of the lowest IQ's (particularly when
I come to this group!). For example, I had my tiddlyspot TW open
earlier today and I closed it (or navigated elsewhere) without
uploading and I don't remember receiving a notice. This has not been
the first time.

My file has some kind of bug in it as the 'backstage' does not appear
when hosted by tiddlyspot. Therefore, that might be part of my
problem, but it isn't consistent.

Nevertheless, I've noticed that if you save, then navigate around, the
notice that the TW has been saved disappears thus I am not aware
whether I have to save/upload. Therefore, I thought it would be nice
if TW once a change occurs, a notice would appear something to this
effect:

"_Save_ or _upload_ TW" (the underscores suggest a clickable link
that performs that function)

Therefore, instead of not knowing whether the TW has been backed up,
the user will know that it needs to be done. The right sidebar could
be simplified with this tweak.

Eric Shulman

unread,
Aug 20, 2008, 1:39:25 PM8/20/08
to TiddlyWiki
> My file has some kind of bug in it as the 'backstage' does not appear
> when hosted by tiddlyspot.  Therefore, that might be part of my
> problem, but it isn't consistent.

If you are viewing the document in read-only mode (which is the
default over http:), then the backstage is automatically disabled.
When viewing the online document, go to [[AdvancedOptions]] and
uncheck the option labeled: "Hide editing features when viewed over
HTTP". Then, reload your document. The backstage should be there.

> if TW once a change occurs, a notice would appear something to this
> effect:
> "_Save_ or _upload_ TW"  (the underscores suggest a clickable link
> that performs that function)
> Therefore, instead of not knowing whether the TW has been backed up,
> the user will know that it needs to be done.

Check out:
http://www.TiddlyTools.com/#UnsavedChangesPlugin
To try it live on TiddlyTools, simply create and/or edit some
tiddlers... as soon as there are changes in the document a command
link, "There are N unsaved tiddlers", will appear at the top of the
story column.

This link is actually a slider button. Open the slider to view a
droplist of changed tiddlers, along with and "goto" and "revert"
button and a 'save changes' command link. Depending upon what other
plugins are also installed, there may also be command links for "save
as", "upload", and "empty trash".

The <<unsavedChanges>> macro also has an alternative 'inline list'
display format that is better suited to embedding in the narrower
space of the sidebar. You can see this on TiddlyTools: open the right
sidebar (use the "<" arrow in the upper right corner of the story
column). If there are tiddler changes, then the sidebar will include
a section labeled 'unsaved changes', with links to all the tiddlers
that have been altered, as well as a 'save changes' link.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios



M)

unread,
Aug 20, 2008, 5:16:52 PM8/20/08
to TiddlyWiki
> If you are viewing the document in read-only mode (which is the
> default over http:), then the backstage is automatically disabled.
> When viewing the online document, go to [[AdvancedOptions]] and
> uncheck the option labeled: "Hide editing features when viewed over
> HTTP".  Then, reload your document.  The backstage should be there.

Interestingly, it was unchecked so I decided to check it and then
uncheck it. Now it appears as expected. Now, I'm unable to import
while on tiddlyspot saying ...

Exception... "Access to restricted URI denied" code: "1012" nsresult:
"0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://
yada.tiddlyspot.com/#StyleSheet Line: 14374"

> Check out:
>    http://www.TiddlyTools.com/#UnsavedChangesPlugin
> To try it live on TiddlyTools, simply create and/or edit some
> tiddlers... as soon as there are changes in the document a command
> link, "There are N unsaved tiddlers", will appear at the top of the
> story column.

I like how it works on TiddlyTools, but this does not appear for me.
Is it because I've edited a shadowed tiddler? How do I get it there?

I've tried the <<unsavedChanges>> and my sidebar doesn't have the
slider, it just has the presented content. Any suggestions?

Eric Shulman

unread,
Aug 20, 2008, 6:50:23 PM8/20/08
to TiddlyWiki
> Now it appears as expected.  Now, I'm unable to import
> while on tiddlyspot saying ...
>
> Exception... "Access to restricted URI denied" code: "1012" nsresult:
> "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://
> yada.tiddlyspot.com/#StyleSheet Line: 14374"

TiddlySpot has a proxy script that you need to use when importing
across different domains while online.

> > "There are N unsaved tiddlers", will appear at the top of the
> > story column.
>
> I like how it works on TiddlyTools, but this does not appear for me.
> Is it because I've edited a shadowed tiddler?  How do I get it there?

The <<unsavedChanges>> macro is embedded in
http://www.TiddlyTools.com/#StoryMenu
which is incorporated into the story column via a customized
http://www.TiddlyTools.com/#PageTemplate

for instructions on how to add a StoryMenu to your document, see
http://www.TiddlyTools.com/#FAQ_ToggleSidebarsFromStoryMenu
(also includes instructions for toggling sidebars)

> I've tried the <<unsavedChanges>> and my sidebar doesn't have the
> slider, it just has the presented content.  Any suggestions?

I've just updated TiddlyTools sidebar... it no longer uses a slider...
instead, the "unsaved changes (n)" command link now displays a TW
popup list showing all unsaved tiddlers, plus "save", "save as",
"upload" and "empty trash" commands (assuming corresponding plugins
are installed).

To add the "unsaved changes" command to the sidebar, first import
http://www.TiddlyTools.com/#UnsavedChangesCommand
then, add the following to the top of your [[SideBarTabs]]:
@@display:block;line-height:2em;margin-left:.5em;<<tiddler
UnsavedChangesCommand>>@@
(adjust the CSS to fit your preferred style)

Note: The command is added to SideBarTabs, rather than
SideBarOptions. Because SideBarTabs is 'force-refreshed' by default,
this ensures that the "unsaved changes (N)" command text will be
refreshed each time *any* tiddler is changed.

M)

unread,
Aug 21, 2008, 12:28:06 AM8/21/08
to TiddlyWiki
> TiddlySpot has a proxy script that you need to use when importing
> across different domains while online.

Thanks. I see some detail at http://faq.tiddlyspot.com/. I don't see
what I am to do, however. I'm going to let it go as I can use the
alternative method.

I've collapsed my tabs in a slider, therefore your suggestion does not
quite work for me as the notice is hidden.

<<unsavedChanges list>> does produce a result at the top of my sidebar
and this seems to be my best option at the moment. If
<<unsavedChanges alert>> could be created such that it states "unsaved
changes", then that would suit me just fine. Can you tweak the plugin
for this request?

M)

unread,
Aug 21, 2008, 12:34:45 AM8/21/08
to TiddlyWiki
> <<unsavedChanges list>> does produce a result at the top of my sidebar
> and this seems to be my best option at the moment.  If
> <<unsavedChanges alert>> could be created such that it states "unsaved
> changes", then that would suit me just fine.  Can you tweak the plugin
> for this request?

Forget that. I see I've been editing the sidebar which is making it
refresh. Ha! I'll have to explore the other options tomorrow.

Eric Shulman

unread,
Aug 21, 2008, 1:24:25 AM8/21/08
to TiddlyWiki
> Forget that.  I see I've been editing the sidebar which is making it
> refresh.  Ha!  I'll have to explore the other options tomorrow.

I'm working on a revision to UnsavedChangesPlugin that will provide
for full, automatic refresh of the list of unsaved tiddlers,
regardless of where the output is placed in the document (e.g.
SideBarOptions vs. SideBarTabs).

I'm also going to be integrating the UnsavedChangesCommand inline
script popup display handling functionality as an option for the
plugin-defined macro, so that you will be able to simply write:
<<unsavedChanges popup>> to render a command link that displays a
popup list of changes, while eliminating the need for a separate
inline script (and the related dependency on InlineJavascriptPlugin).

enjoy,
-e

Eric Shulman

unread,
Aug 21, 2008, 10:09:07 AM8/21/08
to TiddlyWiki
> I'm working on a revision to UnsavedChangesPlugin that will provide
> for full, automatic refresh of the list of unsaved tiddlers,
> regardless of where the output is placed in the document (e.g.
> SideBarOptions vs. SideBarTabs).
>


The separate UnsavedChangesCommand inline script has been eliminated
and the link+popup output option is now integrated directly into the
plugin-defined <<unsavedChanges>> macro so that you can replace all
instances of:
<<tiddler UnsavedChangesCommand>>
with:
<<unsavedChanges command>>

Get the update (v3.2.0) here:
http://www.TiddlyTools.com/#UnsavedChangesPlugin

Note: the display 'refresh' issues are still being worked on... I
might have another update later today or tomorrow...

M)

unread,
Aug 21, 2008, 12:42:04 PM8/21/08
to TiddlyWiki
FYI, I'm testing <<unsavedChanges command>>. I'm wondering whether it
would be better to have the save changes first in the popup simply
because if I happen to have 30 changes, I might not want to scroll.
When I use the popup 'save to web', I get "Username or password
missing", but the normal 'save to web' works fine.

Eric Shulman

unread,
Aug 21, 2008, 9:13:52 PM8/21/08
to TiddlyWiki
> FYI, I'm testing <<unsavedChanges command>>.  I'm wondering whether it
> would be better to have the save changes first in the popup simply
> because if I happen to have 30 changes, I might not want to scroll.

hmmm.... I tried putting the commands at the top of the popup,
preceding the list of unsaved tiddlers, but for some reason it didn't
seem quite right. Let me think about this some more...

> When I use the popup 'save to web', I get "Username or password
> missing", but the normal 'save to web' works fine.

Except for being in a popup, the 'save to web' command in the popup
uses exactly the same macro as the normal 'save to web' command, so
I'm not sure why this would happen.

In any event, I've just completed another update to the plugin. This
time, it corrects all of the refresh handling so the display is
automatically kept up-to-date, even after saving/uploading the
document. This update also supports simultaneous display of multiple
instances of the unsaved changes output.

Get the update (v3.3.0) here:
http://www.TiddlyTools.com/#UnsavedChangesPlugin

M)

unread,
Aug 22, 2008, 6:56:16 AM8/22/08
to TiddlyWiki
Works like a charm. Thanks so much.

> hmmm.... I tried putting the commands at the top of the popup,
> preceding the list of unsaved tiddlers, but for some reason it didn't
> seem quite right.  Let me think about this some more...

I don't see it as essential, though it might be more user friendly in
some instances.

> Except for being in a popup, the 'save to web' command in the popup
> uses exactly the same macro as the normal 'save to web' command, so
> I'm not sure why this would happen.

Like my 'backstage' problem from before and that I think it had to do
with a cookie, I'm thinking of clearing my cookies to see if it does
anything.

M)

unread,
Aug 23, 2008, 11:34:17 PM8/23/08
to TiddlyWiki
> > Except for being in a popup, the 'save to web' command in the popup
> > uses exactly the same macro as the normal 'save to web' command, so
> > I'm not sure why this would happen.
>
> Like my 'backstage' problem from before and that I think it had to do
> with a cookie, I'm thinking of clearing my cookies to see if it does
> anything.

Clearing cookies had no effect. I've got to wrap my mind around this
problem because the save options would allow me to clean up my display
even further.

Eric, if 'download' is in the sidebar, then I can see your plugin
displaying 'download' and then switching to 'unsaved changes (x)' and
having 'download' as a save option. Thus, the sidebar could become
. search
. new tiddler
. download (or) unsaved changes
. options »
. contents »

Food for thought.

M)

unread,
Aug 24, 2008, 11:16:35 PM8/24/08
to TiddlyWiki
> > > > When I use the popup 'save to web', I get "Username or password
> > > > missing", but the normal 'save to web' works fine.

> > > Except for being in a popup, the 'save to web' command in the popup
> > > uses exactly the same macro as the normal 'save to web' command, so
> > > I'm not sure why this would happen.
>
> > Like my 'backstage' problem from before and that I think it had to do
> > with a cookie, I'm thinking of clearing my cookies to see if it does
> > anything.
>
> Clearing cookies had no effect.  I've got to wrap my mind around this
> problem because the save options would allow me to clean up my display
> even further.

I've done the upgrade to 2.4.1 as per
http://tiddlyspot.blogspot.com/2008/08/241-and-tiddlyspot-part-2.html.
Now, I no longer get that original popup, I now get ...

"The store script 'http://yada.tiddlyspot.com/store.php' was not
found."

I've found http://tiddlywiki.bidix.info/#store.php, but I don't know
what to do. Can you point me to where the instructions are located?

Simon Baird

unread,
Aug 25, 2008, 1:14:26 AM8/25/08
to Tiddl...@googlegroups.com

You shouldn't need to do anything. You might be using the wrong save to web or upload button because it's supposed to use to store.cgi not store.php. What are you doing to upload?

Simon.



--
simon...@gmail.com

M)

unread,
Aug 25, 2008, 8:48:31 AM8/25/08
to TiddlyWiki
Simon, I'm using Eric's UnsavedChangesPlugin and using the 'save to
web' option in the dropdown list. When I use the normal 'save to
web', everything works fine.

M)

unread,
Aug 25, 2008, 8:54:19 AM8/25/08
to TiddlyWiki
Simon, I noticed that "store.php" exists in the upload plugin and I
have 3 rows in my UploadLog using the "store.php", which I'm sure they
are the times I've used the plugin's 'save to web'.

danie...@gmail.com

unread,
Aug 28, 2008, 4:56:56 PM8/28/08
to Tiddl...@googlegroups.com
The save-to-web button that we add to the side bar has a bunch of
parameters set, including username. I guess the save Eric's plugin
uses isn't adding those options.

;Daniel


--
Daniel Baird
/to be or not to be/ => /(2b|[^2]b)/ => /(2|[^2])b/ => /.b/
...optimise your regexes, people!

danie...@gmail.com

unread,
Aug 28, 2008, 5:17:53 PM8/28/08
to Tiddl...@googlegroups.com
Never mind, I see you sorted it out in another thread :)
Reply all
Reply to author
Forward
0 new messages