Modifying Save Behaviour

87 views
Skip to first unread message

Simon

unread,
Sep 17, 2020, 9:01:58 PM9/17/20
to TiddlyWiki
New tiddlywiki user here, I'm of the GTD flavor!

So I can code, and I would like to modify the behavior of the save functionality - basically I want to change the filename - long story short I live in a highly regulated world and I need to do this.

Not looking for the code, but can somebody point me in the right direction - I know I can wade through the code and look but was looking for a shortcut..I'm assuming/hoping/guessing it's in a plugin somewhere but I am struggling...

Any help is much appreciated!
Thanks
Simon

Rob Hoelz

unread,
Sep 17, 2020, 9:16:55 PM9/17/20
to TiddlyWiki
Hi Simon, welcome to TiddlyWiki and to the group!

Are you talking about running TiddlyWiki on Node.js?  If so, you might find this helpful: https://tiddlywiki.com/#Customising%20Tiddler%20File%20Naming

-Rob

Birthe C

unread,
Sep 17, 2020, 9:30:56 PM9/17/20
to TiddlyWiki
Simon,

 and welcome here.

Birthe

Simon

unread,
Sep 18, 2020, 8:41:02 AM9/18/20
to TiddlyWiki
Thanks for the info - it was actually the local filename

Birthe - that looks exactly like the area - I'm hoping to make it dynamic (add a date) so I'll play with it and see what I can cook up

Appreciate the replies

Thanks
Simon

PMario

unread,
Sep 18, 2020, 9:13:45 AM9/18/20
to tiddl...@googlegroups.com
Hi Simon,
If you create a tiddler named: $:/config/SaveWikiButton/Filename ... it will be used to create the filename.

The TW <<now>> macro will allow you to create timestamp based names. eg:

<<now "YYYY-0MM-0DD 0hh:0mm:0ss">>

Date formats can be found here: https://tiddlywiki.com/#DateFormat

have fun!
mario

Simon

unread,
Sep 18, 2020, 11:12:42 AM9/18/20
to TiddlyWiki
Holy cow - that is FANTASTIC

The more I am digging into TW the more I am impressed

I hope to write some plugins and contribute back - this thing is amazing

Thanks all
Simon

Reply all
Reply to author
Forward
0 new messages