Jermolene
6dbd178378
Merge branch 'issue_270' of https://github.com/Skeeve/TiddlyWiki5 into Skeeve-issue_270
2013-12-11 22:19:19 +00:00
Jermolene
9f058925f7
Fix problem with deleting tiddlers with the filesystemadaptor
...
Fixes #266
2013-12-11 22:02:34 +00:00
Jermolene
1b75242345
Fix up caller of wiki.forEachTiddler()
2013-12-11 22:01:20 +00:00
Jermolene
6298c7aa43
Refactor wiki.forEachTiddler() and wiki.getTiddlers() to take an options parameter
2013-12-11 22:01:02 +00:00
Stephan Hradek
853cca906c
allowing variable number of arguments for non-argument macros
2013-12-11 22:59:52 +01:00
David Jade
cffe9375b2
Added TiddlyIE and FSO saver modules
...
Modified tiddlywiki5 template to support TiddlyIE and HTAs
Added empty.hta creation to bld scripts
Added TiddlyIE topics
2013-12-11 12:45:35 -08:00
Jermolene
b8897f86fb
Ensure that tiddler manipulations affect the history
...
Previously edit tiddler etc wouldn’t actually navigate to the new
tiddler
2013-12-11 16:30:25 +00:00
Jermolene
d11cda4854
Rearrange control panel
...
Introduce version number too
2013-12-11 16:06:52 +00:00
Jermolene
6a71b399b0
Fix problem with transcluding non-string fields
...
Transcluding date or list fields (like `modified` or `tags`) was
crashing.
2013-12-11 15:51:32 +00:00
Jermolene
062822d45c
Fix file system behaviour for loading new tiddlers
...
We don’t need to load tiddlers because they will all have been loaded
during bootup, or been created through the file system adaptor.
2013-12-11 11:45:15 +00:00
Jermolene
2ffcbb76eb
Remove modifier and creator fields from tiddlers in tw5.com
...
Keeps things tidier
2013-12-11 07:57:12 +00:00
Jermolene
50e1727ef7
Stop falling back to anonymous username
...
The `serve` command used to fallback the username parameter to
“ANONYMOUS” if it was not provided. Better is just to not set a
username if it is not provided; newly created tiddlers won’t get a
‘modifier’ field at all.
2013-12-11 07:45:36 +00:00
Jermolene
14cf9ad24a
Fix typo preventing page controls from being reordered
2013-12-07 08:59:32 +00:00
Jeremy Ruston
0a93edb1b6
Merge pull request #249 from Skeeve/quotes
...
added quote rules
2013-12-06 01:16:39 -08:00
Stephan Hradek
b0ff8bee6a
as requested - quote.js removed because of quotelist - do not forget to add some css classes
2013-12-06 09:57:56 +01:00
Jermolene
48f8046cf5
Fixed problem with cancelling editing the tiddler $:/StoryList
2013-12-06 08:45:24 +00:00
Jermolene
1fddcf075f
Big docs update
...
Finally sorting out the wikitext documentation
2013-12-05 16:21:10 +00:00
Jermolene
ffcf2bfaac
Missing comma
...
Omitted from 4d4a0e01b4
2013-12-05 16:20:22 +00:00
Jeremy Ruston
4d4a0e01b4
Merge pull request #258 from Skeeve/quotelist
...
inserted > into lists
2013-12-05 07:16:05 -08:00
Jermolene
b37a139aa7
Typo that prevented edit widget tiddler attribute from working
2013-12-05 10:37:40 +00:00
Stephan Hradek
374743883d
inserted > into lists
2013-12-05 00:31:55 +01:00
Stephan Hradek
d739b6939a
added core/modules/widgets/fieldradio.js
2013-12-05 00:15:06 +01:00
Jermolene
49ade66540
Extend navigator widget to allow target tiddler to be specified for certain events
...
Now the edit tiddler, delete tiddler, save tiddler and cancel tiddler
events can all be passed the tiddler title as the message param.
2013-12-04 13:09:26 +00:00
Jermolene
4cffa58df3
Fix viewing of date fields
2013-12-03 10:09:58 +00:00
Jermolene
f3954d374d
Add error reporting for the syncer module
...
Things were failing silently.
2013-12-03 09:35:02 +00:00
Jermolene
b149ab47f4
Refactor importing to to use new wiki.importTiddler method
2013-12-02 09:59:38 +00:00
Jermolene
1b99dbb677
Add wiki.importTiddler()
...
Exactly like addTiddler except that it rejects plugins that are older
than the currently installed version.
2013-12-02 09:59:17 +00:00
Jermolene
c4814cec91
Include plugin version numbers in control panel
2013-12-02 09:58:44 +00:00
Jermolene
7a4abba9fd
Ensure system tiddlers are imported
...
We no longer generate a separate “systemArea” for system tiddlers but
we still need to import it for older wikis
2013-12-02 09:57:54 +00:00
Jermolene
34ae1387a5
Expand the theme switcher in the control panel
2013-12-01 21:57:19 +00:00
Stephan Hradek
62b9fb336b
fixed a small bug related to closing wiki-tag - no really
2013-12-01 22:05:49 +01:00
Stephan Hradek
8ed364ed72
fixed a small bug related to closing wiki-tag
2013-12-01 22:01:21 +01:00
Jermolene
eb41ca578d
Fallback to a list of default themes
...
Avoids the situation where an empty wiki uses the vanilla theme unless
you explicitly apply a different theme.
2013-12-01 20:28:56 +00:00
Stephan Hradek
2ec58f7fa2
added quote rules
2013-12-01 21:21:15 +01:00
Jermolene
a12310f225
Fixed problem with rearranging $:/tags/PageControls/
2013-12-01 13:25:48 +00:00
Jermolene
7fcf52543f
Make sure tags are in alphabetical order in the view template
...
Fixes #242
2013-11-30 13:15:17 +00:00
Jermolene
2db3043d6e
Tweak appearance of tags editor
...
Making it a bit more like http://aehlke.github.io/tag-it/
2013-11-30 10:55:45 +00:00
Jermolene
6ee0e07036
Add a class to the button icon SVGs
...
So that we can default their size to 1em
2013-11-29 17:11:48 +00:00
Jermolene
7baf8431a4
Refactor the download buttons into reusable snippets
2013-11-29 09:12:23 +00:00
Jermolene
7d12d89a0a
Added primitive support for basic authentication
...
Note that the password will be passed over HTTP in plain text.
2013-11-28 14:03:08 +00:00
Jermolene
c0a6e94b21
Hash the state qualifier to make it shorter
...
We were having problems with TW5 generating filepaths that were longer
than Windows likes.
Fixes #240
2013-11-28 10:53:37 +00:00
Jermolene
b8f15feca4
Force newly created field names to be lowercase
...
Fixes #239
2013-11-28 10:35:16 +00:00
Jermolene
5b89eca5e9
Fix up filenames
...
Left overs from the Great Refactoring
2013-11-27 21:15:35 +00:00
Jermolene
0956ae10a0
Add support for downloading files
...
We were re-using the `tw-save-wiki` message both for saving the current
wiki and downloading a new wiki. Now we’ll use the separate
`tw-download-file` message for downloading.
Fixes #236
2013-11-27 20:51:08 +00:00
Jermolene
7175f1cbf1
Split a basic Vanilla theme out of Snow White
...
And add a new Night-Time theme for the /dev wiki.
The idea is that the Vanilla theme will make a more convenient base for
retheming.
2013-11-27 12:38:03 +00:00
Jermolene
584043deee
Add a notification when starting to save with the upload plugin
2013-11-26 22:46:20 +00:00
Jermolene
1b54313615
Add SVG images to the type dropdown
2013-11-26 19:42:44 +00:00
Jermolene
42fce1929c
Improve save notifications for TiddlySpot
2013-11-26 12:50:40 +00:00
Jermolene
d96f85ac83
Add a link to the backup URL to the TiddlySpot control panel tab
2013-11-26 12:30:11 +00:00
Jermolene
b805633dc9
Reorganise the main file saving templates
...
We’re introducing a mechanism that allows us to decide which tiddlers
get saved. Using `$:/core/save/all` gives all tiddlers, as before.
Using `$:/core/save/empty` gives an empty wiki. Saving an empty wiki
from tw5.com isn’t the same as the empty wiki cooked from
editions/empty because the two editions have different plugins and
other system tiddlers.
2013-11-25 21:16:27 +00:00
Jermolene
b33a3293fe
Rejig the main save template to get rid of the separate system tiddler area
...
It dates from an ancient version of TW5, and is really redundant now.
It also meant that system tiddlers were not encrypted, which seems
confusing for end users.
2013-11-24 20:40:10 +00:00
Jermolene
802fe9beae
Add [is[tiddler]] filter operator
...
For selecting all non-shadow tiddlers, whether or not they are system
tiddlers
2013-11-24 20:38:58 +00:00
Jermolene
78f56ba875
Stop generating static content when we're saving an encrypted wiki
2013-11-24 20:28:27 +00:00
Jermolene
c29975f6b3
Remove special provision for jQuery
...
This dates from an ancient version of TW5 which had a dependency on
jQuery. Now we’d install jQuery as an ordinary tiddler module, not a
library module.
2013-11-24 20:16:44 +00:00
Jermolene
ce03690989
Fix problem with tag-configurable item lists not being able to interleave shadow and non-shadow
2013-11-24 19:38:32 +00:00
Jermolene
f380d4b27d
Change macro attributes to not wikify their content
...
One consequence of wikifying macro attributes before use was that we
couldn’t have tiddler titles with wikitext syntax in, which was
definitely a problem.
2013-11-22 20:02:44 +00:00
Jermolene
a45f64e738
Trap filter syntax errors
...
Now a syntax error on a filter just causes the filter to return the
error message as it’s single result.
Fixes #189
2013-11-21 08:52:41 +00:00
Jermolene
c4e6c91986
Fix problem with dragging images within TW5
...
Dragging an image within the same TW5 window was causing a crash
2013-11-20 22:52:48 +00:00
Jermolene
cc9c6e4f42
Ensure that we don't overwrite the modified/modifier fields of imported tiddlers
...
Fixes #225
2013-11-20 20:49:32 +00:00
Jermolene
b8875e126f
Refactor page template to be tag driven
2013-11-19 14:12:31 +00:00
Jermolene
20ea6433e6
Add data tiddler types
2013-11-19 13:22:27 +00:00
Jermolene
16444e023a
Refactor control panel to add "Saving" tab
...
Currently just hardwired to the options for TiddlySpot, but will in due
course be driven by the loaded saver modules.
2013-11-19 13:21:45 +00:00
Jermolene
223e9c4747
FIx margins and spacing
2013-11-19 12:17:16 +00:00
Jermolene
90a0eca2f5
Add dropdown interface for setting the type of a tiddler
2013-11-18 09:00:25 +00:00
Jermolene
7658789971
Style tweaks for the edit template
2013-11-18 09:00:00 +00:00
Jermolene
b117f74666
Make the toolbars be tag driven
2013-11-17 21:53:39 +00:00
Jermolene
3b35d7dfe4
Fixed problem with greedy regexp for macrocalls
...
It was preventing this from working:
```
<<macro>><<bacrp>><<sdf>><<qweqwe>>
```
2013-11-17 21:53:12 +00:00
Jermolene
29c0f7156b
Fix overlooked typo
...
Ouch.
2013-11-16 22:50:10 +00:00
Jermolene
da4cdf2d3b
Refactor edit template to be driven by $:/tags/EditTemplate
tag
2013-11-15 22:55:32 +00:00
Jermolene
9a6e404215
Fix modules list in the Internal tab of Control Panel
2013-11-15 22:08:16 +00:00
Jermolene
939ad11eae
Rename the 'setvariable' widget to 'set'
...
Sleeker.
2013-11-15 18:31:39 +00:00
Jermolene
45c51481de
Improve performance of tag handling with some caching
2013-11-13 23:33:32 +00:00
Jermolene
fc6dd83f2f
Use prototypal inheritance to speed up the inheritance of widget variables
...
Now we reuse the prototype mechanism to let javascript do the work of
searching up the parent chain.
2013-11-13 21:25:45 +00:00
Jermolene
c7d5905242
Fix view format=date so that it doesn't crash on empty fields
2013-11-13 19:41:54 +00:00
Jermolene
02d3620d93
Update the tiddler info panel to use the new tw-popup class
...
This fixes the problem with the inability to click on items within the
tiddler info panel (including the static URL)
2013-11-12 22:03:20 +00:00
Jermolene
b304e3fe40
Update the reveal widget to set the tw-popup class
2013-11-12 22:02:43 +00:00
Jermolene
06a66cf24e
Improve popup dismissal
...
Now we ignore clicks if they come from an element that has an ancestor
with the class `tw-popup`
2013-11-12 22:02:26 +00:00
Jermolene
145e3ece78
Fix $tw.utils.hasClass() to work even if the element doesn't have a className property
2013-11-12 22:01:31 +00:00
Jermolene
24e361da77
Removed inadvertent alert()
2013-11-12 20:58:54 +00:00
Jermolene
791033d751
First pass at a saver for IE10 and above
...
It's not great, sadly. Clicking save in the browser pulls up an
unobtrusive bar at the bottom of the browser window where you can click
"save". You then get a new copy of your wiki in the downloads folder.
2013-11-12 20:49:00 +00:00
Jermolene
b885743efe
Fix typo
2013-11-12 20:29:22 +00:00
Jermolene
8ec92405fd
Add urlencoded and doubleurlencoded formats to the view widget
2013-11-12 20:29:14 +00:00
Jermolene
d2dbc73448
Correct typo
2013-11-12 19:52:25 +00:00
Jermolene
4a5a8dd773
Fix the execution context for widget attributes specified as macros
...
We need to ensure that variables in the tree up to this point are
accessible when we render the macro text.
2013-11-12 19:52:17 +00:00
Jermolene
f6a4ea6b0f
Fixed typo from d64590a12b
2013-11-11 23:44:55 +00:00
Jeremy Ruston
8681e0228d
Merge pull request #212 from grayeul/closeAllOthers
...
Add support for close-others
2013-11-11 14:46:05 -08:00
Jermolene
d64590a12b
Fixed problem with target fields/index being erroneously applied to template
...
See here for discussion:
https://groups.google.com/d/msg/TiddlyWiki/D3MBNhjaT3E/ph0ZuAhuPFMJ
2013-11-11 22:29:38 +00:00
Jermolene
e274a0c7d1
Make sure we use state tiddler titles in the $:/state
namespace
2013-11-11 15:27:12 +00:00
Jermolene
51fe1e20e8
Make sure that searching for the empty string returns all available tiddlers
...
Makes sense because every tiddler contains the empty string. This
restores the functionality of the tag editor dropdown.
2013-11-11 15:26:41 +00:00
Grayeul
9c4ffae1b3
Remove close-others-button from core/images
2013-11-11 07:52:04 -06:00
Grayeul
3d0c6cf41e
Fixed missing reference to old CloseAllOthers
2013-11-11 07:48:54 -06:00
Grayeul
da54236f5a
Change names to tw=close-other-tiddlers and handleCloseOtherTiddlersEvent
2013-11-11 07:34:19 -06:00
Grayeul
c930d84d01
Add support for close-all-others
2013-11-11 07:28:29 -06:00
Jermolene
8357d90e59
Fix bug caused when creating a tiddler title starting or ending with a space
2013-11-11 08:48:06 +00:00
Jermolene
254da0b170
Clean up the tools tab
2013-11-10 23:14:23 +00:00
Jermolene
04e2f18ff1
Remove tooltip, classes and styles from transclusion syntax
...
Now that transclusion doesn't generate any intrinsic elements we don't
have an element to attach the tooltip, classes and styles to.
2013-11-10 22:46:37 +00:00
Jermolene
8fb6f26729
Make sure we don't try to wikify the names of modules in the module listing
2013-11-10 22:45:11 +00:00
Jermolene
a668f09522
More refinements to the control panel
...
Including adding a TiddlyWeb-specific control panel tab
2013-11-10 21:53:39 +00:00
Jermolene
2598e22422
Spruce up the control panel
...
Structure things with extensible tabs.
2013-11-10 21:40:03 +00:00
Jermolene
b1667259f0
Fix default password
...
The password widget was defaulting to the password "null".
2013-11-10 19:22:10 +00:00
Jermolene
c77b451863
Fixed bug when using checkbox widget to apply a tag to a tiddler that is untagged
2013-11-10 19:21:37 +00:00
Jermolene
0c8ba71edd
Use the built-in tabs macro for the tiddler info panel and the sidebar tabs
...
Now you can insert your own tabs, too - see the release note
2013-11-09 19:21:37 +00:00
Jermolene
a7bb331412
Extend view widget so that it falls back to its content if the field/property is empty or missing
2013-11-09 17:30:06 +00:00
Jermolene
6f1c9d88cc
Improve the Widget.prototype.removeChildDomNodes() method so that most subclasses won't need to override it
2013-11-09 16:55:14 +00:00
Jermolene
ccb7fac25e
Fix further typo in edit-text widget
2013-11-09 14:17:08 +00:00
Jermolene
bbe9a9c191
Fixed typos in edit-text widget
...
Thanks @grayeul
2013-11-09 13:15:54 +00:00
Jermolene
0a657acbd8
Make the modifier field in the subtitle be a link
2013-11-09 12:51:52 +00:00
Jermolene
b745e304a2
Fix problem with edit-text widget and indexed properties
...
Thanks to @grayeul for the pointer:
https://github.com/Jermolene/TiddlyWiki5/commit/78bc89cbdbcc26e373001f2d
473436489d8d4365#commitcomment-4554613
2013-11-09 10:55:18 +00:00
Jermolene
e54148033b
Fix client server edition syncing
2013-11-08 21:34:47 +00:00
Jeremy Ruston
ec481415f9
Fixes for TiddlyWeb
2013-11-08 20:18:26 +00:00
Jeremy Ruston
5a8ef2681b
Update tw-new-tiddler
message to take a template tiddler
...
The template tiddler title is used as the basis of the new title, which
is probably not very convenient. We'd like to be able to use system
tiddlers as templates, without defaulting the new instance to a system
tiddler title.
2013-11-08 16:57:52 +00:00
Jeremy Ruston
8f556baee3
Fix up classes for missing tiddlers
2013-11-08 16:57:07 +00:00
Jeremy Ruston
8fbae4435f
Make the zoomin storyview visualisation properly track the title node
2013-11-08 12:36:30 +00:00
Jeremy Ruston
e93ac76581
Make sure external links have the class "tw-tiddlylink-external"
...
Fix #203
2013-11-08 12:26:32 +00:00
Jeremy Ruston
cc0011abd3
Get rid of the "new_" prefix we had on some methods
...
There's still the "old_" prefix to get rid of too.
2013-11-08 08:51:14 +00:00
Jeremy Ruston
b7cb1d3391
Change new_widget
to widget
...
I was avoiding doing this until after the merge.
2013-11-08 08:47:00 +00:00
Jeremy Ruston
3e3a5917b7
Move the widgets back to the right folder
2013-11-08 08:38:44 +00:00
Jeremy Ruston
35adf4269a
Merge backlog of changes from master branch
...
This is too easy. I'm worried.
2013-11-08 08:33:27 +00:00
Jeremy Ruston
c444b48dca
Restore the zoomin storyview
...
Now we fix the tiddler width properly.
2013-11-07 22:55:39 +00:00
Jeremy Ruston
a980348925
Refactored CSS classes for tiddler titles
...
Now we reserve the `title` class for the tiddler title span itself, and
`titlebar` for the previous purpose of identifying the div containing
the title and the toolbar buttons
2013-11-07 22:55:05 +00:00
Jeremy Ruston
69888e6701
Allow field modules to specify HTML element tag used for editing
2013-11-07 19:39:50 +00:00
Jeremy Ruston
e5b66a08bf
Reuse existing draft if available when switching a tiddler to edit mode
...
Fixes #199
2013-11-07 19:39:26 +00:00
Jeremy Ruston
cc11b86d81
Fixed typo
2013-11-05 09:00:31 +00:00
Jeremy Ruston
0428b7e6ae
Animate tags, tags editor and open list
2013-11-05 08:53:45 +00:00
Jeremy Ruston
26ff0c23a2
Fix the viewswitcher
2013-11-05 08:53:01 +00:00
Jeremy Ruston
aa79b4aff1
Add pop visualiser
2013-11-05 08:52:32 +00:00
Jeremy Ruston
6a0ae2c48b
Make sure we animate emptying the list widget
2013-11-05 08:52:17 +00:00
Jeremy Ruston
7c250fd7fe
Re-introduce listviews
...
Now called storyviews because they're aware of the history structure as
well as the list structure.
2013-11-04 22:22:28 +00:00
Jeremy Ruston
63243c5855
Introduce a PageMacros tiddler containing a tabs macro
...
This is a hacky way of having macro definitions that behave as if they
are global to the wiki.
The new tabs macro itself is cool, though: neatly encapsulates most of
the gubbins around a tab control, and the rendering is quite easy to
style.
2013-11-04 18:21:20 +00:00
Jeremy Ruston
ff4d76f045
Fix up missing variable values
...
We were crashing if a variable was inadvertantly set to undefined
2013-11-04 10:00:34 +00:00
Jeremy Ruston
adf16eeaf3
Update macrocall widget to allow type of input and output to be specified
...
Means that you can invoke macros without parsing them as wikitext.
2013-11-04 10:00:02 +00:00
Jeremy Ruston
ed6fd475ab
Add 'default' attribute to button widget
...
This allows us to do things like tab controls properly.
2013-11-04 09:59:26 +00:00
Jeremy Ruston
8ab7a1dd8f
Only set the style of the button widget if the style attribute is specified
2013-11-04 09:58:56 +00:00
Jeremy Ruston
fd70aa8c45
Get rid of the qualifyTiddlerTitles hack
...
Now, finally, we can implement qualifyTiddlerTitles as a macro.
2013-11-02 15:42:24 +00:00
Jeremy Ruston
0b1f0a5fab
Refactor the list widget to get rid of some hacks
...
As promised.
2013-11-02 10:12:55 +00:00
Jeremy Ruston
51394e50e8
Get rid of the event handling in the tiddler widget
...
Much neater if each widget does as little as possible.
2013-11-02 10:12:22 +00:00
Jeremy Ruston
1c2c6ca63f
Animation dropdown menus
...
I don't know whether this is a good idea; the menus feel too slow and
puffy to me.
2013-11-02 09:21:54 +00:00
Jeremy Ruston
31ae8910c6
Fix animation behaviour of reveal widget
2013-11-02 09:21:11 +00:00
Jeremy Ruston
6a6f6c7713
Restored animations for the reveal widget
2013-11-01 17:23:08 +00:00
Jeremy Ruston
0b0fb0a145
Fixed refresh logic of element widget
2013-11-01 17:22:51 +00:00
Jeremy Ruston
6b6b444269
Fixed refresh logic of checkbox widget
2013-11-01 17:22:40 +00:00
Jeremy Ruston
363e90fca8
Remove version widget in favour of widget macro
2013-11-01 13:22:06 +00:00
Jeremy Ruston
4118afe9e8
Make the widget tree for the page accessible to the JS console
...
Now you can browse the render tree of widgets by inspecting
`$tw.pageWidgetNode` in the JS console
2013-11-01 12:44:03 +00:00
Jeremy Ruston
4f4d45a972
Fix problem with default attribute of edit-text widget
...
Setting `default=""` wasn't working
2013-11-01 12:43:23 +00:00
Jeremy Ruston
33de87ec8c
Fix attribute name
2013-10-31 22:01:47 +00:00
Jeremy Ruston
100b1edd4d
Remove unused extraneous attribute
2013-10-31 22:01:35 +00:00
Jeremy Ruston
e870e28cf3
Remove unused wikified format from viewwidget
2013-10-31 22:01:12 +00:00
Jeremy Ruston
01a0c9481e
Remove unused class attribute from reveal widget
2013-10-31 21:59:53 +00:00
Jeremy Ruston
45f0f46fdf
Fix macrocall widget to not pass $name as a parameter
2013-10-31 21:59:37 +00:00
Jeremy Ruston
1ca473fd2f
Remove unused preserveCurrentTiddler attribute from list widget
2013-10-31 21:59:15 +00:00