jeremy@jermolene.com
ca95f1069f
Fixed comment parsers to match end marker correctly
...
Fixes #5396
2021-01-13 11:48:42 +00:00
Cameron Fischer
65932a9b21
Memory efficient linked list ( #5380 )
...
* Outlines of the mem efficient linked list
Need to stop for now. Found problem with $tw.utils.pushTop that I need
consultation for.
* Link list throws when given non-string vals
* Think I got rid of the last LinkList infinite loops
* LinkedList push better; fixed coding conventions
* Cleaning up LinkedList code and tests
* Ready to ship new mem efficient Linked List
* Switching to double quotes in LinkedList
2021-01-09 20:52:34 +00:00
Simon Huber
4858b24cfe
Fix #5308 - WidgetSubclassingMechanism not working with widgets that add EventListeners (or logic ?) in constructor ( #5382 )
...
* add EventListeners in the render() method instead of the constructor
* scrollable widget: add EventListeners in render() method instead of constructor +
... move logic from constructor to render()
* linkcatcher: add EventListeners in render() instead of constructor
* fieldmangler: add EventListeners in render() instead of constructor
* edit-bitmap: initialise editorOperations in render() instead of constructor
* list-widget: initialise storyviews in render() instead of constructor
* vars widget: execute Widget.call(this) in render() instead of constructor
... not shure what this should do
* Update fieldmangler.js
* Update edit-bitmap.js
* Update linkcatcher.js
* Update navigator.js
* Update scrollable.js
* Update list.js
* Update vars.js
2021-01-09 13:25:48 +00:00
Cameron Fischer
b632cea6b7
Fixed issue where [lookup[]] could emit undefined ( #5376 )
2021-01-07 18:19:50 +00:00
Cameron Fischer
e280f89ca5
Converting [links[]] to use better LinkedList ( #5369 )
2021-01-05 17:36:18 +00:00
Cameron Fischer
be70e5851d
Taking advantage of linkedLists in all operator ( #5362 )
...
* Taking advantage of linkedLists in all operator
* Test to confirm [all[]] with LinkList is the same
2021-01-04 08:38:50 +00:00
Joshua Fontany
03626bc142
always test ext in tiddler title and remove it ( #5329 )
...
* always test ext in tiddler title and remove it
* patch custom ext length vulernability
2021-01-03 11:50:14 +00:00
jeremy@jermolene.com
d25e540dd2
Add support for image/vnd.microsoft.icon content type
...
Fixes #5357
2021-01-03 10:04:52 +00:00
jeremy@jermolene.com
a9a36b641a
Filename for action-confirm widget should be 'action-confirm.js' for consistency
2020-12-22 11:50:26 +00:00
Saq Imtiaz
1e9cc2b747
Fix refresh for all attributes of droppable widget. Add disabled class ( #5280 )
2020-12-15 11:09:32 +00:00
Joshua Fontany
d50f6b406e
filesystem cleaup around hook ( #5276 )
2020-12-14 09:50:53 +00:00
jed
c1a1e272cc
Add a hook to allow modifying the the behaviour creating tiddler paths ( #5267 )
...
* Add a hook to allow modifying the the behaviour creating tiddler paths
This is needed for Bob to use the core to generate tiddler fileInfo
I don't know if this is the best way to make the hook, but it works for what I need
* update th-make-tiddler-path arguments
the value is the current path, the parameter passed in is the original unmodified path so it is available to subsequent hooks
2020-12-13 23:24:23 +00:00
Saq Imtiaz
0911d99813
URGENT: Reveal widget - fixed problem with previous patch of refresh handling ( #5260 )
...
* Fixed problem with previous patch of refresh handling
* Update reveal.js
2020-12-11 23:24:27 +00:00
Saq Imtiaz
c0dd13d446
Reveal widget should update on changed class and style attributes ( #5258 )
2020-12-11 15:36:00 +00:00
Robin Munn
f60d0ef109
reduce and :reduce handle empty input identically ( #5255 )
...
Fixes #5246 . Now the reduce operator and :reduce filter run prefix will
both return empty output when their input is empty, so that both can be
chained together with the else operator or :else prefix.
2020-12-11 10:07:52 +00:00
Cameron Fischer
6ca89304a1
Fix for LinkedLists when using bad filter prefix ( #5251 )
2020-12-10 18:25:53 +00:00
Cameron Fischer
cd5d9bd5b9
Code cleanup of Linked Lists ( #5241 )
...
* made private methods limited to module scope
* moved private methods to file bottom
* changed tests to run comperable array functions in parallel
* added comments
2020-12-09 09:46:35 +00:00
jeremy@jermolene.com
bb6d41f3dd
Macrocall widget: ensure we separately cache inline vs block parse trees
...
Fixes a bug in #5205
2020-12-07 16:05:34 +00:00
Joshua Fontany
a878d82c7a
Ignore edition filters if not running on node ( #5222 )
2020-12-07 15:59:32 +00:00
Saq Imtiaz
ce5d20b8fc
Logging widgets :Fixed issue on Firefox where logging does not work ( #5223 )
...
* Fixed issue on Firefox where logging does not work properly due to column names
* Remove second argument to utils.logTable
2020-12-07 15:53:49 +00:00
Joshua Fontany
c3e34b469c
typo ( #5221 )
2020-12-06 22:59:48 +00:00
jeremy@jermolene.com
005f7c55b6
Restore accidental commenting in 0b1a05d10
2020-12-06 10:50:59 +00:00
Jeremy Ruston
0b1a05d10d
Cache result of parsing macro calls which don't use text subsitution ( #5205 )
2020-12-06 09:43:06 +00:00
Joshua Fontany
b0f6d50b60
fix filesystem bugs ( #5213 )
2020-12-06 09:41:03 +00:00
Cameron Fischer
a857b4ab9a
use a linked list for filter runs. ( #5206 )
...
* Changed the filterrunprefixes to use LinkedList
* Testing for Linked List
* Finishing touches to LinkedList
* Minor corrections to link-list coding style
* Corrected for sneaky bug in linkedList
2020-12-06 08:54:57 +00:00
Saq Imtiaz
7fd24de372
Tests for filter prefixes ( #5209 )
2020-12-05 23:10:51 +00:00
Cameron Fischer
fbe5bb229a
Fix for filterrunprefixes using $tw.wiki ( #5202 )
...
* Fixed runprefix 'and' to use widget wiki
* Made widget arg of filterTiddlers optional again
* Switched to passing {wiki: wiki} to prefixes
2020-12-05 16:12:40 +00:00
Saq Imtiaz
9825b5b4a0
Ensure new variables are strings ( #5197 )
2020-12-04 19:02:05 +00:00
Saq Imtiaz
8799911162
Reduce operator: second optional parameter instead of suffix ( #5193 )
...
* Tweak reduce operator to use an optional second parameter instead of a suffix
* Updated docs
2020-12-04 18:31:23 +00:00
Saq Imtiaz
046746ba20
Add :reduce filter run prefix ( #5196 )
2020-12-04 18:23:50 +00:00
Robin Munn
8ffe138942
Add rawunicode suffix to (json)stringify operators ( #5191 )
...
Default with no suffix is pre-5.1.23 behavior, escaping all Unicode
characters for maximum compatibility (avoids encoding issues). New
"rawunicode" suffix allows passing through Unicode characters U+0080
and up unchanged, for cases where you know your tools are handling
encoding correctly and you want less verbose escaping.
2020-12-04 13:19:59 +00:00
Saq Imtiaz
1f5e1205ec
Extend Eventcatcher to handle multiple events ( #5185 )
...
* support multiple events
* Add variables for event type and detail. Rename types attribute to events
* Correct typo in refresh handling
2020-12-02 21:15:35 +00:00
Simon Huber
fc797f3722
Fix #5162 - tiddler opening position is incorrect, bug in navigator.js
2020-12-02 12:21:02 +00:00
Joshua Fontany
c6bb783308
Fix filesystem regression ( #5176 )
...
* $:/config/OriginalTiddlerPaths if no filters match
* fixed & docs updated
* tested with tiddlywiki.files & tw.com edition
* typos
* originalpath to options, propigate isEditableFile
* syntax cleanup
2020-12-02 09:47:51 +00:00
Saq Imtiaz
4079f72310
Fix typo in x-listops.js ( #5171 )
2020-12-01 18:14:07 +00:00
Mario Pietsch
880930da8b
Add actions parameter to range-widget + docs! ( #5158 )
...
* add actionsStart, -Stop and actions to range-widgets
* fix indent
2020-12-01 18:11:09 +00:00
jeremy@jermolene.com
6a91dbfe2f
Add support for working with negative dates
...
See discussion https://groups.google.com/g/tiddlywiki/c/aHlyaHr93Io/m/vGcDa6lxAgAJ
2020-12-01 10:39:27 +00:00
Joshua Fontany
dde4182830
Fix filesystem adaptor ( #5113 )
...
* ignore .env
testing new implementation
almost there
closer
bug, desyncing
fixed
final testing
final testing
cleanup
cleanup
* isEditableFile flow fixed
* removed `basepath` logic
* callback to delete title from $tw.boot.files
* comment fix
* have syncer delete from boot.files
* syntax
* bugfix: error on missing directory
* bugifx
* remove !draft check
* fix relative filepaths
* cleanup
* cleanup !draft
* catch undefined filepaths in deleteTiddlerFile()
* typo
* whitelist wiki dir, encodeURIComponent otherwise
* test for wikiPath, not wikiPath/tiddlers
* don't need to .normailze()
* whitelist wiki directory, move cleanup to util
* use cleanup util & fail EPERM & EACCESS gracefully
* comments
* final bugs fixed
* improved sync error
2020-11-30 22:31:48 +00:00
jeremy@jermolene.com
3406b98af6
Add "autocomplete" attribute to <$edit> and <$edit-text> widgets
2020-11-30 18:48:04 +00:00
Robin Munn
fd3e77d38f
"dedupe" and "raw" suffixes for enlist-input operator ( #5152 )
...
Includes unit tests.
2020-11-30 17:52:46 +00:00
saqimtiaz
8fc6910c03
Added string operator pad[] along with tests and docs ( #5146 )
2020-11-30 17:43:50 +00:00
Mario Pietsch
5cbe4c5317
Add radio actions, th-radio-variables hook and fix label refresh problem ( #5154 )
...
* Add actions to radio-widget, pass trhough all attributes and user parameters, fix label refresh
* invoke th-radio-hook instead of hardcoded variables
* simplify code and test it with a plugin hook
* remove hook
2020-11-30 17:28:49 +00:00
Simon Huber
eb7f59a855
Make "tc-dirty" update also on external windows ( #5129 )
...
* Update windows.js
* Update saver-handler.js
* Update saver-handler.js
2020-11-28 21:24:01 +00:00
Simon Huber
c655ec5469
Remove background-colors from framed engine ( #5131 )
2020-11-28 14:08:16 +00:00
Simon Huber
8005c91e79
Correctly add EventListener 'click' for popup-handling in new windows ( #5127 )
2020-11-28 07:26:47 +00:00
saqimtiaz
2175be27b0
Ensure that we always fetch the latest sha bypassing cache. ( #5126 )
...
Ensure that we always fetch the latest sha bypassing cache.
2020-11-27 21:37:11 +00:00
jeremy@jermolene.com
9637a29e55
Rename widget.executeStartupTiddlers() to invokeActionsByTag()
...
This method was introduced earlier in v5.1.23 in 5cc1600072f5aa50c8ff5f5d2e748d81a7067420
It is not in fact restricted to startup tiddlers.
2020-11-26 12:41:24 +00:00
jeremy@jermolene.com
2267e31546
Fix eventcatcher to ensure variable values are strings
...
I was getting some inconsistencies with filter operators that expect strings.
2020-11-25 15:54:28 +00:00
jeremy@jermolene.com
64ac29adca
Fix typo preventing filter run prefix modules from being cached
...
This had a significant impact on performance.
2020-11-25 13:58:54 +00:00
jeremy@jermolene.com
94ffb50e04
Fix dark mode event handling
...
Previous code worked but this matches the spec, and works on iOS
2020-11-25 12:33:39 +00:00