1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-07-06 20:12:49 +00:00

274 Commits

Author SHA1 Message Date
pmario
035b4ceed3 use currentTiddler as tag default parameter if it is missing 2024-10-29 11:44:24 +01:00
pmario
476902e59b remove redundant comment 2024-10-23 17:21:35 +02:00
pmario
181e78410b fix missingText in toc-tabbed-*-nav 2024-10-08 21:50:13 +02:00
pmario
218cf9d501 remove obsolete code 2024-08-26 18:43:40 +02:00
pmario
f8ce842d26 Make testcase tab-view a story-river 2024-08-03 16:25:37 +02:00
pmario
4d66f95857 wip toc testcase make new child button work 2024-07-31 06:50:59 +02:00
pmario
9c32e53772 add new-child core image 2024-07-30 11:14:26 +02:00
pmario
32186b5bf8 add CSS classes to new-child buttons for easier styling 2024-07-28 12:30:51 +02:00
pmario
7b6c940ca7 remove redundant tagLike procedures 2024-07-23 18:54:11 +02:00
pmario
e909295dc2 remove button tc-tiny-gap from tc-unlinked-selective-expandable-body 2024-07-23 13:22:02 +02:00
pmario
bed6eaf540 Merge branch 'master' into toc-v5.3.x-rewrite 2024-07-23 13:10:48 +02:00
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
Mario Pietsch
906ac3817d
Fix 8347 tag-picker macro improve tagListFilter (#8351)
* improve tagListFiler defaults to [tags[]sort[]] now

* tag-picker - update docs
2024-07-09 20:55:51 +01:00
Mario Pietsch
32c75cbb68
Allow fieldmangler to catch unsaved tag changes (#8332)
* allow fieldmangler to catch unsaved tag changes

* fix typo in comment
2024-07-04 17:24:06 +01:00
Mario Pietsch
84d1c81bb2
Revert to \define colour macro for backwards compatibility (#8327)
* revert to \define colour macro for backwards compatibility

* add color macro

* remove new functions
2024-07-01 22:12:04 +01:00
oeyoews
b81a1f22fe
Fix: remove extra "tags:" typo (#8322) 2024-06-30 18:26:19 +01:00
pmario
2c4fc061bb fix problem tagMode new child also opens the tiddler 2024-06-19 17:16:53 +02:00
Jeremy Ruston
4ca883fd9b Revert #7821
See https://github.com/Jermolene/TiddlyWiki5/pull/7821#issuecomment-2176843674
2024-06-18 20:52:35 +01: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
54b35695fa Merge branch 'master' into toc-v5.3.x-rewrite 2024-06-13 14:05:41 +02:00
lin onetwo
78ace99685
Feat: translatable plugins and docs (#7821)
* feat: t macro and docs

* feat: support block mode so you can transclude whole tiddler

* refactor: use lingo and procedure

* refactor: use function instead of set variable

* docs: about  mode:"inline"

* Update LingoMacro.tid

* docs: more usage about inline

* refactor: update translate macro to reuse lingo macro

* Delete translateMacro.tid

* refactor: update translation of tiddlyweb

* docs: more tiddlyweb l10n

* feat: add comment, so when use <$text text=<<lingo>> by mistake, it shows

* i18n: add more l10n

* feat: add tree to plugin to reveal l10n structure

* i18n: add menubar translation for example

* i18n: more for menubal

* docs: Headings -> Heading

* refactor: remove the "tree" tid

* Revert "refactor: remove the "tree" tid"

This reverts commit fb70f0b146e85d78e3777d684ecc30fac062a232.
2024-06-08 14:58:21 +01:00
Jeremy Ruston
ece8b0ee01
Add <$testcase> widget (#7817)
* Initial Commit

* Add note to preview build

* Fix whitespace and indenting

Thanks @pmario

* Fix crash with unset $tiddler attribute on <$data> widget

Thanks @CodaCodr

* Don't duplicate "description" field in test cases

* Use different background colours for nested testcase widgets

* Extend the testcase widget to run tests

* Add testcases to control panel

* Add a view template body template to render testcase tiddlers

* Test edition should display testcases

* Whitespace fixes

* Make testcase tiddler tempalte link to itself

* Styling tweaks

* Docs improvements

* Styling tweaks

* Run the new tw5.com testcases in the test edition

* Update data widget to display its content in JSON

* Add testcase convenience procedure

* Clearer testcases for data widget, and docs tweaks

* Don't expect our intentionally failing test to pass

* Extend testcase default template so that the display format can be chosen

It is selected by setting the variable "displayFormat"

* DataWidget docs typo

* Fix data widget not refreshing

* Links in testcase output switch to the tab containing that tiddler

Thanks to @btheado for the suggestion

* Docs update for 648855e8a50b1ee3bef3120b64b5713b69190c9b

* Wording tweak

* Add support for narrative tiddlers in test cases

* Documentation improvements

* Cleanup comments

* Remove obsolete code comments

* Simplify template

* Docs update

* Rename $:/core/ui/testcases/DefaultTemplate/SourceTabs from $:/core/ui/testcases/DefaultTemplate/Source

* Use the view template body for failing tests

* Don't reference the geospatial plugin

* "Test case" should be two words

* Fix handling of currentTiddler variable

Fixes problem reported by @btheado in https://github.com/Jermolene/TiddlyWiki5/pull/7817#issuecomment-2103704468

* Prepare for merging
2024-05-20 11:30:30 +01: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
Mario Pietsch
2d92a6fd78
Tag picker rewritten using new v5.3.x syntax (#7978)
* tag-picker add Examples

* tag-picker - use new v5.3.x wikitext syntax

* tag-picker - more inline docs

* tag-picker - fix add button

* rename local functions: tag, userInput to _tf.getTag and _tf.getUersName to make the code and variable scopes more understandable

* tag-picker - move local variables definitions into one place: tag-picker macro

* tag-picker - replace reveal-widget with conditional IF syntax

* tag-picker - remove logs and test tag-picker - actions parameer -> OK

* tag-picker - add tag-picker Macro docs

* tag-picker docs - change \define -> \procedure

* tag-picker -- fix problem with focus loss if elements selected by mouse click

* tag-picker -- add tf. prefix only to new function definition names for backwards compatibility.

* tag-picker -- update example docs

* re-add tags: $:/tags/Macro
2024-03-28 19:09:31 +00:00
Mario Pietsch
2e0e541ebf
Add tc-tag-missing or tc-tag-exists to tag pills including docs (#7951)
* add tc-tag-missing or tc-tag-exists to tag pills including docs

* changes as requested

* macros not needed anymore - so remove

* fix the tag Macro docs
2024-03-28 19:07:54 +00:00
Jeremy Ruston
070327cb57 Include $:/tags/Macro on core macros for backwards compatibility
This avoids breaking existing code that expects to be able to import the core macros with just $:/tags/Macro

@pmario - I suggest that future updates use the same approach

Thanks to @ericshulman for reporting the problem
2024-02-29 12:39:41 +00:00
etardiff
4cca77b72d
Rewrite tag-picker macros as procedures (#7883)
This PR attempts to modernize the tag-picker macros as procedures, as @Jermolene suggested in [#7548 (comment)](https://github.com/Jermolene/TiddlyWiki5/pull/7548#issuecomment-1825458523).

What I changed:

* rewrote macros as procedures/replaced text substitutions with variables
* replaced nested $set and $var widgets with $let widgets/functions
* minor rewrites to reduce redundant code
* some additional linebreaks for clarity

*This is functionally identical to my initial PR, [#7880](https://github.com/Jermolene/TiddlyWiki5/pull/7880)*, minus the extra file I'd accidentally added. Thank you for bearing with me as I learn to navigate GitHub.
2024-02-28 11:32:48 +00:00
Mario Pietsch
a09106f33b
Core-macro-diff-new-syntax (#7986)
* $:/core/macros/diff use v5.3.x syntax and add indentation for better readability -- all tests pass

* diff - set tags: $:/tags/Global
2024-02-14 19:45:11 +01:00
Mario Pietsch
699d8b9416
css-macro -- change tags to $:/tags/Global (#7987)
* $:/core/macros/CSS use v5.3.x syntax

* css-macro -- change tags to $:/tags/Global
2024-02-14 19:44:22 +01:00
Mario Pietsch
53ccc29209
Copy-to-clipboard macro - change tags to $:/tags/Global (#7988)
* copy-to-clipboard-macors -- new v5.3.x syntax

* copy-to-clipboard - change tags to $:/tags/Global
2024-02-14 19:36:32 +01: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