Jermolene
4891732481
Adjust listops widget to only modify tiddler if tags have changed
...
We do this so that we don’t accidentally modify shadow tiddlers when we
drag them to reorder them within their tag parent. Otherwise, moving a
toolbar button like $:/core/ui/Buttons/permaview in the control panel
will override the shadow tiddler.
2017-03-24 09:57:22 +00:00
Jermolene
8f1114960a
Refactor draggable stuff for easier reuse
...
And in the process, make the button widget draggable.
Unfortunately, Firefox has a bug that prevents buttons from being
dragged (see https://bugzilla.mozilla.org/show_bug.cgi?id=568313 and
https://bugzilla.mozilla.org/show_bug.cgi?id=646823 ). So we have to use
the “tag” attribute to make it use a different element.
2017-03-23 14:23:33 +00:00
Jermolene
9bad99d14e
Draggable: properly stringify tiddler titles
...
Thanks @twMat
2017-03-20 22:01:51 +00:00
Jermolene
eba1c3c160
Improve support for drag and drop
...
Documentation TBD
2017-03-19 19:33:56 +00:00
Jermolene
c2391c5250
Action-deletefield should only update tiddler modified/created if it is changed
2017-03-19 19:30:52 +00:00
Jermolene
39cdaeb34d
Fix problem with tracking dragenter/leave events in Firefox
...
Fixes #686 (hopefully!)
2017-03-17 14:54:30 +00:00
Jermolene
66d5e2650e
Fix problem with dragger image in Chrome
...
Fixes #2800
2017-03-12 18:07:59 +00:00
Jermolene
daf703b67f
Add support for th-navigating
event
2017-02-19 15:47:37 +00:00
Jermolene
2397f0aa6f
Add several new hooks for UI actions
2017-02-09 15:42:55 +00:00
Tobias Beer
1b339e17bc
Add "tag" attribute to keyboard widget ( #2593 )
...
* allows to define the tag for keyboard widget
* added from 5.1.14 to docs
2017-01-13 11:17:19 -07:00
Tobias Beer
e5b432a86b
Allows checkbox widget to worth with indexes within data tiddlers ( #2103 )
2016-12-17 11:59:59 +00:00
Tobias Beer
d6d3aab36a
Allow radio widget to work with indexes in a data tiddler ( #2104 )
...
* allow radio widget to set an index in a data tiddler
* updated RadioWidget docs, with same demo macro as for CheckboxWidget
in #2103
* removed docs in widget code (seems the wrong place)
* added from version to docs
* revert doc maros to master
* using wikitext-example-without-html and .tip macro now
* fix quotes
2016-12-17 11:51:24 +00:00
Jermolene
e8bb897e26
Add support for relinking when renaming tiddlers
...
When renaming an existing tiddler, the edit template now shows a
checkbox that determines whether or not to relink references to the
tiddler in the list or tags fields of other tiddlers.
2016-12-15 17:13:32 +00:00
Jermolene
cf28eeb2a1
Fix problem with checkbox widget and empty strings
...
If the value of `tiddler.fields[this.checkboxField]` was an empty
string then it would incorrectly fall back to the value of
`this.checkboxDefault`.
2016-11-28 13:45:41 +00:00
Jeremy Ruston
a9b54d6fce
Revert "Add provisional version of new tagger manager"
2016-11-28 10:40:55 +00:00
Jermolene
1a2ec12831
Fix problem with checkbox widget and empty strings
...
If the value of `tiddler.fields[this.checkboxField]` was an empty
string then it would incorrectly fall back to the value of
`this.checkboxDefault`.
2016-11-27 14:51:23 +00:00
Jermolene
e98d324e66
Add provisional version of new tagger manager
...
For discussion
2016-11-26 12:48:47 +00:00
Jermolene
3bceb98119
Add support for actions attribute to CheckboxWidget
2016-11-26 08:21:58 +00:00
Jermolene
8d35178bc4
Undo 664225f6fd
and 56640b90bb
...
See the discussion at #2628
2016-10-26 21:41:41 +01:00
Jermolene
664225f6fd
Ensure list widget item title is used in getStateQualifier
...
Resolves a longstanding problem where the same state qualifier is
generated for every member of a list.
Fixes #2628
2016-10-25 15:34:20 +01:00
Jermolene
7108e0d861
Add support for filtered attributes to HTML elements and widgets
...
Fixes #2624
2016-10-21 11:27:07 +01:00
Jermolene
c72a0b7a67
Add action-createtiddler widget
...
Basically the same as sending a tm-new-tiddler message except that the
newly created tiddler is not added to the story.
2016-10-21 11:26:26 +01:00
Jermolene
0b76c327c2
Add page print button
...
cc @silvyn
2016-10-20 09:44:52 +01:00
Jermolene
b35544bf49
Extend set widget to support returning a single result from a filter
...
This solves the problem with extraneous double square brackets when
using the filtered set widget.
2016-10-18 09:16:47 +01:00
Jermolene
d9f301f755
Add 'formattedtext' output type to Wikify widget
2016-10-18 09:13:52 +01:00
Tobias Beer
3486acaec6
Remove old titles from story on save ( #2587 )
...
fix for #2381
2016-10-08 12:17:27 +01:00
Jermolene
641eeaf611
Refresh action widgets before invoking them
...
Fixes #2599 , at least partially.
2016-10-08 10:19:09 +01:00
Jermolene
292d653880
Fix typo affecting created/creator fields when deleting field
...
Fixes #2579
2016-09-28 11:18:58 +01:00
Jermolene
5f0a1dd967
Revision of 03db25cf38
...
We should only fallback to the classic storyview if a storyview was
specified; if none was specified then we shouldn’t use a storyview.
2016-08-27 14:24:07 +01:00
Jermolene
03db25cf38
Fallback to "classic" if specified storyview not found
...
Fixes #2555
2016-08-26 11:34:43 +01:00
Jermolene
08cfa88249
Fix problem with unsafe use of String.prototype.replace()
...
We were using `String.prototype.replace()` without addressing the
wrinkle that dollar signs in the replacement string have special
handling. This caused problems in situations where the replacement
string is derived from user input and contains dollar signs.
Fixes #2517
2016-08-06 14:45:33 +01:00
Myeongjin
98b435d550
Fix inconsistencies in language string IDs ( #2494 )
2016-07-13 10:00:21 +01:00
Jermolene
3d5885f5a5
Extend view widget with plainwikified
format
2016-06-23 16:28:59 +01:00
Myeongjin
6388f859d1
Add localisable strings for error ( #2447 )
...
* Add localisable strings for error
* Update tiddler Transclusion Basic Usage in fr-FR
2016-05-17 21:58:47 +01:00
Myeongjin
8afc1e9354
Add localisable strings ( #2438 )
...
* Add localisable string for recursive transclusion error
* Add localisable string for count
* Add localisable strings for syncer
2016-05-12 08:44:28 -06:00
Jermolene
e3415796b2
Fix problem with lazy loading images
...
Fixes @2263
Thanks @buggyj
2016-05-02 10:29:26 +01:00
Jermolene
b1fb1070ef
Enhance linkcatcher widget to use actions attribute
2016-04-29 18:54:44 +01:00
Jermolene
3c20f2396e
Add support for assigning action widgets via the actions
attribute
...
This is quite a big change: a new way to invoke action widgets.
The advantage is that it solves #2217 and #1564 , a long running problem
that prevented us from adding action widgets to widgets that modify the
store.
This commit adds the new technique for the button and keyboard widgets,
but also extends the select widget to trigger action widgets for the
first time
2016-04-29 18:54:44 +01:00
Jeremy Ruston
2adf09129d
Introduce text editor toolbar ( #2315 )
...
Tada!
2016-04-22 08:36:29 +01:00
Jermolene
4dd701c2dd
Fix problem with missing link logic
...
See
https://github.com/Jermolene/TiddlyWiki5/commit/7908e10488cc4280dd8e4f40
5bcb09f2fb6d3524#commitcomment-17174321
2016-04-20 11:57:38 +01:00
Devin Weaver
7908e10488
Add option to disable linking to missing tiddlers
...
* Add LinkWidget option to ignore missing tiddlers
* Add missing link option to settings
2016-04-04 12:43:40 +01:00
Jermolene
b873df0ba2
Revert "Merge pull request #2166 from matabele/patch-5"
...
This reverts commit 83c54f4bb5
, reversing
changes made to 0cbe97615a
.
2016-01-06 09:38:39 +00:00
Jeremy Ruston
83c54f4bb5
Merge pull request #2166 from matabele/patch-5
...
Fix inadvertent clearing of text field (default) when `field` attribu…
2016-01-05 19:10:26 +00:00
Jermolene
0cbe97615a
Add size attribute to select widget for multiple selection mode
2016-01-05 18:48:21 +00:00
Jeremy Ruston
2cd812c15f
Merge pull request #2160 from matabele/patch-2
...
Changed the name of the 'list' attribute to 'field' for the $action-listops widget
2016-01-05 13:06:48 +00:00
Jeremy Ruston
791f97983e
Merge pull request #2153 from tobibeer/rows-for-edittext
...
add rows attribute to edittext, plus docs
2016-01-05 12:31:37 +00:00
William Jackson
ac8b706d42
Correct Formatting
...
Removed extra tab spacing and corrected syntax error
2016-01-03 16:30:00 +02:00
William Jackson
a44edee782
Changed indents from spaces to tabs
...
I am informed this is the correct convention for TW5.
2015-12-28 18:12:22 +02:00
William Jackson
471f28e52b
Fix inadvertent clearing of text field (default) when field
attribute of the ActionSetField widget isn't set.
...
When using the widget with only short form SetText attributes (field="value) -- the default field (text) of the default tiddler is set to the default value ("") -- thus clearing the text field of the current tiddler. I have inserted a conditional to test for the presence of the `field` attribute.
Whilst I was about this, I have inserted code to enable the setting of any number of TextReferences -- this fixes the issue of only being able to set one index per widget and also allows different tiddlers to be targeted by the same widget.
2015-12-28 18:08:05 +02:00
William Jackson
2f51c3695d
Changed the name of the 'list' attribute to 'field'
...
Other users found this to be confusing -- I have made this change in both this widget and the $checklist widget to maintain consistency
2015-12-28 10:22:28 +02:00
Jeremy Ruston
fe00229ad5
Merge pull request #2004 from inmysocks/patch-9
...
Modified fieldmangler to create a tiddler if adding a tag (see #2001 )
2015-12-24 15:22:41 +00:00
Tobias Beer
456e7abc5d
add rows attribute to edittext, plus docs
2015-12-24 15:40:00 +01:00
Jeremy Ruston
e344dbe077
Merge pull request #2049 from inmysocks/patch-11
...
Let $keyboard trigger action-widgets
2015-12-24 14:12:32 +00:00
Jeremy Ruston
dcc53b8e96
Merge pull request #2074 from mklauber/master
...
Manage a list field by allowing the <$select> widget to select multiple items.
2015-12-24 13:48:43 +00:00
Jeremy Ruston
7676f93932
Merge pull request #2125 from tobibeer/set-emptyValue-always
...
always set emptyValue, not just for filter
2015-12-23 17:42:41 +00:00
Jeremy Ruston
ccf6edb940
Merge pull request #1933 from felixhayashi/fix/scrolling
...
Auto-height fix for text area which is contained in a scroll container
2015-12-22 14:08:56 +00:00
Jeremy Ruston
ef1cd5f55f
Merge pull request #1967 from Drakor/fixActionSetField
...
fixed bug in $action-setfield introduced by #1963
2015-12-21 22:17:51 +00:00
Tobias Beer
ea8a8f1b53
always set emptyValue, not just for filter
2015-12-09 23:33:07 +01:00
Jeremy Ruston
da36f1c728
Merge pull request #2037 from matabele/Listops
...
ActionListopsWidget
2015-12-06 19:04:26 +00:00
jed
848e351685
removed the handled variable
...
because it serves no purpose here. That test isn't required in this context.
2015-11-16 10:48:25 +01:00
Jermolene
15f52bd7ce
Add support for Nw.js special features to browse widget
2015-11-13 18:47:30 +00:00
Matt Lauber
8ccee5d015
Remove cla for separate PR, and clean up variable declaration.
2015-11-13 11:30:06 -05:00
Matt Lauber
f540be4ac4
use $tw.utils.stringifyList
2015-11-13 08:06:51 -05:00
Matt Lauber
065b274b98
Use the $tw.utls.parseStringArray function to break up a list.
2015-11-13 08:04:13 -05:00
Matt Lauber
c535dd605c
Grant the select widget the ability to select multiple values.
...
Multiple values are placed in a given tiddler-field combination as if
that field were a list field.
2015-11-13 07:50:34 -05:00
Felix Hayashi
d3ab4144d4
Allows text areas to be auto-height while being wrapped in an
...
element that has scrollbars. The wrapper element with the
scroll bar does not need to be a direct parent of the text area.
**update:** fixed a bug that came up in the discussion
This is fixed now: https://github.com/Jermolene/TiddlyWiki5/pull/1933#issuecomment-141774881
The problem was the check in getScrollContainer()
2015-10-26 21:22:10 +01:00
jed
e55c5b0669
Let $keyboard trigger action-widgets
...
Because of the refresh problems with the other widgets triggering action-widgets I am doing this one by itself. I hadn't included it before.
This shouldn't have any more problems than the button widget does, and any problems caused by it should be fixed by any fix we use for the button widget. See #1564 for more background
2015-10-26 20:23:09 +01:00
William Jackson
56d467fb47
Create action-listops.js
...
Action widget designed to apply filters to the current list and save the modified list back to the list. The widget is able to manipulate lists in any field or any data index of the target tiddler, and includes an option to manipulate the tags of the target tiddler. The widget is used in conjunction with the extended list operator filters (xlistops.js)
2015-10-18 18:41:40 +02:00
Myeongjin
4347d91c57
add localisable strings for Import/Imported
2015-10-18 17:29:04 +09:00
Jeremy Ruston
b1633e0f2d
Merge pull request #1952 from tobibeer/1937-set-refresh-filter
...
fixes #1937 — filter refresh in set widget
2015-10-14 14:18:29 +01:00
Jermolene
85553609b1
Ensure edit-text widget fixes height even if refresh isn't required
...
Fixes #1995
2015-10-12 17:54:51 +01:00
jed
4c95dc9bbb
Modified fieldmangler to create a tiddler if adding a tag to one that doesn't exist
...
This came up as an issue and I don't have any reason it shouldn't be here. It could be useful.
2015-10-08 20:39:19 +02:00
Andreas Hahn
99c5fa46dd
fixed bug in $action-setfield introduced by #1963 : At least one of '$field', '$value' or '$index' must be specified in order to act upon the information from the fields. Prevents default deletion of the 'text' field when none are specified.
2015-09-27 15:35:54 +02:00
Tobias Beer
6b3fc8d538
updated #1480 "undefined value removes field or index"
...
when $value is unspecified, $action-setfield removes field or index...
modified
setText() — $:/core/modules/wiki.js
invokeAction() — $:/core/modules/widgets/action-setfield
demo
http://tobibeer.github.io/tw/batch/#ActionSetField-RemoveIndex
2015-09-25 15:20:37 +02:00
Tobias Beer
a1ce254e95
fixes #1937 — filter refresh in set widget
...
as per @EvanBalster
2015-09-21 17:24:26 +02:00
Jermolene
939596bd47
Add new "htmlencodedplainwikified" format to view widget
...
Triggered by the text-slicer plugin, but general purpose.
The clunky implementation shows the shortcomings of the view widget. It
was one of the first widgets to be implemented; subsequently, the
implementation of macros gives us a potentially more flexible way of
implementing these kinds of text transformations.
2015-09-11 13:34:01 +01:00
Jermolene
eb9fb6635d
Fix issues with creation and modification dates
...
There were several places where tiddlers were being written without the
creation/modification details being updated.
See
https://groups.google.com/d/msgid/tiddlywiki/17ef8ab0-0128-4467-8a9d-f17
bdbcf3618%40googlegroups.com
2015-09-11 13:34:01 +01:00
Jermolene
424b2fea32
Add th-saving-tiddler hook for autotagging etc.
...
@danielo515 this enhancement is intended to make it easier to implement
things like the auto tag plugin. Does it meet your needs?
2015-09-08 16:16:50 +01:00
Jermolene
3fbe07f1f8
Fix link widget propogation behaviour
...
Without this fix, using nested link widgets with custom elements causes
clicks on the inner element to trigger links on each of the containing
widgets
2015-08-30 19:12:12 +01:00
Jermolene
68e15c1064
Move rename tiddler handling into navigator widget
...
For consistency with the other tiddler manipulation primitives.
2015-08-30 19:11:14 +01:00
Jermolene
ac08dc2e35
Added fold/unfold all buttons
...
More translations, @BramChen, apologies…
2015-08-09 17:25:01 +01:00
Jermolene
16c69bb419
Tweaks to fold button
2015-08-09 16:11:37 +01:00
Jermolene
bad4a19f8e
Add fold others button
2015-08-09 12:56:48 +01:00
Jermolene
5d43cd7408
Add fold tiddler toolbar button
...
Addressing this tweet:
https://twitter.com/s_stryjecki/status/629349768280604672
2015-08-09 11:10:04 +01:00
Jermolene
6a3c4d6c91
Flip logic for suppressing timestamps
...
Fixing a mistake from the earlier commits, so that the default remains
that the timestamps are applied.
2015-08-09 11:09:02 +01:00
Jermolene
e5cd8313a0
Update actionsetfield widget to allow timestamp to be preserved
2015-08-06 18:17:09 +01:00
Jermolene
fdce67399d
Provide option to suppress navigation for edit/cancel/save
2015-08-05 15:07:19 +01:00
Jermolene
cd29eed067
Fix problem with importing using wrong import tiddler name
2015-08-01 13:48:46 +01:00
Jermolene
32f6d7f1b0
Revert getTiddlerData() and add getTiddlerDataCached()
...
For backwards compatibility, we now explicitly request the cacheable
version of this method.
Fixes #1873
2015-07-10 16:43:50 +01:00
Jermolene
848a7f4e74
Optimise getStateQualifier()
...
Another fix for #1864 , this time we’re caching state qualifiers as they
are expensive to compute.
2015-07-06 11:23:12 +01:00
Jermolene
3a7e29674b
Fix problem with checkbox widget and missing tiddlers
...
The newly added invertTag code was crashing if the tiddler doesn’t
exist.
2015-07-02 17:33:51 +01:00
Jermolene
63f802efda
Rename checkbox "invert" attribute to "invertTag"
...
And update docs
2015-06-26 10:18:15 +01:00
James Welford Anderson
379181ded5
add invert parameter to checkbox plugin
...
for when you want a tag to denote the lack of a check rather than the
presence of one.
2015-06-26 05:10:13 +09:00
Jermolene
b31803608b
Refactor navigator widget configuration
...
@felixhayashi sorry I should have realised earlier that it’s worth
doing it this way so that we can have different settings for different
story rivers.
2015-06-19 16:44:20 +01:00
Jermolene
4a3a5bf1f0
Don't autosave when cancelling an edit
...
Fixes #1762
2015-06-13 18:08:09 +01:00
Jermolene
9b4b9d4d88
Update sendmessage widget to allow name/value parameters
...
Using `$name` and `$value` attributes allows more flexibility in how
parameter names are specified, allowing parameter names that are not
valid attribute names.
2015-05-18 22:15:23 +01:00
Jermolene
ecdcfe41ac
Fix problem with #1723
...
Restoring operation of the “default” attribute
2015-05-14 00:07:53 +01:00
Jeremy Ruston
f0206283cf
Merge pull request #1723 from cehmke/fix-buttonwidget-textreference-selected
...
Use of getTextRefence in ButtonWidget.isSelected
2015-05-12 11:20:47 +01:00
cehmke
4d3103ff25
Update selected value if children have been refreshed
...
If the children have been refreshed, it is necessary to check, whether
the value of the select box has been changed.
2015-05-10 19:32:38 +02:00
cehmke
b8addaa520
use of getTextRefence in isSelected
...
Instead of a particular implementation make use of the overall function
getTextReference to determine the current value.
Add a missing semicolon.
2015-05-10 13:26:00 +02:00