1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-05 23:10:28 +00:00
Commit Graph

584 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
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 fb70f0b146.
2024-06-08 14:58:21 +01:00
Jeremy Ruston
fc0de10cd1 Fix plugin library URLs 2024-05-22 11:50:15 +01:00
Jeremy Ruston
0adc6024d1 Fix plugin library URLs broken by #8198
Thanks @pmario
2024-05-21 18:33:04 +01:00
Jeremy Ruston
5aa3646df5
Add plugin stability badges (#8198)
* Initial Commit

* Fix plugin library URL

* Need to set plugin library location for prerelease

* Styling tweaks

* Docs

* Add tests that the core plugins all have a valid stability field
2024-05-21 11:22:39 +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 648855e8a5

* 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
Simon Huber
eeb4e7a7f7
Add a "Refresh Browser" keyboard shortcut (#8121)
* Create a `refresh` keyboard shortcut

This creates a `refresh` keyboard shortcut that refreshes the page.
In TiddlyDesktop <kbd>ctrl-R</kbd> doesn't work

* Update refresh.tid

* Update shortcuts-not-mac.multids

* Update shortcuts-mac.multids

* Update ShortcutInfo.multids
2024-04-03 09:58:56 +01: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
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