Commit Graph
12572 Commits
Author SHA1 Message Date
Jeremy Ruston d20b02e606 Allow functions to take multivalued parameters 2025-03-29 14:13:23 +00:00
Jeremy Ruston 22eea56b53 Fix bug with round brackets for 2nd parameter onwards 2025-03-29 12:50:43 +00:00
Jeremy Ruston e8a2b3eefa Merge branch 'master' into let-filter-run-prefix 2025-03-29 12:32:27 +00:00
Jeremy Ruston b6a171cf5e Fix bug with missing variable attributes
See https://github.com/TiddlyWiki/TiddlyWiki5/pull/8972#issuecomment-2752792329
2025-03-26 20:32:35 +00:00
Leilei332andGitHub 961e74f73d Remove .eslintrc.json (#8987) 2025-03-22 11:32:00 +00:00
Jeremy Ruston f15e9e309e Merge branch 'master' into let-filter-run-prefix 2025-03-21 17:23:27 +00:00
Mario PietschandGitHub 8aa558eb2c Remove module function wrapper and add matching configurations for dprint and eslint (#7596)
* remove blks first try

* dprint.json seems to be OK, some forgotten functions

* add some more space-after-keyword settings

* server remove blks

* add **/files to dprint exclude

* dprint.js fixes a typo

* add boot.js and bootprefix.js to dprint exclude

* dprint change dprint.json

* add dprint fmt as script

* remove jslint comments

* fix whitespace

* fix whitespace

* remove function-wrapper from geospatial plugin

* fix whitespace

* add function wrapper to dyannotate-startup

* remove dpring.json
2025-03-21 17:22:57 +00:00
lin onetwoandGitHub 819d84ecab Add removeEventListener, and allow register multiple listeners (#8978)
* feat: add removeEventListener , and allow register multiple listeners

Instead of remove old one when add new one.

* refactor: simplify the logic, similar to wiki class's addEventListener

* feat: prevent adding the same event listener multiple times
2025-03-21 15:51:13 +00:00
Jeremy Ruston 55dbce10f4 Fix crash loading large files
Attempts to load large files are neutered with a warning message

Is 100MB the right limit?
2025-03-21 14:48:01 +00:00
Leilei332andGitHub 0b3efc2771 Fix overflow in Browser Storage settings page (#8752)
Only a small fix
2025-03-21 13:35:26 +00:00
Jeremy Ruston f914aa6605 Fix bug exposed in "Filter Operators" tiddler
See https://github.com/TiddlyWiki/TiddlyWiki5/pull/8972#issuecomment-2740003414
2025-03-20 17:46:12 +00:00
Jeremy Ruston bb5061c6ff Introduce => as a shortcut syntax for the let filter run prefix
Also relax the requirement for a filter run prefix to be followed by an opening square bracket
2025-03-20 09:29:15 +00:00
Jeremy Ruston 0c24e2f5f1 Introduce round brackets for multi-valued filter operands
Allowing us to drop the varlist operator
2025-03-19 16:14:54 +00:00
Jeremy Ruston 938e72dc34 Bug fix 2025-03-19 11:00:03 +00:00
Jeremy Ruston 7640135a7e Docs update 2025-03-18 16:29:11 +00:00
Jeremy Ruston ac134ac549 Missed off 211b135265 2025-03-18 15:54:51 +00:00
Jeremy Ruston 211b135265 Refactor the let filter run prefix to assign the input list to the variable named by the filter run
These semantics are much simpler, and allow the variable name to be computed.
2025-03-18 15:53:28 +00:00
Jeremy Ruston 0db188f365 Dispense with the letlist widget
What this PR actually does is rename the letlist widget to "let". The result is the same as using the letlist widget, but it is backwards compatible by virtue of the fact that all existing ways to access variables will only see the single value for the variable.
2025-03-18 12:46:31 +00:00
Jeremy Ruston a31df85894 varlist operator: fixed crash accessing non-existent variable
See https://github.com/TiddlyWiki/TiddlyWiki5/pull/8972#issuecomment-2712068743
2025-03-11 13:59:19 +00:00
Jeremy Ruston d69ecf4639 Test for multivalued functions 2025-03-11 13:30:17 +00:00
Jeremy Ruston efce6731e1 Docs update 2025-03-11 12:49:40 +00:00
Jeremy Ruston a9a9a745d4 Switch to triple brace syntax for assigning filtered lists 2025-03-11 12:47:01 +00:00
Leilei332andGitHub 06adaf3331 Update zh-Hans translation (#8974) 2025-03-11 12:33:14 +00:00
Jeremy Ruston 4cfa758d51 Fixed varlist crash with empty parameter 2025-03-10 15:31:28 +00:00
Jeremy Ruston c5ad429493 Update DefaultTiddlers to highlight the new docs 2025-03-10 12:45:10 +00:00
Jeremy Ruston 76e1c2124b Docs update 2025-03-09 18:21:36 +00:00
Jeremy Ruston 78a7aedd4b Introduce letlist widget for assigning lists to variables
Terrible name. Annoyingly, we can't overload the existing let or set widgets.
2025-03-09 17:50:42 +00:00
Jeremy Ruston 2a1542c4e5 Docs update 2025-03-09 17:01:31 +00:00
Jeremy Ruston 7397f4fa3a Support for saving result lists in a variable
Extend let filter run prefix to store list of results, and add varlist operator for accessing variables as a list.

We already had partial support for variables returning a list of values in order for functions to work, now we extend it so that any variable can be used to store a list

We should extend the set widget so that it returns a result list that can be accessed with the varlist operator
2025-03-09 16:50:48 +00:00
Jeremy Ruston e7b713c277 Cleanup 2025-03-09 14:56:15 +00:00
Jeremy Ruston 8e9b30fec8 Fix tests 2025-03-08 09:05:59 +00:00
Jeremy Ruston db1ed0e66b Fix tests 2025-03-08 09:00:32 +00:00
Jeremy Ruston 1acef48a10 Get rid of the special behaviour for all[]
Not needed because the input to the filter run is available
2025-03-08 08:56:12 +00:00
Jeremy Ruston b8bdb0aeeb Introduce let filter run prefix for assigning filter run result to a variable 2025-03-07 21:48:36 +00:00
Jeremy RustonandGitHub c3695765ad Move execution of startup actions after initialisation of the language switcher (#8950)
Fixes #8946
2025-03-06 21:29:21 +00:00
Cameron FischerandGitHub 636dae6c58 Fixed RSoD error with moduleproperty filter operator (#8958)
* Fixed RSoD error with moduleproperty filter operator

* No RSoD when getting non-string objects as well
2025-03-06 21:28:39 +00:00
Jeremy Ruston c25d6c11da Update release note 2025-03-06 21:20:37 +00:00
Mario PietschandGitHub 4822919aa4 fix .median sort function (#8971) 2025-03-03 17:11:16 +00:00
Cameron FischerandGitHub 0dda07e3f1 Fix for #5930: missing tiddlers with checkbox indexes (#8964) 2025-02-27 18:02:43 +00:00
Mario PietschandGitHub 0f79f88f58 Fix problem toc-selective-expandable (#8959)
fix problem toc-selective-expandable
2025-02-24 20:49:48 +00:00
2cb5f57c69 Remove flags in language plugins (#8837)
* Remove flags in language plugins

* Remove references to language icons

* Remove obsolete example

There are no incoming links to this tiddler

* Remove icon from en-GB language

* Temporarily add all the languages for testing

To be removed before merging

* Add new "language" icon

* Languageswitcher update

* Translator editon docs update

* Fixes for introduction edition

* Remove LanguageGallery in ja-JP edition

* Remove temporary setting

---------

Co-authored-by: Jeremy Ruston <jeremy@jermolene.com>
2025-02-21 12:17:53 +00:00
Jeremy Ruston d3f441cbb5 Unpack plugins for wiki based tests 2025-02-18 21:15:01 +00:00
Jeremy Ruston 361a9668a2 Merge branch 'tiddlywiki-com' 2025-02-18 11:53:00 +00:00
Jeremy Ruston b0d950faec Delete references to TiddlyWiki's Twitter account 2025-02-18 11:52:47 +00:00
Mario PietschandGitHub 8a92c4632d [DOCS] Make it more obvious that $:/DefaultTiddlers setting can handle filter-expressions (#8729)
* [DOCS] Make it more obvious that $:/DefaultTiddlers setting can handle filter-expressions

* update with requested changes.

* [DOCS] Make it more obvious that $:/DefaultTiddlers setting can handle filter-expressions

* Refactor text according to feedback

* Create link to DefaultTiddlers system tiddler
2025-02-18 10:43:21 +00:00
Mario PietschandGitHub a1053ddc3d list-tagged-draggable shows caption field if it is available (#8721) 2025-02-18 10:31:08 +00:00
Mario PietschandGitHub 7ea788ca83 fix page save button wikify update problem (#8956) 2025-02-18 09:06:14 +00:00
Mario PietschandGitHub 614ba8432f [DOCS] Improve External Images Docs (#8954) 2025-02-17 16:13:38 +00:00
Leilei332andGitHub c84de85ed2 Add system-ui to default font family (#8951)
* Add system-ui to default font family

* Make system-ui's priority lower
2025-02-15 11:11:49 +00:00
Mario PietschandGitHub cd89415461 [DOCS] Fix duplicate link in: HTML in Wikitext (#8944)
* [DOCS] Fix duplicate link in: HTML in Wikitext

* Update HTML in WikiText.tid
2025-02-14 19:37:54 +00:00