mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2026-01-01 21:19:05 +00:00
Include shortcut prefix in traces
This commit is contained in:
@@ -360,7 +360,8 @@ exports.compileFilter = function(filterString,options) {
|
||||
var options = {
|
||||
wiki: self,
|
||||
suffixes: operation.suffixes || [],
|
||||
prefixName: prefixName
|
||||
prefixName: prefixName,
|
||||
prefix: operation.prefix
|
||||
},
|
||||
filterRunPrefixFunction = filterRunPrefixes[prefixName];
|
||||
// Wrap the filter operator module if required
|
||||
|
||||
@@ -129,7 +129,15 @@ tags: $:/tags/Macro
|
||||
<$transclude $variable="inspect-list" jsonList={{{ [<jsonRun>jsonextract[input]] }}} class="tc-box tc-inspect-input-box"/>
|
||||
<div class="tc-box tc-inspect-run-box">
|
||||
<div class="tc-box-header">
|
||||
<span class="">:<$text text={{{ [<jsonRun>jsonget[prefixName]] }}} /></span>
|
||||
<span class="">
|
||||
<%if [<jsonRun>jsonget[prefix]!match[]] %>
|
||||
<$text text={{{ [<jsonRun>jsonget[prefix]] }}} />
|
||||
<$text text=" shortcut for "/>
|
||||
<$text text={{{ [<jsonRun>jsonget[prefixName]addprefix[:]] }}} />
|
||||
<%else%>
|
||||
<$text text={{{ [<jsonRun>jsonget[prefixName]addprefix[:]] }}} />
|
||||
<%endif%>
|
||||
</span>
|
||||
<%if [<jsonRun>jsonindexes[suffixes]length[]compare:number:gt[0]] %>
|
||||
<$list filter="[<jsonRun>jsonindexes[suffixes]nsort[]]" variable="indexSuffix">
|
||||
<span class="tc-pill">
|
||||
|
||||
@@ -122,6 +122,7 @@ function getWrappers(fnDone,inputFilter) {
|
||||
var details ={
|
||||
input: results.toArray(),
|
||||
prefixName: innerOptions.prefixName,
|
||||
prefix: innerOptions.prefix,
|
||||
suffixes: innerOptions.suffixes,
|
||||
operations: []
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user