[
    {
        "text": ";{{!!description}}\n:Log recorded in $:/log\n:Related tiddlers tagged with {{ShowLogMacro||$:/core/ui/TagTemplate}} drag and drop on your wiki to install\n:Will display a toggle to see or enter log entries on all non system tiddlers by default (change [[here|$:/PSaT/macros/ShowLogMacro/viewTemplate]])\n;Contains\n<$list filter=\"[prefix[$:/PSaT/macros/ShowLogMacro]sort[]]\">\n     <<currentTiddler>><br>\n     ''Description:'' {{!!description}}<br>\n     <$list filter=\"[<currentTiddler>fields[]prefix[macro-]]\" variable=macro-field>\n             <$view field=<<macro-field>>/><br>\n     </$list>\n</$list>",
        "wiki-owner": "PSaTCore",
        "version": "V0.1 Pre-release",
        "title": "$:/PSaT/macros/ShowLogMacro",
        "tags": "ShowLogMacro",
        "source": "http://tiddlywiki.psat.com.au/#Wiki%20Log%20tool",
        "modified": "20180905235052574",
        "description": "Provides tools for making and viewing log entries accross the whole wiki or from specific tiddlers",
        "created": "20180905092937274"
    },
    {
        "text": "\\define log-here()\n<$wikify name=in-tiddler text=\"\"\"<<currentTiddler>>\"\"\">\n<$tiddler tiddler=\"$:/temp/logentry\">\n<$transclude tiddler=\"$:/core/ui/EditTemplate/body/editor\"/>\n<$wikify name=log-entry text=\"\"\"{{!!text}}\"\"\">\n<$wikify name=log-index text=\"\"\"<<now \"YYYY-0MM-0DD 0hh:0mm:0ss\">> |<<in-tiddler>>\"\"\">\n<$button tooltip=\"Post the above to the log with reference to this tiddler\">\n<$action-setfield $tiddler=\"$:/log\" $index=<<log-index>> $value=<<log-entry >>/>\n<$action-deletetiddler $tiddler=\"$:/temp/logentry\"/>\nLog here\n</$button>\n<$button tooltip=\"Post the above to the log ''without'' reference to this tiddler\">\n<$action-setfield $tiddler=\"$:/log\" $index=<<now \"YYYY-0MM-0DD 0hh:0mm:0ss\">> $value={{!!text}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/logentry\"/>\nLog\n</$button>\n[[?|$:/PSaT/macros/ShowLogMacro]]\n</$wikify>\n</$wikify>\n</$tiddler>\n</$wikify>\n\\end\n\\define log-line-here()\n<$wikify name=in-tiddler text=\"\"\"<<currentTiddler>>\"\"\">\n<$edit-text tiddler=\"$:/temp/logentry\" field=\"text\" tag=input size=80 focus=yes/>\n<$tiddler tiddler=\"$:/temp/logentry\">\n<$wikify name=log-entry text=\"\"\"{{!!text}}\"\"\">\n<$wikify name=log-index text=\"\"\"<<now \"YYYY-0MM-0DD 0hh:0mm:0ss\">> |<<in-tiddler>>\"\"\">\n<$button tooltip=\"Post the above to the log with reference to this tiddler\">\n<$action-setfield $tiddler=\"$:/log\" $index=<<log-index>> $value=<<log-entry >>/>\n<$action-deletetiddler $tiddler=\"$:/temp/logentry\"/>\nLog here\n</$button>\n<$button tooltip=\"Post the above to the log ''without'' reference to this tiddler\">\n<$action-setfield $tiddler=\"$:/log\" $index=<<now \"YYYY-0MM-0DD 0hh:0mm:0ss\">> $value={{!!text}}/>\n<$action-deletetiddler $tiddler=\"$:/temp/logentry\"/>\nLog\n</$button>\n[[?|$:/PSaT/macros/ShowLogMacro]]\n</$wikify>\n</$wikify>\n</$tiddler>\n</$wikify>\n\\end\n\\define list-log-here(open)\n<details style=\"background-color: #d8ecf3;\" $open$><summary style=\"background-color: lightBlue;\">± List log entries here</summary>\n\n<$list filter=\"[[$:/log]indexes[]!sort[title]]\" variable=entry-title>\n   <$list filter=\"[<entry-title>splitbefore[ ]]\" variable=log-date>\n   <$list filter=\"[<entry-title>removeprefix<log-date>splitbefore[ ]]\" variable=log-time>\n          <$list filter=\"[<entry-title>splitbefore[ |]]\" variable=log-date-time-prefix>\n               <$list filter=\"[<entry-title>removeprefix<log-date-time-prefix>]\" variable=log-tiddler>\n                    <$list filter=\"[<log-tiddler>prefix<currentTiddler>]\" variable=null>\n                        <$list filter=\"[[$:/log]getindex<entry-title>]\" variable=log-entry>\n                            <<log-date>> <<log-time>> <$link to=<<log-tiddler>> tooltip=\"Open tiddler\"><<log-tiddler>></$link> <<log-entry>><br>\n                        </$list>\n                    </$list>\n               </$list>\n         </$list>\n</$list></$list></$list>\n<br>\n</details>\n\\end\n\\define list-log-recent()\n<details style=\"background-color: #d8ecf3;\"><summary  style=\"background-color: lightBlue;\">± List recent log entries (max 20)</summary>\n\n<$list filter=\"[[$:/log]indexes[]!sort[title]limit[20]]\" variable=entry-title>\n   <$list filter=\"[<entry-title>splitbefore[ ]]\" variable=log-date>\n   <$list filter=\"[<entry-title>removeprefix<log-date>splitbefore[ ]]\" variable=log-time>\n          <$list filter=\"[<entry-title>splitbefore[ |]]\" variable=log-date-time-prefix>\n               <$list filter=\"[<entry-title>removeprefix<log-date-time-prefix>]\" variable=log-tiddler>\n                    <$list filter=\"[[$:/log]getindex<entry-title>]\" variable=log-entry>\n                        <<log-date>> <<log-time>> <$link to=<<log-tiddler>> tooltip=\"Open tiddler\"><<log-tiddler>></$link> <<log-entry>><br>\n                    </$list>\n               </$list>\n         </$list>\n</$list></$list></$list>\n</details>\n<br>\n\\end\n\\define list-log-all()\n<details style=\"background-color: #d8ecf3;\"><summary  style=\"background-color: lightBlue;\">± List all log entries</summary>\n\n<$list filter=\"[[$:/log]indexes[]!sort[title]]\" variable=entry-title>\n   <$list filter=\"[<entry-title>splitbefore[ ]]\" variable=log-date>\n   <$list filter=\"[<entry-title>removeprefix<log-date>splitbefore[ ]]\" variable=log-time>\n          <$list filter=\"[<entry-title>splitbefore[ |]]\" variable=log-date-time-prefix>\n               <$list filter=\"[<entry-title>removeprefix<log-date-time-prefix>]\" variable=log-tiddler>\n                    <$list filter=\"[[$:/log]getindex<entry-title>]\" variable=log-entry>\n                        <<log-date>> <<log-time>> <$link to=<<log-tiddler>> tooltip=\"Open tiddler\"><<log-tiddler>></$link> <<log-entry>><br>\n                    </$list>\n               </$list>\n         </$list>\n</$list></$list></$list>\n</details>\n<br>\n\\end\n\\define create-log-temp()\n<$action-sendmessage $message=\"tm-new-tiddler\" title=\"$:/temp/logentry\"/>\n<!-- Creates the temp file on use of the checkbox, so the focus is not lost on first character entry -->\n\\end",
        "title": "$:/PSaT/macros/ShowLogMacro/macros",
        "tags": "ShowLogMacro $:/tags/Macro",
        "modified": "20181023021924219",
        "macro-log-line-here": "<<log-line-here>> Will display a single line editor to enter a log entry. Includes Log here and Log Buttons to write the entry to the log.",
        "macro-log-here": "<<log-here>> Will display a full text editor to enter a log entry. Includes Log here and Log Buttons to write the entry to the log.",
        "macro-list-log-recent": "<<list-log-recent>> Click to open, , will list the recent log items for all tiddlers (maximum 20)",
        "macro-list-log-here": "<<list-log-here>> Click to open, will list the log of entries for the current tiddler (if any)",
        "macro-list-log-all": "<<list-log-all>> Click to open, will list all log entries.",
        "description": "Set of macros to support creating and reviewing log entries, use together in [[view template|$:/PSaT/macros/ShowLogMacro/viewTemplate]] or independently in tiddlers",
        "created": "20180905084912645"
    },
    {
        "text": "<$list filter=\"[all[current]!is[system]]\" variable=null>\n<$checkbox field=\"show-log\" checked=yes unchecked=no default=no actions actions=create-log-temp> Show Log</$checkbox>\n<$reveal type=\"match\" state=\"!!show-log\" text=\"yes\">\n<<log-line-here>>\n<br><br>\n<<list-log-here>>\n<<list-log-recent>>\n<<list-log-all>>\n</$reveal>\n</$list>\n<$list filter=\"[is[current]tag[Journal]]\">\n<<list-log-all>>\n<$list filter=\"[tag[Journal]!sort[title]limit[2]]\" variable=journal-entry>\n  <details><summary><$link to=<<journal-entry>> tooltip=\"Open\"><<journal-entry>></$link></summary>\n        <$transclude tiddler=<<journal-entry>> mode=block/>\n   </details>\n</$list>\n</$list>",
        "title": "$:/PSaT/macros/ShowLogMacro/viewTemplate",
        "tags": "ShowLogMacro $:/tags/ViewTemplate",
        "modified": "20181013024056539",
        "description": "Tagged with {{$:/tags/ViewTemplate||$:/core/ui/TagTemplate}}  to appear on tiddlers",
        "created": "20180905085340376",
        "caption": "Show Log Macro"
    },
    {
        "created": "20181105233345663",
        "text": "<pre>{{!!filter}}</pre>",
        "title": "Show-Log-Macro.bundle",
        "tags": "$:/tags/Filter",
        "description": "provide a meaningful description to display in AdvancedSearch: Filter!",
        "filter": "[prefix[$:/PSaT/macros/ShowLogMacro]] [[Show-Log-Macro.bundle]]",
        "modified": "20181105233450694"
    }
]