[{"created":"20220407035756845","creator":"!user","text":"\\define title-string() \"title\": \"\n\\define end-title() \"\n\\define get-field-value() get[title]\n\\define copy-text-to-clipboard()\n\\define open-tiddlers-filter() [list<tv-story-list>]\n\\define tiddlers-with-draft() [all[shadows+tiddlers]get[draft.of]]\n\\define has-draft() [all[tiddlers]get[draft.of]]\n<$button tooltip=\"copy text to clipboard\" message=\"tm-copy-to-clipboard\" param={{!!text}} class=\"tc-btn-invisible\">{{$:/core/images/copy-clipboard}}\n</$button>\n\\end\n\\define close-button()\n<$button message=\"tm-close-tiddler\" tooltip=\"Close - item open in story\" aria-label={{$:/language/Buttons/Close/Caption}} class=\"tc-btn-invisible\">x</$button>\n\\end\n\\define each-draft-item()\n<small><<item>>. {{||$:/core/ui/Buttons/edit}} <<copy-text-to-clipboard>> <$link/> <<changecount>>Δ </small><br>\n\\end\n\\define each-item()\n<small><<item>>. {{||$:/core/ui/Buttons/edit}} <<copy-text-to-clipboard>> <$link/> <span title=\"Total changes this session `<<changecount>>`\"><<changecount>>Δ</span>\n</small> <$list filter=\"\"\"[list<tv-story-list>match<currentTiddler>]\"\"\" variable=~><<close-button>></$list><br>\n\\end\n<$list filter=\"[all[shadows+tiddlers]has[draft.of]]\" counter=item>\n   <$list filter=\"[<item>match[1]]\">Warning current Drafts exist<br></$list>\n      <<each-draft-item>> \n</$list>\n\n;History\n<$list filter=\"[{$:/HistoryList}split<title-string>splitbefore<end-title>removesuffix<end-title>reverse[]!prefix[Draft of]has[title]]\" counter=item>\n<<each-item>>\n</$list>\n\nLast but one\n<$list filter=\"[{$:/HistoryList}split<title-string>splitbefore<end-title>removesuffix<end-title>reverse[]nth[2]]\">\n   <$button to=<<currentTiddler>> >Last <<currentTiddler>></$button>\n</$list>","tags":"$:/tags/SideBar","title":"$:/PSaT/history-sidebar","modified":"20230126070149207","caption":"History","package-filter":"[prefix[$:/PSaT/history-sidebar]]","psat-project":"history-sidebar","filename":"history-sidebar","description":"Lists most recent tiddler first in the history, clears on reload","modifier":"!build","psat-version":"0.1.1","last-export-date":"20230126070124333","export-date":"20230126070152269","filepath":"I:\\TW5 Intranet\\MyBundles\\history-sidebar.json","package-owner":"Gold packages","wiki-path":"file:///I:/TW5%20Intranet/MyBundles/Working/new-gold-packages-wiki.html"},{"created":"20220528055917679","text":"<svg width=\"12px\" height=\"12px\" class=\"tc-image-close-button tc-image-button\" viewBox=\"0 0 128 128\"><path fill-rule=\"evenodd\" d=\"M65.086 75.41l-50.113 50.113c-3.121 3.121-8.192 3.126-11.316.002-3.118-3.118-3.123-8.19.002-11.316l50.114-50.114L3.659 13.982C.538 10.86.533 5.79 3.657 2.666c3.118-3.118 8.19-3.123 11.316.002l50.113 50.114L115.2 2.668c3.121-3.121 8.192-3.126 11.316-.002 3.118 3.118 3.123 8.19-.002 11.316L76.4 64.095l50.114 50.114c3.121 3.121 3.126 8.192.002 11.316-3.118 3.118-8.19 3.123-11.316-.002L65.086 75.409z\"/></svg>","title":"$:/PSaT/history-sidebar/close-icon","tags":"$:/tags/Image","modified":"20220528060153608"}]