Create A Custom Button?

I’d like to create a button that creates a tiddler that automatically applies a specific tag & puts today’s date in the title. I realize the journal tiddler does this, but I’m already using that for something else.

There’s several ways to create a tiddler, depending upon how you want to interact with the new tiddler:

Method #1: using the tm-new-tiddler message:

<$button>edit a custom tiddler
<$action-sendmessage $message="tm-new-tiddler"
   title=<<now "MMM DDth YYYY">> tags="sometag anothertag [[tag with spaces]]"/>
</$button>
  • tm-new-tiddler automatically opens a tiddler editor. If you cancel the editor, no tiddler is created.
  • The specified title is the current date (e.g., “March 23rd 2026”). If you press the $button again, it will re-edit the existing tiddler. Any content you previously entered or extra tags you added are retained.

Method #2: using the $action-createtiddler widget:

<$button>add a custom tiddler
<$action-createtiddler
   $basetitle=<<now "MMM DDth YYYY">> tags="sometag anothertag [[tag with spaces]]"/>
</$button>
  • $action-createtiddler does NOT automatically open the new tiddler.
  • The specified title is the current date. If you press the $button again, it will create another tiddler with the current date and an appended number (e.g., “March 23rd 2026 1”, “March 23rd 2026 2”, etc.)

Method #2a: using the $action-createtiddler and $action-navigate widgets:

<$button>add and view a custom tiddler
<$action-createtiddler
   $basetitle=<<now "MMM DDth YYYY">> tags="sometag anothertag [[tag with spaces]]">
   <$action-navigate $to=<<createTiddler-title>>/>
</$action-createtiddler>
</$button>
  • Works the same as method #2, except it also uses $action-navigate to automatically view the new tiddler.

Method #2b: using the $action-createtiddler widget and tm-edit-tiddler message:

<$button>add and edit a custom tiddler
<$action-createtiddler
   $basetitle=<<now "MMM DDth YYYY">> tags="sometag anothertag [[tag with spaces]]">
      <$action-sendmessage $message="tm-edit-tiddler" $param=<<createTiddler-title>>/>
</$action-createtiddler>
</$button>
  • Works the same as method #2, except it also uses tm-edit-tiddler to automatically edit the new tiddler.
  • If you cancel the editor, the new tiddler still exists because it was created before invoking the edit

References:

WidgetMessage: tm-new-tiddler
ActionCreateTiddlerWidget
ActionNavigateWidget
WidgetMessage: tm-edit-tiddler

enjoy,
-e

6 Likes

Dear Gloria,
For what it’s worth, here is the corresponding section in Grok TiddlyWiki. It’s an amazing resource to learn TW.

1 Like

(post deleted by author)