mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-11 00:03:48 +00:00
Extend 'all' filter operator to select all source tiddlers
This commit is contained in:
parent
1b964873c4
commit
48312272ad
@ -34,7 +34,9 @@ exports.all = function(source,operator,options) {
|
|||||||
var results = [],
|
var results = [],
|
||||||
subops = operator.operand.split("+");
|
subops = operator.operand.split("+");
|
||||||
// Check for common optimisations
|
// Check for common optimisations
|
||||||
if(subops.length === 1 && subops[0] === "tiddlers") {
|
if(subops.length === 1 && subops[0] === "") {
|
||||||
|
return source;
|
||||||
|
} else if(subops.length === 1 && subops[0] === "tiddlers") {
|
||||||
return options.wiki.each;
|
return options.wiki.each;
|
||||||
} else if(subops.length === 1 && subops[0] === "shadows") {
|
} else if(subops.length === 1 && subops[0] === "shadows") {
|
||||||
return options.wiki.eachShadow;
|
return options.wiki.eachShadow;
|
||||||
|
@ -17,4 +17,5 @@ For example:
|
|||||||
|`[all[current]]` |Selects the current tiddler |
|
|`[all[current]]` |Selects the current tiddler |
|
||||||
|`[all[missing]]` |Selects all MissingTiddlers |
|
|`[all[missing]]` |Selects all MissingTiddlers |
|
||||||
|`[all[orphans]]` |Selects all OrphanTiddlers |
|
|`[all[orphans]]` |Selects all OrphanTiddlers |
|
||||||
|
|`[all[]]` |Selects all the source tiddlers available to the filter |
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user