1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-12 11:10:27 +00:00
Commit Graph

4596 Commits

Author SHA1 Message Date
pmario
655f9616e8 ren: viewField to captionField,viewFieldTemplate to captionFieldTemplate 2024-02-06 19:03:21 +01:00
pmario
5510e226bb remove itemClassFilter from macro-calls, but leaf them alone in the procedure definitions. So parameter order is kept intakt 2024-02-06 18:47:33 +01:00
pmario
dbb27b55e9 fix let syntax 2024-02-06 18:39:46 +01:00
pmario
59b8264206 add viewField instead of captions, use viewFieldTemplate if defined to show item-link text. It always uses field:text 2024-02-06 17:39:51 +01:00
pmario
13c1affb0f add global field names 2024-02-05 21:14:44 +01:00
pmario
d8662d4498 fix typo in class function 2024-02-05 20:10:29 +01:00
pmario
9de43bad05 rename toc-override -> toc-filter 2024-02-05 20:07:10 +01:00
pmario
8e1e875ebf add class handling for toc-override 2024-02-04 22:29:07 +01:00
pmario
e884c1178c change possible fields to: toc-hide, toc-override and toc-include 2024-02-04 21:57:34 +01:00
pmario
141f8029dc toc-include replaces the default filter 2024-02-04 15:44:49 +01:00
pmario
51aa7a054a show chevron if toc-included is the only "child" of a node. some code restructuring for better readability 2024-02-04 07:37:24 +01:00
pmario
e1a42ebf82 add new classes toc-item-included and toc-item-excluded, simplify code using more functions 2024-02-04 06:15:49 +01:00
pmario
f3a314adf0 add toc-include, toc-exclude to all tocs 2024-02-04 05:16:22 +01:00
pmario
39f3c4b7eb use 2 underscores instead of 1 for better readability 2024-02-03 19:25:05 +01:00
pmario
745c7fbbcd toc-exclude works, but should be improved 2024-02-03 03:04:41 +01:00
pmario
84167ed1e9 add internal variable prefixes to __exclude and __path to make the code less error prone 2024-02-02 00:42:40 +01:00
pmario
b322a70b86 toc - replace reveal with conditional if 2024-02-01 21:51:53 +01:00
pmario
955d5a299b toc rewrite -- clean up the code and add comme important comments 2024-02-01 19:23:48 +01:00
pmario
9b0a461f85 toc rewrite wip - works - replaced emptyMessages with conditional if 2024-02-01 18:53:55 +01:00
pmario
20c043ef7d toc rewrite wip - works - before improving emptymessages 2024-02-01 18:07:40 +01:00
pmario
625d029207 replace <$qualify name="toc-state" title={{{ xxx filter }}} > with
\function makeTocState() [[$:/state/toc]addsuffix<__path__>addsuffix[/]addsuffix<currentTiddler>]

