Simon Huber
c13f04d838
Add m
flag for multiline matches to search-replace filter operator ( #5968 )
...
* add m flag to search-replace operator and add tests
* update documentation
* Update test-filters.js
* Update test-filters.js
* Update search-replace Operator (Examples).tid
* Fix "Hello There" title (HelloThere)
2021-08-29 17:44:34 +01:00
jeremy@jermolene.com
53c247b9a1
Merge branch 'tiddlywiki-com'
2021-07-27 19:30:44 +01:00
jeremy@jermolene.com
83ee363cb4
Add charcode operator to make it easier to generate strings containing control characters
...
Avoids some confusing hacks. @saqimtiaz I'm guessing you might have already done something like this?
2021-06-22 21:52:00 +01:00
jeremy@jermolene.com
082aeb92ac
Revert "extend lookup op flexibility with 2 parameters ( #5315 )"
...
This reverts commit 81b5fe944a
.
See https://github.com/Jermolene/TiddlyWiki5/pull/5315#issuecomment-848725198 for explanation
2021-05-26 13:25:19 +01:00
Saq Imtiaz
7a41283c6b
Format:titlelist operator ( #5665 )
2021-05-24 19:28:43 +01:00
Saq Imtiaz
10b20657cc
Deserializers[] filter operator ( #5673 )
2021-05-22 10:50:11 +01:00
Joshua Fontany
81b5fe944a
extend lookup op flexibility with 2 parameters ( #5315 )
2021-05-21 10:11:23 +01:00
Chris Nicoll
41200ab6d7
Fix #5310 : docs for unique[] filter operator ( #5651 )
...
Co-authored-by: clutterstack <clutterstack@gmail.com>
2021-04-29 13:14:28 +01:00
Jeremy Ruston
bf773eb39a
Add "average" filter operator for arithmetic mean ( #5612 )
2021-04-27 10:09:13 +01:00
Robin Munn
f60d0ef109
reduce and :reduce handle empty input identically ( #5255 )
...
Fixes #5246 . Now the reduce operator and :reduce filter run prefix will
both return empty output when their input is empty, so that both can be
chained together with the else operator or :else prefix.
2020-12-11 10:07:52 +00:00
Saq Imtiaz
8799911162
Reduce operator: second optional parameter instead of suffix ( #5193 )
...
* Tweak reduce operator to use an optional second parameter instead of a suffix
* Updated docs
2020-12-04 18:31:23 +00:00
Robin Munn
8ffe138942
Add rawunicode suffix to (json)stringify operators ( #5191 )
...
Default with no suffix is pre-5.1.23 behavior, escaping all Unicode
characters for maximum compatibility (avoids encoding issues). New
"rawunicode" suffix allows passing through Unicode characters U+0080
and up unchanged, for cases where you know your tools are handling
encoding correctly and you want less verbose escaping.
2020-12-04 13:19:59 +00:00
Robin Munn
fd3e77d38f
"dedupe" and "raw" suffixes for enlist-input operator ( #5152 )
...
Includes unit tests.
2020-11-30 17:52:46 +00:00
saqimtiaz
8fc6910c03
Added string operator pad[] along with tests and docs ( #5146 )
2020-11-30 17:43:50 +00:00
saqimtiaz
4f07539164
Cycle operator improvements plus docs ( #5069 )
...
* Tweak cycle operator to support step size parameter and add docs for toggle and cycle
* Mention that title list should have no duplicates
2020-11-20 18:37:23 +00:00
saqimtiaz
89541edcff
Added mathematics filter operators power and log ( #5080 )
2020-11-20 14:00:20 +00:00
saqimtiaz
1a8c6fdc4b
Docs: Added example of how to remove stop words ( #5066 )
...
* Added example of how to remove stop words
* Moved filter operator example tiddlers to correct folder
2020-11-18 15:56:38 +00:00
Robin Munn
e72d90c227
More examples for enlist-input operator ( #4968 )
...
The examples should also show what would happen without the operator, to
give a better feel for why it's useful.
2020-11-08 11:47:15 +00:00
saqimtiaz
70561bd481
Added docs for enlist-input filter operator ( #4966 )
2020-11-02 22:50:22 +00:00
Robin Munn
cae32d39a5
Improve documentation for reduce operator ( #4936 )
2020-10-29 13:00:49 +00:00
saqimtiaz
adf0c1a12a
Documentation for format filter operator ( #4895 )
...
* Documentation for format operator
* Examples for format operator
2020-10-23 16:25:05 +01:00
jeremy@jermolene.com
14a28b7779
Add "reduce" and "filter" operators
2020-10-06 19:20:03 +01:00
jeremy@jermolene.com
0027b990e4
Move tw5.com docs tiddlers to the correct folders
2020-10-04 17:36:08 +01:00
Robin Munn
5202441769
Add suffix and parameter to trim operator ( #4811 )
...
* Add suffix and parameter to trim operator
Fixes #4809
* Unit tests for new trim operator parameters
* Mention trim operator in 5.1.23 release notes
* Address review comments
* Move regex escaping into utils.js trim functions
This way the trimPrefix and trimSuffix functions from utils.js are safe
to call without regex-escaping their parameters, which should make them
easier to use from other parts of the Javascript code.
2020-08-29 12:27:58 +01:00
jeremy@jermolene.com
918e52b37b
Merge branch 'tiddlywiki-com'
2020-08-28 15:25:47 +01:00
twMat
05de5b4c49
Update fixed Operator (examples).tid ( #4763 )
...
To clarify it zero pads.
2020-08-27 15:47:05 +01:00
jeremy@jermolene.com
619c0752bd
Add new sortsub operator
2020-04-25 11:26:19 +01:00
Mario Pietsch
de5b0062b5
Add new parameters to fields-widget and fields-operator. ( #4433 )
...
* add a new-line before the log text to increase readability of the test output
* make eslint, jslint happy
* extend fields-widget with include/exclude/sort/reverse and fields-filter with include and exclude params plus DOCS
* remove new-line
* remove eslint settings
* restore old eslint settings
* remove typo
2020-04-15 12:36:48 +01:00
Joshua Fontany
69c8058b72
Add has:index ( #4540 )
...
* has:index
* has:index
* has:index docs
* has op examples
* has op examples
* operator macros typo missing </div>
* possible mistake
2020-04-14 16:52:56 +01:00
Jeremy Ruston
7b53f5724c
Add new compare filter operator
...
Fixes #4554
2020-04-13 10:03:01 +01:00
TonyM
8145caa104
Add a new example that shows using all before to determine the nummeric position of a title in a list. ( #4412 )
...
See discussion https://groups.google.com/forum/?hl=en#!topic/tiddlywiki/wY6haW2cYMA
2020-01-14 16:55:53 +00:00
Jeremy Ruston
17711657b6
Add then and else operators
...
Fixes #4147
2019-08-02 14:27:58 +01:00
Jeremy Ruston
5faae2547d
Add "match" operator for string comparison
...
Fixes #4130
2019-07-31 09:11:12 +01:00
Simon Huber
16a53ae394
Use Resources tag for escapecss examples ( #4040 )
2019-07-02 16:25:34 +01:00
Simon Huber
d2f1debf92
Make escapecss tiddlers show in recent tab ( #4032 )
...
* make escapecss show in recent tab
* make escapecss examples show in recent tab
2019-06-29 08:40:46 +01:00
Simon Huber
2f723dd85a
Add docs for escapecss operator ( #4028 )
...
* Create escapecss_Operator.tid
* Create escapecss Operator (Examples).tid
2019-06-29 08:17:11 +01:00
Robin Munn
cb2bf25563
Fix examples for sentencecase and titlecase ( #4010 )
2019-06-24 10:36:28 +01:00
Robin Munn
9b27f82a80
Fix sentencecase operator, add titlecase operator ( #4006 )
2019-06-21 08:24:02 +01:00
Jeremy Ruston
2e2ed7902c
Add sentencecase operator
...
Fixes #4000
2019-06-19 12:11:02 +01:00
Robin Munn
62829dc9d3
Add untrunc operator, the mirror of trunc ( #3994 )
2019-06-17 18:34:30 +01:00
Jeremy Ruston
fef2ea97a1
Final chunk of docs for new maths/string operators
2019-06-13 16:53:23 +01:00
Jeremy Ruston
e5e5b1d739
Fixes for 7fcdc83ba
...
Thanks @twMat
2019-06-12 11:34:07 +01:00
Jeremy Ruston
7fcdc83bae
First batch of docs for the maths operators
2019-06-11 17:18:51 +01:00
Jeremy Ruston
18fe112da7
Extend the enlist operator to optionally not de-duplicate
2019-06-10 17:54:46 +01:00
Jermolene
754c1251a9
Add new "variables" and "getvariables" operators
2019-03-30 10:52:28 +00:00
Bimba Laszlo
f4ca295086
Docs: Remove broken is
operator example ( #3556 )
...
In 737e9ae4cb
the multiple suboperator
functionality was banned, but an example is remained in the docs.
2018-11-19 21:01:56 +00:00
Jeremy Ruston
33dd367a65
Introduce new subfilter operator ( #3508 )
2018-11-16 11:27:19 +00:00
Jeremy Ruston
6dcdc2049a
Enhance search operator ( #3502 )
...
* Enhance search operator
* Add support for searching all fields
and also searching all fields except nominated fields.
* Docs tweaks
Thanks @pmario
* Error message improvements
* Improve error message formatting
2018-10-30 17:39:18 +00:00
Jermolene
763f8afaf2
Add "contains" filter operator for searching list fields
2018-08-15 13:50:07 +01:00
Matt Lauber
5ea6c9a273
Modify the is operator to allow multiple types to be specified. ( #2982 )
...
* Modify the is operator to allow multiple types to be specified.
* Fixed indentation.
* Fixed indentation.
* Rewritten to maintain input order when multiple filters provided.
* Updated documentation.
* Update is.tid
2018-04-12 13:21:49 +01:00