I searched in many places for a simple way to insert a timestamp in any tiddler that I have open for editing.
I have the Shiraz Formatter subplugin installed in myTiddlyWiki Node.js edition and I tried to do something with the Snippets button, but it was not successful.
The best I could do was to create a snippet using with text <<now “YYYY-0MM-0DD 0hh:0mm ddd”>>.
I paste it in my tiddler and then I copy + paste the rendered timestamp in my editor area and I delete the <<now “YYYY-0MM-0DD 0hh:0mm ddd”>> text.
The implementation I have (button in the editor toolbar, and hotkey (I use ctrl-d because it’s my tomboy/gnote muscle memory) is based off the thread linked below, though I simplified it a little - removing all the “signature” stuff and just making it about timestamps
I cannot find a practical way to add a button to the text editing toolbar. The one with bold, italics etc. buttons. It’s been impossible even on an empty single file HTML TiddlyWiki. Very frustrating.
the solution in the linked thread adds an icon to the editing toolbar. The key bit is this:
Tag it with $:/tags/EditorToolbar
And the various tags (condition, description, icon, etc) control various aspects of the toolbar icon (condition sets which tid types it appears for. description sets the tooltip, and so on (I am not qualified enough to say what the absolute minimum set of fields are)
Then to have a keyboard shortcut, create $:/config/shortcuts/date-stamp with the content describing the hotkey you want. Mine simply has the content ctrl-d, with no tags, no other fields.
Once the keyboard shortcut is there, then it can also be seen in the Control Panel. (occurs to me that it should be visible there as soon as it’s defined in the “shortcuts” tag of the initial tid, but that’s outside the scope of answering you here)
I actually implement this outside of Tiddlywiki. For example, in Ubuntu go to Settings → Keyboard → Keyboard Shortcuts → Custom Shortcuts. I bind the f5 function key to this command, so while editing, pressing f5 will output the timestamp. Presumably for each OS there are options for this, or even on mobile via keyboard shortcuts.
The benefit with this approach is this is available to other programs too. But yes, if you are happy with a Tiddlywiki UI button, that keeps things easy. I don’t enable the UI toolbar so my approach works here.
I didn’t make it clear, but after you run this command (say via pressing f5 as in my example), the clipboard now has the timestamp value, so you are free to paste its value (ie, control-V) to put it into Tiddlywiki’s text input.