mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-18 18:29:42 +00:00
95bd694a65
* Support case insensitive matching in prefix/suffix operators Support `caseinsensitive`/`caseinsensitive` suffixes in the following filter operators: * prefix * suffix * removeprefix * removesuffix The suffixes have the same behaviour as in the match operator. Closes: #6407 * Do not filter titles if suffix/removesuffix operand is empty Issue: #6407
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
created: 20140410103123179
|
|
modified: 20220218023400000
|
|
tags: [[Filter Operators]] [[String Operators]] [[Negatable Operators]]
|
|
title: prefix Operator
|
|
type: text/vnd.tiddlywiki
|
|
caption: prefix
|
|
op-purpose: filter the input titles by how they start
|
|
op-input: a [[selection of titles|Title Selection]]
|
|
op-parameter: a string of characters
|
|
op-parameter-name: S
|
|
op-output: those input titles that start with <<.place S>>
|
|
op-neg-output: those input tiddlers that do <<.em not>> start with <<.place S>>
|
|
op-suffix: the <<.op prefix>> operator uses a rich suffix, see below for details
|
|
|
|
<<.from-version "5.2.2">>
|
|
|
|
The <<.op prefix>> operator uses an extended syntax that permits multiple flags to be passed:
|
|
|
|
```
|
|
[prefix:<flag list>[<operand>]]
|
|
```
|
|
|
|
* ''flag list'': a comma delimited list of flags
|
|
* ''operand'': filter operand
|
|
|
|
The available flags are:
|
|
|
|
* ''casesensitive'': (default), this flag forces a case-sensitive match, where upper and lower case letters are considered different
|
|
* ''caseinsensitive'': overrides the default so that upper and lower case letters are considered identical for matching purposes
|
|
|
|
<<.operator-examples "prefix">>
|