One journal tiddler / day (like a diary): how?

387 views
Skip to first unread message

da...@bakins-bits.com

unread,
Apr 16, 2021, 5:06:25 PM4/16/21
to TiddlyWiki
(I think) I'd like to have one journal entry each day - formatted like a list.  Unless there's a better way of handling things.

So, questions that I'm hoping you can point to (or provide with) answers:

How can I change the "new journal" button to bring up that day's journal entry (creating it if necessary)? (Assuming I have the "title of new journal tiddlers" set properly, e.g., [UTC]YYYY-0MM-0DDZ)
(Optional:) How can I arrange that on creating a new tiddler it gets appended to that day's journal's list? Either "manually" (e.g., a button on any new tiddler I create) or automatically (possibly with an opt-out button)?
Or maybe this isn't the way I should be using the journal tiddlers at all.  Maybe instead I should create the journal tiddlers as I want them - with full timestamp - and have a separate way (some kind of tiddler with macro) for quickly seeing the list of all journal entries for a given day?

(Obviously I'm very new to TW5.  I did use TW Classic for several years, several years ago.  But gave it up when I could no longer save (automatically) locally via browser.  Now
I'm happy with gitlab integration and I'm getting back into TiddlyWiki use.)

Thanks! -- David Bakin

Ray Vermey

unread,
Apr 16, 2021, 7:01:06 PM4/16/21
to Mohammad Rahmani
Hi, i am new too, and still cry sometimes... so hard i think it is to really learn TW.... :-)
Then i see others having TW's and I scream: HOW!!!!!??? How did you do that?
So i feel you bro.

I use TW exactly like you plan to do.
For each event, thing that occurs i create a journal tiddler with date and time.
Then i use tags to tag the people involved.

I use this filter below to have overview of a day, i put the date in manually, must be possible to do that better but ok it works for me:

<$list filter="[!is[system]!tag[script]sameday:created[20210415]!tag[desc]sort[created]]">

<!--  <h2><$link>''<<currentTiddler>> ''</$link></h2>  -->
<!-- <h2><$link>''<<currentTiddler>> ''</$link></h2>  -->
{{!!text}}

</$list>

Hope it helps you too.
The <! comments i use to have tiddler names displayed. Twice so i can ehhhh dont know why anymore tbh :-)

Maybe this tiddler can be rebuild in some kind of matrix overview?

Other people have ideas?

Keep on TW'ing, you WILL learn!!

Ray

Op vr 16 apr. 2021 om 23:06 schreef da...@bakins-bits.com <da...@bakins-bits.com>:
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8d6db65b-dccd-4e4a-921b-056f7456b72dn%40googlegroups.com.

David Bakin

unread,
Apr 18, 2021, 1:39:37 AM4/18/21
to tiddl...@googlegroups.com
Ray, thanks - I'll look into your technique!

Yeah, learning curve is steep.  But I gotta tell you ... it's not as steep now as it was 5 yrs ago ... so there's that ...

PMario

unread,
Apr 18, 2021, 6:53:08 AM4/18/21
to TiddlyWiki
Hi David,

You pointed out an oversight in the configuration possibilities, that doesn't work for your workflow. ...

We do have a "New Journal" button in the right sidebar, which by default creates 1 tiddler per day. ... That's OK.

We also have a "New Journal Here" button in the tiddler toolbar, that will automatically tag the new journal with the actual tiddler title. ... That's OK. ... BUT this "New Journal Here" button uses the same title configuration as "New Journal" ... That's a problem.

In your case "New Journal" should be: [UTC]YYYY-0MM-0DDZ ... and
"New Journal Here" should be: [UTC]YYYY-0MM-0DD 0hh:0mm:0ssZ   ... Which needs a new field in the control panel

I wanted to send a fast hack, with some changed UI tiddlers, but I did find a bigger problem with the "New Journal Here" button, that imo should be fixed in the core.

So I'll create a pull-request, that should make it easier for users, with your workflow.

have fun!
mario

PMario

unread,
Apr 18, 2021, 1:45:06 PM4/18/21
to TiddlyWiki
Hi,

The repo also contains a link to an experimental wiki, that is for tests only!!!

Read the comments on the PR and vote +1 if you want to have this function in the core.

have fun!
mario


Ray Vermey

unread,
Apr 18, 2021, 2:06:40 PM4/18/21
to TiddlyWiki
?? I don't understand the problem.
What is wrong with creating a new Journal Tiddler for every action, event, "thing", happening during the (work)day and use tags like i do?
What am i missing??

Ray

Op zondag 18 april 2021 om 19:45:06 UTC+2 schreef PMario:

PMario

