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

677 Commits

Author SHA1 Message Date
BurningTreeC
b888ac2100 updates 2024-10-26 20:06:14 +02:00
BurningTreeC
3021154bc3 updates for sidebarbreakpoint 2024-10-26 19:46:55 +02:00
BurningTreeC
5f4484e0a1 make dependents detection more reliable 2024-10-26 16:03:02 +02:00
BurningTreeC
3e502b714c make dependents detection more stable 2024-10-26 11:23:14 +02:00
BurningTreeC
d268fd7868 fix detection of dependents 2024-10-26 08:36:10 +02:00
BurningTreeC
743b465025 make everything even more generic 2024-10-26 08:13:14 +02:00
BurningTreeC
279441388e make everything even more generic 2024-10-26 06:52:23 +02:00
BurningTreeC
b5a5bf84da more generic adjustments 2024-10-25 13:58:22 +02:00
BurningTreeC
0c132c96be make it more generic 2024-10-25 06:19:28 +02:00
Mario Pietsch
b68de0d69f
Toc uses currentTiddler as "tag" default parameter if it is missing (#8291)
* toc's use currentTiddler, if tag prameter is undefined

* add currentTiddler info to toc documentation
2024-10-24 17:39:18 +01:00
Leilei332
c060216a8e
Make recent tab limit configurable (#8698)
Make maxium number of tiddlers under the "Recent" tab configurable in
the `$:/config/RecentLimit` tiddler. UI for configuring this option is
also added under the "Settings" tab.
2024-10-24 15:09:30 +01:00
Simon Huber
8b60cab6a2
Keyboard driven input rework (#8678)
* Update tag-picker.tid

* rework kb-driven-input macro to procedures + new syntax

* rework change-input-tab to procedure

* fix

* remove console log :)

* replace defines with procedures

* fix link-dropdown

* fix focus-selector in new-field dropdown

* revert changing the footpring of change-input-tab + make it work as procedure

* update change-input-tab procedure

* refactor change-input-tab procedure and keep tags/Macro tag

* simplify complicated filter

* add tags/Global tag

* remove tags/Global tag

* rename variable
2024-10-24 14:34:23 +01:00
Jeremy Ruston
9635e2d8af Revert refactoring CSS helper macros as functions
See discussion at https://github.com/TiddlyWiki/TiddlyWiki5/pull/7987#issuecomment-2431123638
2024-10-23 08:21:11 +01:00
Jeremy Ruston
0a03ac8219 Revert to just using $:/tags/Macro for core macros
See #8683
2024-10-22 13:15:34 +01:00
Simon Huber
dd0c3f9770
Merge branch 'TiddlyWiki:master' into sidebar-resizer-config 2024-10-21 06:09:47 +02:00
BurningTreeC
0bf23494a0 more adjustments for html dir=rtl + show sidebar on the left (configurable) 2024-10-20 17:19:40 +02:00
Leilei332
a0caa0f12d
Fix timeline macro showing long list of tiddlers created the same day. (#8690) 2024-10-20 10:47:50 +01:00
Leilei332
e259f414d9
Fix some tiddlers should use code body (#8687)
A small fix which applys code bodies to these tiddlers:
* Tiddlers with prefix `$:/core/config/`
* Tiddlers tagged `$:/EditorTools` and `$:/tags/ToolbarButtonStyle`
2024-10-19 09:24:24 +01:00
BurningTreeC
4d60f91793 adjustments for html dir=rtl 2024-10-19 08:09:39 +02:00
BurningTreeC
902a91e667 add refresh throttling to config tiddlers 2024-10-13 17:27:20 +02:00
BurningTreeC
48ed5dcc95 update vanilla base 2024-10-10 13:42:29 +02:00
BurningTreeC
7fc223993d get metrics by currently selected theme 2024-10-10 05:55:43 +02:00
BurningTreeC
7c2e05e215 make it respect the metrics of the current theme 2024-10-10 05:45:38 +02:00
BurningTreeC
1d9a4c4a94 wip: make it work cross-theme (tight) 2024-10-10 05:18:55 +02:00
BurningTreeC
c2ae885cc3 fix another edgecase 2024-10-09 13:20:52 +02:00
BurningTreeC
0a3dd8ba96 tiddlerwidth is clamped in certain cases 2024-10-09 07:56:33 +02:00
BurningTreeC
6122c5ba17 tiddlerwidth is not clamped 2024-10-09 06:07:36 +02:00
BurningTreeC
ca68786a64 update for clamped edgecases 2024-10-09 06:02:28 +02:00
BurningTreeC
8637f16e2d update for clamped edgecases 2024-10-09 05:03:21 +02:00
BurningTreeC
c092912df7 missing closing bla 2024-10-08 20:22:09 +02:00
BurningTreeC
fbf299be41 fix edgecase in centralised theme fix 2024-10-08 20:19:37 +02:00
BurningTreeC
a69d3242d5 fix edgecase in centralised theme 2024-10-08 20:07:48 +02:00
BurningTreeC
25d4bd339f centralised adjustments 2024-10-08 19:00:17 +02:00
BurningTreeC
fd615da984 small update for centralised 2024-10-08 18:44:13 +02:00
BurningTreeC
8cefe1bcf9 update for negative tiddler width 2024-10-08 15:50:59 +02:00
BurningTreeC
da232683fe some small adjustments 2024-10-08 15:07:52 +02:00
BurningTreeC
da76a2fd3e add support for centralised for testing 2024-10-08 13:39:46 +02:00
BurningTreeC
836087177d make tiddlerwidth percentages work 2024-10-08 07:48:47 +02:00
BurningTreeC
e5a2f3781b updates, fixed-fluid 2024-10-08 06:25:27 +02:00
BurningTreeC
76d8c97aff cleanup 2024-10-06 22:07:25 +02:00
BurningTreeC
dbda2c881c cleanup 2024-10-06 22:06:37 +02:00
BurningTreeC
9bae7caad7 add hint in ThemeTweaks for now, make shift jump out of ctrl mode 2024-10-06 17:06:26 +02:00
BurningTreeC
8f9cbe935d store the ctrl modifier 2024-10-06 14:23:16 +02:00
BurningTreeC
c1499896f7 make it work with em too 2024-10-06 13:57:19 +02:00
BurningTreeC
5d22139187 make ctrl in fixed-fluid mode work like I intended 2024-10-06 13:31:32 +02:00
BurningTreeC
3c4d7c5506 fix problem with double px suffixes 2024-10-06 12:00:22 +02:00
BurningTreeC
fb47dfd5fe different behavior for ctrl-dragging 2024-10-06 11:40:09 +02:00
BurningTreeC
6176f3ad90 simplify pointermove actions and calculations 2024-10-06 10:39:09 +02:00
BurningTreeC
c31a51fb25 cleanup 2024-10-05 16:47:38 +02:00
BurningTreeC
b7d542e34b updates 2024-10-05 16:41:56 +02:00
BurningTreeC
40a89fc337 add ctrl modifier drag for fixed-fluid mode that changes behavior 2024-10-05 15:52:15 +02:00
BurningTreeC
ca32bed448 add fallbacks 2024-10-05 14:25:03 +02:00
BurningTreeC
667e173d02 updates 2024-10-05 14:23:14 +02:00
BurningTreeC
6fd3432426 updates 2024-10-05 13:10:41 +02:00
BurningTreeC
01c945eea3 fix filters 2024-10-05 12:34:54 +02:00
BurningTreeC
ea7da2b8c1 more calculations 2024-10-05 08:04:03 +02:00
BurningTreeC
dd5af9f092 cleanup pointermove actions 2024-10-05 06:11:13 +02:00
BurningTreeC
bc9706d9b4 wip: fixed-fluid mode, change storyleft. + more calculations 2024-10-04 21:52:44 +02:00
BurningTreeC
445547d113 for now, in fixed-fluid mode keep story and tiddler fixed width 2024-10-04 19:12:24 +02:00
BurningTreeC
f547be6b8e remove some unnecessary calculations 2024-10-04 16:55:27 +02:00
BurningTreeC
035c23e0d5 updates 2024-10-04 15:52:16 +02:00
BurningTreeC
22b33e6fe4 updates 2024-10-04 15:34:52 +02:00
BurningTreeC
be6510bcb4 updates 2024-10-04 14:36:00 +02:00
Simon Huber
1e0d4b87fb
Create sidebar-resizer.tid 2024-10-04 12:34:55 +02:00
Saq Imtiaz
e591dfd590
Update the editor file import UI to support markdown tiddlers (#8486)
* chore: update editor file import to use procedures and substitute operator

* feat: refactor editor file-import UI to reuse filter from $:/config/Editor/EnableImportFilter

* feat: support for markdown in editor file import UI

* feat: improve markdown type detection and enable markdown image imports by default

* fix: uri encode tiddler titles for markdown

* escape characters instead of URI encoding

* fix: tweak regexp to simplify code and document escaping rules
2024-10-02 13:15:53 +01:00
Leilei332
2a77d6afdf
Fix confusing empty message in tag dropdown (#8649) 2024-09-30 13:40:45 +01:00
lin onetwo
a60e7165d2
Feat: loading indicator for tiddlers being lazy loaded (#8505)
* feat: basic loading

* feat: if condition

* feat: use palette

* refactor: remove css variable
2024-09-24 11:38:39 +01:00
Leilei332
0f4d6e4e47
Fix extra p tag in colour-picker (#8605) 2024-09-16 11:38:55 +02:00
Leilei332
c7ca8359ab
Add drag and drop handling for export macro & rewrite using v5.3.2 syntax (#8594) 2024-09-12 19:33:57 +01:00
Mohammad Rahmani
fbf619b006
Update ViewTemplateBodyFilters.multids For Readability (#8592)
This Cascade from 

```
[tag[$:/tags/wiki-test-spec]type[text/vnd.tiddlywiki-multiple]then[$:/core/ui/TestCaseTemplate]] [tag[$:/tags/wiki-test-spec-failing]type[text/vnd.tiddlywiki-multiple]then[$:/core/ui/TestCaseTemplate]]
```

Simplified. I also suggest using the same convention for all cascades
2024-09-12 10:09:11 +01:00
Mario Pietsch
4f4e055091
Add a search button to the control panel tiddler fields tab (#8157)
* add a search button to the control panel tiddler fields tab

* minor update

* use v5.3.x syntax

* use tf. prefix for the function

* make show-filter-count a global macro

* make table header translatable

* add documentation

* show-filter-count code cleanup

* remove the table-header

* remove erroneous caption field
2024-09-10 16:30:59 +01:00
Jeremy Ruston
1368cd67ca
Fix missing closing tag, and update erroneous docs (#8340) 2024-09-10 11:50:08 +01:00
Mario Pietsch
d827c57dcf
Make export macros code readable without changing any functionality (#8513) 2024-09-08 15:57:55 +01:00
Jeremy Ruston
69637640d2
Standardise whitespace in conditional shortcut syntax (#8583) 2024-09-02 16:51:15 +01:00
Leilei332
98d411c08a
Add empty message to tag picker, search dropdown and advanced search (#8558)
* Add empty message to tag picker, search dropdown and advanced search

* Add empty message for tag-picker

* Use italic font
2024-08-30 10:39:33 +01:00
Leilei332
ab2b79ef80
Let language plugins display properly (#8355)
* Fix language plugin viewtemplatebody

* Let config/ViewTemplateBodyFilters/plugin have higher priority

* Fix for file import
2024-08-19 11:50:23 +01:00
lin onetwo
77335a42b5
Fix: add cascade configs (#8470) 2024-08-02 09:45:52 +01:00
Mario Pietsch
d2302df197
Add procedure and function snippet to "stamp button" (#8445)
* Add procedure and function snippet to "stamp button"

* remove draft tiddler
2024-07-29 12:38:07 +01:00
Mario Pietsch
e80c99791e
Add tag-tiddler to tag-pill drag & drop import, add hidden setting for TagPillDragFilter (#8182)
* add tag-tiddler to tag-pill drag & drop import, add hidden setting for TagPillDragFilter

* update docs to make Be Aware clearer

* exclude the tag tiddler and update hidden docs accordingly
2024-07-28 16:36:17 +01:00
Mohammad Rahmani
82bf4480de
Add Shortcut to Open Control Panel (#8439)
This PR adds a new keyboard shortcut key for opening the $:/ControlPanel
2024-07-28 13:41:53 +01:00
Mohammad Rahmani
b4597e7b1e
Remove Redundant Filter in ViewTemplateBodyFilters (#8434)
* Remove Redundant Filter in ViewTemplateBodyFilters

This PR closes #8426

* Space between filters are added
2024-07-27 18:38:56 +01:00
Jeremy Ruston
c0f4bc3698 Preparing for v5.3.6-prerelease 2024-07-10 14:32:07 +01: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
Jeremy Ruston
05bff57b65 Prepare for v5.3.5 2024-06-27 17:18:48 +01:00
Jeremy Ruston
18152aa7c8
Testcase UI enhancements (#8292)
* Include the ExpectedResults in the displayed tabs

* Lighted testcase background

* Add testcase toolbar with export and import options

* Further styling tweaks
2024-06-26 10:23:54 +01:00
Jeremy Ruston
4ca883fd9b Revert #7821
See https://github.com/Jermolene/TiddlyWiki5/pull/7821#issuecomment-2176843674
2024-06-18 20:52:35 +01: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
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