Last Q I promise...new tiddler with special title

171 views
Skip to first unread message

David Gifford

unread,
Dec 17, 2016, 2:44:30 PM12/17/16
to TiddlyWiki
Hi all,

I would like a new tiddler button that creates a title that is a combination of text and the current date and time stamp.

Ω plus the actual time using this format YYYY-0MM-0DD 0hh:0mm:0ss

I have experimented to no end, and can't see the way forward.

With this and the other question answered, my world domination should be complete.

Dave

PMario

unread,
Dec 17, 2016, 6:49:33 PM12/17/16
to TiddlyWiki
Hi Dave,

You can basically mimic the "New Journal" button.

If you open the following link: Link ;) you'll get all the tiddlers involved. (in my description here)

- select: Advanced Search: Shadows    tab and search for newjournal
- There are 2 config tiddlers:
      - $:/config/NewJournal/Title

Those tiddlers can be defined in the ControlPanel: Info: Basic  at: Title / Tags for new journal tiddlers.

  - insert the text: Ω plus the actual time using this format YYYY-0MM-0DD 0hh:0mm:0ss
  - insert the tag: your tag

And click the "New Journal Button" .. you'll see, what happens.

--- Create your own custom button ---

 - To get your own "custom" button, just clone the New Journal button
.
 - Create your own config tiddlers eg: $:/config/myNewTiddler/Tags and
$:/config/myNewTiddler/Title
 - Edit your custom button and "search and replace" the config tiddler names.
    - change the following lines, near the end  of the tiddler

from

<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}>


to

<$set name="journalTitleTemplate" value={{$:/config/myNewTiddler/Title}}>
<$set name="journalTags" value={{$:/config/myNewTiddler/Tags}}>


if you want to see your config tiddlers in the sidebar use:

<$set name="journalTitleTemplate" value={{config/myNewTiddler/Title}}>
<$set name="journalTags" value={{config/myNewTiddler/Tags}}>


 - save  and test the button
 
This button will also appear in the right Sidebar: Tools menue.

hope that helps
mario

David Gifford

unread,
Dec 17, 2016, 7:17:11 PM12/17/16
to TiddlyWiki
Thanks Mario! That is exactly what I needed. I kind of had half of it, but you provided the missing link

Mark S.

unread,
Dec 17, 2016, 9:56:00 PM12/17/16
to TiddlyWiki
This bit about creating your own button is really good stuff! In keeping with the "capture and curate" philosophy, I've submitted it to jeremy and github.

Thanks!
Mark

On Saturday, December 17, 2016 at 3:49:33 PM UTC-8, PMario wrote:
Hi Dave,

David Gifford

unread,
Dec 17, 2016, 10:36:26 PM12/17/16
to TiddlyWiki
Here is the file with this button http://giffmex.org/experiments/notestorm2017.html

PMario

unread,
Dec 18, 2016, 6:01:30 AM12/18/16
to TiddlyWiki
On Sunday, December 18, 2016 at 4:36:26 AM UTC+1, David Gifford wrote:
Here is the file with this button http://giffmex.org/experiments/notestorm2017.html


Glad that I could help.
Thx for sharing.
-m

Tobias Beer

unread,
Dec 19, 2016, 2:19:55 PM12/19/16
to TiddlyWiki
Hi David,

For ultimate flexibility of constructing titles (incl. dates),
take a look at tobibeer/make.

Best wishes,

Tobias.

David Gifford

unread,
Dec 19, 2016, 4:32:57 PM12/19/16
to tiddl...@googlegroups.com
Thanks Tobias, just bookmarked it

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/27p0NmNQsMo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@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/e1228dee-821a-4ebd-b583-2bf8a12efb11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
David Gifford
Christian Reformed World Missions, Mexico City

Reply all
Reply to author
Forward
0 new messages