<$qualify name="toc-state" title=<<makeTocState>> >
2024-02-01 14:12:35 +01:00
Jeremy Ruston
9bf3c0602d HTTP Requests should return data even if there was an error
The body data is often used for API error messages in the event of failure
2024-01-26 13:37:46 +00:00
Saq Imtiaz
bc3d64f4b8
Refresh edit widget when the editor type has changed (#7943) 2024-01-24 11:37:15 +00:00
Saq Imtiaz
aa4aeb187c
Fixes functions to use variables set by filter runs (#7906)
* fix: functions should use variables set by filter runs

* refactor: code clean up

* chore: added more tests
2024-01-24 11:33:50 +00:00
btheado
fb85e91f82
Allows whitespace-only macro/procedure to be closed by \end (#7911)
* Added some passing macro definition parsing tests

* Added two failing tests to illustrate bug #3460

* Allow \end to end an whitespace only/empty macro definition. Fixes #3460

* Added some passing procedure definition tests

* Added two failing procedure tests to illustrate bug #3460

* Allow \end to end a whitespace only/empty procedure/function/widget definition. Fixes #3640

* Fixed wording of comment
2024-01-24 11:32:58 +00:00
Rob Hoelz
38187d26f4
Add documentation for "class" system field (#6990)
Fixes #6915
2024-01-18 16:40:29 +00:00
Rob Hoelz
8ac4a448ef
Fix link refresh bug (#7935)
See https://talk.tiddlywiki.org/t/possible-bug-with-links-to-missing-tiddlers-in-5-3-3/8910 for report and reproduction instructions
2024-01-18 16:37:12 +00:00
Jeremy Ruston
f08d3d6030 Update for 2024 2024-01-02 09:10:06 +00:00
Saq Imtiaz
46a22ef585
Fix: resolved issues with select widget after refactoring (#7905) 2023-12-21 11:50:33 +00:00
Jeremy Ruston
a3e5ace458
Remove whitespace immediately after pragmas (#7895)
This is intended to revert some of the behaviour introduced in #7835, see the discussion here: https://github.com/Jermolene/TiddlyWiki5/pull/7888#issuecomment-1856184592
2023-12-21 10:36:45 +00:00
Jeremy Ruston
6fa81feeba
Restore comma before skinny tiddlers (#7897)
* Restore comma before skinny tiddlers

Fixes #7896

* Fix problem that showed up in CI tests
2023-12-21 10:36:29 +00:00
yaisog
95e270a8a6
Fix per-tiddler previews (#7900)
* Initial commit

* Put SVG back into a span

Needed in case this is targeted in CSS; DOM structure should not be changed.

* Fix the fix

Do it once, do it right.
2023-12-21 10:36:08 +00:00
Jeremy Ruston
e2d4388c48
Fix for list widget with an empty paragraph as inline template (#7903)
Fixes #7902
2023-12-21 10:35:40 +00:00
Jeremy Ruston
267521ad1b Preparing for v5.3.3-prerelease 2023-12-13 08:16:59 +00:00
Jeremy Ruston
9d94459c5d Syncer: fix object reference
We should be passing the syncer object, not the task object
2023-12-12 15:48:09 +00:00
Jeremy Ruston
15e53b8cd1 Revert: #7768 Ensure {{}} doesn't cause a recursion error
See https://github.com/Jermolene/TiddlyWiki5/pull/7768#issuecomment-1850578638
2023-12-11 17:56:11 +00:00
Jeremy Ruston
4e67aafeb7 Scrollable hotfix: Avoid setTimeout
See #7869
2023-12-02 08:58:35 +00:00
yaisog
e60ddf0b0a
Handle switching the bound tiddler (#7868) 2023-11-30 18:26:26 +00:00
Jeremy Ruston
f7359671aa Defer scrollable widget updating bound tiddler for 100ms
See discussion https://talk.tiddlywiki.org/t/5-3-2pre-scroll-binding/8570/3?u=jeremyruston
2023-11-29 18:06:54 +00:00
Jeremy Ruston
c61c34e9df Debounce scrollable widget scroll handler 2023-11-29 14:45:34 +00:00
Jeremy Ruston
6b47cbed32 Scrollable: write bound value if title of bound tiddler changes
Thanks @yaisog
2023-11-29 14:36:58 +00:00
Jeremy Ruston
c282208668 Fix jsonset crash when applied to primitive types
See https://talk.tiddlywiki.org/t/final-checks-before-release-of-v5-3-2/8560/7
2023-11-29 12:06:40 +00:00
Jeremy Ruston
622512c380 Further reduce syncer logging
The rationale is that the deeper logs are only useful for debugging the syncer logic, and are overwhelming for most users
2023-11-29 11:24:54 +00:00
Jeremy Ruston
f56f5dcc56 Fix savetiddlers handling of tiddlers with no text field 2023-11-29 11:23:57 +00:00
Jeremy Ruston
fe17f16675 Fix syncer not exiting when used on CLI
Fixes #7867
2023-11-29 09:31:19 +00:00
Jeremy Ruston
3b84088b27 Syncer: Reduce logging intensity 2023-11-28 11:44:21 +00:00
Saq Imtiaz
233b871fdf
Update help for CommandsCommand to avoid deduplication (#7858) 2023-11-26 17:42:53 +00:00
Robin Munn
64812f5c06
Add join attribute to list widget (#7694)
* Add join attribute to list widget

* Use new join attribute in HTML saving templates

This simplifies the logic involved in saving tiddlers in JSON format
into TW html files, and should also slightly speed up the saving process
depending on how often that list widget gets refreshed.

* Unit tests for list widget's new join attribute

* Add `<$list-join>` widget

Allows specifying complicated join text more easily than an attribute
2023-11-25 09:35:05 +00:00
Jeremy Ruston
1cb607249e
Fix syncer race condition (#7843)
* Initial commit

* Log task choosing

* A tiny bit more logging

* Typo

* Restructure syncer to use a single state machine
2023-11-24 13:02:09 +00:00
Jeremy Ruston
ca41a8db04
Core macros don't allow pragmas in action strings (#7855)
* First commit

* Transclude preferred over macrocall
2023-11-24 10:48:48 +00:00