diff --git a/editions/prerelease/tiddlers/Release 5.1.20.tid b/editions/prerelease/tiddlers/Release 5.1.20.tid index 59d060239..e57362745 100644 --- a/editions/prerelease/tiddlers/Release 5.1.20.tid +++ b/editions/prerelease/tiddlers/Release 5.1.20.tid @@ -11,7 +11,7 @@ type: text/vnd.tiddlywiki Added several new [[Mathematics Operators]] for working with numbers: [[negate|negate Operator]], [[abs|abs Operator]], [[ceil|ceil Operator]], [[floor|floor Operator]], [[round|round Operator]], [[trunc|trunc Operator]], [[sign|sign Operator]], [[add|add Operator]], [[subtract|subtract Operator]], [[multiply|multiply Operator]], [[divide|divide Operator]], [[remainder|remainder Operator]], [[max|max Operator]], [[min|min Operator]], [[fixed|fixed Operator]], [[precision|precision Operator]], [[exponential|exponential Operator]], [[sum|sum Operator]], [[product|product Operator]], [[maxall|maxall Operator]] and [[minall|minall Operator]]. -Added several new string operators: [[length|length Operator]], [[uppercase|uppercase Operator]], [[lowercase|lowercase Operator]], [[trim|trim Operator]], [[concat|concat Operator]], [[split|split Operator]] and [[join|join Operator]]. +Added several new string operators: [[length|length Operator]], [[uppercase|uppercase Operator]], [[lowercase|lowercase Operator]], [[trim|trim Operator]], [[split|split Operator]], [[splitregexp|split Operator]] and [[join|join Operator]]. There is now finer control over TiddlyWiki's default behaviour of removing duplicates from filter resulst, making it much easier to work with the new mathematics and string operators: diff --git a/editions/tw5.com/tiddlers/abs Operator.tid b/editions/tw5.com/tiddlers/filters/abs Operator.tid similarity index 100% rename from editions/tw5.com/tiddlers/abs Operator.tid rename to editions/tw5.com/tiddlers/filters/abs Operator.tid diff --git a/editions/tw5.com/tiddlers/ceil Operator.tid b/editions/tw5.com/tiddlers/filters/ceil Operator.tid similarity index 100% rename from editions/tw5.com/tiddlers/ceil Operator.tid rename to editions/tw5.com/tiddlers/filters/ceil Operator.tid diff --git a/editions/tw5.com/tiddlers/abs Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/abs Operator (Examples).tid similarity index 81% rename from editions/tw5.com/tiddlers/abs Operator (Examples).tid rename to editions/tw5.com/tiddlers/filters/examples/abs Operator (Examples).tid index 7261bee3a..874f2bd32 100644 --- a/editions/tw5.com/tiddlers/abs Operator (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/examples/abs Operator (Examples).tid @@ -1,6 +1,6 @@ created: 20190611174214039 modified: 20190611174245197 -tags: [[after Operator]] [[Operator Examples]] +tags: [[abs Operator]] [[Operator Examples]] title: abs Operator (Examples) type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/ceil Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/ceil Operator (Examples).tid similarity index 84% rename from editions/tw5.com/tiddlers/ceil Operator (Examples).tid rename to editions/tw5.com/tiddlers/filters/examples/ceil Operator (Examples).tid index e424b2801..95ed8fbac 100644 --- a/editions/tw5.com/tiddlers/ceil Operator (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/examples/ceil Operator (Examples).tid @@ -1,6 +1,6 @@ created: 20190611174446781 modified: 20190611174554787 -tags: [[after Operator]] [[Operator Examples]] +tags: [[ceil Operator]] [[Operator Examples]] title: ceil Operator (Examples) type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/examples/floor Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/floor Operator (Examples).tid new file mode 100644 index 000000000..98ff98cce --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/floor Operator (Examples).tid @@ -0,0 +1,9 @@ +created: 20190613084453154 +modified: 20190613084521199 +tags: [[floor Operator]] [[Operator Examples]] +title: floor Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[1.6]floor[]]">> +<<.operator-example 2 "[[-1.6]floor[]]">> +<<.operator-example 3 "=-1.2 =-2.4 =3.6 =4.8 =5.1 +[floor[]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/join Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/join Operator (Examples).tid new file mode 100644 index 000000000..fcdad3fc5 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/join Operator (Examples).tid @@ -0,0 +1,7 @@ +created: 20190613154634914 +modified: 20190613154711864 +tags: [[join Operator]] [[Operator Examples]] +title: join Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "a b c d e +[join[,]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/length Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/length Operator (Examples).tid new file mode 100644 index 000000000..805ac7385 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/length Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190613153325774 +modified: 20190613153409962 +tags: [[length Operator]] [[Operator Examples]] +title: length Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[abc]length[]]">> +<<.operator-example 2 "[tag[HelloThere]length[]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/lowercase Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/lowercase Operator (Examples).tid new file mode 100644 index 000000000..8efbd8d9d --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/lowercase Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190613153824151 +modified: 20190613153842330 +tags: [[lowercase Operator]] [[Operator Examples]] +title: lowercase Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[Abc]lowercase[]]">> +<<.operator-example 2 "[tag[HelloThere]lowercase[]]">> diff --git a/editions/tw5.com/tiddlers/negate Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/negate Operator (Examples).tid similarity index 81% rename from editions/tw5.com/tiddlers/negate Operator (Examples).tid rename to editions/tw5.com/tiddlers/filters/examples/negate Operator (Examples).tid index 6b86f0f60..abdc23111 100644 --- a/editions/tw5.com/tiddlers/negate Operator (Examples).tid +++ b/editions/tw5.com/tiddlers/filters/examples/negate Operator (Examples).tid @@ -1,6 +1,6 @@ created: 20190611174040931 modified: 20190611174121059 -tags: [[after Operator]] [[Operator Examples]] +tags: [[negate Operator]] [[Operator Examples]] title: negate Operator (Examples) type: text/vnd.tiddlywiki diff --git a/editions/tw5.com/tiddlers/filters/examples/round Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/round Operator (Examples).tid new file mode 100644 index 000000000..ab9ab4f3c --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/round Operator (Examples).tid @@ -0,0 +1,9 @@ +created: 20190613084626721 +modified: 20190613084651519 +tags: [[round Operator]] [[Operator Examples]] +title: round Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[1.6]round[]]">> +<<.operator-example 2 "[[-1.6]round[]]">> +<<.operator-example 3 "=-1.2 =-2.4 =3.6 =4.8 =5.1 +[round[]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/sign Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/sign Operator (Examples).tid new file mode 100644 index 000000000..40e37a3c6 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/sign Operator (Examples).tid @@ -0,0 +1,9 @@ +created: 20190613085050151 +modified: 20190613085120851 +tags: [[sign Operator]] [[Operator Examples]] +title: sign Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[1.6]sign[]]">> +<<.operator-example 2 "[[-1.6]sign[]]">> +<<.operator-example 3 "[[0]sign[]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/split Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/split Operator (Examples).tid new file mode 100644 index 000000000..ba38b3f36 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/split Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190613154338930 +modified: 20190613154445868 +tags: [[split Operator]] [[Operator Examples]] +title: split Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[a b c d e]split[ ]]">> +<<.operator-example 2 "[[Mississippi]split[i]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/splitregexp Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/splitregexp Operator (Examples).tid new file mode 100644 index 000000000..a86bc7471 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/splitregexp Operator (Examples).tid @@ -0,0 +1,7 @@ +created: 20190613154934814 +modified: 20190613155013565 +tags: [[splitregexp Operator]] [[Operator Examples]] +title: splitregexp Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "a=b-c=d-e +[splitregexp[=|-]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/trim Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/trim Operator (Examples).tid new file mode 100644 index 000000000..18a1562bd --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/trim Operator (Examples).tid @@ -0,0 +1,7 @@ +created: 20190613153847475 +modified: 20190613153924808 +tags: [[trim Operator]] [[Operator Examples]] +title: trim Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[ a b ]trim[]addprefix[-]addsuffix[-]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/trunc Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/trunc Operator (Examples).tid new file mode 100644 index 000000000..60cf10fb4 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/trunc Operator (Examples).tid @@ -0,0 +1,9 @@ +created: 20190613084830686 +modified: 20190613084854081 +tags: [[trunc Operator]] [[Operator Examples]] +title: trunc Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[1.6]trunc[]]">> +<<.operator-example 2 "[[-1.6]trunc[]]">> +<<.operator-example 3 "=-1.2 =-2.4 =3.6 =4.8 =5.1 +[trunc[]]">> diff --git a/editions/tw5.com/tiddlers/filters/examples/uppercase Operator (Examples).tid b/editions/tw5.com/tiddlers/filters/examples/uppercase Operator (Examples).tid new file mode 100644 index 000000000..9ec781791 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/examples/uppercase Operator (Examples).tid @@ -0,0 +1,8 @@ +created: 20190613153541799 +modified: 20190613153642345 +tags: [[uppercase Operator]] [[Operator Examples]] +title: uppercase Operator (Examples) +type: text/vnd.tiddlywiki + +<<.operator-example 1 "[[Abc]uppercase[]]">> +<<.operator-example 2 "[tag[HelloThere]uppercase[]]">> diff --git a/editions/tw5.com/tiddlers/filters/floor Operator.tid b/editions/tw5.com/tiddlers/filters/floor Operator.tid new file mode 100644 index 000000000..7ea1a599c --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/floor Operator.tid @@ -0,0 +1,13 @@ +caption: floor +created: 20190613084227037 +modified: 20190613084450121 +op-input: a [[selection of titles|Title Selection]] +op-output: rounds each of the input numbers to the largest integer less than or equal to the given number +op-purpose: rounds a list of numbers to the largest integer less than or equal to each number +tags: [[Unary Mathematics Operators]] [[Filter Operators]] [[Mathematics Operators]] +title: floor Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +<<.operator-examples "floor">> diff --git a/editions/tw5.com/tiddlers/filters/join Operator.tid b/editions/tw5.com/tiddlers/filters/join Operator.tid new file mode 100644 index 000000000..c53396887 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/join Operator.tid @@ -0,0 +1,15 @@ +caption: split +created: 20190613154502541 +modified: 20190613154632657 +op-input: a [[selection of titles|Title Selection]] +op-output: the input titles joined together with the separator <<.place S>> +op-parameter: the separator to insert between each of the items +op-parameter-name: S +op-purpose: join a list of strings together with the separator <<.place S>> +tags: [[Filter Operators]] +title: join Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> + +<<.operator-examples "join">> diff --git a/editions/tw5.com/tiddlers/filters/length Operator.tid b/editions/tw5.com/tiddlers/filters/length Operator.tid new file mode 100644 index 000000000..d9cd66b85 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/length Operator.tid @@ -0,0 +1,13 @@ +caption: length +created: 20190613153225735 +modified: 20190613153321546 +op-input: a [[selection of titles|Title Selection]] +op-output: replaces each input title with its length as an integer +op-purpose: returns the lengths of each item in the list +tags: [[Filter Operators]] +title: length Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> + +<<.operator-examples "length">> diff --git a/editions/tw5.com/tiddlers/filters/lowercase Operator.tid b/editions/tw5.com/tiddlers/filters/lowercase Operator.tid new file mode 100644 index 000000000..1efaec980 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/lowercase Operator.tid @@ -0,0 +1,15 @@ +caption: lowercase +created: 20190613153650010 +modified: 20190613153726427 +op-input: a [[selection of titles|Title Selection]] +op-output: the input titles with each uppercase letter replaced by the equivalent lowercase letter +op-purpose: returns each item in the list as lowercase +tags: [[Filter Operators]] +title: lowercase Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> + +See also [[uppercase Operator]]. + +<<.operator-examples "lowercase">> diff --git a/editions/tw5.com/tiddlers/negate Operator.tid b/editions/tw5.com/tiddlers/filters/negate Operator.tid similarity index 100% rename from editions/tw5.com/tiddlers/negate Operator.tid rename to editions/tw5.com/tiddlers/filters/negate Operator.tid diff --git a/editions/tw5.com/tiddlers/filters/round Operator.tid b/editions/tw5.com/tiddlers/filters/round Operator.tid new file mode 100644 index 000000000..47cf6db5a --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/round Operator.tid @@ -0,0 +1,13 @@ +caption: round +created: 20190613084541416 +modified: 20190613084623913 +op-input: a [[selection of titles|Title Selection]] +op-output: rounds each of the input numbers to the nearest integer +op-purpose: rounds a list of numbers to the nearest integer +tags: [[Unary Mathematics Operators]] [[Filter Operators]] [[Mathematics Operators]] +title: round Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +<<.operator-examples "round">> diff --git a/editions/tw5.com/tiddlers/filters/sign Operator.tid b/editions/tw5.com/tiddlers/filters/sign Operator.tid new file mode 100644 index 000000000..e25783f92 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/sign Operator.tid @@ -0,0 +1,13 @@ +caption: sign +created: 20190613084919354 +modified: 20190613085044655 +op-input: a [[selection of titles|Title Selection]] +op-output: replaces each input number with -1, 0 or +1 according to whether the number is negative, zero, or positive +op-purpose: return -1, 0 or +1 for a list of numbers according to whether each number is negative, zero, or positive +tags: [[Unary Mathematics Operators]] [[Filter Operators]] [[Mathematics Operators]] +title: sign Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +<<.operator-examples "sign">> diff --git a/editions/tw5.com/tiddlers/filters/split Operator.tid b/editions/tw5.com/tiddlers/filters/split Operator.tid new file mode 100644 index 000000000..e713eb326 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/split Operator.tid @@ -0,0 +1,15 @@ +caption: split +created: 20190613153944647 +modified: 20190613154541225 +op-input: a [[selection of titles|Title Selection]] +op-output: the input titles split into separate items according to the specified separator <<.place S>> +op-parameter: The substring at which to split each title +op-parameter-name: S +op-purpose: returns each item in the list split into separate strings according to the specified separator <<.place S>> +tags: [[Filter Operators]] +title: split Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> + +<<.operator-examples "split">> diff --git a/editions/tw5.com/tiddlers/filters/splitregexp Operator.tid b/editions/tw5.com/tiddlers/filters/splitregexp Operator.tid new file mode 100644 index 000000000..085cbd1ff --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/splitregexp Operator.tid @@ -0,0 +1,16 @@ +caption: splitregexp +created: 20190613154722705 +modified: 20190613154924724 +op-input: a [[selection of titles|Title Selection]] +op-output: the input titles split into separate items according to the specified regular expression <<.place R>> +op-parameter: The regular expression at which to split each title +op-parameter-name: R +op-purpose: returns each item in the list split into separate strings according to the specified regular expression <<.place R>> +op-suffix: flags: ''m'' for multiline mode, ''i'' for case-insensitive mode +tags: [[Filter Operators]] +title: splitregexp Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> + +<<.operator-examples "splitregexp">> diff --git a/editions/tw5.com/tiddlers/filters/trim Operator.tid b/editions/tw5.com/tiddlers/filters/trim Operator.tid new file mode 100644 index 000000000..e791c2f87 --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/trim Operator.tid @@ -0,0 +1,13 @@ +caption: trim +created: 20190613153740241 +modified: 20190613153820282 +op-input: a [[selection of titles|Title Selection]] +op-output: the input titles with whitespace trimmed from the start and end +op-purpose: returns each item in the list with whitespace trimmed from the start and end +tags: [[Filter Operators]] +title: trim Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> + +<<.operator-examples "trim">> diff --git a/editions/tw5.com/tiddlers/filters/trunc Operator.tid b/editions/tw5.com/tiddlers/filters/trunc Operator.tid new file mode 100644 index 000000000..43cf2d2dd --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/trunc Operator.tid @@ -0,0 +1,13 @@ +caption: trunc +created: 20190613084703801 +modified: 20190613084829253 +op-input: a [[selection of titles|Title Selection]] +op-output: truncates each of the input numbers to their integer part, removing any fractional part +op-purpose: truncates a list of numbers to their integer part, removing any fractional part +tags: [[Unary Mathematics Operators]] [[Filter Operators]] [[Mathematics Operators]] +title: trunc Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> See [[Mathematics Operators]] for an overview. + +<<.operator-examples "trunc">> diff --git a/editions/tw5.com/tiddlers/filters/uppercase Operator.tid b/editions/tw5.com/tiddlers/filters/uppercase Operator.tid new file mode 100644 index 000000000..f52031bee --- /dev/null +++ b/editions/tw5.com/tiddlers/filters/uppercase Operator.tid @@ -0,0 +1,15 @@ +caption: uppercase +created: 20190613153420821 +modified: 20190613153538557 +op-input: a [[selection of titles|Title Selection]] +op-output: the input titles with each lowercase letter replaced by the equivalent uppercase letter +op-purpose: returns each item in the list as uppercase +tags: [[Filter Operators]] +title: uppercase Operator +type: text/vnd.tiddlywiki + +<<.from-version "5.1.20">> + +See also [[lowercase Operator]]. + +<<.operator-examples "uppercase">>