Jermolene
89165fc51d
Fix problem with sorting date fields
...
Introduced a couple of commits ago when the localeCompare() stuff was
added.
2014-04-17 22:52:57 +01:00
Jermolene
bb42c0ab36
Use localCompare for sorting strings
...
So that accented characters get sorted correctly. Or at least as
correctly as browsers allow.
2014-04-17 20:15:52 +01:00
Jermolene
dad60cda05
Improve wiki.sortByList()
...
Previously list-before and list-after didn’t work if they referenced
entries that hadn’t yet been placed
2014-04-14 21:30:30 +01:00
Jermolene
1e960ffcac
Fix problems with tiddlers called __proto__
...
Background:
http://www.2ality.com/2012/01/objects-as-maps.html
2014-04-06 22:43:10 +01:00
Jermolene
b7f674c51a
First pass at refactoring filter execution
...
This is the beginning of addressing #523 .
2014-04-03 20:49:16 +01:00
Jermolene
925b3d2a5b
Fix typo
2014-03-18 21:18:46 +00:00
Jermolene
9de17aa206
Make shadowTiddlers, pluginTiddlers and pluginInfo be private to the Wiki object constructor
2014-03-17 10:50:18 +00:00
Jermolene
721e333a20
Starting to make the members of $tw.Wiki be private
...
We want to avoid plugins from directly accessing the tiddlers hashmap.
Later we’ll do pluginTiddlers, pluginInfo and shadowTiddlers.
2014-03-16 21:23:10 +00:00
Jermolene
8e17c1dfd5
Fix setTextReference()
...
It wasn’t working for non-existent tiddlers. Also added support for
setting indexed properties of a data tiddler.
2014-03-12 21:54:43 +00:00
Jermolene
0d18f3cc5d
Add support for ordering tags by the 'list-before' and 'list-after' fields
...
See the discussion here:
https://groups.google.com/d/topic/tiddlywikidev/AXDJEjcAphs/discussion
2014-03-12 14:19:26 +00:00
Jermolene
0d7c4ae6c7
Include tags on shadow tiddlers in tagging filter
...
Ensures that for system tiddlers the info panel "Tagging" tab correctly
shows the tagged tiddlers.
Final fix for #478
2014-03-10 19:41:38 +00:00
Jermolene
bc8b72e6eb
Use hasOwnProperty to text for tiddler existence
2014-03-09 19:20:58 +00:00
Jermolene
3636744d4f
Add support for retrieving formatted text content from the fake dom
...
The idea is to convert HTML block elements into newlines, so that the
output is readable on a terminal.
2014-02-25 14:49:07 +00:00
Jermolene
260080164f
Update setTiddlerData() to preserve tiddler dictionaries
...
Previously, data tiddlers were always being saved in JSON format,
regardless of the original format.
2014-02-23 12:33:00 +00:00
Jermolene
ec0769d7ca
Fix typo
...
Fixes #417 , thanks @pmario
2014-02-21 09:11:27 +00:00
Jermolene
2744671211
Fix generateTitle to avoid clashing with shadow tiddlers
2014-02-20 09:58:01 +00:00
Jermolene
70a120d4a6
Expand the logging mechanism to support alerts overlaid on the main screen
...
Now we get decent visual indication of sync errors, for instance. Still
work to do to coalesce alerts so that the screen doesn’t fill up with
them after an interval. And probably we should add a button to clear
all alerts.
2014-02-14 07:53:41 +00:00
Jermolene
9db887748b
Extend setTiddlerData() to set arbitrary fields
2014-02-13 17:59:33 +00:00
Jermolene
ca0c352278
Extend the transclude widget to fallback to displaying it's child nodes if the target isn't defined
2014-02-12 21:38:37 +00:00
Jermolene
a01bbd4b9c
Add automatic saving and warning on exit with unsaved changes
...
We re-use some of the existing syncer mechanism. It was already keeping
track of changes to tiddlers in the store when working with a tiddler
syncadaptor. Now it also tracks changes when there is no syncadaptor,
allowing us to provide a warning if there are unsaved changes.
2014-02-06 21:36:30 +00:00
Jermolene
1d685df928
Add support for autosave
...
Causes the wiki to be autosaved whenever clicking “done” after editing
a tiddler. Only works with savers that support autosave. We should
probably make autosave configurable
2014-02-04 21:21:01 +00:00
Jermolene
02ba92c6b5
Add [is[image]]
filter operator
2014-01-29 09:04:41 +00:00
Jermolene
0b3efe179e
Extend list filter operator to take a text reference
...
Instead of just a title. Means that we can apply the list operator to
fields other than the list field.
2014-01-25 18:14:30 +00:00
Jermolene
f4b27b33de
Fixed problem with multiple tiddlers created from dragging a single file
2014-01-24 14:09:06 +00:00
Jermolene
ed5cf8b044
Refactor importing of encrypted TiddlyWiki files so that it works on Node.js
2014-01-19 20:13:55 +00:00
Jermolene
299e9d15fb
Add support for importing encrypted TiddlyWiki documents
2014-01-19 18:43:02 +00:00
Jermolene
2c790d982f
Switch to using $tw.fakeDocument
for the fakedom document object
...
So that we can free us `$tw.document` to be the actual DOM document
2014-01-15 14:57:35 +00:00
Jermolene
b04141fefd
Don't load tiddlers that don't have a title
...
We were getting problems (eg, adding a `readme.md` to a plugin without
an accompanying `readme.md.meta` would end up creating a tiddler called
“undefined”)
2014-01-12 21:48:18 +00:00
Jermolene
1a74e2538c
Cleaning up further coding style inconsistencies that have crept in
2014-01-03 10:50:00 +00:00
Stephan Hradek
ce8c79ecfa
changed sort and sortcs to support nsort and nsortcs
2013-12-29 00:15:11 +01:00
Jermolene
12b4cc5d3e
Update wiki.readFiles() to call the callback just once
...
Now we accumulate the results and just pass them to the callback once.
2013-12-23 08:55:11 +00:00
Jermolene
bd80bf4acc
Regex optimisation suggested by @Skeeve
2013-12-20 18:14:11 +00:00
Jermolene
e66fb948c1
Typo from #296
2013-12-20 17:07:30 +00:00
Stephan Hradek
04077549ca
Fixed the typos Mario noticed
2013-12-19 20:38:59 +01:00
Stephan Hradek
42ba6852d1
changed 2 loops resolving name conflicts for new tiddlers as suggested in issue 294
2013-12-18 23:48:04 +01:00
Jermolene
6298c7aa43
Refactor wiki.forEachTiddler() and wiki.getTiddlers() to take an options parameter
2013-12-11 22:01:02 +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
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
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
42fce1929c
Improve save notifications for TiddlySpot
2013-11-26 12:50:40 +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
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
d2dbc73448
Correct typo
2013-11-12 19:52:25 +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
Jeremy Ruston
ec481415f9
Fixes for TiddlyWeb
2013-11-08 20:18:26 +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
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
4eebe7388d
Add a wiki.makeWidget() method
...
Encapsulates some logic that has been duplicated elsewhere.
2013-10-29 14:48:24 +00:00