1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-22 06:56:52 +00:00
Commit Graph

93 Commits

Author SHA1 Message Date
pmario
00cc08da91 allow tv-toc-show-new-child to be used with tagLikeMode 2024-07-23 13:00:05 +02:00
pmario
8297e69352 fix TAG-LIKE functionality 2024-07-23 12:49:08 +02:00
pmario
2c4fc061bb fix problem tagMode new child also opens the tiddler 2024-06-19 17:16:53 +02:00
pmario
bd75750f67 add toc-newChildButton which uses tv-toc-show-new-child variable for visibility 2024-06-18 17:17:04 +02:00
pmario
9cace159ab add tf.toc-getTooltip function 2024-05-14 03:19:26 +02:00
pmario
e9d009a6a6 fix chevron spacing for custom itemTemplates 2024-05-13 14:10:29 +02:00
pmario
63fc0bc562 add cascade to check if macro prams and fields are valid. eg Caption has a value 2024-05-13 12:58:04 +02:00
pmario
04ea2dd076 add a tooltip and make caption the default fallback 2024-05-12 18:13:54 +02:00
pmario
ab2e571ee6 rename 1 variable change docs a bit 2024-05-04 15:28:11 +02:00
pmario
780cf038ab toc - do not show "more" chevron, it all child nodes are hidden 2024-02-14 13:39:36 +01:00
pmario
781213911d toc - add tc- prefix to class definitions, to make them more obvious 2024-02-14 13:38:35 +01:00
pmario
d0c7d7e307 toc-macros - somehow a "dot" slipped in with a commit :/ 2024-02-10 17:58:33 +01:00
pmario
0bedb46e8a change inline docs. Move \function tf.toc-stateTitle() up in the code near it's first use 2024-02-10 17:34:31 +01:00
pmario
cf35a264a8 updated inline docs 2024-02-09 12:23:24 +01:00
pmario
291e3a42b5 allow toc-filter fields to created open/close chevrons 2024-02-08 14:44:34 +01:00
pmario
6e23d8db51 CTRL-click should not create edundant state tiddlers if tag tiddlers include themself 2024-02-08 14:11:14 +01:00
pmario
13be3c2147 if currentTiddler includes itself as a child do not show a more-chevron 2024-02-08 13:42:58 +01:00
pmario
6ce2eaad2c CTRL click on chevron expands / folds whole branch 2024-02-08 12:53:07 +01:00
pmario
bce803acc0 WIP recursive open - close with tags and path works with CTRL click and buttons 2024-02-07 20:27:23 +01:00
pmario
296743632d improve inline docs 2024-02-07 14:32:22 +01:00
pmario
f0d7c8bbd6 move captionField in front of tagField 2024-02-07 13:17:38 +01:00
pmario
58c81598b5 add all new fields to all toc-macros. rename some internal variables 2024-02-07 12:45:12 +01:00
pmario
9b53df00a1 rename toc-captionField to toc-defaultItemTemplate and lists call toc-itemTemplate which is a new proc 2024-02-07 11:30:10 +01:00
pmario
a2afdc8c96 allow tagField and parentField instead of tags 2024-02-07 01:25:12 +01:00
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
Scott Sauyet
23a576b8bd
Tweak TOC to not show expander for sublist with all children excluded (#7802) 2023-10-25 13:37:24 +01:00
Mario Pietsch
b000f20283
Fix toc indentation problem (#7627)
* fix toc indentation problem

* add caption to Third & Fourth toc tiddlers to see caption-handling

* reset modified fields
2023-07-22 12:41:19 +01:00
Mario Pietsch
106f121133
Table-of-content macros -- make "exclude" an official macro parameter (#7417)
* toc make exclude a proper macro parameter using subfilter instead of enlist

* add exclude parameter to TOC documentation tiddler

* add exclude parameter to toc-tabbed-xx macros

* add from-version to exclude parameter
2023-06-13 10:44:34 +01:00
Télumire
6718f82b4c
Small gap fix for the updated toc macro (alternative to tc-tiny-gap-left) (#7219) 2023-01-20 10:15:35 +00:00
Télumire
1441138d5c
Correction of the toc and toc-body macro (#7121)
* correction of the toc and toc-body macro: tiddler without toc-link field can now be overriden + nested the macros

* reverted macro nesting

.. to be able to override the toc-body macro

* reverted tabs to spaces
2023-01-19 17:46:50 +00:00