1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Railroad diagram for filter expression now includes named prefixes (#5278)

This commit is contained in:
Robin Munn 2020-12-15 02:18:51 +07:00 committed by GitHub
parent d50f6b406e
commit 3c3cd4673e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View File

@ -1,5 +1,5 @@
created: 20150124182421000
modified: 20201208185257875
modified: 20201214053032397
tags: [[Filter Syntax]]
title: Filter Expression
type: text/vnd.tiddlywiki
@ -7,7 +7,7 @@ type: text/vnd.tiddlywiki
<$railroad text="""
[{:
[: [[whitespace|"Filter Whitespace"]] ]
("+"|"~"|:-|"-"|"=")
("+"|"~"|:-|"-"|"="|":"[[named-prefix|"Named Filter Run Prefix"]])
[[run|"Filter Run"]]
}]
"""/>

View File

@ -0,0 +1,10 @@
created: 20201214044413473
modified: 20201214053018350
tags:
title: Named Filter Run Prefix
<$set name="prefixlist" filter="""[all[shadows+tiddlers]has[module-type]module-type[filterrunprefix]trim:prefix[$:/core/modules/filterrunprefixes/]trim:suffix[.js]addprefix["]addsuffix["]join[|]addprefix[(]addsuffix[)]]""">
<$railroad text=<<prefixlist>>/>
</$set>
A named filter run prefix can precede any [[run|Filter Run]] of a [[filter expression|Filter Expression]] in place of a single-character prefix (`+`, `-` and so on). To create a new filter run prefix, create a [[Javascript module|Modules]] with a [[module-type|ModuleType]] of `filerrunprefix`.