Skip to content

Commit

Permalink
Extend 'all' filter operator to select all source tiddlers
Browse files Browse the repository at this point in the history
  • Loading branch information
Jermolene committed Aug 29, 2014
1 parent 1b96487 commit 4831227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/modules/filters/all.js
Expand Up @@ -34,7 +34,9 @@ exports.all = function(source,operator,options) {
var results = [],
subops = operator.operand.split("+");
// 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;
} else if(subops.length === 1 && subops[0] === "shadows") {
return options.wiki.eachShadow;
Expand Down
1 change: 1 addition & 0 deletions editions/tw5.com/tiddlers/filters/FilterOperator all.tid
Expand Up @@ -17,4 +17,5 @@ For example:
|`[all[current]]` |Selects the current tiddler |
|`[all[missing]]` |Selects all MissingTiddlers |
|`[all[orphans]]` |Selects all OrphanTiddlers |
|`[all[]]` |Selects all the source tiddlers available to the filter |

0 comments on commit 4831227

Please sign in to comment.