Filename Generation on Save Has Changed in v5.1.18?

102 views
Skip to first unread message

Scott Simmons (Secret-HQ)

unread,
Dec 10, 2018, 9:37:08 PM12/10/18
to tiddl...@googlegroups.com
H'lo, TiddlyWizards —

I'm digging into version 5.1.18 — merry Christmas, me! — and am noticing that the file name used to save/download my HTML TiddlyWikis is no longer based on the name of the TiddlyWiki file I have open but on $:/SiteTitle + .html.

Is there anyplace I can read up on this change?

Are there ways to circumvent the new behavior (besides renaming the file in the "Save As..." dialog)?

TonyM

unread,
Dec 10, 2018, 10:25:51 PM12/10/18
to TiddlyWiki
Scott,

On Tiddlywiki.com the tiddler https://tiddlywiki.com/#Releases mentions this new feature and Links to the github change https://github.com/Jermolene/TiddlyWiki5/commit/d96c84426484747ab19d92b1d9f49e01c9dad985

Looking at this github change we see that this "feature" you which to defeat, is in the Tiddler $:/core/ui/Buttons/save-wiki

<$button tooltip={{$:/language/Buttons/SaveWiki/Hint}} aria-label={{$:/language/Buttons/SaveWiki/Caption}} class=<<tv-config-toolbar-class>>>
<$wikify name="site-title" text="{{$:/SiteTitle}}.html">
<$action-sendmessage $message="tm-save-wiki" $param={{$:/config/SaveWikiButton/Template}} filename=<
<site-title>>/>
</$wikify>
<span class="tc-dirty-indicator">
<$list filter="[
<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/save-button}}
</$list>
<$list filter="[
<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/SaveWiki/Caption}}/></span>
</$list>
</span>
</$button>


Simply editing the above an overwriting the system tiddler, you could change the following line to use what ever filename you wish.

<$wikify name="site-title" text="{{$:/SiteTitle}}.html">
eg
<$wikify name="site-title" text="empty.html">


Regards
Tony

Jeremy Ruston

unread,
Dec 11, 2018, 2:43:12 AM12/11/18
to tiddl...@googlegroups.com
Hi Scott, Tony,

There is a discussion of this bug over on GitHub:


Best wishes

--
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 tiddl...@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/90ac92bd-9f71-430e-aac6-e6386a1c4125%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Simmons (Secret-HQ)

unread,
Dec 11, 2018, 3:13:30 PM12/11/18
to TiddlyWiki
Thanks, guys!

I dropped a comment in there, as well.

In the interest of backward-compatibility and more flexibility in naming TiddlyWiki files, I'd like to see the old behavior restored — though I can see a lot of appeal to the new behavior.
In my case, I use custom extensions for TiddlyWiki files (.TW5 and .TWC for older TiddlyWikiClassics) that allow me to handle them with my preferred browsers (which aren't the same as my day-to-day default browser).
I am, as always, all in favor of making the behavior configurable, either as part of the core or as a core plugin. 😉

TonyM

unread,
Dec 11, 2018, 9:20:01 PM12/11/18
to TiddlyWiki
I have added more comments to solve the issue, but take it further. 

We need a bit more hack-ability here to open new possibilities.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages