mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 23:03:15 +00:00
Add new "all[tags]" filter operator
This commit is contained in:
parent
0b4669621a
commit
8e033eb0d4
22
core/modules/filters/all/tags.js
Normal file
22
core/modules/filters/all/tags.js
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
/*\
|
||||||
|
title: $:/core/modules/filters/all/tags.js
|
||||||
|
type: application/javascript
|
||||||
|
module-type: allfilteroperator
|
||||||
|
|
||||||
|
Filter function for [all[tags]]
|
||||||
|
|
||||||
|
\*/
|
||||||
|
(function(){
|
||||||
|
|
||||||
|
/*jslint node: true, browser: true */
|
||||||
|
/*global $tw: false */
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
/*
|
||||||
|
Export our filter function
|
||||||
|
*/
|
||||||
|
exports.tags = function(source,prefix,options) {
|
||||||
|
return Object.keys(options.wiki.getTagMap());
|
||||||
|
};
|
||||||
|
|
||||||
|
})();
|
Loading…
Reference in New Issue
Block a user