unread,
Apr 18, 2021, 2:35:53 PM4/18/21
to TiddlyWiki
On Sunday, April 18, 2021 at 8:06:40 PM UTC+2 rayv...@gmail.com wrote:
?? I don't understand the problem.

The OP says: " How can I change the "new journal" button to bring up that day's journal entry (creating it if necessary)?!
The PR can handle this.

The OP says: (Optional:) How can I arrange that on creating a new tiddler it gets appended to that day's journal's list?
IMO the PR can handle this, if you click "New Journal" and then "New Journal Here". ... It's just a different workflow
 
What is wrong with creating a new Journal Tiddler for every action, event, "thing", happening during the (work)day and use tags like i do?

There is nothing wrong, it's just a bit different than described in the OP.
 
-mario

PMario

unread,
Apr 18, 2021, 4:24:35 PM4/18/21
to TiddlyWiki
On Saturday, April 17, 2021 at 1:01:06 AM UTC+2 rayv...@gmail.com wrote:
...
I use this filter below to have overview of a day, i put the date in manually, must be possible to do that better but ok it works for me:

If you put this into a tiddler, it will give you a list of tiddlers, that have been created the same Year / Month / Day / hour ... as this tiddler.

\define sameYear() YYYY
\define sameMonth() YYYY0MM
\define sameDay() YYYY0MM0DD
\define sameHour() YYYY0MM0DD0hh

<$set name=thatDate filter="[<currentTiddler>get[created]format:date<sameDay>addprefix[^]]">
<<list-links filter:"[!is[system]regexp:created<thatDate>sort[created]]" emptyMessage:"n/a">>
</$set>

<$set name=thatDate filter="[<currentTiddler>get[created]format:date<sameYear>addprefix[^]]">
<<list-links filter:"[!is[system]regexp:created<thatDate>sort[created]]" emptyMessage:"n/a">>
</$set>

The problem with such a filter function in a Journal tiddler is, that: "What if I did create the journal tiddler 1 day late". ... So I want to date it back, which isn't possible with the created field. ...

So your approach with manually setting the value is probably the right one, but it may be simplified. eg:

\define thatDate() ^20210418

<<list-links filter:"[!is[system]regexp:created<thatDate>sort[created]]" emptyMessage:"n/a">>

The ^ char is needed, because it means "at the start of the line" ... eg if you use 2021 without the ^ it could find a tiddler with the time 20:21

have fun!
mario

Ray Vermey

unread,
Apr 18, 2021, 4:42:35 PM4/18/21
to Mohammad Rahmani
You can actually create a tiddler and have the Created field be the wished date...
I will try your code, thanks!

Ray

Op zo 18 apr. 2021 om 22:24 schreef PMario <pmar...@gmail.com>:
--
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/KyNX1E6Hjn4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c8c660c1-ed72-4247-9486-3150de2a8f4fn%40googlegroups.com.

Scott Kingery

unread,
Apr 18, 2021, 11:39:17 PM4/18/21
to TiddlyWiki
One thing you might want to research is Interstitial Journaling. We had some discussions here a while back and a great plugin was created by Tony K called Daily Notes. Here's the discussion about it:
and the plugin

Might not be exactly what you are looking for but it changed how I use Tiddlywiki so I had to mention it :)

Scott


TW Tones

unread,
Apr 20, 2021, 2:06:57 AM4/20/21
to TiddlyWiki
Folks,

I will just add I have simplified journals by adding a Journal-date field at creation, with a data picker this allows a Journal to be forward or backdated, I use the journal-date field for sorting rather than created or the tiddlers title. Thus you could if you wish create a toolbar button for "new journal tiddler for today" which will create a tiddler with the current tiddlers journal-date thus you can find all tiddlers with that journal date leaving the naming of such tiddlers to be anything except an existing tiddler. If you want to find the main journal tiddler search for the journal-date and tagged journal.

My previous macros work but do not honor the Journal tags and template (Attached).

I will create some updated ones shortly.

Tones
journal-date.json

TW Tones

unread,
Apr 20, 2021, 2:50:00 AM4/20/21
to TiddlyWiki
Here is one updated for 5.1.23 which uses an action tiddler.
  1. New Journal and New Journal here will set the journal date, for reliable search, sort and the ability to change from the created date.
  2. I have also modified the newhere to use a different title definition in $:/config/NewHereJournal/Title such as  0hh:mm on DDth MMM YYYY which allows one additional entry per minute.
Soon I will have a view Template tiddler which automatically lists journal entries with the same date as the main day journal.

Tones

TW Tones

unread,
Apr 20, 2021, 7:04:45 PM4/20/21
to TiddlyWiki
Sorry,

Here attached 5.1.23 Version

journal-date and new here 5.1.23.json
Reply all
Reply to author
Forward
0 new messages