Jermolene
84cd296c58
Minor tweaks to shadow warning infrastructure
...
1. Moved some methods out of boot.js because they are not needed until
after bootup
2. Added alternate message for editing an overridden shadow tiddler
3. Minor style tweaks
2014-04-28 15:16:31 +01:00
Jeremy Ruston
a90339d1e5
Merge pull request #586 from sukima/feature/issue-570-cancle-unchanged-drafts
...
Fix issue #570 Make it harder to accidentally modify a shadow tiddler
2014-04-28 13:22:44 +01:00
Devin Weaver
a505b6ffc0
Move isModified from Tiddler to Wiki
...
Replace this with a $tw.wiki.isModifiedTiddler(title) as part of the
wiki object. This allows it to be used outside of the current Wiki which
can change.
2014-04-27 17:15:42 -04:00
Devin Weaver
d0636f2124
Add a confirmation to edit a shadow tiddler
...
Should only display the confirmation if the shadow tiddler has not been
overridden in the first place. It checks this by looking for the
existence of a modified field for which the default system based shadow
do not have until a user changes them.
This addresses the second line item on issue #570
We will need new translations for the added string
`ConfirmEditShadowTiddler`
2014-04-27 17:15:42 -04:00
Devin Weaver
5226c7a2fa
Prevent saving un-modified tiddlers
...
When saving a tiddler we check to see if the tiddler has changed
(isModified) if it hasn't then bounce the event to tw-cancel-tiddler
instead.
Addresses first line item in issue #570
2014-04-27 17:15:42 -04:00
Devin Weaver
8611867930
Remove dead code 💀
2014-04-27 17:15:41 -04:00
Jermolene
385c7e207c
Refactor wiki.filterTiddlers()
...
Now we pass a widget instead of the current tiddler title. We can use
widget.getVariable(“currentTiddler”) to get the current tiddler.
2014-04-27 20:03:33 +01:00
Jermolene
570cad1c7f
Add 'get' filter operator
...
Prompted by @sukima’s work on #586
2014-04-27 18:45:01 +01:00
Jermolene
e9557b578e
Improve output directory handling
...
This change is likely to break most existing scripts that call
TiddlyWiki.
TL;DR - output paths are now relative to the editions/output folder,
rather than to the current folder
See [[Notes for upgrading to 5.0.11-beta]] for details.
2014-04-27 08:28:21 +01:00
Jermolene
f7e50e0950
Add --build
command
...
First pass at the build system described in #356 .
To test it, move to a new, empty directory and try `tiddlywiki
editions/tw5.com --verbose --build`
2014-04-25 22:41:59 +01:00
Jermolene
552657fc58
Fix text parser to use codeblocks
...
This means that JavaScript and JSON tiddlers will be properly
highlighted if the highlight plugin is loaded.
2014-04-24 19:41:07 +01:00
Jermolene
15d0c27e2a
Add [is[tag]]
filter operator
2014-04-18 17:57:55 +01:00
Jermolene
9fbe72a877
Rearrange system tag configuration
...
By rearranging the `[all[]]` operator we are able to ensure that shadow
tiddlers get processed before ordinary tiddlers. This makes it easier
to create custom stylesheets that override the core.
2014-04-18 09:28:14 +01:00
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
4758874d13
Add path conversions from TiddlyWiki Classic
...
TiddlyWiki Classic converts local file URIs to various local native
formats. The same conversions are now performed by the TiddlyFox
adaptor for TW5.
2014-04-17 22:30:14 +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
73cfd10218
Fix regression with untagged filter operator
...
Restored previous behaviour of considering a missing tiddler to be
untagged.
2014-04-17 16:10:50 +01:00
Jermolene
ad4b03506a
Added wikitext image support
...
We’ve added a parser to recognise the `[img[URL or tiddler title]]`
format, and an associated image widget.
2014-04-17 12:52:32 +01:00
Jermolene
ace57dd205
Refactor utilities out of HTML parser
...
Some of the functions are useful general purpose parser helpers.
2014-04-17 12:00:32 +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
4c648e7cdc
Exclude more illegal characters from external links
2014-04-14 11:17:28 +01:00
Jermolene
0aa559cd23
Improve responsiveness during editting
...
Simple optimisation whereby we defer the main refresh cycle when only
draft tiddlers have been modified.
We defer for 400ms, and keep extending the delay at each fresh draft
modification. The effect is that if the user is using the preview then
they’ll need to pause typing for 400ms before the preview is updated.
Fixes #470 , #454 , and maybe #206 .
2014-04-14 10:20:32 +01:00
Jermolene
28db76ddb3
Refactor page rendering into a separate function
...
Refactoring page rendering so that we can fix the performance issues
with editing drafts. The plan is to defer the refresh cycle if all the
changes are to draft tiddlers.
We need to do a bit more of this to get startup.js into better shape
(and more extensible).
2014-04-14 09:53:13 +01:00
Jermolene
e366aa3746
Use Date.now() instead of new Date()
...
Just for when what we actually want is a millisecond counter.
Interesting video about this:
https://www.youtube.com/watch?v=Vo72W1HWeFI
2014-04-14 09:02:52 +01:00
Jermolene
f1578d3409
Turn off instrumentation
...
All those console.log()s make editing very slow
2014-04-13 21:17:44 +01:00
Jermolene
93b9d16d6c
Don't include pipe characters in URLs
2014-04-13 21:17:44 +01:00
Jermolene
be5f6f6700
Allow spaces in property names in text references
2014-04-12 17:14:09 +01:00
Jermolene
3afa26b9a3
Require confirmation before abandoning edits
...
Fixes #544
2014-04-12 14:15:49 +01:00
Jermolene
a3cf925e56
Add classes for the current theme and language
...
Add the classes to the tw-page-container DIV
2014-04-11 21:37:58 +01:00
Jermolene
ccf2cb36a1
Extend sameday operator to select field
...
Now the target field can be specified in the suffix:
`[sameday:created[20140808]]`
2014-04-10 20:19:12 +01:00
Jermolene
7a4a00f6ca
Sort operator should default to title
...
Previously we were crashing if a sort field wasn’t specified
2014-04-10 19:56:21 +01:00
Jermolene
ccefc1b17b
Tolerate more whitespace in block elements
...
Previously the double newlines marking a block mode element couldn’t be
interspersed with whitespace.
2014-04-10 11:05:27 +01:00
Jermolene
e5fe3f76ac
Fix linkcatcher message sending
...
We need to send messages to the parent so that we don’t set up an
infinite loop by sending `tw-navigate` messages. Also we need to pass
along the target of the navigation.
2014-04-09 16:09:12 +01:00
Jeremy Ruston
9b52ca7cc0
Merge pull request #543 from welford/load-and-deserialize
...
Make deserializing a bit more robust
2014-04-09 11:51:16 +01:00
Jermolene
f9a274df85
Require confirmation for all tiddler deletions
...
Previously we only asked for confirmation when deleting a draft tiddler
2014-04-09 11:32:08 +01:00
James Welford Anderson
362df18a19
make deserializing a bit more robust
...
load.js references the encoding set in boot.js when loading a file.
boot.js can now register file type with different deserialization from
their actual type
2014-04-09 06:20:51 +09:00
Jermolene
426281539a
Merge branch 'saner-filters'
2014-04-08 14:14:11 +01:00
Jermolene
3282bd948f
Fix problem with search filter operator
2014-04-08 09:36: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
b51d851f93
Fix extraneous comma
...
Thanks to Danielo Rodríguez
2014-04-06 22:09:42 +01:00
Jermolene
4d91a7762e
Optimise link widget
...
Handle the classes better, and stop using a default tooltip (parsing
the tooltip was a performance hog)
2014-04-05 17:37:58 +01:00
Jermolene
272a4bbe61
Filtering optimisations
2014-04-05 17:31:36 +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
d402d3c5a6
Add performance measurement features
...
This is an experimental module to help us measure the performance of
the refresh cycle and the filter mechanism. Not intended to replace the
performance measurement features in browser developer tools, just to
make it easier to automate performance checks cross-browser.
The immediate purpose is to help in refactoring the filter mechanism.
The recent change to encapsulate the wiki store “tiddlers” object has
hurt the performance of filters, and it’s going to be helpful to have
decent measurements while refactoring that code.
I’m still not convinced that this stuff should be in the core, and may
well end up removing it after the present refactoring cycle.
2014-04-01 08:33:36 +01:00
Jermolene
dcce487934
Add support for platform dependent high resolution performance timers
...
For profiling filter performance
2014-03-31 18:42:30 +01:00
Jermolene
c3e24c1228
Trim spaces from new field and tag names
...
Fixes #517
2014-03-31 17:59:28 +01:00
Jermolene
6307293469
Fix some Node.js cross-platform compatibility issues
...
Thanks to http://shapeshed.com/writing-cross-platform-node/
Surprising that file path format is pretty much the only issue.
2014-03-31 17:17:36 +01:00
Jeremy Ruston
0d0679de1b
Merge pull request #514 from Skeeve/patch-6
...
Show site title when logging in
2014-03-31 12:59:15 +01:00
Jermolene
09214d1c33
Fix problem with --load
command overwriting $:/core
...
Now we use the `wiki.importTiddler()` method - it rejects attempts to
load older versions of loaded plugins
2014-03-31 12:46:10 +01:00
Jermolene
914a536d82
Correct relative date handling of t=1s
...
We were incorrectly displaying “1 seconds ago”
2014-03-31 12:41:54 +01:00
Jermolene
5a085f7927
Add basic CSV parser
2014-03-31 12:41:02 +01:00
Skeeve
0595619d39
Show site title when logging in
...
I have several TW5 servers running on the same host and think it would be good, would the password prompt display the $:/SiteTitle
2014-03-31 08:58:13 +02:00
Jermolene
bca1d55280
Add validation of legal characters for fieldnames
2014-03-26 13:38:43 +00:00
Jermolene
79d643775d
Fix scrollable widget not to crash on the server
2014-03-25 14:37:33 +00:00
Jermolene
d3e178becc
Add scrollable widget
...
A new widget to handle scrollable areas. We’ll use it both for the
story river and the sidebar.
2014-03-25 14:26:54 +00:00
Jermolene
535837e017
Use client bounding rect rather than offset positions for computing scroll positions
2014-03-24 22:31:03 +00:00
Jermolene
20f6383528
Add storyviews list filter and use it in view switcher
2014-03-24 22:17:45 +00:00
Jermolene
3ce2159a95
Missing semicolon
2014-03-24 21:35:48 +00:00
Jeremy Ruston
4badabce4b
Merge pull request #496 from buggyj/syncer
...
syncer freeze fix
2014-03-20 20:58:50 +00:00
Jermolene
178cfb1084
Make more core strings be translateable
...
Now we’re translating strings that occur in JavaScript modules.
Partially fixing #491
2014-03-20 20:55:59 +00:00
buggyj
aa63151815
syncer freeze fix
2014-03-19 20:20:54 +05:30
Jermolene
ba6edd42c1
Explicitly blacklist unsafe elements, starting with <script>
...
Are there are any other elements that might be considered unsafe?
2014-03-19 10:05:44 +00:00
Jermolene
925b3d2a5b
Fix typo
2014-03-18 21:18:46 +00:00
Jermolene
b8d0fd059b
Fix bug with plugintiddlers filter operator
2014-03-18 21:18:45 +00:00
Jermolene
bdbbf94326
Update transclusion wikitext syntax to allow a template without a target tiddler
...
This allows us to transclude a tiddler without changing the current
tiddler with `{{||MyTiddler}}`.
2014-03-17 21:44:10 +00:00
Jermolene
cdf3e101a8
Fix crash with headings
...
`this.match[1].length` can get overwritten when we parse the content of
the heading
2014-03-17 20:55:08 +00:00
Jermolene
06500e5f71
New error message text for recursive transclusion error
2014-03-17 11:54:41 +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
f649b5b037
Extend button widget to set text references
...
Previously the `set` attribute could only be used to identify a
tiddler, not a full text reference.
2014-03-15 17:02:13 +00:00
Jermolene
42c67cfeb7
Add tiddler info "advanced" panel
2014-03-14 15:23:28 +00:00
Jermolene
f48701544e
Enhance tiddler title for system tiddlers
...
Now the $:/ part of the name is rendered in grey, making the main part
of the title more prominent.
@tobibeer suggested this a long time ago; good idea!
2014-03-13 17:40:53 +00:00
Jermolene
50cf9678cb
Add support for tw-home message
2014-03-12 22:32:13 +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
d0caf21b2d
Exclude attributes starting "on" on HTML elements
...
Because:
* It doesn't work well with TW5's refresh mechanism, which relies on
being able to regenerate any portion of the DOM as required; this
frequently causes inline handlers to be re-executed at unexpected times
(see
http://tiddlywiki.com/static/TiddlyWiki%2520for%2520Developers.html )
* It mixes TW5 version-specific JavaScript with user content
* In multiuser environments there is a security risk to importing or
viewing tiddlers you didn't author if they can have JavaScript in them
2014-03-12 16:39:18 +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
8d612aefdd
Fix problem with theme overrides triggering the syncer object
...
Fixes #479
2014-03-10 19:05:06 +00:00
Jermolene
db35bc36aa
Disable storyviews when rendering to the fake dom
2014-03-10 18:41:11 +00:00
Jermolene
af34fbbca3
Only show command line help if no arguments are provided
...
Previously we were checking in a way that meant that `tiddlywiki
<wiki>` would trigger the help message.
2014-03-10 18:20:07 +00:00
Jermolene
01e1133219
Fix bug where count widget wasn't being updated correctly
2014-03-10 18:15:00 +00:00
Jermolene
98872bbe7c
Allow pasting/dropping of HTML content
...
Fixes #477
2014-03-09 20:39:03 +00:00
Jermolene
bc8b72e6eb
Use hasOwnProperty to text for tiddler existence
2014-03-09 19:20:58 +00:00
Jermolene
289bec0fd5
Parse the wiki link tooltip as wiki text
2014-03-08 16:06:57 +00:00
Jermolene
81af6bdd48
Fix typo in navigate handler for button widget
2014-03-08 10:22:09 +00:00
Jermolene
a5a2c718b1
Add support for a tooltip on the link widget
2014-03-06 12:38:47 +00:00
Jermolene
c277370e48
Display --help message if run without arguments
...
Fixes #389
2014-03-05 11:13:58 +00:00
Jermolene
67f3d58f71
Fix problem with "null" message when unloading under IE11
...
Fixes #457
2014-03-04 22:21:18 +00:00
Jermolene
df6436a12c
Allow middle mouse button to trigger navigation suppression when clicking a tiddler link
...
Equivalent to holding control/command while clicking.
2014-03-03 09:09:13 +00:00
Jermolene
4194f9f20f
Retract change to new tiddler handling in navigator.js
...
Original commit: d5c31ed07f
2014-02-28 15:31:35 +00:00
Jermolene
cadeb9654c
Add help command
2014-02-25 14:50:18 +00:00
Jermolene
2ed8df0d1f
Add a new "commands" filter
2014-02-25 14:49:56 +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
8ce7c3920c
Get rid of the old print command
...
We’ll be introducing a help command to replace it
2014-02-25 14:47:19 +00:00
Jermolene
a1ad735822
Extend the init command to allow editions to be merged
...
Now we can say “—init tw5.com clientserver” to get the tw5.com content
with the client server plugins.
2014-02-24 10:58:11 +00:00
Jermolene
3f6bf2452a
Init command should remove any includeWikis definitions
...
The includeWikis references will otherwise be broken when the edition
is copied.
2014-02-24 10:14:17 +00:00
Jermolene
f3930ad69c
Add init command to initialise a wiki folder
...
Fixes #362
2014-02-23 22:58:17 +00:00
Jermolene
b0394f1560
Add support for utils-node modules that are only run under Node.js
2014-02-23 22:57:25 +00:00
Jermolene
99ccdf4584
Add confirmation when deleting tiddlers
...
Fixes #381
2014-02-23 17:37:32 +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
2ab0facf3a
Extend button widget to allow navigating to a tiddler
...
Fixes #327
2014-02-22 16:13:16 +00:00
Jermolene
75ff9fb6c0
Allow the end of text to be treated as a linebreak for parsing HTML tags
2014-02-22 08:43:03 +00:00
Jermolene
0961b0426b
Use import report tiddler only if more than one tiddler is imported
...
If there’s only one, just display the tiddler itself.
2014-02-21 20:17:34 +00:00
Jermolene
dfbb6e1fba
Ensure that $:/isEncrypted is reset if modified
2014-02-21 18:21:10 +00:00
Jermolene
31975e0042
Update importing so we don't open every imported tiddler
...
Instead we just display a report with links to each imported tiddler.
Should make importing much faster.
2014-02-21 18:21:10 +00:00
Jermolene
cb5b95add2
Extend fakedom to support .value property
...
So that 88ffb2ad12
will work on the server
2014-02-21 15:43:25 +00:00
Jermolene
68bcbff753
Rough and ready control over bitmap editor line width and colour
...
Fixes #414
2014-02-21 14:06:04 +00:00
Skeeve
d5c31ed07f
Update navigator.js
...
As described here: https://groups.google.com/d/msg/tiddlywikidev/AWvXz7RMIC4/gFF5crN2UJoJ
Providing a name for the new tiddler message only works if a skeleton tiddler already exists. If not, "New Tiddler" is taken. This change fixes that in that the provided name is taken even if there is no skeleton.
2014-02-21 10:37:20 +01:00
Jermolene
ec0769d7ca
Fix typo
...
Fixes #417 , thanks @pmario
2014-02-21 09:11:27 +00:00
Jermolene
c17844b815
Another fix for the block vs inline handline
2014-02-20 22:43:04 +00:00
Jermolene
06a0d21734
Use double linebreaks to indicate content of a widget or html element should be parsed in block mode
...
Fixes #82 .
The old behaviour was to parse the content of a widget or html element
in block mode if the opening tag was followed by a line break. The new
behaviour requires two line breaks.
This makes it possible to include linebreaks more liberally within
wikitext, although care must still be taken to only use double line
breaks when the block mode behaviour is desired.
The code change here is very simple, just a single line change in
html.js. Most of the other changes are to convert various single line
breaks into double line breaks.
2014-02-20 21:42:31 +00:00
Jermolene
5417b8c4d7
Add 'indexes' filter operator
...
Returns the indexes within a data tiddler.
We’re about to use this to enumerate the colours within a palette.
2014-02-20 10:00:13 +00:00
Jermolene
2744671211
Fix generateTitle to avoid clashing with shadow tiddlers
2014-02-20 09:58:01 +00:00
Jermolene
88ffb2ad12
Fix problem that was causing Chrome to display black in colour picker swatches
...
Hurrah!
2014-02-20 09:57:44 +00:00
Jermolene
5e9dae8fb4
Fix view widget so that it works with indexes
2014-02-17 11:28:48 +00:00
Jermolene
e051eb7d90
Making more things translateable
...
Now we’re done with the text that lives in tiddlers, and we’ll need to
get on with the text that is embedded in code modules.
2014-02-16 09:46:43 +00:00
Jermolene
c43cd325ca
Reduce the inconsistent use of "language" vs. "lingo"
...
Now we’re just using the word “lingo” for the macro defined in
PageTemplate (where the abbreviation is useful), and using the full
word “language” everywhere else.
It’s possible that we should be using “locale” instead of “language”,
what do you think?
2014-02-15 11:32:11 +00:00
Jermolene
69c0b5e031
Fix problem with pasting items into the browser
2014-02-14 20:00:23 +00:00
Jermolene
4836cf83e2
Enhance alerting to coalesce repeated alerts with the same text
2014-02-14 10:29:26 +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
9bb600299f
Extend the navigator widget to maintain the "current-tiddler" field on the history list
2014-02-13 17:59:51 +00:00
Jermolene
9db887748b
Extend setTiddlerData() to set arbitrary fields
2014-02-13 17:59:33 +00:00
Jermolene
800bc639f9
Fix problem with the reveal widget not refreshing properly when used with text references
...
The check for changed tiddlers was failing because `this.stateTitle`
contains the entire text reference, not just the tiddler title.
2014-02-13 17:59:10 +00:00
Jermolene
ad4e7ccb17
Add experimental support for building plugins in the browser
...
It’s a bit rough and ready, but works.
2014-02-13 14:23:27 +00:00
Jermolene
470beabf17
Enhance links so that control/command clicking suppresses navigation
...
Control- or Command-clicking on a link will now open the target tiddler
but suppress navigating to it. Kind of like opening in a background tab.
2014-02-12 22:00:12 +00:00
Jeremy Ruston
523eae83ff
Merge pull request #407 from Skeeve/regexp_filter
...
fixed an awful typo in the regexp
2014-02-12 21:38:54 +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
Stephan Hradek
0dc8de9dd2
fixed an awful typo in the regexp
...
The regexp fails when backslashes are used in the search-regexp. The closing bracket was at the wrong position.
2014-02-12 22:34:13 +01:00
Jermolene
ecad2bf7a8
Add better control over whether tiddlers are transcluded in block or inline mode
2014-02-12 17:59:28 +00:00
Jermolene
8b3bfa6805
Allow [title[Blah]] to match missing tiddlers
...
Fixes #404
2014-02-12 16:01:20 +00:00
Jermolene
d5b526914b
Simplify the regular expression for HTML comments
...
We were getting catastrophic backtracking in Chrome for some input
texts where the closing “—>” of the comment was omitted.
2014-02-12 15:24:03 +00:00
Jermolene
5c66bc6dbc
Update the reveal widget to allow control over content retention
...
Thus bringing back the animation of the opening and closing of the info
panel.
2014-02-12 08:32:19 +00:00
Jermolene
dd451800c7
Specify encoding for incoming requests
...
Fixes #397
2014-02-11 19:42:45 +00:00
Jermolene
190ced7cdd
Sync from server even when not logged in
2014-02-11 19:10:40 +00:00
Jermolene
441d9078fa
Coding style tweaks for #399
2014-02-10 17:34:10 +00:00
Jeremy Ruston
f0ab607ea1
Merge pull request #399 from shendaras/patch-1
...
getRelativeDate: support for negative deltas
2014-02-10 17:33:08 +00:00
Jermolene
ecba4f71ea
Clean up the highlight plugin
...
Fixing various issues that were preventing language specifiers from
working.
2014-02-10 13:51:38 +00:00
Jermolene
dea08ed4f8
First pass at language plugins for internationalisation
...
Still quite a few details to work out, but this shows the basic idea of
re-using the theme mechanism to handle language plugins.
Comments and questions welcome.
2014-02-09 19:18:46 +00:00
Jermolene
8ad34e2db9
Refactor the theme switcher to be a generic plugin switcher
2014-02-08 09:29:37 +00:00
Jermolene
b26a32b93a
Remove obsolete stylesheet helper
2014-02-08 09:29:11 +00:00
Jermolene
828fc9dcd0
Autosave when deleting a tiddler
2014-02-07 10:14:10 +00:00
Jermolene
f0d512edf0
Remove extraneous autosave attribute from navigator widget
...
Inadvertently committed.
2014-02-07 10:12:45 +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
6d3d3322e5
Fix problem in server with URI encoding of titles in etags
...
Fixes #398
2014-02-05 19:39:29 +00:00
Daniel Barrett
d02ce5dbf3
oops, actually correct delta
...
Actually change delta to a positive number to get the logic the same.
2014-02-05 12:37:37 -06:00
Daniel Barrett
32f290dc13
getRelativeDate: support for negative deltas
...
Add support for format="relativedate" to be used when the date is in the future.
2014-02-05 11:44:01 -06: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
4882f70557
Clearer explanation of key descriptor syntax
2014-02-04 20:05:34 +00:00
Jermolene
7eafd51a7d
Use placeholder text for editing missing tiddlers
...
Fixes #387
2014-01-30 17:39:32 +00:00
Jeremy Ruston
7b054440ca
Merge pull request #374 from Skeeve/patch-1
...
Update utils.js
2014-01-30 08:24:00 -08:00
Jermolene
e3a05625b2
Add experimental keyboard shortcut widget
...
It’s not cool that we have to use a separate keyboard widget for each
keyboard shortcut.
Fixes #386
2014-01-30 13:40:36 +00:00
Jermolene
0c20092644
Refactor the image parser to avoid generating badly formed image src's
...
Previously, a transclusion of a skinny image tiddler (ie one where the
body has yet to be loaded) would render a broken image.
2014-01-29 19:11:05 +00:00
Skeeve
758d461823
Update utils.js
...
I think /\\/g is wrong as it will remove every \ from the string. I think, the usual way of keeping the following character is more appropriate.
2014-01-29 13:43:34 +01:00
Jermolene
02ba92c6b5
Add [is[image]]
filter operator
2014-01-29 09:04:41 +00:00
Jermolene
70ed6e6ad3
Fixed problem with list filter
...
A bug was preventing the tiddler title from being omitted in the list
filter (ie, [list[HelloThere!!field]] worked, but [list[!!field]] did
not.
2014-01-27 16:24:28 +00:00
Jermolene
dfc57ffa49
More logging
2014-01-26 20:59:30 +00:00
Jermolene
3f9561dd95
Better logging
2014-01-26 18:53:31 +00:00
Jermolene
69d342d46a
Stop the reveal widget caching hidden content
...
Previously, when displayed content is hidden by the reveal widget there
was an optimisation such that the content was retained in the DOM but
hidden using CSS, so that it could be shown again quickly.
It turns out that a sideeffect of that optimisation is that clicking
through all the sidebar tabs leaves them all active, so that they all
need to be refreshed whenever a character is typed in an editor.
This commit suppresses the optimisation, so that hidden content is
removed from the DOM and the render tree.
2014-01-26 09:57:46 +00:00
Jermolene
45c45e098f
Add a cancel button to the 'set password' dialog
...
Fixes #185
2014-01-25 19:55:56 +00:00
Jermolene
9297b27b89
Reference correct wiki object
2014-01-25 18:17:33 +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
e6843aabff
Refactoring of new filter list operators
2014-01-25 17:44:36 +00:00
Jeremy Ruston
592ef257a2
Merge pull request #326 from Skeeve/listops
...
New list operations from @Skeeve
2014-01-25 08:51:26 -08:00
Jermolene
6ba9bf9a95
Boost the priority of the upload saver
...
If we’ve got an upload wiki name then we should always use the upload
saver.
See https://groups.google.com/d/topic/tiddlywiki/Jqd2jbPmYFA/discussion
2014-01-25 16:38:08 +00:00
Jermolene
6255b97b14
Resolve merge conflict
2014-01-25 14:41:48 +00:00
Jermolene
70a7321edd
Take editor configuration from configuration tiddlers
...
This should enable @buggyj to add an html editor by including a
configuration tiddler in the plugin.
2014-01-24 20:22:23 +00:00
Jermolene
a76da88380
Rename the operator portion after the colon to "suffix"
2014-01-24 19:15:27 +00:00
Jermolene
e6a7a0db1e
Style tweaks
2014-01-24 18:54:50 +00:00
Jermolene
edc71cb920
Merge branch 'regexp_filter' of https://github.com/Skeeve/TiddlyWiki5 into Skeeve-regexp_filter
2014-01-24 18:40:27 +00:00
Jermolene
f4b27b33de
Fixed problem with multiple tiddlers created from dragging a single file
2014-01-24 14:09:06 +00:00
Jermolene
64304f9b7f
Ensure that new tiddlers created from a skeleton don't inherit created/creator fields
2014-01-21 21:00:08 +00:00
Jermolene
2fc6451bf7
Rejigged encrypted import so that the current password isn't changed
...
We still try the currently stored password. If that doesn’t work then
we prompt for a password, but we no longer store the password in the
store.
2014-01-20 13:35:55 +00:00
Jermolene
1e54b1bcc9
Remove empty tag fields in the field mangler
...
This means that removing the last tag from a tiddler will remove the
tags field.
2014-01-20 11:53:26 +00:00
Jermolene
1c283c5586
Tighten "has" filter operator
...
We now require the field not to be an empty string in order to be
counted.
2014-01-20 08:59:01 +00:00
Jermolene
95cb99adb9
Enhance text widget to optionally use "text" attribute
...
This lets us use the text widget to render text in macros that we don’t
want to be wikified.
2014-01-19 21:45:55 +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
3414f1ca8e
Move node-webkit saver into a plugin
...
We don’t need it for TiddlyDesktop now that it reuses the TiddlyFox
saver. But it is still useful for embedding a TW directly into a
node-webkit app
2014-01-18 14:57:42 +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
Stephan Hradek
14ca91a949
implemented the new regexp syntax
2014-01-14 22:08:05 +01:00
Stephan Hradek
0338c36610
implemented the field: syntax
2014-01-14 16:19:34 +01:00
Jermolene
809c441ab3
Merge branch 'master' of https://github.com/jbolila/TiddlyWiki5 into jbolila-master
2014-01-13 17:28:08 +00:00
Jermolene
12770ca3e6
Use an explicit default host
...
Thus fixing #339
2014-01-13 09:09:54 +00:00
Stephan Hradek
a5d75db8d2
Thinking about your mail led me to this new push -> Mail follows
2014-01-13 08:44:53 +01:00
Stephan Hradek
9444ef095f
I feel ashamed :( Somehow this slipped me :( Sorry!
2014-01-12 23:37:11 +01: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
João Bolila
426f2978cf
fixes of a newbie, me
2014-01-12 17:09:24 +00:00
Jermolene
e254529763
More configuration controls for TiddlySpot saver
...
And more reliable checking of the result returned from the server
2014-01-12 12:05:15 +00:00
Jermolene
b7a1db1e9f
Display tiddler data dictionaries as plain text
2014-01-12 11:58:32 +00:00
Stephan Hradek
8ef520ef37
Created regexp search for milestone 5.1
2014-01-10 10:32:49 +01:00
Jermolene
b64b7982af
Fix notification removal to not rely on transitionEnd events
2014-01-09 22:26:21 +00:00
João Bolila
82a48cf85c
codeblock as a widget and plugin for highlight code blocks
2014-01-07 22:57:46 +00:00
Stephan Hradek
9fee9b1043
Fix for Paul's concerns
2014-01-07 21:12:59 +01:00
Jermolene
e0f428b9b2
Fixed problem with Element.ELEMENT_NODE undefined on Safari
2014-01-04 15:15:12 +00:00
Stephan Hradek
103f4f6637
added some more filters
2014-01-04 00:01:17 +01:00
Jermolene
b06e09a4d3
Fix typo in default date format string for view widget
...
Fixes #320
2014-01-03 18:34:27 +00:00
Jermolene
027421f5e6
More coding style consistency
2014-01-03 10:54:00 +00:00
Jermolene
1a74e2538c
Cleaning up further coding style inconsistencies that have crept in
2014-01-03 10:50:00 +00:00
Jermolene
8fc5c1d4a0
Further style tweaks to #321
2014-01-03 10:48:00 +00:00
Jermolene
1374bd9d78
Coding style fixes for #321
2014-01-03 10:43:08 +00:00
Jermolene
307b5c7d6b
Merging #321 Table valign from @Skeeve
2014-01-03 10:39:55 +00:00
Jeremy Ruston
5dea8ca758
Merge pull request #324 from Skeeve/nsort
...
Add numeric sort filter operators
2014-01-03 02:30:12 -08:00
Jermolene
b132e1023d
Add error checking to $tw.utils.setStyle()
2014-01-02 19:00:46 +00:00
Stephan Hradek
b652238650
fixed issue #241 - created first, last, rest and reverse filter functions
2014-01-01 22:38:08 +01:00
Jermolene
87fbd988f1
Add support for running TiddlyWiki under node-webkit
2014-01-01 17:59:47 +00:00
Stephan Hradek
917865c393
fixed an initialization error
2013-12-31 11:09:17 +01:00
Stephan Hradek
ec14a0a16d
vertical alignment of cells - version 2
2013-12-31 11:05:08 +01:00
Jermolene
d043bdd289
Fix problem with view widget relativedate format
...
Fixes #319
2013-12-30 13:08:48 +00:00
Stephan Hradek
ce8cc7607f
changed to conform to Jeremy's standards - sorry…
2013-12-30 13:44:32 +01:00
Jeremy Ruston
2ee5093944
Merge pull request #305 from Skeeve/issue_186
...
added a fix for issue #186
2013-12-30 04:06:05 -08:00
Jermolene
ec7dff291d
Fix problem with "import" button not working
...
Fixes #308
2013-12-30 11:54:51 +00:00
Jeremy Ruston
de2e5adf15
Merge pull request #307 from Skeeve/issue_94
...
added fix for issue #94 for horizontal rules, tables and typed block
2013-12-30 03:46:16 -08:00
David Jade
3b114371d0
Only set placeholders when field has no data ( fixes #317 )
2013-12-29 17:18:00 -08:00
Stephan Hradek
14868d8228
also fixed issue #315
2013-12-30 00:28:43 +01:00
Stephan Hradek
3cc8138133
fixed issue #314 - fix for > at end of line
2013-12-29 23:57:42 +01:00
Stephan Hradek
8e080eac0a
fixed issue #314
2013-12-29 23:51:22 +01:00
Stephan Hradek
38142d2b19
Missed that I need to explicitly need to git rm …
2013-12-29 22:32:23 +01:00
Jermolene
bd7db62da0
Added support for specifying hostname for the --server command
...
Fixes #301
2013-12-29 13:07:06 +00:00
Stephan Hradek
cee1bc0863
small typofix
2013-12-29 00:19:51 +01:00
Stephan Hradek
ce8c79ecfa
changed sort and sortcs to support nsort and nsortcs
2013-12-29 00:15:11 +01:00
Stephan Hradek
f9de55ad5f
added fix for issue #94 for horizontal rules, tables and typed block
2013-12-25 23:06:42 +01:00
Stephan Hradek
81106e500d
added a fix for issue #186
2013-12-25 14:31:35 +01:00
Jermolene
eef32e70e3
Added support for dynamic favicons
...
Now it’s possible to edit $:/favicon.ico with the image editor, and see
the changes instantly reflected in the browser.
2013-12-24 09:08:25 +00:00
Jermolene
ad6bf4f9c5
Extend support for .ico files
...
Now we can parse image/x-icon tiddlers for display, and provide an
entry for them in the type dropdown.
2013-12-24 09:07:25 +00: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
10c25c1692
Fix slow regexp in importing TiddlyWiki HTML files
2013-12-23 08:54:33 +00:00
Jermolene
2d1d53893a
Adjust regex to work around an issue with importing certain tiddlers on Firefox
2013-12-22 11:28:03 +00:00
Jermolene
74fd683a22
Clean up indenting
2013-12-21 20:56:19 +00:00
Jermolene
8cc10d87d4
Added missing RawWidget
...
Fixes #298 . Thanks to @buggyj for pointing it out.
2013-12-21 16:11:48 +00:00
David Jade
7f5a8fc937
Better drag/drop for Firefox/Chrome and improved IE support
2013-12-20 19:57:05 -08: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
Jermolene
79046c52b4
Make the tiddler text prompt be a placeholder
2013-12-20 17:07:15 +00:00
Jermolene
062c4e5400
Make the edit widget pass through the placeholder attribute
2013-12-20 17:06:57 +00:00
Jermolene
8538d69dc1
Update navigator widget to use wiki.generateNewTitle()
2013-12-20 16:53:49 +00:00
Jermolene
274c52005d
Merge branch 'tiddlerexistsloops' of https://github.com/Skeeve/TiddlyWiki5 into Skeeve-tiddlerexistsloops
2013-12-20 16:49:12 +00:00
Jermolene
1c529ddcd4
Refactored stylesheet implementation
...
This way we reuse the refresh mechanism properly so that theme tweaks
can be applied interactively.
2013-12-20 15:31:16 +00:00
Jermolene
3bcaab513d
Fixed problem with insertBefore() method in fakedom
...
Was preventing refreshing of widget trees built against the fakedom.
2013-12-20 15:29:01 +00:00
Stephan Hradek
04077549ca
Fixed the typos Mario noticed
2013-12-19 20:38:59 +01:00
Jermolene
6c1489fc2f
Remove duplicate header
...
And provide a slightly more informative prompt
2013-12-19 16:53:48 +00: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
638c8b2070
Fixes to fullscreen support
...
Prompted by this article:
http://generatedcontent.org/post/70347573294/is-your-fullscreen-api-code
-up-to-date-find-out-how-to
2013-12-18 21:39:59 +00:00
Jermolene
2b72e48a3a
Improve prompt for --server
command
2013-12-18 21:11:16 +00:00
Jermolene
a4e3f66809
Add favicon.ico support to the server
2013-12-18 17:27:24 +00:00
Jermolene
f3b2788ed1
Add a savetiddler command
...
It saves tiddlers in their original, unrendered format
2013-12-18 17:26:23 +00:00
Jermolene
b50eb8da30
Fixed problem with tiddler navigation ordering
2013-12-17 15:42:53 +00:00
Jermolene
4ece301a97
Fix fieldmanger to update modified and modifier fields
2013-12-17 15:04:22 +00:00
Jermolene
db85bfe513
Fix problem with covering of the dragger image
...
Fixes #253
2013-12-17 13:39:46 +00:00
Jermolene
066a4d9fbc
Coding style and layout tweaks
2013-12-17 13:32:15 +00:00
Jermolene
3e2f475324
Merge branch 'master' of https://github.com/davidjade/TiddlyWiki5 into davidjade-master
2013-12-17 13:26:08 +00:00