Simon Huber
0d2df34c58
Keyboard-driven dropdown inputs ( #4725 )
...
* Add shortcut descriptions to Misc.multids
* Update framed.js
* Update simple.js
* Add inputActions and refreshTitle to factory.js
* Add inputActions and refreshTitle to edit.js
* Update DefaultSearchResultList.tid
* Update search.tid
* Update ShortcutInfo.multids
* Update shortcuts.multids
* Create keyboard-driven-input.tid
* Update tag-picker.tid
* Create keyboard-driven-input_Macro.tid
* Update EditTextWidget.tid
* Update EditWidget.tid
* Update engine.js
* Update base.tid
* Use primaryListFilter, secondaryListFilter, primaryList and secondaryList
* Update tag-picker.tid
* Update search.tid
* Update DefaultSearchResultList.tid
* Update keyboard-driven-input_Macro.tid
* Fix typo udpate -> update
* Update framed.js
2020-07-13 17:42:55 +01:00
jeremy@jermolene.com
bd2cf5c464
Extend the element widget with a hook to intercept DOM node creation
...
The element widget is used to render HTML elements in wikitext.
2020-07-02 13:13:55 +01:00
saqimtiaz
35a842ade6
EditWidget: Pass attributes from parseTreeNode to child widgets ( #4740 )
2020-06-27 12:33:14 +01:00
saqimtiaz
d46872c061
Extend tm-import-tiddlers message ( #4741 )
...
* Allow tm-import-tiddlers event to override tv-auto-open-on-import
* Add autoOpenOnImport attribute to dropzone
* Updated DropZone docs
* Updated dropzone to support importTitle attribute
* Updated navigator to support importTitle attribute on tm-import-tiddlers
* Update dropzone docs for importTitle attribute
* Updated docs for tm-import-tiddlers
* Fixed formatting
2020-06-27 12:32:11 +01:00
saqimtiaz
7911007973
Revised: toggling relink in tm-rename-tiddler ( #4723 )
...
* switch boolean logic in new parameters
Use renameinTags and renameInLists instead of dontRenameInTags and dontRenameInLists respectively. This avoids users having to think through double negatives, as well as corresponds better to the setting in $:/config/RelinkOnRename
* Updated docs for revised parameters for tm-new-tiddler
2020-06-19 18:20:25 +01:00
saqimtiaz
24ef51df01
Revert "Allow toggling relink in tm-rename-tiddler ( #4719 )" ( #4722 )
...
This reverts commit a689f31978
.
2020-06-19 18:05:08 +01:00
saqimtiaz
a689f31978
Allow toggling relink in tm-rename-tiddler ( #4719 )
...
* Allow toggling relink in tm-rename-tiddler
* Updated docs for tm-rename-tiddler
2020-06-19 11:07:03 +01:00
jeremy@jermolene.com
f760a2fa79
Add old tiddler to th-saving-tiddler hook
...
Addresses https://github.com/Jermolene/TiddlyWiki5/pull/4434#issuecomment-645939182
2020-06-18 11:49:59 +01:00
Simon Huber
d832cb93ce
Fix (again) error in scrollable.js ( #4705 )
2020-06-11 13:54:59 +01:00
Simon Huber
bbf20f8955
Scrollable widget: Fix error in variable declaration ( #4704 )
2020-06-11 12:33:18 +01:00
saqimtiaz
25f8b3f903
Check for DOM node existence before removing class. ( #4696 )
...
Can cause issues if dragstart and dragend actions trigger a refresh.
2020-06-11 12:11:56 +01:00
Simon Huber
5b9dbf7b95
Use srcWindow in scrollable widget ( #4677 )
2020-06-11 11:49:32 +01:00
Simon Huber
e59f606566
Cancel popups when clicking within an editor ( #4658 )
...
* Add cancelPopups attribute to edit widget
* Add cancelPopups attribute to factory.js
* Cancel popups in editor/simple.js
* Cancel popups on focus in engines/framed.js
* Cancel popups on focus in CodeMirror engine
* Add cancelPopups="yes" to tag-picker
* Add cancelPopups="yes" to sidebar search
* Add cancelPopups="yes" to editor
* Add cancelPopups="yes" to fields EditTemplate
* Update body.tid
* Add cancelPopups="yes" to title EditTemplate
* Add cancelPopups="yes" to type EditTemplate
* Update EditTextWidget.tid
* Update EditWidget.tid
* Add cancelPopups="yes" to menubar plugin search
* Update tag-picker.tid
* Update tags.tid
2020-06-11 11:41:35 +01:00
Arlen22
d32fb6f900
Allow setting boot, wiki, and pathPrefix for each request ( #4649 )
...
* Add pathPrefix to state, and options to request handler
* use ternary operator instead of default empty object
* Fix styling issues
* Update server.js
* Add boot to server and filesystem adapter
2020-06-11 11:36:41 +01:00
Bimba Laszlo
6570561d4e
The !has[tags]
filter didn't work because tags
field is an array ( #4643 )
...
* The `!has[tags]` filter didn't work because "tags" is an array
The negated `has` filter only considered empty strings, but not empty
arrays (such as the `tags` field).
* Add tests for `has` filter operator with array-like fields (tags, list)
2020-05-14 13:57:12 +01:00
Bimba Laszlo
9c22537b4e
Fix the class attribute of Droppable widget ( #4647 )
...
Even though we passed the `class` attribute, it did not take it into
account. For example try to render this:
<$droppable class="custom-css-class">
... content ...
</$droppable>
Before applying this patch:
<span class=" tc-droppable">
... content ...
</span>
After applying:
<span class="custom-css-class tc-droppable">
... content ...
</span>
2020-05-14 13:55:33 +01:00
jeremy@jermolene.com
5c0d91c510
Fix title of slugify.js filter module
2020-05-14 07:53:30 +01:00
jeremy@jermolene.com
bf6735420d
Fix SVG favicons
2020-05-10 11:58:40 +01:00
jeremy@jermolene.com
4966f6ab62
Add slugify and duplicateslugs operators
...
Fixes #3379
2020-05-09 15:54:44 +01:00
jeremy@jermolene.com
33d973fb91
Add originating widget to event objects
2020-05-09 15:53:38 +01:00
Arlen22
81f07cdf85
Use this.wiki where applicable ( #4601 )
...
* Use state.wiki
* use local wiki where available
* fix a couple this vs self cases
2020-05-06 11:27:50 +01:00
jeremy@jermolene.com
48dfadd85b
InfoMechanism: Add $:/info/startup-timestamp
2020-05-06 11:05:54 +01:00
jeremy@jermolene.com
13b8281f6b
$tw.utils.copyDirectory: Ensure directories don't overlap
2020-04-27 15:00:06 +01:00
jeremy@jermolene.com
ad575efdcc
Update sortsub to evaluate the subfilter for each item in the list
...
See the discussion here https://groups.google.com/d/msg/tiddlywiki/BqUFQ3v-fZw/U0F04CFFBQAJ
2020-04-25 15:22:24 +01:00
jeremy@jermolene.com
619c0752bd
Add new sortsub operator
2020-04-25 11:26:19 +01:00
Cameron Fischer
2385bd978f
Fix importvariables crash ( #4593 )
...
* Fixed issue: multi nonMacro imports broke everything
* Fixed issue: dead variables in import might linger
2020-04-23 09:10:52 +01:00
jeremy@jermolene.com
2a8f7a9c50
Add support for _canonical_uri field of $:/favicon.ico
2020-04-22 16:40:02 +01:00
jeremy@jermolene.com
5f98e7d7b3
Ensure $tw.utils.hasClass/addClass/removeClass work with SVG elements
...
These docs make clear that .className isn't recommended for SVG elements:
https://developer.mozilla.org/en-US/docs/Web/API/Element/className#Notes
2020-04-22 15:32:20 +01:00
jeremy@jermolene.com
77a929faa3
ActionPopup widget: Add ability to cancel all popups
2020-04-21 22:19:03 +01:00
jeremy@jermolene.com
c86a621d5d
BrowseWidget: Add "accepts" attribute
...
And add docs for the 'message' and 'param' attributes
2020-04-21 22:18:34 +01:00
jeremy@jermolene.com
d6ee700bca
Fix $tw.utils.getSubdirectories()
2020-04-21 21:21:38 +01:00
Simon Huber
39d532a4a0
Revert "Make input fields dismiss their popups when the ... ( #4579 )" ( #4586 )
...
This reverts commit 4efcad46f3
.
2020-04-20 19:26:54 +01:00
Simon Huber
4efcad46f3
Make input fields dismiss their popups when the ... ( #4579 )
...
* Make input fields dismiss their popups when the ...
... fields loose focus (`blur`)
* Update simple.js
2020-04-20 15:49:30 +01:00
jeremy@jermolene.com
2649d2f7dc
Syncer: Fix typos
...
Fixes a bug introduced in #4584
2020-04-20 13:19:27 +01:00
idotobi
154e886873
Fix Comment in Webserver API route tidlers.json ( #4557 )
...
This commit fixes the the comment in the route
`recipes/default/tiddlers.json` which was inconsistent with the actually
used regex. Furthermore, the 403 response was adjusted to also agree
with the the new comment and the regex.
Co-authored-by: tobidot <post@tobidot.net>
2020-04-20 13:07:06 +01:00
jeremy@jermolene.com
5688670da6
makelibrary command: Guard against invalid directories
2020-04-20 12:58:27 +01:00
jeremy@jermolene.com
678e25f510
makelibrary command should skip non-directories
...
Fixes #4583
2020-04-20 11:47:54 +01:00
jeremy@jermolene.com
15d7255728
Syncer: Should not call syncadaptor for missing tiddlers
...
Fixes #4580
2020-04-20 11:35:11 +01:00
Daniel Rodríguez Rivero
4ea79cb0c3
fix(syncer): restore tiddlerInfo param to saveTiddler ( #4584 )
...
This was added on a159b5baf3
and lost in #4373 .
Will be a good idea to introduce tests against this kind of changes
2020-04-20 11:17:27 +01:00
jeremy@jermolene.com
e71a27ac2d
Fix link widget to work within SVG elements
2020-04-19 12:57:56 +01:00
Mario Pietsch
22802b4be8
Action create tiddler improvements ( #4436 )
...
* add a new-line before the log text to increase readability of the test output
* make eslint, jslint happy
* add $template and $overwrite parameter
* documentation for new parameters + 4 new examples
* remove unwanted files
2020-04-15 15:51:21 +01:00
Jeremy Ruston
7cbe766bde
Utils: ParseInt should specify a radix
...
Thanks @pmario
2020-04-15 15:28:03 +01:00
Jeremy Ruston
f21d013241
jsontiddlers macro: parse "spaces" parameter as integer
2020-04-15 15:27:53 +01:00
Mario Pietsch
de5b0062b5
Add new parameters to fields-widget and fields-operator. ( #4433 )
...
* add a new-line before the log text to increase readability of the test output
* make eslint, jslint happy
* extend fields-widget with include/exclude/sort/reverse and fields-filter with include and exclude params plus DOCS
* remove new-line
* remove eslint settings
* restore old eslint settings
* remove typo
2020-04-15 12:36:48 +01:00
Cameron Fischer
65347ae858
Fixed join filter operator to never returns null ( #4396 )
...
If the operator were passed an empty list, it would return null
which could cause some proceeding operators to crash.
2020-04-14 17:49:38 +01:00
Cameron Fischer
43fdb553b7
Reduced indexOf calls in wiki.sortByList ( #4275 ) ( #4397 )
...
Examined the tests in test-tag. They already cover all the use cases
I could think of.
2020-04-14 17:49:10 +01:00
Joshua Fontany
69c8058b72
Add has:index ( #4540 )
...
* has:index
* has:index
* has:index docs
* has op examples
* has op examples
* operator macros typo missing </div>
* possible mistake
2020-04-14 16:52:56 +01:00
Jeremy Ruston
0836fb7184
Makelibrary.js: Minor refactoring
2020-04-14 12:08:15 +01:00
jed
4146a04a9e
Fix makelibrary.js to use enviroment variable paths ( #4559 )
...
This makes makelibrary.js use environment variables to find paths for plugins, themes and languages instead of just using the paths hardcoded in boot.js
2020-04-14 12:03:12 +01:00
Jeremy Ruston
7b53f5724c
Add new compare filter operator
...
Fixes #4554
2020-04-13 10:03:01 +01:00