1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-08-29 04:22:46 +00:00
TiddlyWiki5/core/modules/filters
jeremy@jermolene.com 34afe4e143 Refactor function invocation
* Introduce new widget helper function to evaluate variables.Functions are evaluated as parameterised filter strings, macros as text with textual substitution of parameters and variables, and procedures and widgets as plain text
* Refactor the function operator and unknown operator to use the new helper
* Use the new helper to evaluate variables within filter strings, thus fixing a bug whereby functions called in such a way were being returned as plain text instead of being evaluated
* Refactor the transclude widget to use the new helper
* Update tests
2023-01-21 22:07:34 +00:00
..
all Add new [all[tags]] filter operator 2016-11-28 19:04:04 +00:00
format JSON Filter Operators (Revised Attempt) (#6936) 2022-09-02 18:15:45 +01:00
is Fix [is[variable]] operator doesn't work for "fake" variables #6303 (#6996) 2022-10-18 17:08:04 +01:00
addprefix.js Added new filter operator for adding prefixes and suffixes to titles; these new filter operators are useful in contexts where only a filter expression is allowed and where macro processing isn't allowed. The filters complement the existing remove suffix and prefix filter operators. (So much for the "filter" in filter operator.) 2014-09-30 23:01:32 +02:00
addsuffix.js Added new filter operator for adding prefixes and suffixes to titles; these new filter operators are useful in contexts where only a filter expression is allowed and where macro processing isn't allowed. The filters complement the existing remove suffix and prefix filter operators. (So much for the "filter" in filter operator.) 2014-09-30 23:01:32 +02:00
after.js Add "before" and "after" filter operators 2014-05-12 15:16:44 +01:00
all.js Optimise LinkedList filter ops to return iterator instead of array (#6035) 2021-09-16 22:22:44 +01:00
backlinks.js Change backlinks to use LinkedList (#6050) 2021-09-19 19:58:45 +01:00
before.js Add "before" and "after" filter operators 2014-05-12 15:16:44 +01:00
commands.js Add a new "commands" filter 2014-02-25 14:49:56 +00:00
compare.js Add new sortsub operator 2020-04-25 11:26:19 +01:00
contains.js Add support for JSON-formatted tiddler store, and make it the default (#5708) 2021-07-14 09:15:30 +01:00
count.js Add new "count" filter operator 2017-02-08 20:11:44 +00:00
crypto.js Add sha256 operator 2022-01-29 11:02:47 +00:00
days.js "days" filter: yesterday and tomorrow edge cases (#2364) 2016-04-27 17:23:46 +01:00
deserializers.js Deserializers[] filter operator (#5673) 2021-05-22 10:50:11 +01:00
duplicateslugs.js Add slugify and duplicateslugs operators 2020-05-09 15:54:44 +01:00
each.js Bugfix/3117 inconsistent each (#3124) 2018-02-17 18:51:18 +00:00
eachday.js Removed uneeded function but still converts TW5 Date strings. 2015-03-13 13:14:30 -05:00
editiondescription.js style(App) eliminate whitespace at the end of code lines (#5735) 2021-05-30 19:20:17 +01:00
editions.js Ignore edition filters if not running on node (#5222) 2020-12-07 15:59:32 +00:00
else.js Add then and else operators 2019-08-02 14:27:58 +01:00
encodings.js Extend encodeuricomponent to process additional characters (#7128) 2023-01-19 17:45:54 +00:00
enlist.js Extend the enlist operator to optionally not de-duplicate 2019-06-10 17:54:46 +01:00
field.js Add support for JSON-formatted tiddler store, and make it the default (#5708) 2021-07-14 09:15:30 +01:00
fields.js style(App) eliminate whitespace at the end of code lines (#5735) 2021-05-30 19:20:17 +01:00
filter.js Fixes reduce, filter, and sortsub operators undefined variable exception (#7156) 2023-01-03 13:48:20 +00:00
format.js Format filter to create formatted date strings (#4785) 2020-09-24 18:35:10 +01:00
function.js Refactor function invocation 2023-01-21 22:07:34 +00:00
get.js Add 'get' filter operator 2014-04-27 18:45:01 +01:00
getindex.js Correct case of getindex filter operator 2015-02-09 21:42:25 +00:00
getvariable.js Add new "variables" and "getvariables" operators 2019-03-30 10:52:28 +00:00
has.js style(App) eliminate whitespace at the end of code lines (#5735) 2021-05-30 19:20:17 +01:00
haschanged.js Display warning banner when plugins are modified 2015-02-08 19:40:15 +00:00
indexes.js Revert getTiddlerData() and add getTiddlerDataCached() 2015-07-10 16:43:50 +01:00
insertafter.js New insertafter filter operator (#6771) 2022-07-13 17:08:17 +01:00
insertbefore.js New insertafter filter operator (#6771) 2022-07-13 17:08:17 +01:00
is.js Revert multiple suboperator functionality from the "is" operator 2018-05-10 13:15:49 +01:00
json-ops.js Fix json operators retrieving properties of strings and numbers 2022-12-30 15:28:34 +00:00
limit.js First pass at refactoring filter execution 2014-04-03 20:49:16 +01:00
links.js Optimise LinkedList filter ops to return iterator instead of array (#6035) 2021-09-16 22:22:44 +01:00
list.js Revert #1496 2015-02-16 19:17:10 +00:00
listed.js Extend listed filter operator to use any field 2014-06-13 10:58:19 +01:00
listops.js Make butlast[0] consistent with rest (#6483) 2022-02-26 09:42:24 +00:00
lookup.js Extend lookup operator to work with fields and indexes (#5742) 2022-02-21 09:48:29 +00:00
match.js Add "match" operator for string comparison 2019-07-31 09:11:12 +01:00
math.js Add missing parameter to atan2 operator (#6142) 2021-10-25 21:13:18 +01:00
minlength.js Add new 'minlength' operator 2016-10-11 09:26:20 +01:00
moduleproperty.js Added modulesproperty filter operator and extended modules operator (#6055) 2021-09-20 08:25:53 +01:00
modules.js Added modulesproperty filter operator and extended modules operator (#6055) 2021-09-20 08:25:53 +01:00
moduletypes.js Whoops file in the wrong place 2013-10-24 12:00:32 +01:00
next.js First pass at refactoring filter execution 2014-04-03 20:49:16 +01:00
plugintiddlers.js Revert getTiddlerData() and add getTiddlerDataCached() 2015-07-10 16:43:50 +01:00
prefix.js Support case insensitive matching in prefix/suffix operators (#6468) 2022-02-22 16:38:40 +00:00
previous.js First pass at refactoring filter execution 2014-04-03 20:49:16 +01:00
range.js Update range operator to use multiple operands 2021-09-07 17:16:09 +01:00
reduce.js Fixes reduce, filter, and sortsub operators undefined variable exception (#7156) 2023-01-03 13:48:20 +00:00
regexp.js Add support for JSON-formatted tiddler store, and make it the default (#5708) 2021-07-14 09:15:30 +01:00
removeprefix.js Support case insensitive matching in prefix/suffix operators (#6468) 2022-02-22 16:38:40 +00:00
removesuffix.js Support case insensitive matching in prefix/suffix operators (#6468) 2022-02-22 16:38:40 +00:00
sameday.js Optimise sameday filter 2017-02-21 08:31:05 +00:00
search.js Add "some" flag to search operator (#6293) 2022-02-21 15:05:34 +00:00
shadowsource.js Obeisance to JSHint for core modules 2014-08-30 20:44:26 +01:00
slugify.js Fix title of slugify.js filter module 2020-05-14 07:53:30 +01:00
sort.js Sortan filter for alpha-numeric filter (#3134) 2018-03-05 11:09:25 +00:00
sortsub.js Fixes reduce, filter, and sortsub operators undefined variable exception (#7156) 2023-01-03 13:48:20 +00:00
splitbefore.js Add experimental system tiddler browser 2014-12-02 15:25:27 +00:00
storyviews.js Move "storyviews" filter operator to correct folder 2014-05-28 17:17:47 +01:00
strings.js Fix: resolved search-replace operator regexp encoding bug (#6162) 2021-11-01 13:24:30 +00:00
subfilter.js Introduce new subfilter operator (#3508) 2018-11-16 11:27:19 +00:00
subtiddlerfields.js Add new subtiddlerfields filter operator 2018-04-03 17:48:01 +01:00
suffix.js Support case insensitive matching in prefix/suffix operators (#6468) 2022-02-22 16:38:40 +00:00
tag.js style(App) eliminate whitespace at the end of code lines (#5735) 2021-05-30 19:20:17 +01:00
tagging.js First pass at refactoring filter execution 2014-04-03 20:49:16 +01:00
tags.js Performance optimisations 2015-07-05 19:47:44 +01:00
then.js Add then and else operators 2019-08-02 14:27:58 +01:00
title.js First pass at refactoring filter execution 2014-04-03 20:49:16 +01:00
unknown.js Refactor function invocation 2023-01-21 22:07:34 +00:00
untagged.js Consider non-existent tiddlers untagged (#6478) 2022-02-23 12:46:34 +00:00
variables.js Fix [is[variable]] operator doesn't work for "fake" variables #6303 (#6996) 2022-10-18 17:08:04 +01:00
wikiparserrules.js Update wikiparserrules operator for no operand (#2193) 2016-10-08 13:04:11 +01:00
x-listops.js style(App) eliminate whitespace at the end of code lines (#5735) 2021-05-30 19:20:17 +01:00