Hi Josiah,
that specific behaviour is governed by the handleSaveTiddlerEvent method of the navigator
widget which you can see in [1]. To change that, you can either
edit the code over there (which you might not wanna do), or add
an action widget to $:/core/ui/Buttons/save which keeps the draft.of and draft.title field of the draft in
sync, before invoking the save routine (see [2]). Obviously you
can also get arbitrarily fancy with the UI, like adding a
checkbox that steers that behaviour, but it sounds like a simple
change like that would do the trick for you.
/Andreas
[1] https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/widgets/navigator.js#L354-L357
[2] adding <$action-sendmessage $message="tm-add-field" $name="draft.of" $value={{!!draft.title}}/> to $:/core/ui/Buttons/save should be sufficient.
--
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/0004d98d-1dd2-48a0-8d80-2e81d876f19e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This may not be exactly what you're looking for, but you can always make a clone of a tiddler (from the view mode toolbar) and save it with your desired title.
Regards,
Mal
--
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/afb33cf4-3cd7-409f-aa6c-5c0e73dd4c1a%40googlegroups.com.
Use TiddlyMap, it has built in way to deal with titles
Hi Josiah,
I can assure you that previous versions of TW did not have mechanisms where [2] is likely to work. In fact I am very confident that [2] does indeed work how its supposed to: Whenever you edit the title, the tiddler with the old title will not be deleted and the tiddler with the new title will be added as a copy. (there will not be an option to not do this)
Be sure to include the action-sendmessage in the proper place, before the tm-save-tiddler
message is sent. Since $:/core/ui/Buttons/save isn't particularly
large, here is the full modified version of how it should look:
$:/core/ui/Buttons/save
<$fieldmangler>
<$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-add-tag" $param={{$:/temp/NewTagName}}/>
<$action-deletetiddler $tiddler="$:/temp/NewTagName"/>
<$action-sendmessage $message="tm-add-field" $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/>
<$action-deletetiddler $tiddler="$:/temp/newfieldname"/>
<$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/>
<$action-sendmessage $message="tm-add-field" $name="draft.of" $value={{!!draft.title}}/>
<$action-sendmessage $message="tm-save-tiddler"/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/done-button}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Save/Caption}}/></span>
</$list>
</$button>
</$fieldmangler>
I hope this makes things a little clearer. Also note that
the position of the action widget would also allow the insertion
of another field, maybe called copy-of,
which could track the original tiddler that the modified version
came from, before the title was altered.
/Andreas
-- 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/2035030f-5ebf-462d-8d91-bb87629891a3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.