Ticket #677 (closed enhancement: fixed)
'#tag:...' paramifier use filterTiddlers() instead of getTaggedTiddlers()
| Reported by: | EricShulman | Owned by: | JeremyRuston |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.4.1 |
| Component: | core | Version: | |
| Severity: | low | Keywords: | |
| Cc: |
Description (last modified by EricShulman) (diff)
extend the "#tag:tagValue" paramifier to use store.filterTiddlers() instead of store.getTaggedTiddlers(). This permits enhanced tag-matching logic (such as boolean expression processing provided by http://www.TiddlyTools.com/#MatchTagsPlugin) to be used, e.g.,
#tag:"tag1 OR (tag2 AND NOT tag3)"
instead of simply matching a single tag value.
config.paramifiers.tag = {
onstart: function(v) {
var tagged = store.filterTiddlers("[tag["+v+"]]");
story.displayTiddlers(null,tagged,null,false,null);
}
};
This tweak has been successfully implemented on TiddlyTools See http://www.TiddlyTools.com/#CoreTweaks
Change History
Note: See
TracTickets for help on using
tickets.
