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 5cc1600072
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
saqimtiaz
ce27492b96
Refactor updating of classes for button widgets to avoid potential edge case failures ( #5115 )
2020-11-24 21:19:20 +00:00
jeremy@jermolene.com
c854e518fa
Add support for $:/info/darkmode (and for dynamic info tiddlers)
2020-11-24 19:01:33 +00:00
jeremy@jermolene.com
7327a3fb92
Fixed: Shadow tiddlers don't refresh when their plugin is deleted/modified
2020-11-24 18:57:39 +00:00
saqimtiaz
aa6f152d35
Add Switcher modal ( #5089 )
...
* Alternative switcher using a parameter via tm-show-switcher
* Add CSS class for centered modals
* Changed keyboardshortcut and removed transition CSS
* Resolved wording issues
2020-11-23 17:06:24 +00:00
saqimtiaz
3c195b05cb
Button and Droppable widgets: improve refresh handling for classes ( #5091 )
...
* Button and Droppable widgets: improve refesh handling for classes
* Added comment regarding handling of class attribute
2020-11-22 21:13:24 +00:00
saqimtiaz
fa63ac5d1e
Add: Eventcatcher widget ( #5086 )
...
* Jeremy's original version of the event widget
* Renamed to eventcatcher, added modifier key support and mouse button support as variables
* Allow updating classname without re-rendering entire widget
* Handle tag attribute in refresh handler
* Improve handling for mouse button variable
* Fix typo in refresh handler
* Added variables for position of selected node and position of event relative to selected node and catcher node
2020-11-22 20:47:12 +00:00
saqimtiaz
51ca14861e
Fixed bug with default value in lookup operator ( #5088 )
...
* Fixed bug with default value in lookup operator
* Fixed test for lookup operator with default
2020-11-22 20:43:36 +00:00
saqimtiaz
d2f87d6200
Reveal widget allow re-positioning ( #5087 )
...
* Jeremy's original version of the event widget
* Renamed to eventcatcher, added modifier key support and mouse button support as variables
* Reveal widget: update popup position when state tiddler updates
2020-11-21 17:19:52 +00:00
saqimtiaz
4f07539164
Cycle operator improvements plus docs ( #5069 )
...
* Tweak cycle operator to support step size parameter and add docs for toggle and cycle
* Mention that title list should have no duplicates
2020-11-20 18:37:23 +00:00
saqimtiaz
483fd941f5
Extend action-log and subclass it as log widget ( #5078 )
...
* Extended action-log and subclassed it as log widget
* Do not rename LogWidget class
* Removed unneeded variable declaration
2020-11-20 14:08:18 +00:00
saqimtiaz
89541edcff
Added mathematics filter operators power and log ( #5080 )
2020-11-20 14:00:20 +00:00
saqimtiaz
e2bea854b6
System tiddler syncing ( #4987 )
...
* First pass at a fix for system tiddler sync issues
* Add new filter syncFromServer
* Undo previous attempt at a fix
* Added a flag to control sync of system tiddlers from server
2020-11-19 15:59:02 +00:00
jeremy@jermolene.com
d181b96518
Wikitext parser: Refactor a poorly written utility function
2020-11-18 12:05:06 +00:00