1
0
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:
Jeremy Ruston
2025-05-07 20:49:28 +01:00
parent 8711726ecd
commit 3f733796e5
3 changed files with 12 additions and 2 deletions

View File

@@ -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

View File

@@ -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">

View File

@@ -122,6 +122,7 @@ function getWrappers(fnDone,inputFilter) {
var details ={
input: results.toArray(),
prefixName: innerOptions.prefixName,
prefix: innerOptions.prefix,
suffixes: innerOptions.suffixes,
operations: []
};