From 093617c1ae9e16410a2dbc151e0b2dc013594d8e Mon Sep 17 00:00:00 2001 From: akhater Date: Tue, 5 May 2020 10:46:51 +0300 Subject: [PATCH] v.0.1.0 --- $__ak_plugins_TWCrossLinks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/$__ak_plugins_TWCrossLinks.json b/$__ak_plugins_TWCrossLinks.json index 7017043..b4739ba 100644 --- a/$__ak_plugins_TWCrossLinks.json +++ b/$__ak_plugins_TWCrossLinks.json @@ -1 +1 @@ -[{"created":"20200502092707287","text":"{\n \"tiddlers\": {\n \"$:/ak/plugins/TWCrossLinks/config/default\": {\n \"created\": \"20200429195808011\",\n \"text\": \"{\\n \\\"DefaultFoldData\\\": \\\"hide\\\",\\n \\\"DefaultTab\\\": \\\"$:/ak/plugins/TWCrossLinks/core/backlinks\\\",\\n \\\"TranscludeInboundLinks\\\": \\\"true\\\"\\n}\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"application/json\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/config/default\",\n \"tags\": \"\",\n \"modified\": \"20200505061653276\"\n },\n \"$:/ak/plugins/TWCrossLinks/core/backlinks\": {\n \"created\": \"20200429182330136\",\n \"text\": \"\\\\define lingo-base() $:/language/TiddlerInfo/\\n<$list filter=\\\"[!is[system]all[current]backlinks[]!tag[hide]sort[title]] -[is[current]]\\\" emptyMessage=<> variable=result>\\n <$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[TranscludeInboundLinks]] -[[true]]\\\" variable=conf>\\n
<$link to=<> ><$view tiddler=<> field=title>
\\n \\n <$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[TranscludeInboundLinks]] -[[false]]\\\" variable=conf>\\n
\\n
\\n <$link to=<> ><$view tiddler=<> field=title template=\\\"$:/core/ui/ListItemTemplate\\\"> \\n <$context term=<> tiddler= <> /> \\n
\\n
\\n \\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/core/backlinks\",\n \"tags\": \"$:/tags/TWCrossLinks\",\n \"modified\": \"20200504205713469\",\n \"caption\": \"Backlinks\"\n },\n \"$:/ak/plugins/TWCrossLinks/core/freelinks\": {\n \"created\": \"20200430051330741\",\n \"text\": \"\\\\define searchInField(field, for, ci)\\n<$list filter=\\\"[!is[shadow]!is[system]regexp:$field$[$for$$ci$]] -[all[current]backlinks[]]\\\" emptyMessage=\\\"No freelinks to this tiddler\\\" \\n variable=result>\\n <$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[TranscludeInboundLinks]] -[[true]]\\\" variable=var1>\\n
<$link to=<> ><$view tiddler=<> field=title>
\\n \\n <$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[TranscludeInboundLinks]] -[[false]]\\\" variable=var1>\\n
\\n
\\n <$link to=<> ><$view tiddler=<> field=title> \\n <$context term=<> tiddler=<> /> \\n
\\n
\\n \\n\\n\\\\end\\n\\n\\n<$macrocall $name=\\\"searchInField\\\" field=\\\"text\\\" for={{!!title}} ci=\\\"(?i)\\\"/>\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/core/freelinks\",\n \"tags\": \"$:/tags/TWCrossLinks\",\n \"modified\": \"20200504211412099\",\n \"caption\": \"Freelinks\"\n },\n \"$:/ak/plugins/TWCrossLinks/core/keywords\": {\n \"created\": \"20200429195123372\",\n \"text\": \"\\\\define lingo-base() $:/language/TiddlerInfo/\\n<$list filter=\\\"[search:keywordssort[title]]\\\" emptyMessage=\\\"There are no tiddler having this one as keyword\\\" template=\\\"$:/core/ui/ListItemTemplate\\\"/>\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/core/keywords\",\n \"tags\": \"$:/tags/TWCrossLinks\",\n \"modified\": \"20200502090501525\",\n \"caption\": \"Keywords\"\n },\n \"$:/ak/plugins/TWCrossLinks/core/tagging\": {\n \"created\": \"20200429183952157\",\n \"text\": \"\\\\define lingo-base() $:/language/TiddlerInfo/\\n<$list filter=\\\"[all[current]tagging[]]\\\" emptyMessage=<> template=\\\"$:/core/ui/ListItemTemplate\\\"/>\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/core/tagging\",\n \"tags\": \"$:/tags/TWCrossLinks\",\n \"modified\": \"20200502090517091\",\n \"caption\": \"Tagged\"\n },\n \"$:/ak/plugins/TWCrossLinks/ui/footer\": {\n \"created\": \"20200430143629582\",\n \"text\": \"\\\\define regexpattern()\\n$(currentTiddler)$(?i)\\n\\\\end\\n\\n<$set name=\\\"text-pattern\\\" value=<>>\\n<$list filter=\\\"[all[current]tagging[]] [search:keywords] [!is[system]regexp:text] [!is[system]all[current]backlinks[]!tag[hide]] -[is[current]] +[limit[1]]\\\" variable=none>\\n <$reveal type=\\\"nomatch\\\" stateTitle=<> text=\\\"hide\\\" tag=\\\"div\\\" retain=\\\"yes\\\" animate=\\\"yes\\\">\\n ,,
,,\\n \\n \\n //Inbound Links:// \\n<$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[DefaultFoldData]]\\\" variable=DefaultFoldState>\\n <$reveal type=\\\"nomatch\\\" stateTitle=\\\"$:/temp/TWCrossLinksFoldData\\\" stateIndex=<> text=\\\"show\\\" default=<> >\\n <$button class=<> setTitle=\\\"$:/temp/TWCrossLinksFoldData\\\" setIndex=<> setTo=\\\"show\\\">{{$:/core/images/unfold-button}}
\\n \\n <$reveal type=\\\"match\\\" stateTitle=\\\"$:/temp/TWCrossLinksFoldData\\\" stateIndex=<> text=\\\"show\\\" default=<> >\\n <$button class=<> setTitle=\\\"$:/temp/TWCrossLinksFoldData\\\" setIndex=<> setTo=\\\"hide\\\">{{$:/core/images/fold-button}}
\\n\\n <$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/TWCrossLinksSegment]!has[draft.of]] [[$:/ak/plugins/TWCrossLinks/ui/tabs]]\\\" variable=\\\"listItem\\\"><$transclude tiddler=<> mode=\\\"block\\\"/> \\n\\n \\n\\n
\\n \\n\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/ui/footer\",\n \"tags\": \"$:/tags/ViewTemplate\",\n \"modified\": \"20200503114406300\"\n },\n \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd\": {\n \"created\": \"20200428214251454\",\n \"text\": \"\\n<$list filter=\\\"[all[current]has[keywords]]\\\">\\n,,//See also//:\\n<$list filter=\\\"[enlist{!!keywords}]\\\" template=\\\"$:/ak/plugins/TWCrossLinks/ui/footer.kwd.template\\\">,,\\n\\n\\n<$list filter=\\\"[is[current]!field:reference[]]\\\">\\n
\\n,,External ref: <$view field=\\\"reference\\\"}}/>
,,\\n\\n\\n\\n\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd\",\n \"tags\": \"$:/tags/ViewTemplate\",\n \"modified\": \"20200502090828057\",\n \"list-before\": \"$:/ak/plugins/TWCrossLinks/ui/footer\"\n },\n \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd.css\": {\n \"created\": \"20200428212006657\",\n \"text\": \".sl-header{\\n color: #383d41;\\n background-color: #e2e3e5;\\n border-color: #d6d8db;\\n padding: 0.75rem 1.25rem;\\n margin-bottom: 1rem;\\n border-radius: 0.25rem;\\n}\\n\\n.sl-keywords {\\n display: inline-block;\\n padding: 0.16em 0.7em;\\n font-size: 0.9em;\\n font-weight: 400;\\n line-height: 1.2em;\\n color: #333333;\\n white-space: nowrap;\\n vertical-align: baseline;\\n border-radius: 1em;\\n background-color:#ffe7b3;\\n}\\n.sl-keywords {\\n outline:none;\\n} /*remove the blue border on button focus */\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd.css\",\n \"tags\": \"$:/tags/Stylesheet\",\n \"modified\": \"20200502090911093\"\n },\n \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd.template\": {\n \"created\": \"20200428204919232\",\n \"text\": \"\\\\define keywords-body(kwd)\\n<$list filter=\\\"[tag[$kwd$]] [search:keywords[$kwd$]]\\\" variable=\\\"itemTid\\\">\\n<$link to=<> ><$text text=<>/>\\n\\n\\\\end\\n\\n\\n\\n<$set name=\\\"transclusion\\\" value=<> >\\n<$button class=\\\"tc-btn-invisible sl-keywords\\\" popup=<> >\\n<$text text=<>/>\\n\\n<$reveal state=<> type=\\\"popup\\\" position=\\\"below\\\" animate=\\\"yes\\\" class=\\\"tc-drop-down\\\">\\n<$link to=<> ><$text text=<>/>\\n
\\n<$macrocall $name=\\\"keywords-body\\\" kwd=<> />\\n\\n\\n\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd.template\",\n \"modified\": \"20200502091004582\"\n },\n \"$:/ak/plugins/TWCrossLinks/ui/tabs\": {\n \"created\": \"20200429182054776\",\n \"text\": \"<$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[DefaultTab]]\\\" variable=DefaultTab>\\n<$macrocall $name=\\\"tabs\\\" tabsList=\\\"[all[shadows+tiddlers]tag[$:/tags/TWCrossLinks]!has[draft.of]]\\\" default=<> />\\n\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/ui/tabs\",\n \"tags\": \"\",\n \"modified\": \"20200503114538223\"\n },\n \"$:/ak/plugins/TWCrossLinks/change.log\": {\n \"created\": \"20200502091404523\",\n \"text\": \"''2020-05-03'': v0.0.9\\n\\n* Inbound links for \\\"//Backlinks//\\\" and \\\"//Freelinks//\\\" can now be transcluded in a pop-up, try it by enabling this feature from the [[TWCrosslinks|$:/ak/plugins/TWCrossLinks]] config panel\\n\\n\\n''2020-05-03'': v0.0.7\\n\\n* Added configuration panel, can be found at $:/ak/plugins/TWCrossLinks\\n** You can now set the Default state of the \\\"inbound links\\\" {Shown / Hidden}\\n** You can now set the Default \\\"inbound links\\\" tab\\n\\n''2020-05-02'': v0.0.3\\n\\n* Initial packaging and release\",\n \"tags\": \"\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/change.log\",\n \"modified\": \"20200505063458968\"\n },\n \"$:/ak/plugins/TWCrossLinks/config\": {\n \"created\": \"20200503100751953\",\n \"text\": \"''By default the //inbound links// should be:''
\\n<$tiddler tiddler=\\\"$:/ak/plugins/TWCrossLinks/config/default\\\">\\n<$radio index=\\\"DefaultFoldData\\\" value=\\\"show\\\"> Shown \\n<$radio index=\\\"DefaultFoldData\\\" value=\\\"hide\\\"> Hidden \\n\\n\\n''Select which Tab you want to be open by Default''
\\n<$tiddler tiddler=\\\"$:/ak/plugins/TWCrossLinks/config/default\\\">\\n<$radio index=\\\"DefaultTab\\\" value=\\\"$:/ak/plugins/TWCrossLinks/core/backlinks\\\"> Backlinks \\n<$radio index=\\\"DefaultTab\\\" value=\\\"$:/ak/plugins/TWCrossLinks/core/freelinks\\\"> Freelinks \\n<$radio index=\\\"DefaultTab\\\" value=\\\"$:/ak/plugins/TWCrossLinks/core/keywords\\\"> Keywords \\n<$radio index=\\\"DefaultTab\\\" value=\\\"$:/ak/plugins/TWCrossLinks/core/tagging\\\"> Tagged \\n\\n\\n<$checkbox tiddler=\\\"$:/ak/plugins/TWCrossLinks/config/default\\\" index=\\\"TranscludeInboundLinks\\\" checked=\\\"true\\\" unchecked=\\\"false\\\" default=\\\"false\\\"> ''Transclude //Backlinks// & //Freelinks// on hover''\\n\",\n \"bag\": \"default\",\n \"revision\": \"7\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/config\",\n \"modified\": \"20200504203958150\"\n },\n \"$:/ak/plugins/TWCrossLinks/readme\": {\n \"created\": \"20200503110056664\",\n \"text\": \"For feedback / suggestions / help please visit plugin page on [[Google Groups|https://groups.google.com/forum/#!topic/tiddlywiki/9ra0s9AEKl4]] or [[Github|https://github.com/akhater/TWCrossLinks]]\",\n \"tags\": \"\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/readme\",\n \"modified\": \"20200503110556549\"\n },\n \"$:/ak/plugins/TWCrossLinks/daniello/context.js\": {\n \"created\": \"20140418153435777\",\n \"text\": \"/*\\\\\\\\\\ntitle: $:/core/modules/widgets/danielo/context-widget.js\\ntype: application/javascript\\nmodule-type: widget\\n\\nEdit-text widget\\n\\n\\\\*/\\n(function(){\\n\\n/*jslint node: true, browser: true */\\n/*global $tw: false */\\n\\\"use strict\\\";\\n\\nvar Widget = require(\\\"$:/core/modules/widgets/widget.js\\\").widget;\\nvar contextWidget = function(parseTreeNode,options) {\\n\\tthis.initialise(parseTreeNode,options);\\n};\\n\\n/*\\nInherit from the base widget class\\n*/\\ncontextWidget.prototype = new Widget();\\n\\n/*\\nRender this widget into the DOM\\n*/\\ncontextWidget.prototype.render = function(parent,nextSibling) {\\n // Save the parent dom node\\n\\tthis.parentDomNode = parent;\\n\\t// Compute our attributes\\n\\tthis.computeAttributes();\\n\\t// Execute our logic\\n\\tthis.execute();\\n \\n if(this.term && this.term.length>3){\\n \\n this.createRegexp();\\n var matches = this.executeRegexp();\\n\\t if(matches.length > 0){ \\n this.domNode = this.document.createElement(this.element);\\n this.domNode.className=\\\"tw-context\\\";\\n this.composeResults( matches ); //this appends to domNode \\n \\t// Insert element\\n \\tparent.insertBefore(this.domNode,nextSibling);\\n \\tthis.renderChildren(this.domNode,null);\\n\\t \\tthis.domNodes.push(this.domNode);\\n }\\n }\\n\\t\\n};\\n\\n/*\\nCompute the internal state of the widget\\n*/\\ncontextWidget.prototype.execute = function() {\\n\\t// Get the parameters from the attributes\\n this.matchedClass = this.getAttribute(\\\"matchClass\\\",\\\"matched\\\");\\n\\tthis.tiddler = this.getAttribute( \\\"tiddler\\\",this.getVariable(\\\"currentTiddler\\\") );\\n this.term = this.getAttribute(\\\"term\\\",this.getAttribute(\\\"searchTerm\\\"));\\n\\tthis.contextLength = this.getAttribute(\\\"length\\\",50);\\n this.before = this.getAttribute(\\\"before\\\",this.contextLength);\\n this.after = this.getAttribute(\\\"after\\\",this.contextLength);\\n this.maxMatches = this.getAttribute(\\\"maxMatches\\\",10);\\n this.element = this.getAttribute(\\\"element\\\",\\\"pre\\\");\\n\\tthis.makeChildWidgets();\\n};\\n\\n /*Create the regular expression*/\\ncontextWidget.prototype.createRegexp = function()\\n{\\n var regString = \\\"(\\\\\\\\w+[\\\\\\\\s\\\\\\\\S]{0,#before#})?(#term#)([\\\\\\\\s\\\\\\\\S]{0,#after#}\\\\\\\\w+)?\\\";\\n\\n var regString = regString.replace(\\\"#before#\\\",this.before).replace(\\\"#term#\\\", $tw.utils.escapeRegExp(this.term) ) .replace(\\\"#after#\\\",this.after);\\n this.regexp = new RegExp(regString,\\\"ig\\\");\\n //console.log(regString);\\n};\\n/*\\nexecute the regular expresion\\n*/\\ncontextWidget.prototype.executeRegexp = function()\\n{\\n var text = this.wiki.getTiddlerText(this.tiddler), match,results = new Array();\\n while( (match = this.regexp.exec( text ) ) && (results.length < this.maxMatches) )\\n { results.push(match) }\\n //console.log(\\\"matches\\\",results);\\n return results;\\n};\\n\\n/*\\ncompose the results\\nmatches : array of match objects from regular expression execute\\n*/\\ncontextWidget.prototype.composeResults = function(matches){\\n var result=[], self=this, node = this.domNode,\\n dots = textNode(\\\"...\\\\n\\\"),\\n span = matchedNode( this.term );\\n\\n for(var i=0; i < matches.length; i++){\\n processMatch( matches[i] );\\n }\\n \\n function processMatch(match){\\n if( match.index !== 0) node.appendChild( dots.cloneNode(true) );\\n for( var i=1;i> variable=result>\\n <$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[TranscludeInboundLinks]] -[[true]]\\\" variable=conf>\\n
<$link to=<> ><$view tiddler=<> field=title>
\\n \\n <$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[TranscludeInboundLinks]] -[[false]]\\\" variable=conf>\\n
\\n
\\n <$link to=<> ><$view tiddler=<> field=title template=\\\"$:/core/ui/ListItemTemplate\\\"> \\n <$context term=<> tiddler= <> /> \\n
\\n
\\n \\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/core/backlinks\",\n \"tags\": \"$:/tags/TWCrossLinks\",\n \"modified\": \"20200504205713469\",\n \"caption\": \"Backlinks\"\n },\n \"$:/ak/plugins/TWCrossLinks/core/freelinks\": {\n \"created\": \"20200430051330741\",\n \"text\": \"\\\\define searchInField(field, for, ci)\\n<$list filter=\\\"[!is[shadow]!is[system]regexp:$field$[$for$$ci$]] -[all[current]backlinks[]]\\\" emptyMessage=\\\"No freelinks to this tiddler\\\" \\n variable=result>\\n <$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[TranscludeInboundLinks]] -[[true]]\\\" variable=var1>\\n
<$link to=<> ><$view tiddler=<> field=title>
\\n \\n <$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[TranscludeInboundLinks]] -[[false]]\\\" variable=var1>\\n
\\n
\\n <$link to=<> ><$view tiddler=<> field=title> \\n <$context term=<> tiddler=<> /> \\n
\\n
\\n \\n\\n\\\\end\\n\\n\\n<$macrocall $name=\\\"searchInField\\\" field=\\\"text\\\" for={{!!title}} ci=\\\"(?i)\\\"/>\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/core/freelinks\",\n \"tags\": \"$:/tags/TWCrossLinks\",\n \"modified\": \"20200504211412099\",\n \"caption\": \"Freelinks\"\n },\n \"$:/ak/plugins/TWCrossLinks/core/keywords\": {\n \"created\": \"20200429195123372\",\n \"text\": \"\\\\define lingo-base() $:/language/TiddlerInfo/\\n<$list filter=\\\"[search:keywordssort[title]]\\\" emptyMessage=\\\"There are no tiddler having this one as keyword\\\" template=\\\"$:/core/ui/ListItemTemplate\\\"/>\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/core/keywords\",\n \"tags\": \"$:/tags/TWCrossLinks\",\n \"modified\": \"20200502090501525\",\n \"caption\": \"Keywords\"\n },\n \"$:/ak/plugins/TWCrossLinks/core/tagging\": {\n \"created\": \"20200429183952157\",\n \"text\": \"\\\\define lingo-base() $:/language/TiddlerInfo/\\n<$list filter=\\\"[all[current]tagging[]]\\\" emptyMessage=<> template=\\\"$:/core/ui/ListItemTemplate\\\"/>\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/core/tagging\",\n \"tags\": \"$:/tags/TWCrossLinks\",\n \"modified\": \"20200502090517091\",\n \"caption\": \"Tagged\"\n },\n \"$:/ak/plugins/TWCrossLinks/ui/footer\": {\n \"created\": \"20200430143629582\",\n \"text\": \"\\\\define regexpattern()\\n$(currentTiddler)$(?i)\\n\\\\end\\n\\n<$set name=\\\"text-pattern\\\" value=<>>\\n<$list filter=\\\"[all[current]tagging[]] [search:keywords] [!is[system]regexp:text] [!is[system]all[current]backlinks[]!tag[hide]] -[is[current]] +[limit[1]]\\\" variable=none>\\n <$reveal type=\\\"nomatch\\\" stateTitle=<> text=\\\"hide\\\" tag=\\\"div\\\" retain=\\\"yes\\\" animate=\\\"yes\\\">\\n ,,
,,\\n \\n \\n //Inbound Links:// \\n<$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[DefaultFoldData]]\\\" variable=DefaultFoldState>\\n <$reveal type=\\\"nomatch\\\" stateTitle=\\\"$:/temp/TWCrossLinksFoldData\\\" stateIndex=<> text=\\\"show\\\" default=<> >\\n <$button class=<> setTitle=\\\"$:/temp/TWCrossLinksFoldData\\\" setIndex=<> setTo=\\\"show\\\">{{$:/core/images/unfold-button}}
\\n \\n <$reveal type=\\\"match\\\" stateTitle=\\\"$:/temp/TWCrossLinksFoldData\\\" stateIndex=<> text=\\\"show\\\" default=<> >\\n <$button class=<> setTitle=\\\"$:/temp/TWCrossLinksFoldData\\\" setIndex=<> setTo=\\\"hide\\\">{{$:/core/images/fold-button}}
\\n\\n <$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/TWCrossLinksSegment]!has[draft.of]] [[$:/ak/plugins/TWCrossLinks/ui/tabs]]\\\" variable=\\\"listItem\\\"><$transclude tiddler=<> mode=\\\"block\\\"/> \\n\\n \\n\\n
\\n \\n\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/ui/footer\",\n \"tags\": \"$:/tags/ViewTemplate\",\n \"modified\": \"20200503114406300\"\n },\n \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd\": {\n \"created\": \"20200428214251454\",\n \"text\": \"\\n<$list filter=\\\"[all[current]has[keywords]]\\\">\\n,,//See also//:\\n<$list filter=\\\"[enlist{!!keywords}]\\\" template=\\\"$:/ak/plugins/TWCrossLinks/ui/footer.kwd.template\\\">,,\\n\\n\\n<$list filter=\\\"[is[current]!field:reference[]]\\\">\\n
\\n,,External ref: <$view field=\\\"reference\\\"}}/>
,,\\n\\n\\n\\n\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd\",\n \"tags\": \"$:/tags/ViewTemplate\",\n \"modified\": \"20200502090828057\",\n \"list-before\": \"$:/ak/plugins/TWCrossLinks/ui/footer\"\n },\n \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd.css\": {\n \"created\": \"20200428212006657\",\n \"text\": \".sl-header{\\n color: #383d41;\\n background-color: #e2e3e5;\\n border-color: #d6d8db;\\n padding: 0.75rem 1.25rem;\\n margin-bottom: 1rem;\\n border-radius: 0.25rem;\\n}\\n\\n.sl-keywords {\\n display: inline-block;\\n padding: 0.16em 0.7em;\\n font-size: 0.9em;\\n font-weight: 400;\\n line-height: 1.2em;\\n color: #333333;\\n white-space: nowrap;\\n vertical-align: baseline;\\n border-radius: 1em;\\n background-color:#ffe7b3;\\n}\\n.sl-keywords {\\n outline:none;\\n} /*remove the blue border on button focus */\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd.css\",\n \"tags\": \"$:/tags/Stylesheet\",\n \"modified\": \"20200502090911093\"\n },\n \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd.template\": {\n \"created\": \"20200428204919232\",\n \"text\": \"\\\\define keywords-body(kwd)\\n<$list filter=\\\"[tag[$kwd$]] [search:keywords[$kwd$]]\\\" variable=\\\"itemTid\\\">\\n<$link to=<> ><$text text=<>/>\\n\\n\\\\end\\n\\n\\n\\n<$set name=\\\"transclusion\\\" value=<> >\\n<$button class=\\\"tc-btn-invisible sl-keywords\\\" popup=<> >\\n<$text text=<>/>\\n\\n<$reveal state=<> type=\\\"popup\\\" position=\\\"below\\\" animate=\\\"yes\\\" class=\\\"tc-drop-down\\\">\\n<$link to=<> ><$text text=<>/>\\n
\\n<$macrocall $name=\\\"keywords-body\\\" kwd=<> />\\n\\n\\n\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/ui/footer.kwd.template\",\n \"modified\": \"20200502091004582\"\n },\n \"$:/ak/plugins/TWCrossLinks/ui/tabs\": {\n \"created\": \"20200429182054776\",\n \"text\": \"<$list filter=\\\"[[$:/ak/plugins/TWCrossLinks/config/default]getindex[DefaultTab]]\\\" variable=DefaultTab>\\n<$macrocall $name=\\\"tabs\\\" tabsList=\\\"[all[shadows+tiddlers]tag[$:/tags/TWCrossLinks]!has[draft.of]]\\\" default=<> />\\n\\n\",\n \"bag\": \"default\",\n \"revision\": \"0\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/ui/tabs\",\n \"tags\": \"\",\n \"modified\": \"20200503114538223\"\n },\n \"$:/ak/plugins/TWCrossLinks/change.log\": {\n \"text\": \"''2020-05-05'': v0.1.0\\n\\n* Inbound links for \\\"//Backlinks//\\\" and \\\"//Freelinks//\\\" can now be transcluded in a pop-up, try it by enabling this feature from the [[TWCrosslinks|$:/ak/plugins/TWCrossLinks]] config panel\\n\\n\\n''2020-05-03'': v0.0.7\\n\\n* Added configuration panel, can be found at $:/ak/plugins/TWCrossLinks\\n** You can now set the Default state of the \\\"inbound links\\\" {Shown / Hidden}\\n** You can now set the Default \\\"inbound links\\\" tab\\n\\n''2020-05-02'': v0.0.3\\n\\n* Initial packaging and release\",\n \"bag\": \"default\",\n \"revision\": \"6\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/change.log\",\n \"tags\": \"\",\n \"modified\": \"20200505073749084\",\n \"created\": \"20200502091404523\"\n },\n \"$:/ak/plugins/TWCrossLinks/config\": {\n \"created\": \"20200503100751953\",\n \"text\": \"''By default the //inbound links// should be:''
\\n<$tiddler tiddler=\\\"$:/ak/plugins/TWCrossLinks/config/default\\\">\\n<$radio index=\\\"DefaultFoldData\\\" value=\\\"show\\\"> Shown \\n<$radio index=\\\"DefaultFoldData\\\" value=\\\"hide\\\"> Hidden \\n\\n\\n''Select which Tab you want to be open by Default''
\\n<$tiddler tiddler=\\\"$:/ak/plugins/TWCrossLinks/config/default\\\">\\n<$radio index=\\\"DefaultTab\\\" value=\\\"$:/ak/plugins/TWCrossLinks/core/backlinks\\\"> Backlinks \\n<$radio index=\\\"DefaultTab\\\" value=\\\"$:/ak/plugins/TWCrossLinks/core/freelinks\\\"> Freelinks \\n<$radio index=\\\"DefaultTab\\\" value=\\\"$:/ak/plugins/TWCrossLinks/core/keywords\\\"> Keywords \\n<$radio index=\\\"DefaultTab\\\" value=\\\"$:/ak/plugins/TWCrossLinks/core/tagging\\\"> Tagged \\n\\n\\n<$checkbox tiddler=\\\"$:/ak/plugins/TWCrossLinks/config/default\\\" index=\\\"TranscludeInboundLinks\\\" checked=\\\"true\\\" unchecked=\\\"false\\\" default=\\\"false\\\"> ''Transclude //Backlinks// & //Freelinks// on hover''\\n\",\n \"bag\": \"default\",\n \"revision\": \"7\",\n \"type\": \"text/vnd.tiddlywiki\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/config\",\n \"modified\": \"20200504203958150\"\n },\n \"$:/ak/plugins/TWCrossLinks/readme\": {\n \"created\": \"20200503110056664\",\n \"text\": \"For feedback / suggestions / help please visit plugin page on [[Google Groups|https://groups.google.com/forum/#!topic/tiddlywiki/9ra0s9AEKl4]] or [[Github|https://github.com/akhater/TWCrossLinks]]\",\n \"tags\": \"\",\n \"title\": \"$:/ak/plugins/TWCrossLinks/readme\",\n \"modified\": \"20200503110556549\"\n },\n \"$:/ak/plugins/TWCrossLinks/daniello/context.js\": {\n \"created\": \"20140418153435777\",\n \"text\": \"/*\\\\\\\\\\ntitle: $:/core/modules/widgets/danielo/context-widget.js\\ntype: application/javascript\\nmodule-type: widget\\n\\nEdit-text widget\\n\\n\\\\*/\\n(function(){\\n\\n/*jslint node: true, browser: true */\\n/*global $tw: false */\\n\\\"use strict\\\";\\n\\nvar Widget = require(\\\"$:/core/modules/widgets/widget.js\\\").widget;\\nvar contextWidget = function(parseTreeNode,options) {\\n\\tthis.initialise(parseTreeNode,options);\\n};\\n\\n/*\\nInherit from the base widget class\\n*/\\ncontextWidget.prototype = new Widget();\\n\\n/*\\nRender this widget into the DOM\\n*/\\ncontextWidget.prototype.render = function(parent,nextSibling) {\\n // Save the parent dom node\\n\\tthis.parentDomNode = parent;\\n\\t// Compute our attributes\\n\\tthis.computeAttributes();\\n\\t// Execute our logic\\n\\tthis.execute();\\n \\n if(this.term && this.term.length>3){\\n \\n this.createRegexp();\\n var matches = this.executeRegexp();\\n\\t if(matches.length > 0){ \\n this.domNode = this.document.createElement(this.element);\\n this.domNode.className=\\\"tw-context\\\";\\n this.composeResults( matches ); //this appends to domNode \\n \\t// Insert element\\n \\tparent.insertBefore(this.domNode,nextSibling);\\n \\tthis.renderChildren(this.domNode,null);\\n\\t \\tthis.domNodes.push(this.domNode);\\n }\\n }\\n\\t\\n};\\n\\n/*\\nCompute the internal state of the widget\\n*/\\ncontextWidget.prototype.execute = function() {\\n\\t// Get the parameters from the attributes\\n this.matchedClass = this.getAttribute(\\\"matchClass\\\",\\\"matched\\\");\\n\\tthis.tiddler = this.getAttribute( \\\"tiddler\\\",this.getVariable(\\\"currentTiddler\\\") );\\n this.term = this.getAttribute(\\\"term\\\",this.getAttribute(\\\"searchTerm\\\"));\\n\\tthis.contextLength = this.getAttribute(\\\"length\\\",50);\\n this.before = this.getAttribute(\\\"before\\\",this.contextLength);\\n this.after = this.getAttribute(\\\"after\\\",this.contextLength);\\n this.maxMatches = this.getAttribute(\\\"maxMatches\\\",10);\\n this.element = this.getAttribute(\\\"element\\\",\\\"pre\\\");\\n\\tthis.makeChildWidgets();\\n};\\n\\n /*Create the regular expression*/\\ncontextWidget.prototype.createRegexp = function()\\n{\\n var regString = \\\"(\\\\\\\\w+[\\\\\\\\s\\\\\\\\S]{0,#before#})?(#term#)([\\\\\\\\s\\\\\\\\S]{0,#after#}\\\\\\\\w+)?\\\";\\n\\n var regString = regString.replace(\\\"#before#\\\",this.before).replace(\\\"#term#\\\", $tw.utils.escapeRegExp(this.term) ) .replace(\\\"#after#\\\",this.after);\\n this.regexp = new RegExp(regString,\\\"ig\\\");\\n //console.log(regString);\\n};\\n/*\\nexecute the regular expresion\\n*/\\ncontextWidget.prototype.executeRegexp = function()\\n{\\n var text = this.wiki.getTiddlerText(this.tiddler), match,results = new Array();\\n while( (match = this.regexp.exec( text ) ) && (results.length < this.maxMatches) )\\n { results.push(match) }\\n //console.log(\\\"matches\\\",results);\\n return results;\\n};\\n\\n/*\\ncompose the results\\nmatches : array of match objects from regular expression execute\\n*/\\ncontextWidget.prototype.composeResults = function(matches){\\n var result=[], self=this, node = this.domNode,\\n dots = textNode(\\\"...\\\\n\\\"),\\n span = matchedNode( this.term );\\n\\n for(var i=0; i < matches.length; i++){\\n processMatch( matches[i] );\\n }\\n \\n function processMatch(match){\\n if( match.index !== 0) node.appendChild( dots.cloneNode(true) );\\n for( var i=1;i