How to assign a custom date to a tiddler?

656 views
Skip to first unread message

nbdsp

unread,
Dec 28, 2016, 7:13:13 PM12/28/16
to TiddlyWiki
Greetings,

in the tiddler's subtitle there is a date of the last edit of the tiddler. Also this date is used for sorting tiddlers in the timeline on the right side of the screen. Is it possible to change the tiddler's modification date so that after editing the tiddler the date remained the same as it was before editing, in order that the tiddler didn't get to the top of the timeline after editing?

Thanks.

Tobias Beer

unread,
Dec 29, 2016, 1:25:34 AM12/29/16
to tiddl...@googlegroups.com
Hi nbdsp,

Of course, changing the modification date may have the tiddler find another spot in the timeline.

So, what you're perhaps really after is possibly twofold:
  1. defining a custom date field klowing that TiddlyWiki interprets it as stored in GMT
  2. setting a custom date field w/o the tiddler being modified
For 1. I really have no reliable answer atm other than: do the math. Simply entering the date by hand as it is on your timepiece may just produce the wrong result, unless you happen to live in the GMT timezone and never edit that date-field outside of it.

For 2. you could use system tiddlers, e.g.

title: $:/_my/external-fields/Title Of That Tiddler
custom_date
: 20161210


However, this will pose the problem that when you rename the Title Of That Tiddler you should be aware that the system tiddler also needs changing, so the referential integrity doesn't get lost.

Best wishes,

Tobias.

Mat

unread,
Dec 29, 2016, 2:21:27 AM12/29/16
to TiddlyWiki
nbdsp - might you actually rather want to change the timeline itself, i.e how it sorts tiddlers? Perhaps even introduce a second sidebar tab that has this modified timeline? 

<:-)

nbdsp

unread,
Dec 29, 2016, 2:31:06 AM12/29/16
to TiddlyWiki
Sounds like a good idea. Is it possible to show the 'created' date in the subtitle and to use the 'created' date for sorting tiddlers in the timeline instead of 'modification' date? I haven't learned yet the TiddlyWiki enough to figure out how to accomplish this.

nbdsp

unread,
Dec 29, 2016, 2:33:16 AM12/29/16
to TiddlyWiki
Converting time to GMT is a relatively minor inconvinience since I don't write many tiddlers a day and it's more important to preserve the date part. I have been trying to figure out how to manually set the 'modified' field of tiddlers, but didn't succeed in this. I think using the 'created' date instead of 'modified' date would solve the task, but I haven't learned the TiddlyWiki enough to have done this.

Jeremy Ruston

unread,
Dec 29, 2016, 4:28:51 AM12/29/16
to tiddl...@googlegroups.com
Just to let you know that the upcoming v5.1.14 update allows you to temporarily suppress the automatic updating of the “modified” field.

The button is a toggle; when green, the “modified” field is updated in the usual way. When red, the “modified” field is not updated when tiddlers are modified. (See illustration below)

You can see the new version in prerelease here:


Best wishes

Jeremy



On 29 Dec 2016, at 07:33, nbdsp <nbd...@gmail.com> wrote:

Converting time to GMT is a relatively minor inconvinience since I don't write many tiddlers a day and it's more important to preserve the date part. I have been trying to figure out how to manually set the 'modified' field of tiddlers, but didn't succeed in this. I think using the 'created' date instead of 'modified' date would solve the task, but I haven't learned the TiddlyWiki enough to have done this.


--
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/1cf604a9-9838-4802-9444-625c9a32cd7a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nbdsp

unread,
Dec 29, 2016, 4:36:00 AM12/29/16
to TiddlyWiki
Seems like the solution for the task. Thanks for the hint. Will upgrade to the new version.


Albert Berger.

Thomas Elmiger

unread,
Dec 29, 2016, 1:41:31 PM12/29/16
to TiddlyWiki
Hi Jeremy

This looks like a great new feature!

I have some remarks about it, where would be the right place to ask/suggest? I looked on github and found https://github.com/Jermolene/TiddlyWiki5/commit/d1121787c090ec8f5fc592b83c3dbad1075fe0ec – would this be the right place?

While I am at it here, so you are warned:
1. The logical place for me to use this would be on the tiddler in edit mode, between the Discard and Confirm/Save buttons. The reason is that I would decide for each tiddler I update, not globally for the wiki.
2. I am not sure, what we see on the icon. Is this a stamp or a time glass? Could I suggest another icon and where would be the place to do this? I think I could draw and save an svg, but I am not sure, if the result would be suitable for a pull request.

Kind regards,
Thomas



Reply all
Reply to author
Forward
0 new messages