jeremy@jermolene.com
d59eec74a8
Merge branch 'master' into parameterised-transclusions
2022-05-25 15:23:20 +01:00
jeremy@jermolene.com
df7416d16b
Dynannotate: Improve selection tracker
...
These improvements rely on the new JSON operators to be useful. Those improvements were originally in #6522 but now there's an updated version in #6666 . Managing things is simpler if I merge these changes now
2022-05-25 15:23:11 +01:00
jeremy@jermolene.com
6cc99fcbe3
WIP
2022-05-25 15:15:17 +01:00
Robin Munn
a226975b3e
Fix UTC format date string test properly this time ( #6709 )
...
Hours could also end up as a single-digit number, just like date, if
timezone offset is low enough that it wraps around midnight.
2022-05-24 10:02:45 +01:00
Robin Munn
2a62da1498
Fix unit test for formatDateString UTC format ( #6708 )
...
Now the test should run correctly in any timezone
2022-05-24 09:47:02 +01:00
jeremy@jermolene.com
cbce4ebb7b
Allow custom functions to be invoked as attributes
2022-05-23 20:18:54 +01:00
jeremy@jermolene.com
9e8d05f699
Require period prefix for custom filter operator functions
...
To ensure that custom filter operators cannot clash with future core operators.
2022-05-23 16:40:21 +01:00
jeremy@jermolene.com
3e09eacd20
Missed off 22e7ec2381
2022-05-23 16:32:19 +01:00
jeremy@jermolene.com
22e7ec2381
Procedures and widgets inherit whitespace trim setting from their definition
2022-05-23 15:30:33 +01:00
jeremy@jermolene.com
170c4b1799
Merge branch 'master' into parameterised-transclusions
2022-05-23 11:28:12 +01:00
Cameron Fischer
696c5c9c7a
Compiled filters are cached ( #6402 )
...
* Compiled filters are cached
* Adjusting comments, and filtercache cap
2022-05-23 11:26:56 +01:00
jeremy@jermolene.com
d11893752c
Experimental update of the parse-tree preview visualisation
...
An experiment to try out using the new JSON operators for rendering the JSON parse tree that we get back from the wikify widget.
As usual with these experiments, this one is going to require quite a lot more work to finish up:
* The formatting is via direct styles rather than classes
* The formatting for attributes and properties is not yet completed
* The same thing needs to also be done to the widget tree preview
2022-05-23 10:24:51 +01:00
jeremy@jermolene.com
c808764254
Merge branch 'tiddlywiki-com'
2022-05-23 09:14:54 +01:00
jeremy@jermolene.com
a9b0c5d7ff
Cherry-pick JSON docs improvements from #6522
2022-05-23 09:14:02 +01:00
jeremy@jermolene.com
9e3c233686
Add some warnings about the dangers of title lists
2022-05-23 08:56:10 +01:00
jeremy@jermolene.com
ec1ec8ccd8
Fix invocation of JS macros
2022-05-21 16:31:34 +01:00
jeremy@jermolene.com
e50101322f
Require $$ for custom widgets, and that overridden JS widgets must exist
...
See https://github.com/Jermolene/TiddlyWiki5/pull/6666#issuecomment-1133637763
2022-05-21 15:47:19 +01:00
jeremy@jermolene.com
8fabcabebb
Browserstorage plugin: don't crash if local storage not available
...
Fix #6701
2022-05-21 15:36:23 +01:00
jeremy@jermolene.com
96cb66a27e
New example for tm-new-tiddler
...
Fixes #6690
2022-05-21 14:38:05 +01:00
jeremy@jermolene.com
6eb4fbeead
Fix double palette entries
...
Fixes #6700
Thanks to Eric Shulman
2022-05-20 17:13:12 +01:00
Max Schillinger
7cbe1e1d83
Fix toggling of the numbered list prefix in Markdown tiddlers ( #6697 )
...
* Fix toggling of the numbered list prefix in Markdown tiddlers
* Define startsWith in utils.js because it's not available in ECMAScript5.1
2022-05-17 22:31:50 +02:00
Max Schillinger
5ea315fb98
Allow toggling wrap-lines text operations (like mono block) ( #6698 )
2022-05-17 22:16:54 +02:00
Max Schillinger
855b6719d6
Markdown: Add separate link and linkify buttons ( #6693 )
...
* Markdown: Add separate link and linkify buttons
* Add Markdown linkify icon (created by Jeremy); cleanup
2022-05-15 18:47:21 +02:00
Max Schillinger
91cfb217d8
Markdown: Add shortcut for new Markdown tiddler ( #6696 )
...
ctrl-M on mac, alt-M on other platforms
2022-05-15 18:46:32 +02:00
jeremy@jermolene.com
1a377a485b
Merge branch 'tiddlywiki-com'
2022-05-14 15:55:42 +01:00
lin onetwo
71ee271eac
docs: mark out-of-box standalone apps ( #6677 )
...
docs: delete tiddlyie and ie tiddler
docs: delete [[Internet Explorer]] tag
Revert "docs: delete [[Internet Explorer]] tag"
This reverts commit a796fc1fff3748f73a1919c5f2fff6d50990ae38.
Revert "docs: delete tiddlyie and ie tiddler"
This reverts commit 38067c7369c92f1b22ffd98090bdabdd96fa1fb3.
2022-05-14 14:04:36 +01:00
lin onetwo
95e0fac655
Expose isMobile to browser info ( #6675 )
...
* feat: expose isMobile to info
* feat: allow access browser info from $tw.browser
* fix: adapt typo
* refactor: only export selected properties
Jermolene 5 hours ago
The trouble is that the properties of bowser.browser are not under our direct control, and so subsequent updates to Bowser might overwrite important properties of our own. I'd rather explicitly import the properties that we choose to support.
* refactor: put things into `is`
2022-05-14 14:02:52 +01:00
Mario Pietsch
084a5cb0f0
Fix headings in wikitext example code ( #6692 )
2022-05-14 13:31:36 +01:00
FlashSystems
e9405ac810
Fix for Bug #6618 ( #6628 )
...
* Fix for Bug #6618
This Commit fixes Bug #6618 . It is a little bit more complicated than
using one tiddler to store the new value for a field. Because the
following can happen:
* The user types "not-a-date" into the field value of a simple text field.
* The user now selects a field name that uses a HTML5 date editor. The
Editor will show no date because the value cannot be parsed.
* The user saves the tiddler by clicking the checkmark.
Now the date-field contains the value "not-a-date" but the user was not
aware that this will be added. The edit control showed no date (because
the value was invalid) and the user assumed the field was empty and
won't be added to the tiddler.
To prevent this, every kind of field editor gets its own storage tiddler.
Its name is derived from the SHA256-hash of the name of the tiddler that
is returned by the Field Editor Cascade. That way every editor in the
cascade is only seeing its input. As long as the default setup (with one
default editor) is used, everything works like in 5.2.1.
This commit also fixes the bug that the after adding a field the
field-type input box was not focused again.
* Update Documentation for Field Editor Cascade
The fix for bug #6618 makes the handling of the tiddler backing the edit
operation much more complicated. See previous commit "Fix for Bug #6618 "
for more details.
2022-05-14 13:30:04 +01:00
jeremy@jermolene.com
bbd9e2f243
Rename <$value> widget to <$fill>
2022-05-13 09:18:25 +01:00
jeremy@jermolene.com
36cf50aa96
Use \widget for custom widget definitions, and remove need for angle brackets
...
Need to do some refactoring of all those isFunctionDefinition/isProcedureDefinition/isWidgetDefinition flags into a single property
2022-05-13 08:49:53 +01:00
Max Schillinger
775c7f0074
Markdown: Add link(ify) button and enable shortcut (ctrl-L) ( #6691 )
2022-05-12 22:19:26 +01:00
jeremy@jermolene.com
904e30a0e2
Detect recursion by tracking widget tree depth
...
The old recursion marker approach was very slow, and didn't catch test cases like editions/test/tiddlers/tests/data/transclude/Recursion.tid
2022-05-12 16:26:33 +01:00
Max Schillinger
34f9cd952c
Markdown: Add code block button + enable shortcut ( #6689 )
...
* Markdown: Add code block button and enable shortcut (ctrl-shift-M)
* Support alternative type "text/markdown"
2022-05-12 09:44:02 +01:00
Max Schillinger
e37f36f387
Signing the CLA ( #6688 )
2022-05-12 09:42:38 +01:00
jeremy@jermolene.com
413dc86d05
Rename internal "unknown" filter operator so that users cannot invoke it
2022-05-11 14:52:25 +01:00
jeremy@jermolene.com
774459fa73
Transclude: replace paramNames/paramValues with more robust JSON payload
...
More details at https://github.com/Jermolene/TiddlyWiki5/pull/6666#issuecomment-1123719153
2022-05-11 13:51:11 +01:00
jeremy@jermolene.com
a827290332
Fix stringifying/parsing string arrays containing newlines
...
A very old bug.
Fixes the ActionListOpsWidget problem @btheado
2022-05-10 10:22:35 +01:00
jeremy@jermolene.com
0b11b499c2
Better backwards compatibility for legacy recursion marker
...
Fixes the problem with tag dropdowns @btheado
2022-05-10 10:21:56 +01:00
jeremy@jermolene.com
eef7d180a5
Remove obsolete code
...
Left over after refactoring
2022-05-10 10:21:19 +01:00
jeremy@jermolene.com
8e4c13382b
Fix visible transclusion example
2022-05-10 08:10:32 +01:00
lin onetwo
7a7d3571cc
Create issue template config.yml ( #6685 )
...
* Create config.yml
* chore: make bug report form
* Update bug_report.yml
* Update bug_report.yml
* Update bug_report.yml
* Update bug_report.yml
* Update bug_report.yml
2022-05-10 08:09:38 +01:00
jeremy@jermolene.com
e092113f9f
Switch to using \procedure to define new-style macros, and \function for custom filter operator functions
...
I now need to update the OP!
2022-05-09 18:00:09 +01:00
Mario Pietsch
bc8c011eb3
Fix title indentation problem ( #6679 )
...
* fix-6678-title-indent
* optimize code as suggested by Saq
2022-05-09 15:49:42 +01:00
Simon Huber
b4deb7cc45
Add tv-widgetnode-width and tv-widgetnode-height ( #6681 )
...
* Add tv-widgetnode-width and tv-widgetnode-height to collectDOMVariables
* Add docs
* update docs
* Update modified field
2022-05-09 10:42:23 +01:00
jeremy@jermolene.com
64448ae774
Make the macrocall widget delegate to the transclude widget
2022-05-08 20:48:33 +01:00
jeremy@jermolene.com
4f2f689ab9
Clarify that the recent changes allow functions to be invoked with the double bracket syntax
...
In other words, the transclude widget distinguishes between functions and macros and handles the parameters appropriately
2022-05-08 16:05:32 +01:00
jeremy@jermolene.com
e9630328f1
Extend transclude widget to work with old-style macros and use it for the macrocall shortcut syntax
2022-05-08 15:59:20 +01:00
jeremy@jermolene.com
9be05f6f38
Use consistent parse tree node property for params
2022-05-07 13:22:53 +01:00
jeremy@jermolene.com
2fe2d20ddf
Genesis widget should pass raw attributes onto child widget...
...
...so that it can more efficiently handle refreshing itself.
2022-05-07 11:41:28 +01:00