Jeremy Ruston
2f8053265e
Performance: Add average filter execution time
2019-05-20 12:50:10 +01:00
Jeremy Ruston
ff85fcfe93
Fix typo from e8d1fbba6
2019-05-10 16:03:24 +01:00
Jeremy Ruston
e8d1fbba6c
Performance Instrumentation: Track execution times for individual filters
...
Fixes #3941
2019-05-10 15:56:01 +01:00
Jeremy Ruston
7869546fef
Speed up reveal widget
...
It turns out that the `localeCompare` function used by `compareStateText()` is very, very slow. Replacing it with a straightforward equality test makes one of my test rigs be 10x faster...
Note that this PR reverts the behaviour of match/nomatch to that before #3157 . That change was not backwards compatible in that the switch to localeCompare meant that é === e, now it doesn't again.
2019-05-10 08:47:00 +01:00
Jeremy Ruston
5ae14a16ec
Classic Storyview: Optimise for animation duration of zero (part 2)
...
See fddc5d4ee
2019-05-02 21:21:22 +01:00
Jeremy Ruston
fddc5d4ee6
Classic Storyview: Optimise for animation duration of zero (part 1)
...
Approximtely 50% speed improvement in tests opening a storyview with 8,000 entries.
(I've deferred the indentation adjustments until the next commit so that the git diffs are clearer)
2019-05-02 21:20:24 +01:00
Jeremy Ruston
091864ddaf
Browser messaging: suppress logging
...
Commented out because it can be useful for debugging.
2019-05-02 20:21:58 +01:00
Jermolene
b7e0930122
savewikifolder: Fix custom plugin fields
...
We need to carry across all plugin fields into the tiddlywiki.info file
2019-04-16 11:59:34 +01:00
Jermolene
0a5c826816
GitHub Saver: Fix ServerURL name
2019-04-16 10:15:58 +01:00
Jermolene
25c0ebb523
GitHub Saver: Make server URL configurable
2019-04-15 21:30:59 +01:00
Jermolene
b32a5aa9af
GitHub saver: Fix problem with saving to a non-existent directory
2019-04-15 21:08:04 +01:00
Jermolene
232eba2f7d
Http utilities: add xhr object to callback
2019-04-15 21:07:23 +01:00
Jermolene
0513837228
Ensure tiddler.getFieldStringBlock uses a deterministic ordering
...
Makes diffs easier to track
2019-04-14 14:23:49 +01:00
Jermolene
373afd72c8
Add savewikifolder command
...
Makes it much easier to convert a TiddlyWiki HTML file into a full wiki folder.
2019-04-14 12:04:00 +01:00
Jermolene
7fcd2f132e
Filesystemadaptor: Improve handling of JSON files
...
Fixes #3875
* Use .json files (instead of .tid) for any tiddler whose fields contain values that can't be stored as a .tid file
* Save application/json tiddlers as .json files
* Refactor most of the file handling as re-usable utilities
2019-04-13 14:59:44 +01:00
Bimba Laszlo
9b72eabd1a
Fix crash in GitHub saver ( #3905 )
...
If the path was not specified, RSOD error occurred when we wanted to
download the wiki:
Uncaught TypeError: Cannot read property 'substring' of undefined
2019-04-11 08:21:55 +01:00
Jermolene
73703da2e7
Minify base64-utif8 module
...
Minified with https://skalman.github.io/UglifyJS-online/
2019-04-08 21:37:32 +01:00
Jermolene
aa5eaa98fc
Add a GitHub saver
...
Fixes #3890
I think it would be useful to have a simple tutorial for setting up saving via GitHub pages.
2019-04-08 21:08:58 +01:00
Simon Huber
662ae91067
Bugfix: reveal widget regression! ( #3897 )
2019-04-06 10:27:37 +01:00
Jermolene
37ea659bf0
Refactor the dumpvariables macro as wikitext
...
Making it easier to customise
2019-03-30 10:52:49 +00:00
Jermolene
754c1251a9
Add new "variables" and "getvariables" operators
2019-03-30 10:52:28 +00:00
jed
b1edcdb757
Add unusedtitle macro ( #3880 )
...
* Add uniquetitle macro
This macro is a wrapper on the $tw.wiki.generateNewTitle function to return a unique name, it has been requested multiple times in the forums.
* Add documentation tiddler for uniquetitle macro
* Add uniquetitle macro examples
* Change name from uniquetitle to unusedtitle for clarity
The title isn't unique, just not currently used in the wiki.
* Update uniquetitle to unusedtitle
* Change uniquetitle to unusedtitle
* Fix a typo
2019-03-26 21:57:58 +00:00
Jermolene
02ae8969b2
Reveal widget: faulty logic for default handling
...
@BurningTreeC I think this might have been a typo in your recent refactorings; if you look back at an old version such as https://github.com/Jermolene/TiddlyWiki5/blob/c0c1b557ebcd76fecc7b305115cbabe921b38e0d/core/modules/widgets/reveal.js then there is no sign of this fallback.
Fixes #3874
2019-03-20 16:50:34 +00:00
Jermolene
e52a616891
Add support for widget subclassing
...
Fixes #3865
2019-03-17 12:25:15 +00:00
Simon Huber
784db30614
Fix removesuffix filter when title is undefined ( #3827 )
2019-03-11 09:37:49 +00:00
Simon Huber
c9b16d88f3
Fix: reveal widget prevent undefined state ( #3848 )
...
the state didn't fall back to the default when there was no data-item to extract for a stateIndex
see the google group for a bug report: https://groups.google.com/forum/#!topic/TiddlyWiki/3jiFpayAIRc
2019-03-11 09:04:17 +00:00
Simon Huber
441011885c
Fix: tm-full-screen when event.event undefined ( #3835 )
2019-03-09 17:09:34 +00:00
Jermolene
12630d4a91
Provide an option for the load command to not error if no tiddlers are found
2019-03-08 16:43:04 +00:00
Jermolene
e61c71961b
Fix default language
...
It is supposed to be the built-in core language, en-GB
2019-03-07 18:46:24 +00:00
Jermolene
2c2d03f7a7
Refactor startup action execution so that they can switch language/theme
2019-03-07 18:43:23 +00:00
Jermolene
c036c22826
Add $:/info/browser/language to the info mechanism
2019-03-07 18:42:49 +00:00
Jermolene
0c2689dd78
SaverHandler: Don't generate file if autosave disabled
2019-03-05 15:43:14 +00:00
Jermolene
348a0bc8bc
Core: Allow startup navigation to be suppressed
...
Plugins can suppress it so that they can provide their own startup scroll handling
2019-03-04 16:59:15 +00:00
Jermolene
477c41f843
Add tooltip attribute to select widget
2019-03-04 12:24:16 +00:00
Simon Huber
b6e2985ac6
Fix typo in edit-shortcut widget refresh - missing focus attr ( #3815 )
...
* fix edit-shortcut widget refresh - missing focus attr
* + typo fix. NOW it works
2019-03-02 18:16:55 +01:00
Simon Huber
87eab62b7e
Make the keyboard-shortcut input focus automatically ( #3776 )
...
* add focus capability to edit-shortcut widget
* focus the keyboard-shortcut inputs in the control panel
... there's no other reason why it could have been opened other than just pressing a shorcut ...
... saves the mouseclick
2019-03-02 17:25:49 +01:00
Simon Huber
16bb474fef
Partial fix for the sticky dropzone on firefox ( #3809 )
...
in my tests listening for the dragend event and removing the tc-dragover class in that case removes the `tc-dragover` every time it should ...
without this, firefox often doesn't remove it and the green bar sticks at the top
investigating now if the droppable widget has a similar problem
2019-03-02 16:13:36 +01:00
Jermolene
655fc31cee
Server: Avoid displaying "undefined" for missing path prefix
2019-03-01 18:28:51 +00:00
Jermolene
18c00c2ef0
Don't allow $:/Import tiddler to be imported
2019-03-01 17:39:42 +00:00
Jermolene
b862348b06
Fix !is[variable] operator
...
Fixes #3804
2019-02-28 11:54:04 +00:00
Jermolene
36e76429b1
Add is[variable] filter
...
See discussion here https://groups.google.com/d/topic/tiddlywiki/4rEuAWc4EpM/discussion
2019-02-25 13:08:22 +00:00
Jermolene
810033bd71
Server: include path-prefix in display URL
2019-02-12 18:32:00 +00:00
Jermolene
72f2a94251
Ensure things work when $:/config/AnimationDuration is blank or not a valid number
...
Thanks @jdjdjdjdjdjd
2019-02-12 12:14:55 +00:00
Simon Huber
f97d18bb6e
Adding optional tabindex attr to simple, framed and cm engines ( #3756 )
...
* add optional tabindex attribute to factory.js
* add changedAttributes.tabindex to refresh mechanic
* add optional tabindex attribute to edit widget
* remove some extra whitespace
* remove some trailing whitespace
* add optional tabindex attribute to simple engine
* add optional tabindex attribute to framed engine
* add optional tabindex attribute to cm engine
2019-02-08 16:11:39 +00:00
Jermolene
9d7d3fefa0
Split operator: Remove empty strings when splitting
...
See the discussion on 9b2d527; thanks @kookma
2019-02-08 15:59:07 +00:00
Jermolene
6ff7a7d261
BrowserStorage: Make sure tiddlers loaded from local storage mark wiki as dirty
...
Thanks @xcazin
2019-02-08 15:38:23 +00:00
Jermolene
7df58a6813
Fixed bug with length operator
...
Thanks @BurningTreeC
2019-02-07 12:56:12 +00:00
Jermolene
dc29acd656
Fixed bug with split operator
2019-02-07 12:45:07 +00:00
Jermolene
9b2d52716a
Add new string operators: length, join, split, concat etc.
2019-02-07 11:18:53 +00:00
Jermolene
64b665e706
More maths operators
2019-02-07 11:18:32 +00:00