Idea: Log tiddlers

89 views
Skip to first unread message

Mohammad

unread,
Mar 3, 2019, 7:32:15 AM3/3/19
to TiddlyWiki
In Tiddler Commander, when working with tiddlers (rename, delete, add/remove fields), it creates a log tiddler on any
operation. A log tiddler here is a conventional tiller has special tag and title and includes a timestamp and list of tiddlers
undergone an operation (like delete). The problem here is the WIKI soon or late will have a lot of log -tiddlers,

So, I need a mechanism to overcome this issue, I thought, when Commander needs to create a new log tiddler, it can


  • Count the log tiddlers
  • Solution I: Delete the last one if number of log tiddlers exceeds certain max-limit and then create a new log tiddler
  • Solution II: Delete all previous log tiddlers and start again

I appreciate to give me your idea, comment on this

--Mohammad

Mohammad

unread,
Mar 3, 2019, 7:35:44 AM3/3/19
to tiddl...@googlegroups.com
This is a report of sample log tiddlers

Recent operation: 2 processed
2019-03-03 16:07:27 addPrefix-to-tiltle-bulk
  1. Tid002-df title prefix: sfx- added. New title sfx-Tid002-df
  2. myTid001-df title prefix: sfx- added. New title sfx-myTid001-df
  3. myTid006-df title prefix: sfx- added. New title sfx-myTid006-df
2019-03-03 16:06:58 add-new-field-bulk
  1. Tid002-df new field foo added
  2. Tid003-df new field foo added
  3. Tid004-df new field foo added
  4. Tid005-df new field foo added
  5. Tid007-df new field foo added
  6. Tid008-df new field foo added
  7. Tid009-df new field foo added
  8. Tid010-df new field foo added
  9. myTid001-df new field foo added
  10. myTid006-df new field foo added

TonyM

unread,
Mar 3, 2019, 8:03:04 AM3/3/19
to TiddlyWiki
Mohammad,

I built a log system using a single data tiddler. Would you like me to share that as an alternate method?

Tony

Mohammad

unread,
Mar 3, 2019, 8:13:59 AM3/3/19
to TiddlyWiki
Sure, please!
I really eager to know how we can do this with minimum consequences on the whole Wiki.

--Mohammad

TonyM

unread,
Mar 3, 2019, 8:31:03 AM3/3/19
to TiddlyWiki
Mohammad,

Install attached in a Wiki and have a look.

The key trick was putting more data in the value and keeping the key as the data time stamp. See log here to see how the details of the log entry carry links to tiddlers.

Regards
Tony
Show-Log-Macro.bundle.json

TonyM

unread,
Mar 3, 2019, 8:34:24 AM3/3/19
to TiddlyWiki
PS,

I have asked Joshua of JSON fame, to have a look at my suggestion to pack and unpack multiple tiddlers in a single json tiddler, because I think this can also help here. You could store before tiddlers in a permanent or temp location as well as drive copies of whole tiddlers into a log. (In the Trash Bin Idea)

Regards
Tony

Mohammad

unread,
Mar 3, 2019, 8:49:06 AM3/3/19
to TiddlyWiki
Many Thanks!

--Mohammad

Mohammad

unread,
Mar 3, 2019, 8:49:44 AM3/3/19
to TiddlyWiki
Hello Tony!
 Thank you! I will make some experiment and will beck to you with my feedback.

--Mohammad

@TiddlyTweeter

unread,
Mar 3, 2019, 8:50:42 AM3/3/19
to tiddl...@googlegroups.com
Mohammad wrote:
In Tiddler Commander, when working with tiddlers (rename, delete, add/remove fields), it creates a log tiddler on any
operation.

Its excellent.

It brings up what a log is FOR?

Is it for "information" only? 

Or can I choose an item from the log to re-populate TC again with those options?

For instance ... "sfx-added" doesn't indicate WHAT was added, only the target that was added to.

Just a thought
Josiah

Mohammad

unread,
Mar 3, 2019, 8:57:34 AM3/3/19
to TiddlyWiki
Hello Josih,
 At the moment is only for information. But it is in the wish list
to save batch operations to repeat! It is not very difficult but needs coding!

--Mohammad

@TiddlyTweeter

unread,
Mar 3, 2019, 9:13:10 AM3/3/19
to TiddlyWiki
Mohammad,

You are a windmill of great things!

Grazie, J.

Mohammad

unread,
Mar 3, 2019, 9:16:07 AM3/3/19
to TiddlyWiki
That is very kind of you Josiah!
Actually I learn and get ideas from great people like you in this forum.

--Mohammad

Diego Mesa

unread,
Mar 3, 2019, 11:45:21 AM3/3/19
to TiddlyWiki
Mohammad, 

This is another great idea! I'd just like to mention that VC control systems have this concept of a log also built in! With this idea and your other fantastic trash can idea, all towards an UNDO mechanism, your building the major parts of a serious VC system and I applaud you! 
Reply all
Reply to author
Forward
0 new messages