jeremy@jermolene.com
0b71f25f74
Revert "Update sync methods ( #5467 )"
...
This reverts commit 8d7930f660
.
See the discussion at https://github.com/Jermolene/TiddlyWiki5/pull/5467#issuecomment-873590578https://github.com/Jermolene/TiddlyWiki5/pull/5467#issuecomment-873590578
2021-07-05 19:26:20 +01:00
jeremy@jermolene.com
56068d8215
tm-navigate: add separate properties to access bounds of client rectangle
...
Makes it easier to use the client rectangle information within an action handler
2021-07-05 09:52:17 +01:00
jeremy@jermolene.com
3094e06236
Add support for full refreshing of action widgets
...
Fixes #5791
2021-07-02 14:33:38 +01:00
jeremy@jermolene.com
f87b3bfcdb
Extend messagecatcher widget to allow setting multiple handlers at once
2021-06-30 16:17:59 +01:00
jeremy@jermolene.com
a0a0df9655
Update action-navigate widget with metakeys to match link widget
2021-06-30 16:11:21 +01:00
jeremy@jermolene.com
31c1584b9a
Extend $tw.utils.removeArrayEntries to return the array
2021-06-30 16:10:52 +01:00
Saq Imtiaz
041c3e817c
Support for macro params in filter operands ( #5836 )
...
* Exploratory pass at adding support for macro params in filter operands
* whitspace correction
* rename varInfo to varTree for disambiguation
* Refactored parseMacroInvocation to be re-usable, performance improvements for variables with no params and tests
* Revised regular expression and removed spurious white space changes
* Revised regular expression and removed spurious white space changes
* More whitespace cleanup and added more tests for edge cases
* Added test for macro params with square brackets
2021-06-29 22:21:39 +01:00
Saq Imtiaz
a6990128f1
Fixed bug introduced into transclusions for blank fields in #5736 ( #5835 )
2021-06-29 12:07:14 +01:00
jeremy@jermolene.com
338b7c92a2
Ensure tiddlers with fieldnames containing colons don't get saved in .tid file format
...
Prompted by discussion over at https://github.com/Jermolene/TiddlyWiki5/pull/5708#issuecomment-862399985
2021-06-27 21:27:57 +01:00
Mario Pietsch
a409536ad0
Prevent scrolling of the page when modals are displayed ( #5816 )
...
* prevent scroll-chaining in modals
* make body overflow hidden to prevent background scrolling
2021-06-27 16:24:06 +01:00
jeremy@jermolene.com
83ee363cb4
Add charcode operator to make it easier to generate strings containing control characters
...
Avoids some confusing hacks. @saqimtiaz I'm guessing you might have already done something like this?
2021-06-22 21:52:00 +01:00
Adam Sherwood
63fa0c4fa4
Hook for closing tiddlers ( #3797 )
2021-06-22 19:51:35 +01:00
Saq Imtiaz
021e9b8c4d
:map filter run prefix with docs and tests ( #5813 )
2021-06-21 20:59:58 +01:00
Mario Pietsch
afa653a7aa
Improve import cancel warning ( #5812 )
2021-06-21 20:58:58 +01:00
jeremy@jermolene.com
2da7ae0b73
Action-createtiddler: Ensure child widgets are refreshed before invocation
...
Fixes #5791
2021-06-14 18:13:51 +01:00
Mario Pietsch
9c0d6a46cc
Add "commentpragma" html style rule ( #5726 )
...
* html-comment, that can be used in the pragma area
* add commentpragma test
* fix typo
* fix typo and change comments ab bit
* combine html-comment and pragma-comment and add some docs, how to use it
* Make docs simpler by removing caching info
* change h2 wording
2021-06-14 17:39:56 +01:00
Saq Imtiaz
8f9e8c1dee
Keyboard widget: provide variable for shortcut descriptor to actions. ( #5782 )
2021-06-14 12:03:59 +01:00
Simon Huber
f2e26927c1
Add test for event.event.target being undefined in the tm-focus-selector listener ( #5771 )
2021-06-14 10:59:31 +01:00
Simon Huber
6dd1887f0b
Use event.event.view.confirm for confirmation messages in navigator.js and action-confirm.js ( #5776 )
2021-06-11 16:56:06 +01:00
Simon Huber
219beb13cc
Add test to storyviews if targetElement is null ( #5767 )
...
* Update classic.js
* Update pop.js
* Update zoomin.js
* simplify test in classic.js
* simplify test in pop.js
* simplify test in zoomin.js
2021-06-09 10:18:15 +01:00
Simon Huber
c18b7527a7
Fix #5760 - tm-focus-selector doesn't work in new windows ( #5766 )
...
* Pass the original event to invokeActionString
* Update rootwidget.js
2021-06-06 12:42:28 +01:00
Simon Huber
2f1806ab6a
Keyboard widget: don't refresh when class changes ( #5758 )
2021-06-06 11:03:08 +01:00
Simon Huber
afa4ea3d03
Make navigation in new windows work for storyviews ( #5759 )
2021-06-06 10:47:19 +01:00
Simon Huber
2b911ac11f
Make the insert- and remove-animations of storyviews work in new windows ( #5755 )
...
* Make classic storyview work in new windows, too
* Make pop storyview work in new windows, too
* Make zoomin storyview insert and remove animation work in new windows, too
2021-06-04 16:59:45 +01:00
jeremy@jermolene.com
056e6541a1
Revert 582b156d5f
: Refresh non-action widgets before invocation
2021-06-02 21:47:28 +01:00
jeremy@jermolene.com
753bf8fe62
Revert "Revert "Transclude widget: refresh selectively when needed ( #5736 )""
...
This reverts commit 4f9dd50382
.
2021-06-02 21:45:06 +01:00
jeremy@jermolene.com
4f9dd50382
Revert "Transclude widget: refresh selectively when needed ( #5736 )"
...
This reverts commit 2e695801b1
.
2021-06-02 19:14:05 +01:00
Saq Imtiaz
2e695801b1
Transclude widget: refresh selectively when needed ( #5736 )
...
* Transclude widget: only refresh when transcluded text reference has changed, includes tests
* Refactor wiki.parseTextReference so it is re-usable for getting the parser info
* Re-arrange methods in wiki.js to improve diff readability
2021-06-02 13:58:30 +01:00
jeremy@jermolene.com
55c522ab8f
Improve comments
...
As per @pmario's comment at 582b156d5f (commitcomment-51566608)
2021-06-01 11:49:05 +01:00
jeremy@jermolene.com
9faaa31299
Extend action-createtiddler to make new title available as a variable
...
I'm not sure if the docs are clear, but this is quite a big deal, and along with 582b156d5f
makes working with action widgets a lot easier.
2021-06-01 09:41:14 +01:00
jeremy@jermolene.com
582b156d5f
Refresh non-action widgets before invoking them
...
Fixes #5744
2021-06-01 09:28:04 +01:00
Joe Bordes
82ec63e711
style(App) eliminate whitespace at the end of code lines ( #5735 )
2021-05-30 19:20:17 +01:00
Joe Bordes
51fd02d9b6
i18n(en-GB) apply grammarly recommendations found while translating es-ES ( #5733 )
2021-05-30 18:51:44 +01:00
Joe Bordes
1a6d3e686b
i18n(EditorPreview) translate difference view caption ( #5732 )
2021-05-30 18:49:57 +01:00
Simon Huber
3a740b23bb
Add tc-small-gap-right to tag-pills in tags editTemplate ( #5727 )
2021-05-27 14:07:50 +01:00
jeremy@jermolene.com
082aeb92ac
Revert "extend lookup op flexibility with 2 parameters ( #5315 )"
...
This reverts commit 81b5fe944a
.
See https://github.com/Jermolene/TiddlyWiki5/pull/5315#issuecomment-848725198 for explanation
2021-05-26 13:25:19 +01:00
Simon Huber
eaf1da66b6
Add color-scheme: dark/light to the root element ... ( #5720 )
2021-05-25 22:22:21 +01:00
Mario Pietsch
c6ed4aa84e
allow us to import formerly blocked system tiddlers ( #5479 )
2021-05-25 22:21:57 +01:00
Mario Pietsch
123666c240
Add th-before-importing hook mechanism ( #5464 )
2021-05-25 22:19:58 +01:00
Mario Pietsch
68930ceb1b
Extend keyboard widget ( #5648 )
2021-05-25 22:18:37 +01:00
Joshua Fontany
8d7930f660
Update sync methods ( #5467 )
2021-05-24 21:16:23 +01:00
Saq Imtiaz
7a41283c6b
Format:titlelist operator ( #5665 )
2021-05-24 19:28:43 +01:00
BlueGreenMagick
c30ce544d1
Fix ViewToolbar items inconsistent spacing ( #5473 )
2021-05-24 19:24:37 +01:00
Mario Pietsch
2ab0474e14
Fix configuration list of HTML5 block elements ( #5469 )
2021-05-23 17:50:27 +01:00
Cameron Fischer
61714cbda3
Fixed super minor issue with import pragma ( #5521 )
2021-05-23 17:39:06 +01:00
jeremy@jermolene.com
8fbf52e419
Don't issue plugin reload warning for plugin-type: import
...
Fixes #5719
2021-05-23 11:19:46 +01:00
jeremy@jermolene.com
485779f5b2
Fix crash when accessing variables in filters that don't have a widget context
...
This should catch a large number of crashes, including:
Fixes #5716
2021-05-22 20:00:24 +01:00
Saq Imtiaz
3fc7895af2
CurrentTiddler variable consistency in subfilters and prefixes ( #5691 )
...
* Make currentTiddler variable consistent in subfilters and filter run prefixes
* Updated filterun prefix and subfilter operators to use ..currentTiddler instead of outerCurrentTiddler
2021-05-22 19:43:37 +01:00
Saq Imtiaz
10b20657cc
Deserializers[] filter operator ( #5673 )
2021-05-22 10:50:11 +01:00
Saq Imtiaz
0003d70132
New text operation insert-text ( #5707 )
2021-05-21 10:35:40 +01:00
Joshua Fontany
81b5fe944a
extend lookup op flexibility with 2 parameters ( #5315 )
2021-05-21 10:11:23 +01:00
Saq Imtiaz
270ead4701
Eventcatcher: Fixed FF and IE bugs, added stopPropagation attribute ( #5711 )
2021-05-21 09:43:20 +01:00
Nicolas Petton
1ddc3ab037
Add throttling for changed tiddlers prefixed with $:/temp/volatile/ ( #5458 )
2021-05-21 08:51:15 +01:00
Saq Imtiaz
05d38054c8
Drag and drop images in the editor to import and insert ( #5699 )
...
* Merge
* Clean up
* More clean up
* Ensure image import works when type is not set, clean up post import actions
* Removed spurious new line
* For non image files insert a tiddler link
* Added documentation for new settings and features
2021-05-19 21:52:43 +01:00
jeremy@jermolene.com
dbd3f835bf
Fix crash when sorting by non-string fields
...
tags, list, created, modified are not stored as strings by default.
Fixes #5701
2021-05-19 14:10:39 +01:00
Saq Imtiaz
b267a71f2d
Dropzone: persistent dragover state fix ( #5688 )
2021-05-16 14:01:46 +01:00
FlashSystems
f4d7b2c7f7
Network performance optimizations for node.js ( #5436 )
2021-05-08 16:05:39 +01:00
ualich
e699cf1fe8
Display tiddler link in 'Target tiddler already exists' warning ( #5672 )
2021-05-06 12:25:29 +01:00
Mario Pietsch
cf56a17f28
allow unusedtitle macro to use the prefix parameter and fix wiki.generateNewTitle() ( #5361 )
2021-05-02 19:26:50 +01:00
Saq Imtiaz
3f98686153
Extend <-popup> to create floating popups that must be manually cleared ( #5655 )
2021-05-02 10:20:39 +01:00
Saq Imtiaz
cb44cc0f2b
Add :sort filter run prefix ( #5653 )
...
* Add :sort filter run prefix, docs and tests. Also extended .utils.makeCompareFunction with a flag for caseSensitivity.
* Documentation updates
* Move case sensitivity handling entirely to utils method so it is reusable
2021-05-01 13:58:40 +01:00
Saq Imtiaz
44df6fe52f
Fixed issue with widget not being available to filter operator, added test ( #5640 )
2021-05-01 10:00:32 +01:00
Saq Imtiaz
07caa16e87
Extend dropzone to also use the specified deserializer for strings either dropped or pasted on to the dropzone. ( #5601 )
2021-04-27 10:15:27 +01:00
Simon Baird
30d23196b6
Add 401 and 403 error messages for the put saver ( #5638 )
2021-04-27 10:14:04 +01:00
Jeremy Ruston
bf773eb39a
Add "average" filter operator for arithmetic mean ( #5612 )
2021-04-27 10:09:13 +01:00
jeremy@jermolene.com
4a99e0cc7d
Change "index" attribute of list widget to "counter", and use 1-based counting
...
Extends #5611
2021-04-26 14:41:26 +01:00
Saq Imtiaz
e2379b599e
Fixes Action-listops bug ( #5644 )
2021-04-26 11:29:16 +01:00
Saq Imtiaz
8203ee06c3
Allow suffixes for filter runs ( #5252 )
...
* Make filter run prefixes extensible
* Make filter run prefixes extensible
* Support rich suffixes for filter runs
* merged conflicts
* Pass suffixes to filterrunprefix
2021-04-25 19:37:47 +01:00
Mario Pietsch
ac15334bb0
Add support for disabled editor toolbar buttons & docs ( #5294 )
...
* add dynamic toolbar buttons + HowTo
* remove some whitespace.
* move howto and improve shortcut logic
* move howto
* add whitespace so it can be removed in an other PR.
2021-04-25 16:17:32 +01:00
Mario Pietsch
8849ed0d46
Fix refreshing of select widget when attributes change ( #5635 )
2021-04-25 16:05:02 +01:00
Simon Baird
5e236d35a5
Revise the TiddlySpot Saver settings form ( #5628 )
...
Mention TiddlyHost and link to some documentation on the
configuration options.
Also remove the TiddlySpot control panel and backups links since
they no longer work.
Notes:
* The last three fields are no use for TiddlySpot or TiddlyHost, but
it's possible that someone, somewhere is still using the old
store.php from Bidix's UploadPlugin, and would miss them if they
were removed.
I'd be happy to remove them in a future PR, if it's decided they
can be retired.
(If they were removed, I could delete the last row here:)
https://github.com/simonbaird/tiddlyhost/wiki/TiddlySpot-Saver-configuration-for-Tiddlyhost-and-Tiddlyspot
* It's still called "TiddlySpot Saver" which I think is fine for
now. TiddlyHost might use a different saving method in future
so keeping the existing name seems best.
2021-04-24 08:54:44 +01:00
Jeremy Ruston
85ba7ac041
Extend list widget with "index" attribute ( #5611 )
...
* Extend list widget with "index" attribute
* Fix refreshing bug
* Clarify performance note
2021-04-20 09:15:11 +01:00
jeremy@jermolene.com
c325380231
Run the SVG optimiser on the new plus/minus icons
2021-04-16 09:25:07 +01:00
jeremy@jermolene.com
a6a2535c3a
Add plus/minus icons
2021-04-16 09:21:47 +01:00
jeremy@jermolene.com
89546b3357
Add a hidden setting to control HTML sandboxing
2021-04-11 10:10:16 +01:00
Saq Imtiaz
eced60853f
Extend Dropzone widget ( #5597 )
...
* Extend dropzone widget with optional actions invoked after tm-import-tiddlers message has been sent. Allows triggering an alternative UX for the import
* Allow restricting a dropzone to specific mimeTypes via mimeTypes and mimeTypesPrefix attributes
* Use a mimeTypesFilter instead of the mimeTypes and mimeTypesPrefix attributes
* Updated refresh handling
* Syntax cleanup
* Replace references to mimeType with content type for consistency with existing documentation. Update documentation for DropZone widget
2021-04-10 09:48:50 +01:00
jeremy@jermolene.com
b9647b2c48
Ensure Fieldmangler widget doesn't propogate events that it traps
...
Fixes #5593
2021-04-08 16:56:36 +01:00
jeremy@jermolene.com
28521d82f3
Revert "Extend transclude widget to optionally set variables"
...
Actually a partial reversion, because we're keeping the minor refactoring of makeChildWidget() in widget.js
This reverts commit 80ee5adb14
.
2021-04-02 09:47:38 +01:00
Cameron Fischer
ef6307a64e
Do not escape double quotes in tiddler DIVs to save space ( #5383 )
...
* double quotes are no longer escaped in html bodies
* changed tiddlyweb's html-div-tiddler; documentation
French version still needs a translation though
2021-04-02 09:32:32 +01:00
cdruan
3b35411aba
Change css-escape-polyfill to a tw uitility method ( #5552 )
...
* Replace css-escape-polyfill.js with escapecss.js utility module
* Add $tw.utils.escapeCSS() method and invoke that function within the
escapecss operator.
* Add test cases for the "escapecss" filter operator
* Fix $tw.boot.doesTaskMatchPlatform() so it works as expected if
a module's export.platforms contains more than one values
* Add missed files to the last commit
2021-04-02 09:25:01 +01:00
jeremy@jermolene.com
d6ea369f5e
Edit text widgets should use default text for missing fields
2021-03-31 14:15:01 +01:00
Saq Imtiaz
860568136f
ViewSwitcher : use Button widget instead of LinkWidget ( #5573 )
2021-03-29 09:02:47 +01:00
Mario Pietsch
85835ebe42
fix 5424 add button is in new line ( #5425 )
2021-03-26 09:32:12 +00:00
Joshua Fontany
3d608892bd
targeted fix for 5366 ( #5416 )
2021-03-26 08:42:31 +00:00
Joshua Fontany
5be647b610
Fix 4461 ( #5522 )
2021-03-26 08:41:41 +00:00
Joshua Fontany
a2e7cc51b5
Fix 5483 & 3483 ( #5504 )
2021-03-26 08:39:32 +00:00
jeremy@jermolene.com
226df2ad7d
Fix exporting of tiddlers that begin and end with double quotes
2021-03-23 09:27:16 +00:00
jeremy@jermolene.com
7f202f35b4
Minor refactoring for clarity
...
See 9af68297cd (r48540814)
2021-03-22 09:50:54 +00:00
jeremy@jermolene.com
9c31ff1fb1
Use window.setTimeout(fn,0) for $tw.utils.nextTick in the browser
...
It seems that best practice has now moved to using zero:
https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout
2021-03-22 09:08:32 +00:00
jeremy@jermolene.com
8aad7b00ab
Render command: fix bug with multiple variable usage
2021-03-19 18:35:10 +00:00
jeremy@jermolene.com
a38dc17300
Extend render command to allow multiple variables to be passed
2021-03-19 17:09:53 +00:00
jeremy@jermolene.com
9af68297cd
Fix transclusion refreshing
...
Missed off 80ee5adb14
2021-03-19 16:14:15 +00:00
jeremy@jermolene.com
80ee5adb14
Extend transclude widget to optionally set variables
...
Partially fixes #5199
2021-03-19 15:37:59 +00:00
jeremy@jermolene.com
a6958bfe85
Fix css-escape-polyfill.js on old iOS
...
Fixes #5546
2021-03-14 10:34:41 +00:00
jeremy@jermolene.com
7b1a0c6e6a
Fix ES5 issue
...
Fixes #5545
2021-03-14 10:27:05 +00:00
jeremy@jermolene.com
e157d16b72
Add data-tag-title attribute to tag pills
...
Fixes #5543
2021-03-13 13:19:12 +00:00
Mario Pietsch
05acf3dce4
fix wiki.search options invert init problem ( #5542 )
2021-03-12 21:12:06 +00:00
jeremy@jermolene.com
9eda02868f
Introduce messagecatcher widget
2021-03-09 18:07:07 +00:00
jeremy@jermolene.com
5e4430dbf9
Fix Radio widget to refresh selectively, and use the checked attribute properly
2021-03-07 15:49:07 +00:00
jeremy@jermolene.com
d56e8764a1
Button widget: apply aria-expanded attribute when controlling a popup
...
Addresses (1) and (5) from #5519
2021-03-01 17:59:29 +00:00