Jermolene
218ce09605
Add permalink/permaview/clone to tiddler info bar
...
I’m open to suggestions for better ways to expose this functionality
2014-07-24 15:50:18 +01:00
Jermolene
1f16ef6fa8
Add support for permalink and permaview
2014-07-24 15:49:09 +01:00
Jermolene
eecb9126cd
Fix checkbox widget to work with missing tiddlers
2014-07-24 15:43:37 +01:00
Jermolene
22468990a2
Fix typo
2014-07-23 20:51:06 +01:00
Jermolene
fd82112700
Sort out info mechanism docs
...
Some of it belongs in the browser-sniff plugin
Also add a `$:/info/node` info tiddler.
2014-07-22 15:16:18 +01:00
Jermolene
3d8626dafa
Move browser sniffing into a plugin
2014-07-21 13:17:16 +01:00
Jermolene
b4d47858e5
Introduce info mechanism
...
We expose browser information as shadow tiddlers so that wiki
applications can adapt to available features.
2014-07-20 18:07:30 +01:00
Jermolene
9ddff6d8c0
Move startup.js into the startup folder
...
Neater.
2014-07-20 18:06:33 +01:00
Jermolene
0cf63ab9f0
Add theme tweaks upgrader
2014-07-18 20:00:05 +01:00
Jermolene
8612bc4006
Rename $:/tags/AboveStory and $:/tags/BelowStory
2014-07-18 11:29:09 +01:00
Jermolene
2322be3f41
Add preview to upgrade wizard
...
The tiddlers are wikified in the context of the host wiki, which means
that mutual transclusions between imported tiddlers won’t appear
correct in the preview.
2014-07-17 18:42:04 +01:00
Jermolene
f793816dfa
Add subtiddler support to the transclude widget
...
Useful to be able to reach into plugins. It will enable us to do things
like extract readmes from themes that are not active.
2014-07-17 18:41:20 +01:00
Jermolene
ed0bf7aed1
Stop defaulting to automatically updating the address bar
2014-07-17 18:40:26 +01:00
Jermolene
89989c737e
Fix bug with import tiddler handling
2014-07-17 15:02:42 +01:00
Jermolene
7a034560d1
Refactor ImportListing
...
Better to avoid relying on the storyTiddler variable, which is a pain
for people trying to reuse the import listing.
2014-07-16 20:31:10 +01:00
Jermolene
e40a0c07b8
Fix support for upgrading encrypted wikis
...
Importing an encrypted wiki ordinarily doesn’t place the password in
the password vault on the basis that one ought to be able to import
from a file without automatically inheriting its password.
Now there’s a configuration option that can be used by the upgrade
plugin to cause the password vault to be updated with any password
entered by the user. The end result is that the user only needs to
enter their password once.
2014-07-16 10:06:24 +01:00
Jermolene
98bf08d155
Tweak drop button colours
2014-07-15 13:11:13 +01:00
Jermolene
58cd874f22
Missed off last commit
2014-07-14 21:52:46 +01:00
Jermolene
4d948c575f
Improvements to one-shot upgrade UI
2014-07-14 21:52:32 +01:00
Jermolene
c92a21ff14
Remove extraneous debugger statement
2014-07-14 21:51:56 +01:00
Jermolene
c0edca78c8
Beginning of one-shot UI for upgrade.html
2014-07-14 14:53:21 +01:00
Jermolene
07f13b310d
Display plugin content in view template
2014-07-14 14:52:31 +01:00
Jermolene
5a23c883e2
More defensive checks
...
We’ve had a few bugs with the symptom of ‘text’ being undefined.
2014-07-14 14:52:00 +01:00
Jermolene
7998686cb3
Fix typo affecting transclusion recursion detection
2014-07-14 14:50:46 +01:00
Jermolene
1f6e16318a
First pass at upgrade mechanism
2014-07-12 09:09:36 +01:00
Jermolene
f08f57c5d2
Extend checkbox widget to toggle fields
2014-07-12 09:09:13 +01:00
Jermolene
4743d0a863
Fix transclusion recursion detection
...
We were inadvertantly doing the recursion check before we were checking
if the transclusion target exists.
2014-07-12 09:08:52 +01:00
Jermolene
9de679b84b
Fix tiddler widget to refresh properly
...
Previously wasn’t refreshing for changes to the tiddler that it refers
to
2014-07-12 09:08:20 +01:00
Jermolene
0f78c4afbf
Fix problem with tabs macro changing current tiddler
...
The problem was introduced in e18d8a8866
2014-07-12 09:07:51 +01:00
Jermolene
91acad0f7c
Add support for story backdrop and frontdrop
...
Allows elements to be added above or below the story river
2014-07-08 10:16:10 +01:00
Jermolene
811df7bbf0
Refactor animation easings
2014-07-08 10:07:17 +01:00
Jermolene
3351ae7e29
Fix issue with localStorage error on Firefox
...
Firefox raises an error if window.localStorage is accessed when cookies
are disabled:
https://bugzilla.mozilla.org/show_bug.cgi?id=771890
2014-07-06 10:11:21 +01:00
Jermolene
465f4ac469
Fix problem with refreshing modal dialogues
...
Previously any refreshing of the content of a modal would cause a
crash. The problem is the way that we steal the root widget for the
render trees used in the modal. The root widget is tied to the
container DOM node for the main content area, which isn’t actually a
parent of the modal DOM nodes, hence the confusion for the refresh
mechanism.
2014-07-04 21:07:35 +01:00
Jermolene
c9d4714e98
Extend makeTranscludeWidget
...
Add support for specifying the filename, and the fallback content
within the transclude widget that is used if the transclusion target
isn’t found
2014-07-04 21:03:11 +01:00
Jermolene
3ff7462afd
Avoid saving $:/HistoryList
...
Otherwise it just keeps growing on each navigation.
2014-07-03 14:33:20 +01:00
Jermolene
e18d8a8866
Extend the tabs macro to allow tab contents to be templated
2014-07-02 12:15:52 +01:00
Jermolene
d93da81671
Restore link hover colours
2014-06-27 07:26:34 +01:00
Jermolene
5b3b62f93d
Fix bug handling of build command
...
We were taking the commands expanded from the build targets and placing
them at the end of the queue. That caused a problem whereby the
prevailing output folder was always the last one in the command token
list.
Now we splice the new commands into the command token list at the
current position.
2014-06-24 12:09:10 +01:00
Jermolene
6f3e31abe5
Fixed problems with detecting changes to draft tiddlers
2014-06-23 23:28:22 +01:00
Jermolene
6d1eaeb0fc
Fix detection of draft changes
...
We were getting a lot of problems where changes to a tiddler were not
being recognised
2014-06-23 08:10:32 +01:00
Jermolene
680fe41ed7
Add isEqual() method to tiddlers
2014-06-23 08:09:59 +01:00
Jermolene
32a1da7673
Fixed problem with pasted items lacking a type
2014-06-22 11:58:00 +01:00
Jermolene
9987e6de22
Fix problem with overwriting existing tiddlers
2014-06-22 11:45:00 +01:00
Jermolene
0fae9ee992
Improve handling of popup state
...
An improvement to 6fb992690d
By making sure that all the popup state tiddlers have the prefix
$:/state/popup/ we can be more selective and just exclude popup state
tiddlers when we save. The end result is that once again other kinds of
state are persisted as expected (eg tabs, and sidebar visibility).
2014-06-22 11:14:11 +01:00
Jermolene
12b5ebb946
A new colour palette
2014-06-22 11:11:09 +01:00
Jermolene
f15eba66fe
Use SVG icons for expand/collapse
2014-06-21 11:49:42 +01:00
Jermolene
0b38cd640c
Reverse accidentally making Contents the default tab
2014-06-21 11:18:59 +01:00
Jermolene
32099b85d3
Add table of contents to tw5.com
2014-06-21 11:17:04 +01:00
Jermolene
fb5c44a875
Remove indenting
...
It didn’t work very well, and was giving us spans where there should be
divs in the tab control.
2014-06-21 11:16:35 +01:00
buggyj
0206358a1c
added missing regex update for triple double-quotes macro params
2014-06-19 19:17:26 +02:00
Jeremy Ruston
0c48502e8e
Merge pull request #660 from buggyj/jsonparams
...
added triple double-quotes delimiters for marco/widget parameters (to su...
2014-06-19 12:06:00 +01:00
buggyj
a2ec4c55e3
added triple double-quotes delimiters for marco/widget parameters (to support json strings)
2014-06-19 07:29:14 +02:00
Jermolene
0bdc5b5c70
Add editor type mappings to control panel
2014-06-18 13:52:22 +01:00
Jermolene
a9b7df96c2
Add support for TIDDLYWIKI_EDITION_PATH
2014-06-17 21:59:20 +01:00
Jermolene
8bd19c4e6a
Merge branch 'accessibility'
2014-06-17 11:49:06 +01:00
Jermolene
34e4166dc5
Add label and title for show/hide sidebar buttons
...
More fixes for #650
2014-06-17 11:39:18 +01:00
Jermolene
346b2f8611
Add label for advanced search link
2014-06-17 07:56:36 +01:00
Jermolene
6f859c8d44
Add label for close button in open sidebar tab
2014-06-17 07:56:27 +01:00
Jermolene
325a93f3c3
Move button language to $:/language/Buttons
2014-06-17 07:56:13 +01:00
Jermolene
06b0f9adb7
Added aria-label attribute to link widget
...
And document it for the button widget
2014-06-17 07:54:10 +01:00
Jermolene
401349a1d6
Improve a11y of close buttons in open tab
...
a11y === accessibility
2014-06-16 17:40:38 +01:00
Jermolene
bc9b67cbc3
Use H1 for page title and H2 for tiddler titles
...
Ideally, we’d also rebase the headings within tiddlers so that `!
Heading` would be an H3. Hopefully we’ll do that later.
2014-06-16 17:34:20 +01:00
Jermolene
6fb992690d
Exclude state tiddlers when saving changes
...
This might be a controversial change as it also means that it is no
longer possible to include `$:/state/…` tiddlers in a wiki to set up
the initial configuration.
2014-06-16 17:21:41 +01:00
Jermolene
bf2f88ba8b
Use H1 for tiddler titles
...
Part of #650
2014-06-15 08:37:58 +01:00
Jermolene
eeedcb6d94
First pass at accessibility improvements for #650
2014-06-14 18:06:56 +01:00
Xavier Cazin
d880cb135a
Update what was left from a copy/paste of savetiddler.tid :-)
2014-06-14 07:35:53 +02:00
Jermolene
f09d69d1b7
Remove debugging code
2014-06-13 14:44:43 +01:00
Jermolene
eee3a0cf8e
Extend server command to allow a path prefix
...
Thereby making the number of parameters to the command ludicrous
2014-06-13 14:44:34 +01:00
Jermolene
4238af2a40
Extend listed filter operator to use any field
2014-06-13 10:58:19 +01:00
Jermolene
ca34cc437c
Rename $:/core/templates/canonical-uri-external-image
...
As per @pmario’s suggestion.
2014-06-13 10:04:31 +01:00
Jermolene
f751e2ecb4
Added application JavaScript to type dropdown
...
Fixes #646
2014-06-12 19:12:58 +01:00
Jermolene
9ab0c84140
Support global macros via the importvariables widget
...
The new importvariables widget imports macro/variable definitions from
the specified tiddlers and makes them available to its children.
Allows us to split PageMacros up into separate tiddlers.
We still support loading macros from $:/core/ui/PageMacros to help
people upgrading.
Fixes #644 and #559
2014-06-12 18:01:33 +01:00
Jermolene
9547a1f01c
First pass at external image support
...
A bunch of little changes that together enable external image support.
Try:
```
tiddlywiki editions/tw5.com --verbose --build externalimages
```
Then open `externalimages.html`, look for the images in the more/types
tab of the sidebar, open them and verify that they are set with an
external SRC attribute, not a data URI.
2014-06-12 08:36:30 +01:00
Jermolene
f131c37893
Update HTML parser to use an IFRAME
...
Gives us better sandboxing of unsafe HTML content
2014-06-11 23:04:58 +01:00
Jermolene
d2796d0c9c
Introduce setfield command
...
This new command will let us do the manipulations needed to set up
external image tiddlers
2014-06-11 10:05:35 +01:00
Jermolene
a03a15e7de
Allow the text widget to refresh if needed
2014-06-10 19:32:55 +01:00
Jermolene
305617b632
Introduce savetiddlers command
...
Allows us to save tiddlers in their raw format.
2014-06-09 14:45:41 +01:00
Jermolene
9b576f2a8d
Add group headings to type dropdown
...
We’re also reverting to the old custom dropdown. Using the select
widget didn’t work out because it couldn’t cleanly work with a text box
allowing custom types to be specified.
2014-06-06 09:32:14 +01:00
Jermolene
c8e98c1567
Use the select widget tiddler content types
2014-05-31 22:39:32 +01:00
Jermolene
13463a47c5
Attention Translators! Add "group" field to tiddler types
...
Apologies to the translators for the extra work. Each translated
tiddler type needs a new “group” field that contains a locale-specific
group name that in English are “Image”, “Developer” and “Text”.
2014-05-31 22:38:50 +01:00
Jermolene
ffd9df670d
Fix problem with tabs switching on language change
...
In 5.0.12-beta, if you change the current language setting then the
current sidebar tab setting is lost. This was because the qualified
title generated for the tabs was incorporating the current language
title, by virtue of a trick used in the PageTemplate to set the
“languageTitle” variable to a field of the current language plugin.
This trick left the current tiddler set to the current language, and
this current tiddler was still in force for the transclusion of the
page template segments.
2014-05-31 19:20:51 +01:00
Jermolene
247eb04b11
Extraneous semi-colon
2014-05-31 19:18:01 +01:00
Jermolene
0ccaedd7d2
Use the select widget in the various switchers
2014-05-31 18:38:17 +01:00
Jermolene
3182a2d599
Add first pass at select widget
2014-05-31 18:37:43 +01:00
Jermolene
f999b2e931
Add wiki.setText() method
2014-05-31 18:37:27 +01:00
Jermolene
4d70d5780e
Use radio buttons in navigation settings
...
Radio buttons are much clearer
2014-05-31 18:36:59 +01:00
Jermolene
a330cb543e
Better defaults for radio widget
...
Now the “field” attribute defaults to “text”.
2014-05-31 18:35:41 +01:00
Jermolene
3f25db0abe
More permalink tweaks
...
And more documentation this time!
2014-05-29 23:17:21 +01:00
Jermolene
412cde6f53
Move "storyviews" filter operator to correct folder
2014-05-28 17:17:47 +01:00
Jermolene
f7b8813a27
Change permalink behaviour
...
Now a link to a single tiddler like http://tiddlywiki.com/#HelloThere
will just open that single tiddler (the old behaviour was to also open
the default tiddlers)
2014-05-28 17:07:41 +01:00
Jermolene
1b37d660ea
Restore "escape" as shortcut to abandon edits
...
Thus reverting a defensive change back in January:
d72d245523
2014-05-27 15:42:33 +01:00
Jermolene
da273be054
Workaround Firefox "no element found" bug
...
See https://bugzilla.mozilla.org/show_bug.cgi?id=884693
Fixes #468
2014-05-27 09:49:48 +01:00
Jermolene
a463859a28
Retract inadvertant change from previous commit
2014-05-26 22:56:58 +01:00
Jermolene
9aaa000d3f
Fixed default tiddler not appearing in zoomin view
...
See https://groups.google.com/d/topic/tiddlywiki/c-z7f-h1CAo/discussion
2014-05-26 22:56:28 +01:00
Jermolene
f14ecf4eb8
Add support for $:/tags/RawMarkup
2014-05-26 22:50:54 +01:00
Jermolene
f44f2b33ed
Fixed missing class on external pretty links
2014-05-26 17:57:35 +01:00
Jermolene
86d182fd51
Fix importing blank fields from TiddlyWiki files
2014-05-26 17:47:07 +01:00
nameanyone
157ca0c8aa
Rename $:/temp/NewFieldName to $:/temp/newfieldname
...
As per "Naming of System Tiddlers"
2014-05-15 22:54:46 -07:00
nameanyone
01b3962b2c
Rename $:/ShowEditPreview to $:/state/showeditpreview
...
According to "Naming of System Tiddlers"
2014-05-15 22:47:21 -07:00
Jermolene
93566cdc33
Add standard search to advanced search
2014-05-15 23:09:31 +01:00
Jermolene
31e1088aa7
Clean up startup logging
...
Now we do boot logging to an array. We harvest it in the —verbose
command. We still need to provide a way to access the log in the
browser too.
2014-05-15 18:50:14 +01:00
Jermolene
f9f8ad725b
Fix problem with advanced search counts
...
Apologies to TiddlyWiki’s translators for disrupting existing work!
2014-05-14 20:12:38 +01:00
Jermolene
c9c1b0fbb4
Get rid of the tweakParseTreeNode() hack
...
It’s an embarrassing hangover from a refactoring of the parsing
mechanism last year.
2014-05-14 08:51:08 +01:00
Jermolene
9a26c4259a
Fix problem with widget.getStateQualifier()
...
Fixed to take into account the recent change to read variables from the
parent widget: e60fc9f81f
2014-05-13 18:16:45 +01:00
Jermolene
da41879fc1
Fix dropdown behaviour in advanced settings
2014-05-13 16:21:01 +01:00
Jermolene
ad43958571
Make permalink behaviour configurable
...
In the process introducing a new advanced settings tab
Fixes #600
2014-05-13 14:16:58 +01:00
Jermolene
75fee26b58
Fix problem with variables containing an empty string
...
See
https://github.com/Jermolene/TiddlyWiki5/commit/e60fc9f81f2c8f0d115543d8
d330a1d68f9b890a#commitcomment-6301921
2014-05-13 10:15:55 +01:00
Jermolene
e83759e86d
Add "before" and "after" filter operators
...
Fixes #357 by adding new “before” and “after” filter operators.
2014-05-12 15:16:44 +01:00
Jermolene
b3032d452f
Refactor vertical tabs for reusability
...
In practice, if you look at TabsMacro you’ll see that the width of the
tab content is wrong, and will usually overflow the container. Next
step is to fix that by using flexbox…
2014-05-11 18:47:14 +01:00
Jermolene
e60fc9f81f
Fixed problem with widgets variable access
...
Previously, widgets were reading variables from themselves or their
cascaded ancestors. That means that if a widget sets a variable and
then reads the same variable, it will get the same variable back. That
sounds reasonable, until you consider a widget that wants to modify a
variable - eg the tiddler macro. For example:
```
<$tiddler tiddler={{!!report}}>
<$transclude mode="block" />
</$tiddler>
```
Here we first evaluate the `{{!!report}}` reference, which involves
reading the currentTiddler variable, looking up the tiddler, and
retrieving it’s `report` field. The next the tiddler widget is
refreshed, it will use the newly set currentTiddler as the basis for
resolving the `{{!!reference}}` reference.
The fix is to get variables from ancestors, but continue to set them on
ourselves.
2014-05-08 11:51:02 +01:00
Jermolene
6ab68e0fca
Remove erroneous global wiki references
...
$tw.wiki is used as a global reference in the outer initialisation
modules. It shouldn’t be used in widgets etc.
2014-05-07 14:49:14 +01:00
Jermolene
e548dd35af
Restored drag and drop functionality within TEXTAREAs and INPUTs
...
As mentioned by @Skeeve in #592
2014-05-07 14:32:14 +01:00
Jermolene
b858e9dc69
Fix incorrect filter in shadow $:/DefaultTiddlers
...
Fixes #606
2014-05-07 13:43:12 +01:00
Jermolene
e676156b24
Fixes for running TiddlyWiki on node-webkit
...
See Jermolene/TiddlyWiki5NodeWebkit
2014-05-07 09:59:21 +01:00
Jermolene
854b739a35
Implement explicit external links
2014-05-06 20:05:51 +01:00
Jermolene
abe0ce28b9
Fix typos in docs for image parser
2014-05-06 19:00:34 +01:00
Jermolene
7c8c5cf745
Fix problem with parsing main UI boot tiddlers
...
We were parsing the boot tiddlers, making them into a widget and then
refreshing the widget tree. The problem is that subsequent chances to
the boot tiddlers themselves wouldn’t be picked up as part of the
refresh.
Now we indirectly parse those UI boot tiddlers through a transclusion,
which does get refreshed in the desired way.
2014-05-06 10:14:22 +01:00
Jermolene
b84c663215
Add proper rendering of document title
2014-05-05 23:00:09 +01:00
Jermolene
4e101e240c
Suppress history when changing the permalink URL
2014-05-05 21:51:54 +01:00
Jermolene
56251dc1f8
Fixes #598
...
Ensure we don’t generate permalinks with a target that is not in the
current story
2014-05-05 21:23:29 +01:00
Jermolene
f368175cb0
Remove debugging code
2014-05-05 20:58:47 +01:00
Jermolene
986a20b22b
Fixes for permalinks not working on Firefox
...
Sigh. It’s frustrating that the few browser differences I’m running
into in 2014 are mostly horribly familiar from 2005
2014-05-05 19:21:57 +01:00
Jermolene
ffb6c8ab81
Add hex colours to tag manager
...
Fixes #597
2014-05-05 18:42:25 +01:00
Jermolene
b24ec8009d
Missing dependency
2014-05-05 17:06:24 +01:00
Jermolene
9965c64b6f
More refactoring of startup.js
2014-05-05 15:25:51 +01:00
Jermolene
2a50277219
Fix problem with syncer not being initialised on server
2014-05-05 14:44:32 +01:00
Jermolene
3cce12e13f
More refactoring of startup.js
2014-05-05 14:41:46 +01:00
Jermolene
887e9d978b
Fix problem with saving if URL contains #
2014-05-05 13:30:31 +01:00
Jermolene
a0022a1cd6
Refactoring more of startup.js into modules
2014-05-05 10:17:50 +01:00
Jermolene
519e1b4a44
Pull more of startup.js out into separate modules
2014-05-03 21:23:51 +01:00
Jermolene
b9dec37fb7
Split main rendering into it's own startup module
2014-05-03 19:50:05 +01:00
Jermolene
78ba57d55d
Remove support for browser-startup modules
...
Instead support startup modules that stipulate which platform they
require.
Also include docs updates and fixes to fullscreen plugin
2014-05-03 17:49:20 +01:00
Jermolene
749582ede0
Split module loading into a separate startup task
...
Still a work in progress.
2014-05-03 17:10:55 +01:00
Jermolene
b96aade28a
WIP: Add support for dependencies between startup modules
...
See StartupMechanism for details.
2014-05-03 16:32:18 +01:00
Jermolene
6ccf02ed96
Add support for onhashchange
...
Now we respond dynamically to changes in the location hash in the URL
bar. It means that you can do links in HTML as `<a
href=“#HelloThere”>go</a>` and in Markdown as `[example
link](#HelloThere).`
We still need to make startup.js more modular
2014-05-03 12:20:28 +01:00
Jermolene
b2c1331c11
Fix oversight in isDraftModified
...
If the original tiddler doesn’t exist then we should count the draft as
always having been modified
2014-05-03 12:12:07 +01:00
Jermolene
a5e9ef9b5f
Adopt new URL scheme for permalinks
...
Instead of using `%00` as a separator we do the more conventional
`#!<target-title>:<story filter>`.
2014-05-03 11:32:55 +01:00
Jermolene
327b53a641
Start adding support for permalinks
...
At this point we respect any permalink at startup, but we don’t yet
dynamically update the permalink, nor do we respond to ongoing
permalink changes.
The permalink separator being `%00` seems like it might be a bit
controversial. It buys us not having to wrap tiddler titles in double
square brackets if they contain spaces.
Another thing is that this scheme doesn’t support tiddler filters; the
plan is to support them like this:
http://tiddlywiki.com/#!Target%00%00[tag[task]sort[created]]
2014-05-02 19:21:32 +01:00
Jermolene
cb914ae853
Remove dead code typo
2014-05-02 18:07:47 +01:00
Jermolene
a4294b55f0
Add banner for binary tiddlers in edit mode
...
Makes it easier to add tags to a binary tiddler (eg a PDF).
2014-05-02 09:43:39 +01:00
Jermolene
bced7124e4
Accept single quotes for attributes in TW files
2014-05-01 17:58:49 +01:00
Jermolene
f5848c395a
Fix problem with editing tiddler titles
...
The check whether a draft has been modified was ignoring changes to the
title.
Fixes #593
2014-05-01 17:39:37 +01:00
Jermolene
f6bd3b8c37
Optimise the all filter operator
...
Seems like quite a decent optimisation.
2014-04-30 22:50:47 +01:00
Jermolene
21b2d6fdc7
Allow filter operators to return an iterator
...
Previously filter operators were only permitted to return an array of
tiddler titles
2014-04-30 22:50:17 +01:00
Jermolene
fcb26419a6
Clear the tiddler event queue on startup
...
To avoid an unnecessary refresh cycle
2014-04-30 22:49:02 +01:00
Jermolene
a6f7da6c1c
Suppress refresh cycle if no tiddlers have changed
2014-04-30 22:48:36 +01:00
Jermolene
0ac4c2b554
Allow digits in field names
2014-04-28 15:54:32 +01:00
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
075cf544e4
Use new get filter from commit 570cad1c
2014-04-27 17:15:42 -04: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
3bbe53a58e
Move shadowWarning to it's own template segment
2014-04-27 17:15:42 -04:00
Devin Weaver
3be21853e1
Add warning box while editing a shadow tiddler
...
This addresses the third line item of issue #570
TODO: The filter is not working.
TODO: The message is too genaric and needs help.
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
61c204366f
Replace hamburger icon with double chevron
...
Fixes #580
Seems much better, especially since the chevron gives us two clear
visual states (left vs. right). The hamburger doesn’t really have a
commonly accepted way of indicating whether the menu is currently open
or not.
2014-04-27 19:28:30 +01:00
Jermolene
570cad1c7f
Add 'get' filter operator
...
Prompted by @sukima’s work on #586
2014-04-27 18:45:01 +01:00
Jeremy Ruston
fac0affa7b
Merge pull request #584 from xcazin/fr-FR
...
fr-FR translations for new Help tiddlers + changes to previous ones.
2014-04-27 08:46:59 +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
Xavier Cazin
fb3a31ae43
Typo: Set => Clear
2014-04-26 11:12:59 +02: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
d727046948
Revise number of tiddlers in recent changes list
...
Going back to 100; 250 was a typo.
2014-04-24 12:22:31 +01:00
Jermolene
148e77b0e4
Clean up obsolete macro definition
...
Fixes #576
2014-04-24 11:58:42 +01:00
Jermolene
61c3f8a5ba
Remove wikitext tiddlers from "types" sidebar tab
2014-04-22 11:44:27 +01:00
Jermolene
7684891285
Move topbar out of the way of scrollbars
...
In the process getting rid of some extraneous `<p>` tags.
Fixes #566
2014-04-19 11:32:56 +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
d336ffea02
Fix incorrect background colour for sidebar tag pills
...
Fixes #568 .
2014-04-17 15:11:59 +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
cd1463cbb0
Get rid of the home button
...
I’m not keen on it because it ends up being very visually prominent for
something that’s not particularly useful.
2014-04-15 20:33:58 +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
fe0ed5e4ce
Tweaks to themes
...
And shaking out some paragraph tags in the sidebar
2014-04-14 18:37:09 +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
c2d6086bd9
Show fewer tiddlers in recent changes
2014-04-13 21:17:44 +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
442bc35bcb
Remove dropdown from edit mode tags
...
Firefox didn’t like the nested buttons.
The better fix would be to switch the tag pills to being links instead
of buttons.
Fixes #515
2014-04-10 22:49:46 +01:00
Jermolene
1bc9bf541a
Remove headings from Tiddler Info advanced tab
...
Fixes #518
2014-04-10 21:44:56 +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
Jeremy Ruston
127cd70769
Merge pull request #545 from xcazin/fr-FR
...
fr-FR translation of PaletteColours.multids + typo in core en-GB of the same
2014-04-09 22:20:40 +01:00
Jermolene
fc407d079c
Pixel accuracy for restoring pre-refactor layout
...
Two problems:
* Extraneous whitespace shows up as whitespace in the HTML, making it
hard to style
* Fix some padding
2014-04-09 22:19:27 +01:00
Mario Pietsch
70a2db34d1
these changes remove most of the <p> tags from the right sidebar, without changing the layout too much. The tab buttons are a little bit higher but this will be adjusted with the next CSS tweaks.
2014-04-09 21:12:10 +02:00
Xavier Cazin
4888417a35
fr-FR translation of PaletteColours.multids + typo in core en-GB version.
2014-04-09 19:11:41 +02: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
Jermolene
f08c4aa525
Arrange fields alphabetically in the edit template
2014-04-09 11:31:27 +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
5ec0775d3e
Link wikitext help text to tiddlywiki.com
...
Fixes #537
2014-04-07 18:08:11 +01:00
Jermolene
597b8ca4b1
Ensure fieldnames are not wikified
...
`__proto__` was being wikified into underlined text
2014-04-06 22:49:59 +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
c7b4febae3
Optimise ordering of filter expressions
...
We get a significant speed improvement of >10% by rearranging filter
operators to bring to the front the operators likely to reduce the size
working list.
2014-04-06 11:50:16 +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
Mario Pietsch
1940bd4dce
right menue SiteTitle and SiteSubtitle decoupled from tiddler title and tiddler subtitle. Otherwise it is not possible to modify the tiddler title styling, without affecting the site title.
2014-04-01 10:34:58 +02: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
ec90ac99cf
Skinner dropdown arrow
2014-03-27 08:54:28 +00:00
Jeremy Ruston
818b29386e
Merge pull request #504 from buggyj/58texthtml
...
added missing text/html type
2014-03-26 21:49:45 +00:00
Jermolene
c58852a67b
On narrow screens ensure there is a background behind the home and menu buttons
2014-03-26 14:11:26 +00:00
Jermolene
bca1d55280
Add validation of legal characters for fieldnames
2014-03-26 13:38:43 +00:00
Jermolene
45a362c285
Add a dropdown to tags in edit mode
...
As discussed in TW Hangout 40
2014-03-26 13:06:11 +00:00
Jermolene
871630be88
Fix the menu hamburger
2014-03-26 10:16:00 +00:00
Jermolene
59ac38a3da
Remove the scrollable from the story river
...
The problem was that the scrollable required that the mouse be over the
story river itself in order to scroll it with the wheel. If we fallback
to scrolling the story by scrolling the browser body then we are able
to scroll even if the mouse is over the sidebar.
2014-03-25 22:15:54 +00:00
Jermolene
80b65b1651
Add a top-left and top-right menu
2014-03-25 21:54:06 +00:00
Jermolene
79d643775d
Fix scrollable widget not to crash on the server
2014-03-25 14:37:33 +00:00
Jermolene
7c235566c4
Rejig the page layout to use the scrollable widget
...
This is the start of some refactoring of the main layout CSS intended
to give us more flexibility and control.
2014-03-25 14:29:16 +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
buggyj
968d44e4be
added missing text/html type
2014-03-24 11:31:28 +05:30
Jeremy Ruston
03cfa61ae8
Merge pull request #494 from nameanyone/master
...
Stop using obsoleted "-moz-border-radius" and "-webkit-border-radius" pr...
2014-03-20 22:19:45 +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
nameanyone
7616c4ce7d
Stop using obsoleted "-moz-border-radius" and "-webkit-border-radius" properties
...
Fixes #480
2014-03-18 16:38:52 -07: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
499730c458
Remove whitespace between toolbar icons
2014-03-15 17:04:12 +00:00
Jermolene
baa8cf3dd0
Add a warning segment to templates for TWC tiddlers
...
Now there’s a warning banner on all TWC tiddlers. It includes an
`upgrade` button that currently just flips the tiddler type to TW5
2014-03-15 17:03:50 +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
afa677b9a0
Add a class to tiddler frames in view mode
...
We’re already marking tiddlers in edit mode with tw-tiddler-edit-mode,
makes sense to make view mode tiddlers too.
2014-03-15 11:20:33 +00:00
Jermolene
42c67cfeb7
Add tiddler info "advanced" panel
2014-03-14 15:23:28 +00:00
Jermolene
ebc77fbd09
Get ready for a new view template segment carrying information about plugins
2014-03-13 17:44:27 +00:00
Jermolene
96457d8011
Rejig plugins tab of control panel
...
Now we divide the plugins into categories and organise the displayed
information a bit better
2014-03-13 17:43:18 +00:00
Jermolene
3d9f61f041
More whitespace in core templates
2014-03-13 17:42:29 +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
c4119f4f93
Default colour tweaks
2014-03-12 22:22:18 +00:00
Jermolene
cafe74fc89
Tweaks to list-before and list-after field descriptions
2014-03-12 22:22:02 +00:00
Jeremy Ruston
2466389397
Merge pull request #485 from TheDiveO/master
...
added descriptions for list-before, list-after
2014-03-12 21:57:41 +00:00
Jermolene
dd3ee2a603
Extend tag manager to edit icons assigned to tags
...
Add a dropdown for choosing available images for a tag.
As part of this change we need to tag tiddlers that contain images
typed as wikitext (these are inline SVG icons) so that we can display
them in the dropdown.
2014-03-12 21:56:46 +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
9bd0174205
Left off previous commit
2014-03-12 21:53:50 +00:00
TheDiveO
522dad95be
added descriptions for list-before, list-after
2014-03-12 21:26:18 +01:00
Jermolene
5ba92fe274
Update to latest version of normalize.css and fix tab styling
...
Tab styling was inconsistent on Firefox due to some line-height issues.
2014-03-12 20:05:34 +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
62bc20a181
Restore visibility of system tags in view template
...
On discussion at Hangout #38 we felt that hiding them was confusing,
and that there were few situations where a user would see system tags
except on system tiddlers.
2014-03-11 18:25:41 +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
2608a323eb
Hide system tags from the sidebar tags list
...
Part of #478
2014-03-10 19:40:07 +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
8239275edb
Add dropdown of canned filter searches
...
Now you can pick from a dropdown of predefined filtered searches in the
advanced search filter tab.
2014-03-10 18:16:10 +00:00
Jermolene
be6509a17f
Remove system tags from sidebar tags listing
2014-03-10 18:15:12 +00:00
Jermolene
01e1133219
Fix bug where count widget wasn't being updated correctly
2014-03-10 18:15:00 +00:00
Jermolene
f04527ae32
Correct filter for count of overridden shadow tiddlers
2014-03-10 15:05:07 +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
70d2d4b7a1
Remove the "create" button from the missing tiddler template
2014-03-04 18:55:43 +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
2f2a257745
Improve the descriptive text for missing tiddlers
...
Now we explain that it’s a missing tiddler, and add a “create” button
2014-03-02 18:43:22 +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
bcc282016e
Use proper tag pills in the tag manager
2014-02-25 21:22:15 +00:00
Jermolene
cf4eed0129
Add first pass at a tag manager
...
As independently suggested by @Skeeve and @Spangenhelm
2014-02-25 20:14:16 +00:00
Jermolene
e5103c32f3
Move command documentation into the core
2014-02-25 14:50:37 +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
dd299bf769
Typos and style tweaks
2014-02-23 23:09:58 +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
0623dd5b7f
Include toolbar button colours in palettes
2014-02-23 17:54:38 +00:00
Jermolene
99ccdf4584
Add confirmation when deleting tiddlers
...
Fixes #381
2014-02-23 17:37:32 +00:00
Jermolene
7f5f4df562
Tweaks to the vanilla theme and palette entries
2014-02-23 17:19:58 +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
c3f9cf41d5
Tweaks to @giffmex's palettes
2014-02-22 17:05:56 +00:00
Jermolene
2ab0facf3a
Extend button widget to allow navigating to a tiddler
...
Fixes #327
2014-02-22 16:13:16 +00:00
Jermolene
9e0f1240c5
Change SiteTitle/SiteSubtitle into $:/SiteTitle and $:/SiteSubtitle
...
To make things more consistent
2014-02-22 11:39:18 +00:00
Jermolene
199fdb090d
Convert @giffmex themes into colour palettes
...
Although there are some style changes in the existing themes they’re
mostly a matter of a changed palette.
@giffmex - I’ll send you a prerelease of 5.0.8 so that you can tweak
the palettes if you’ve got time.
2014-02-22 11:00:51 +00:00
Jermolene
d6a44b67a3
Fix control panel modules tab
2014-02-22 08:57:39 +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
4ee277f41b
Fix some missing translateables
2014-02-21 14:27:49 +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
279f32080d
Start to make the core templates more readable
...
Yay for line breaks.
2014-02-20 22:22:45 +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
8f9d88f25b
Fix static stylesheets
2014-02-20 19:28:17 +00:00
Jermolene
e88f8ad4e9
Fix typo with <<color>> macro
2014-02-20 19:12:05 +00:00
Jermolene
0480bf023d
Fix static CSS generation
2014-02-20 18:33:01 +00:00
Jermolene
e3c1906eaf
Make the show/hide editor button be translateable
...
Missed by accident from earlier commit
2014-02-20 17:53:23 +00:00
Jermolene
f4c7a269bd
Allow "<<color>>" as a synonym for the "<<colour>>" macro
...
Entente cordiale!
2014-02-20 17:14:27 +00:00
Jermolene
921ff6ae39
Make palette editor translateable
2014-02-20 16:07:03 +00:00
Jermolene
b9e72fb676
Move starlight themes macros into the core
2014-02-20 15:59:44 +00:00
Jermolene
d21fb85d94
Change .tids
file extension to .multids
...
Hopefully less confusing
2014-02-20 10:27:02 +00:00
Jermolene
bcd86d5861
Add palette editor
2014-02-20 10:00:38 +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
a186b6f978
Remove duplicate definition
2014-02-19 21:22:36 +00:00
Jermolene
e1dfb621f5
Add colour swatches to palette switcher
2014-02-18 13:59:11 +00:00
Jermolene
c999d82a23
Palette and theme tweaks
2014-02-17 22:45:46 +00:00
Jermolene
118b841aa2
More palette tweaks and polish
2014-02-17 17:30:02 +00:00
Jermolene
ca1daf5a4e
First pass at switchable colour palettes
...
Fixes #410
Still some cleaning up to do, and we need a way for incomplete palettes
to inherit from a base palette.
2014-02-17 12:09:10 +00:00
Jermolene
5e9dae8fb4
Fix view widget so that it works with indexes
2014-02-17 11:28:48 +00:00
Jermolene
d00a82e9e9
Put language files in alphabetical order
2014-02-17 08:58:53 +00:00
Jermolene
3307604130
Make type information translateable
2014-02-16 19:58:53 +00:00
Jermolene
1ff8d225d9
Rejig the control panel to use nested tabs for Appearance and Advanced
2014-02-16 19:33:18 +00:00
Jermolene
489509c810
Add missing field descriptions
2014-02-16 19:11:11 +00:00
Jermolene
df8ff9eb26
Make the control panel "internal" tab translatable
2014-02-16 19:02:24 +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
75b9de222e
Add a demo of alerts and tweak styles
2014-02-15 17:36:49 +00:00
Jermolene
5a45fffa9e
Get the remaining core control panel tabs prepared for translation
...
We’ll do ThemeTweaks separately as it’s part of the Vanilla theme
2014-02-15 13:29:24 +00:00
Jermolene
a763610db1
Get rid of the separate language prompt tiddler
...
More consistent to stick with .tids files
2014-02-15 11:36:00 +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
bea8730a47
Fix problem with tiddlers of the type text/css
...
Fixes #395
2014-02-14 19:25:38 +00:00
Jermolene
4836cf83e2
Enhance alerting to coalesce repeated alerts with the same text
2014-02-14 10:29:26 +00:00
Jermolene
44678b2ea2
Better not to use relative dates for alerts
...
Relative dates don’t autorefresh at the moment.
2014-02-14 10:00:02 +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
4654f6b971
Fix default tab in the "more" sidebar tab
2014-02-13 14:06:20 +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
daa79a8612
Move the en-GB language plugin into the core
...
We need to have the default language baked into the core so that we
don’t have problems if no language plugins are available.
2014-02-11 13:20:17 +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
e003889171
Start translating the control panel
2014-02-09 20:34:58 +00:00
Jermolene
a2cbc2deb5
Rejig the tabs macro to wikify captions
...
This will allow us to translate tab captions
2014-02-09 19:19:40 +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
73c30716dc
Unlinkify the current theme name
...
Having it link to the underlying plugin tiddler isn’t very useful
2014-02-08 17:29:42 +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
2758e586bd
Add a "filter" tab to advanced search
2014-02-07 10:07:57 +00:00
Jermolene
dbd63e6fe7
Move some system tiddlers into the right name space
...
The tiddlers temporarily used for adding new fields and tags should be
in the $:/temp namespace so that they don’t dirty the store
2014-02-06 22:20:58 +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
Jermolene
e6fa9b8a85
Add number of tags to control panel "Basics" tab
2014-01-30 16:51:36 +00:00
Jermolene
d72d245523
Remove "escape" keyboard shortcut for abandon editting
...
Too easy to trigger accidentally, until we have confirmations.
2014-01-30 16:26:50 +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
fa59382215
Add support for serving TW5 with lazily loaded images
2014-01-29 09:05:00 +00:00
Jermolene
02ba92c6b5
Add [is[image]]
filter operator
2014-01-29 09:04:41 +00:00
Jermolene
3b255561b7
Add text/css to the type dropdown
2014-01-28 15:24:20 +00:00
Jermolene
59379b14fa
Remove extraneous shadow tiddlers
2014-01-28 15:24:08 +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
762940adbc
No longer save system modules separately in the main HTML template
...
These tiddlers were being handled as `<script>` tags to make it easier
to debug them. But in fact modern dev tools are quite happy to debug
code that has been eval’d, and this arrangement was causing problems
for importing.
Fixes #335
2014-01-25 21:22:43 +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
867dfabff8
Change initial default tiddlers to include most recently created tiddlers
2014-01-20 18:26:32 +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
d3c421985c
Add delete icon for the tiddler type editor
2014-01-20 11:21:12 +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
2f4932fefc
Expose the option to retain story ordering across restarts
2014-01-19 18:42:32 +00:00
Jermolene
5f1d49f2e0
Clarify the shadow GettingStarted docs
2014-01-19 18:42:20 +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
4072c4461d
Switch to using a real ellipsis for advanced search
2014-01-13 17:59:14 +00: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
bad2e36e45
Remove obsolete itemClass attribute on the list widget
2014-01-12 17:01:18 +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
5dff212e5a
Clarify comment in main template
2014-01-12 11:58:45 +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
Jermolene
209bc78268
Clean up whitespace
2014-01-08 16:51:42 +00:00
Jermolene
ffcc215e8f
Add ellipsis for advanced search next to search box
2014-01-08 10:43:50 +00:00
Jermolene
0fb13e649b
Exclude non-system tiddlers from system tiddler search
2014-01-08 09:55:06 +00:00
João Bolila
b42eefe1e8
Merge remote-tracking branch 'upstream/master'
2014-01-08 04:47:20 +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
954901d788
Start adding export options to the control panel
2014-01-05 17:24:53 +00: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
Jermolene
2d99f4dc15
Update copyright year
2014-01-02 10:55:19 +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
b76ca5dc3b
Clarify use of double square brackets in default tiddlers
2014-01-01 18:27:27 +00:00
Jermolene
87fbd988f1
Add support for running TiddlyWiki under node-webkit
2014-01-01 17:59:47 +00:00
Jermolene
3d79eb87d1
First pass at an advanced search tiddler
2013-12-31 13:11:01 +00:00
Jermolene
e48e7e9443
Style improvements for alltiddlers.html
2013-12-31 11:34:10 +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
b9e80a270b
All-in-one static HTML support
...
Added a first pass at generating an all-in-one static HTML
representation of a wiki, incorporating anchor links for wiki links
2013-12-31 09:43:46 +00: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
Jeremy Ruston
5eb57365b6
Merge pull request #312 from Skeeve/issue_232
...
fixed issue#232
2013-12-30 03:25:37 -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
Jermolene
d69614259f
Add TiddlyWiki Classic markup to type dropdown
2013-12-28 17:56:48 +00:00
Stephan Hradek
46892371cb
fixed issue#232
2013-12-28 17:46:53 +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
73c5ecdaa7
Added a green version of the favicon for the static pages
2013-12-24 09:09:01 +00: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
c740792105
Fixed illegal HTML comments
...
Pointed out by @Skeeve, double hyphens are not allowed inside HTML
comments
2013-12-20 18:22:01 +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
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
7ec516a746
Correct template for the static HTML rendering
2013-12-17 19:36:55 +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
Jermolene
a5f33d875b
Fix up rootwidget and page container
...
We need to properly link the page container to the rootwidget.
Fixes #223
2013-12-17 13:13:43 +00:00
Jermolene
6d09db5608
Add a favicon
2013-12-16 23:27:26 +00:00
Jermolene
37a46adac8
Fix problem with radio widget refreshing
2013-12-16 08:52:18 +00:00
Jermolene
7dc7559b90
Adjust references to five.tiddlywiki.com
2013-12-15 16:53:10 +00:00
Jermolene
57adbe5bf7
Fixed typo in hardlinebreak parser
2013-12-14 17:42:50 +00:00
Jermolene
713d6945c6
Misplaced space
2013-12-14 17:22:26 +00:00
Jermolene
ef9175e7bc
Remove debugging info
2013-12-14 17:07:47 +00:00
Jermolene
6a8feb216a
Add parser rule for hard linebreaks
2013-12-14 17:05:57 +00:00
Jermolene
79c8935aef
Style cleanups for MOTW
...
@davidjade I assume these changes are all safe from the BHO’s point of
view? Many thanks
2013-12-14 09:53:39 +00:00
Jermolene
3f06384516
Adjusted plugin encoding so that the JSON text no longer duplicates the fields
2013-12-14 09:46:02 +00:00
David Jade
0984e9322f
Revised fix for IE drag/drop issue #252
...
Also improve browser drag/drop inter-op a tiny bit
2013-12-13 03:12:56 -08:00
David Jade
80e0714c0d
Fix for IE drag/drop issue #252
2013-12-12 17:32:06 -08:00
Jermolene
7c9b920e26
More style adjustments
2013-12-12 20:36:54 +00:00
Jermolene
ae4a2b58ed
Complete renaming the radio widget
2013-12-12 19:49:43 +00:00
Jermolene
c73a7af95b
Remove file mistakenly included in previous commit
2013-12-12 19:49:29 +00:00
Jermolene
1420aa2f58
Complete renamign the 'fieldradio' widget to 'radio'
2013-12-12 19:41:40 +00:00
Jermolene
0814f3623d
Rename 'fieldradio' widget to just 'radio'
...
We’ve already got two widgets starting “field…”, and “radio” is more
consistent with the existing “checkbox” widget.
2013-12-12 19:40:27 +00:00
Jermolene
382d7e4449
Coding style consistency
2013-12-12 19:39:02 +00:00
Jermolene
e2cd611e45
Typo correction
2013-12-12 19:37:57 +00:00
Jermolene
bb03bb942f
Merge branch 'fieldradio' of https://github.com/Skeeve/TiddlyWiki5 into Skeeve-fieldradio
2013-12-12 19:23:39 +00:00
Jermolene
fd996bad20
Fix problem with edit-text widget gaining class="undefined"
...
Fixes #269
2013-12-12 18:52:51 +00:00
Jeremy Ruston
761b66028d
Merge pull request #276 from davidjade/master
...
Added TiddlyIE and FSO saver modules
2013-12-12 10:18:30 -08:00
Jermolene
ae6d1b1685
Major refactoring of the navigator widget
...
Cleans things up, and hopefully fixes #267
2013-12-12 15:17:12 +00:00
Jermolene
49b3165fbd
Fix occasional crash from trying to save a tiddler after it has been deleted
2013-12-12 15:16:44 +00:00
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
Jeremy Ruston
1cc27b2598
Correct typo
2013-10-31 21:59:01 +00:00
Jeremy Ruston
0ec2cf20a9
Rename "focusSet" attribute of edit-text widget to "focusPopup"
2013-10-31 12:37:22 +00:00
Jeremy Ruston
4d4a84c5bf
Remove unused class attribute from edit-bitmap widget
2013-10-31 12:36:38 +00:00
Jeremy Ruston
4646ba4e30
Remove unused class attribute from checkbox widget
2013-10-30 16:28:57 +00:00
Jeremy Ruston
f9c95dda46
Allow browsing for multiple files at once
2013-10-30 16:05:49 +00:00
Jeremy Ruston
8084837f48
Fix problem with default text handling in edit-text widget
2013-10-30 14:27:55 +00:00
Jeremy Ruston
9e3618bdcf
Rename the 'title' attributes of various widgets to 'tiddler'
...
The change is to avoid confusion with the HTML 'title' attribute. The
name 'tiddler' better emphasises the purpose of the attribute, too.
2013-10-30 13:36:44 +00:00
Jeremy Ruston
849d64cf9d
Fix field listings
2013-10-30 09:34:01 +00:00
Jeremy Ruston
05e73ee1da
Cope with localStorage not being available
...
IE10 doesn't allow localStorage for HTML pages loaded from the file://
protocol.
Boo.
2013-10-29 22:21:25 +00:00
Jeremy Ruston
d42fb673f8
Fix checkbox widget to update modified
and modifier
fields
2013-10-29 21:20:59 +00:00
Jeremy Ruston
654f48b14d
Fix problem with modal titles
2013-10-29 15:01:36 +00:00
Jeremy Ruston
731cbb8cd6
Switch from new_pageContainer
back to pageContainer
2013-10-29 15:01:27 +00:00
Jeremy Ruston
b4da65d1c9
Update fakedom to no longer add a newline after opening tags
...
The newline was being rendered within `<code>` elements.
2013-10-29 14:52:12 +00:00
Jeremy Ruston
14d7d5ea59
Use the new wiki.makeWidget() method where we can
2013-10-29 14:51:35 +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
Jeremy Ruston
371c8ab45a
Fix changed attribute detection in tiddler widget
2013-10-29 09:04:18 +00:00
Jeremy Ruston
bf48e6f8a1
Rename tiddlerTitle
variable to currentTiddler
2013-10-28 23:40:45 +00:00
Jeremy Ruston
aefca26d72
Style the body tag through a CSS class
...
This avoids accidentally styling body tags within SVG foreignObject
elements.
2013-10-28 15:06:17 +00:00
Jeremy Ruston
b4b0eae4e5
Allow the foreignObject element in SVG to embed HTML via the body element
...
This change means that any `<body>` elements inside an SVG region of
the DOM tree will switch the namespace back to XHTML.
2013-10-28 15:05:19 +00:00
Jeremy Ruston
1d27760a37
Cleaner formatting for the control panel
2013-10-28 15:03:52 +00:00
Jeremy Ruston
20f03de712
The big purge of the old widget mechanism
...
Getting rid of the old widget mechanism files finally gives us a payoff
for all the refactoring. Still a bit of tidying up to do, and we need
to re-introduce the animation mechanisms.
2013-10-27 22:55:36 +00:00
Jeremy Ruston
5610efff01
Update typedblock parser to use new widget mechanism
2013-10-27 22:53:22 +00:00
Jeremy Ruston
d84e398d7a
Fix problem when widgets don't have a parse tree node
2013-10-27 22:53:06 +00:00
Jeremy Ruston
c7d56361ee
Parse and render macro attributes, rather than using the raw text
2013-10-27 22:52:34 +00:00
Jeremy Ruston
d1108c7fcc
Remove inaccurate comments
2013-10-27 22:52:04 +00:00
Jeremy Ruston
b1208a8d37
Fix problem with getTiddlerLinks()
...
It was crashing if it encountered a link widget that didn't have a `to`
attribute.
2013-10-27 13:54:39 +00:00
Jeremy Ruston
3ad3cfd526
Bring back the bitmap editor widget
2013-10-26 13:13:55 +01:00
Jeremy Ruston
f8f524d378
Make sure the dragger cover properly covers the dragger
2013-10-26 10:29:52 +01:00
Jeremy Ruston
76faba2d9f
Get rid of the old tempwidget
2013-10-26 10:29:40 +01:00
Jeremy Ruston
98da59be7a
Extend the link widget to make the links draggable
2013-10-26 08:36:43 +01:00
Jeremy Ruston
05fc9848bb
Extend the dropzone widget to cope with dataTransfer objects (as well as files)
2013-10-26 08:36:31 +01:00
Jeremy Ruston
068befb24f
Refactor link widget with tidier event handler
2013-10-25 23:22:46 +01:00
Jeremy Ruston
ad518c181d
Add jsencoded view format
2013-10-25 23:00:43 +01:00
Jeremy Ruston
925e22c46f
Fix up the server command to use the new widget mechanism
2013-10-25 22:30:15 +01:00
Jeremy Ruston
bdcead624a
Add a changecount macro
2013-10-25 22:29:49 +01:00
Jeremy Ruston
b3ae45cbde
Invoke macros with this
set to the host widget
2013-10-25 22:29:28 +01:00
Jeremy Ruston
8fbc5759ad
Refactor widget.getVariable() to have better behaved parameters
2013-10-25 22:16:15 +01:00
Jeremy Ruston
46bdc52261
Fix up the new import mechanism
2013-10-25 21:16:53 +01:00
Jeremy Ruston
75231fec39
Add browse and dropzone widgets
...
We're splitting out the two aspects of the old import widget
2013-10-25 21:16:03 +01:00
Jeremy Ruston
c2efdfdbc4
Extend the navigator widget to handle import events
2013-10-25 21:15:32 +01:00
Jeremy Ruston
8c2fb7b8d0
Extend wiki object to have methods required for importing
2013-10-25 21:15:20 +01:00
Jeremy Ruston
62b72f6bd1
Move browser-startup module initialisation to the end of startup
2013-10-25 12:53:40 +01:00
Jeremy Ruston
11a07e71dc
Move stripcomments from the classictools plugin into the core
...
It's a bit of a hack for the moment. The plan is to implement
stripcomments via the macro mechanism, at which point it can move back
into the plugin.
2013-10-25 12:32:57 +01:00
Jeremy Ruston
8a709a0b00
Give the edit-text widget some extensibility hooks
...
So that the upcoming CodeMirror plugin can do its stuff
2013-10-25 09:15:56 +01:00
Jeremy Ruston
3251aa191f
Fix up saving encrypted wikis
2013-10-24 13:10:32 +01:00
Jeremy Ruston
56b2c25588
Whoops file in the wrong place
2013-10-24 12:00:32 +01:00
Jeremy Ruston
632970cd86
Get external links working again
...
We no longer use the `<$link>` widget for external links. Instead the
parser generates `<a>` elements. This makes things simpler, but does
mean that the `target=_blank` behaviour is baked into the parser.
Probably we should introduce a new `<$extlink>` widget that generates
an `<a>` element with a configurable `target` attribute
2013-10-24 11:54:54 +01:00
Jeremy Ruston
c95ce5ff4c
Fix up the $:/ConfigInfo tiddler
2013-10-23 23:12:07 +01:00
Jeremy Ruston
3350510516
Add new modules and moduletypes filter operators
2013-10-23 23:11:41 +01:00
Jeremy Ruston
3241c2b76a
Added password widget
2013-10-23 20:24:45 +01:00
Jeremy Ruston
54bed81ab9
Missed off some of the refresh logic
2013-10-23 19:46:31 +01:00
Jeremy Ruston
4e713baeee
Add checkbox widget and fix up task management example
2013-10-23 19:38:36 +01:00
Jeremy Ruston
67490cbb74
Whoops console.log.alypse
2013-10-23 17:50:51 +01:00
Jeremy Ruston
f2ac04943f
Fixed tag autocomplete popup on focus
2013-10-23 17:41:12 +01:00
Jeremy Ruston
dfdb34a5cc
Better styling for the fields editor
2013-10-23 17:04:10 +01:00
Jeremy Ruston
d5f09a4608
Prevented generation of illegal elements
...
Previously, text like <-> would try to generate an element with an
illegal name, causing a JS error
2013-10-23 12:36:34 +01:00
Jeremy Ruston
6f2dbd0978
Refactor name of "findNextSiblingDomNode()" method for consistency
2013-10-22 18:14:16 +01:00
Jeremy Ruston
40c6b6cb8f
Guts of the field editor
...
Styling is a bit squiffy
2013-10-21 23:10:20 +01:00
Jeremy Ruston
8ee2695c81
Fix up the tags editor
...
The dropdown doesn't yet appear when the text input is focussed
2013-10-21 22:55:43 +01:00
Jeremy Ruston
7393a296dd
Add a fieldmangler widget
2013-10-21 22:54:58 +01:00
Jeremy Ruston
06af26b1c8
Give the edit-text widget support for the placeholder attribute
2013-10-21 22:54:48 +01:00
Jeremy Ruston
e2b8249a1b
Fix problem with findNextSibling()
2013-10-21 22:27:12 +01:00
Jeremy Ruston
409152afb8
Make the default list widget template include a div or span
...
Otherwise writing this makes a list on one line:
```
{{{ [tag[done]] }}}
```
2013-10-21 22:26:36 +01:00
Jeremy Ruston
c96cb6e956
Parse typed blocks with the new parser
2013-10-21 20:20:44 +01:00
Jeremy Ruston
a99f912bad
Fix typo
2013-10-21 20:20:32 +01:00
Jeremy Ruston
2a571b4f5f
Switch the notifier and modal mechanisms to use the new widget mechanism
...
Note the use of the `$tw.rootWidget` to collect together the root event
handlers
2013-10-21 20:14:01 +01:00
Jeremy Ruston
48dbacc88a
Add support for widget event listeners to be specified as functions
2013-10-21 20:13:08 +01:00
Jeremy Ruston
ce1fb300f8
Use the new widget mechanism for stylesheet parsing and rendering
2013-10-21 18:38:20 +01:00
Jeremy Ruston
89310e71c8
Add a new version of rendertiddlers command
...
So that we can test static html generation
2013-10-21 18:33:00 +01:00
Jeremy Ruston
3d30ff9828
Fix static tiddler template
2013-10-21 18:32:40 +01:00
Jeremy Ruston
26ac940637
Fix typo
2013-10-21 18:32:29 +01:00
Jeremy Ruston
e33f588b73
Let the new rendering methods accept a parent widget
2013-10-21 18:32:19 +01:00
Jeremy Ruston
dc9c2522b9
Fix typo in macro variable substitution
2013-10-21 18:31:41 +01:00
Jeremy Ruston
167116d416
Fix output type for view format htmlwikified
2013-10-21 18:31:27 +01:00
Jeremy Ruston
3005604b83
Give link widget support for configuration variables
...
One can now use `\define tw-wikilinks() no` to disable wikilinks, and
`tw-wikilink-template` to configure the link template.
2013-10-21 18:31:04 +01:00
Jeremy Ruston
2b5fb9801f
Add skype: protocol for external links
...
The matching of external links is hacky at the moment. The plan is to
make it more easily extensible (ie without writing code)
2013-10-20 10:47:02 +01:00
Jeremy Ruston
25612958d7
Fixed bugs in previous commit to extend search to titles and tags of binary tiddlers
2013-10-18 16:09:10 +01:00
Jeremy Ruston
3f151ba70e
Add support for macro modules
...
Now JavaScript macros can be defined in "macro" modules
2013-10-17 16:57:07 +01:00
Jeremy Ruston
55d479c540
Extend macrocall widget to take parameters both from the parse tree node and the attributes
...
This allows us to invoke macros using the ordinary widget syntax, which
in turn allows us to use features like indirection on the parameters.
2013-10-17 16:55:23 +01:00
Jeremy Ruston
6b9b75142b
Fix text reference regexp to allow for tiddler titles with embedded spaces
2013-10-17 16:40:13 +01:00
Jeremy Ruston
e11c620c27
Fix search filter so that titles and tags of binary tiddlers are searched
2013-10-17 16:34:50 +01:00
Jeremy Ruston
93c2ce6521
Fix up edit widgets
2013-10-16 16:30:24 +01:00
Jeremy Ruston
a3eaffa666
Add a linkcatcher widget
2013-10-16 16:30:06 +01:00
Jeremy Ruston
adb395d10f
Fix edit-text widget to work with indexed values
2013-10-16 16:29:51 +01:00
Jeremy Ruston
7f6d770ca6
The reveal widget should generate a span when in inline mode
...
The only reason that the reveal widget generates an element is so that
we can use `display:none/block;` (as did the pre-refactored code) as a
quick way of hiding and showing the content. We don't do that yet, and
it may be best never to do it.
2013-10-16 16:29:35 +01:00
Jeremy Ruston
06e269f3cb
Fix the untagged list in the tags list
2013-10-15 21:07:35 +01:00
Jeremy Ruston
77248d08a8
Add the count widget
2013-10-15 21:07:13 +01:00
Jeremy Ruston
5b4ca67d6e
Make the reveal widget hide the div element if it is not open
2013-10-15 21:06:52 +01:00
Jeremy Ruston
ebcd5177ec
Fix-ups to make the new edit widgets work
2013-10-15 14:32:45 +01:00
Jeremy Ruston
78bc89cbdb
Add a edit text widget
...
Now rather than a separate module type for different editors, we
instead have a meta-widget "edit" that chooses the appropriate concrete
widget (currently just "edit-text", but soon to be joined by
"edit-bitmap" as well)
2013-10-15 14:32:27 +01:00
Jeremy Ruston
a696c716e3
Support the remaining events on the navigator widget
2013-10-15 14:30:36 +01:00
Jeremy Ruston
933afee996
Get rid of the old setstyle widget
...
And fix up the colouring of tiddler icons
2013-10-15 08:36:19 +01:00
Jeremy Ruston
20cd398e88
Fix popup positioning in the reveal widget
2013-10-14 23:32:01 +01:00
Jeremy Ruston
c621339729
More fixes to the missing tiddler dropdown and the tag dropdown
2013-10-14 21:57:00 +01:00
Jeremy Ruston
707024a118
Set the colour of the tag pills
...
We no longer need the old setstyle widget
2013-10-14 21:38:12 +01:00
Jeremy Ruston
0e037e3c5b
Make the field table in the tiddler info panel have width 100%
2013-10-14 21:05:49 +01:00
Jeremy Ruston
e3dcb8cdc1
Fix view widget to display friendly text of tiddler values
2013-10-14 21:02:03 +01:00
Jeremy Ruston
468fe8b6f1
Add macrocall widget
...
Now the fields table works in the tiddler info popup
2013-10-14 17:48:26 +01:00
Jeremy Ruston
ebd28c8dc7
Get the tiddler info panel fields list working properly
...
Now we can display the fields list as a proper table.
We've had to temporarily hack the list widget again…
2013-10-14 17:35:52 +01:00
Jeremy Ruston
b4d33b9614
Fixups to the sidebar and tiddler info button
2013-10-14 16:57:16 +01:00
Jeremy Ruston
94c2eacdc9
Support selectedClass properly in the button widget
2013-10-14 16:56:13 +01:00
Jeremy Ruston
fe6c1ae2dd
A new template for menu list items
2013-10-14 16:55:29 +01:00
Jeremy Ruston
0c73c56b70
Fixes to button refreshing
2013-10-14 13:52:03 +01:00
Jeremy Ruston
b0f4d72dac
Correct name for the state tiddler that makes sure the open sidebar tab is open by default
2013-10-14 13:51:54 +01:00
Jeremy Ruston
44e622ce28
Proper styling for the tiddler info panel
2013-10-14 13:11:58 +01:00
Jeremy Ruston
1669c6eab5
Make recursion markers include the current tiddler
...
Otherwise the generated qualifying state title is not unique. In other
words, clicking the "i" button on a tiddler was opening the info panels
for all open tiddlers.
2013-10-14 13:06:07 +01:00
Jeremy Ruston
ea0b298b78
Deal with viewing date fields that don't exist
2013-10-14 12:59:39 +01:00
Jeremy Ruston
cc4940f41f
Use the setvariable widget instead of macrodef
...
setvariable is more general
2013-10-13 23:40:11 +01:00
Jeremy Ruston
942e463b20
Fixes to get recent changes list to work
2013-10-13 22:59:14 +01:00
Jeremy Ruston
ce4a6ffa49
More useful class variables for tiddler status
2013-10-13 22:46:45 +01:00
Jeremy Ruston
ccd5eeebfd
Add a class for missing tiddlers
2013-10-13 22:39:18 +01:00
Jeremy Ruston
9278c43a91
Add support for macro definitions
2013-10-13 22:39:05 +01:00
Jeremy Ruston
79dcc9a557
Refactor macro parameter substitution
...
Now macros can also include references to variables as `$(variable)$`
2013-10-13 22:38:46 +01:00
Jeremy Ruston
987890c085
Add button widget
2013-10-13 21:31:00 +01:00
Jeremy Ruston
b0503cf709
Fixes to make SVG and MathML elements work properly
2013-10-13 20:14:31 +01:00
Jeremy Ruston
ed35d91be6
Initial Commit
...
Carried over from the abortive pull request #169
2013-10-12 17:05:13 +01:00
Jeremy Ruston
d3d72eff1b
Search over tags as well as the title and text fields
2013-10-11 08:46:09 +01:00
Jeremy Ruston
27f724d0ed
Docs updates
2013-10-09 22:57:20 +01:00
Jeremy Ruston
f2b598ef13
Correct example
2013-10-05 16:01:07 +01:00
natecain
c45f4d1c62
Small revision to previous commit, avoids double encoding.
...
We don't need to encodeURIComponent at all when using blob links.
The data never goes into the dom directly, just a guid reference.
This makes saving with blobs very fast!
2013-10-01 17:35:58 -04:00
natecain
aef8e63cf8
Use Blob api to generate data links in download saver
...
This should fix crashing on large wikis under chrome
see chrome bug: https://code.google.com/p/chromium/issues/detail?id=103234
This should also speed up generating the download html by a couple of seconds
it avoids repeatedly marshalling the base64 encoded href string across the sandbox boundary
it avoids some time and memory consumed by "large" dom manipulation
major remaining delay is in encodeURIComponent
TODO: consider using iconv on the server
TODO: consider async invocation of regular expressions to avoid client "lockup"
Conflicts:
core/modules/savers/download.js
2013-10-01 17:35:47 -04:00
David Johnston
d321508437
Remove incorrect slice parameter.
...
Remove incorrect slice parameter, which made the ! (not) prefix fail to return any results.
2013-10-01 10:50:13 +01:00
Jeremy Ruston
6642a6f087
Merge pull request #165 from Brennall/nextprev
...
Next and Previous filters plus tests and documentation
2013-09-22 13:37:48 -07:00
Jeremy Ruston
54ffb9e6cc
Replace separate 'untagged' tab with new entry at the bottom of the 'tags' tab
...
An excellent idea by @tobibeer
2013-09-22 21:34:28 +01:00
David Johnston
f0b6790ae1
Previous in list filter.
2013-09-22 09:58:18 +01:00
David Johnston
b72afda7a2
Next in List filter
2013-09-22 09:57:23 +01:00
Jeremy Ruston
f51d0c55fe
Fix eachday and sameday filter operators
...
There was some inconsistency of UTC vs. timezone handling
2013-09-21 10:08:16 +01:00
Jeremy Ruston
d0db2221d3
Fix problem with lowercase drive letters when saving with TiddlyFox under Windows
2013-09-19 13:50:28 +01:00
Jeremy Ruston
dec7870eeb
Update HTML5 saver to use current filename where possible
...
Most browsers still ignore the specified filename, sadly.
2013-09-19 10:50:14 +01:00
Jeremy Ruston
91c4adb2b6
Fix untagged tiddler list to exclude tiddlers which are being used as tags
2013-09-18 19:10:30 +01:00
Jeremy Ruston
3d5d5952b7
Fix broken regexps
...
Using .|\n was a very bad idea, as it doesn't match other newline
characters
2013-09-18 19:09:54 +01:00
Jeremy Ruston
b563d8e98a
Ensure getTiddlerList() returns a copy of the tiddler list
...
Fixes #155
2013-09-18 12:12:29 +01:00
Jeremy Ruston
10a635927d
Add confirmation when overwriting an existing tiddler
...
Now there's a JavaScript confirm when attempting to save a tiddler that
has been renamed to the name of an existing tiddler
2013-09-14 21:57:23 +01:00
Jeremy Ruston
4fb6836481
Add an untagged filter operator and sidebar tab
2013-09-14 16:28:46 +01:00
Jeremy Ruston
4a663d1661
Improve docs for $tw.utils.addEventListeners()
2013-09-14 13:47:51 +01:00
Jeremy Ruston
fa3d4fdc75
Missing slash
2013-09-10 22:30:37 +01:00
Jeremy Ruston
e39663ede3
Fix crash on processing anonymous macro parameters
...
Fixes #151
2013-09-10 22:08:09 +01:00
Jeremy Ruston
a5cb6d69c0
Remove reference to TiddlyMall
...
Because it doesn't exist. (It was a suggestion from @giffmex that got
inadvertantly included)
2013-09-10 15:29:04 +01:00
Jeremy Ruston
e034f28091
Bail out earlier when displaying a modal for a non-existent tiddler
2013-09-10 15:28:15 +01:00
Jeremy Ruston
ff0b93886b
Restore missing opening <html>
tag
...
Astonishingly, the templates have accidentally omitted the opening tag
for some time. There were no ill effects, because browsers obligingly
add it back in when parsing
2013-09-05 09:31:17 +01:00
Jeremy Ruston
f734ce49c8
Tweaks to control panel and theme tweaks
...
Courtesy of @giffmex
2013-09-04 17:14:42 +01:00
Jeremy Ruston
2be9e82f84
Get rid of the modal popup for empty wikis
...
Ugly and clumsy.
2013-09-01 22:33:23 +01:00
Jeremy Ruston
83f85cad7d
Add support for MathML namespace
...
It doesn't actually work, though, which is weird, since SVG works just
fine using the same mechanism
2013-08-31 11:15:50 +01:00
Jeremy Ruston
c4d7401f02
Lots of docs updates
2013-08-30 20:06:23 +01:00
Jeremy Ruston
ee33cbbc2e
Fix up some problems when the animation duration is zero
...
We want to be able to suppress animations by making the duration zero
2013-08-29 12:43:24 +01:00
Jeremy Ruston
1b094b1d5c
Avoid attempts to save a tiddler with an empty title
...
Clicking "save" with a blank title will now be ignored
2013-08-28 19:46:21 +01:00
Jeremy Ruston
38e92cd5cd
Add search results counter
2013-08-28 19:26:17 +01:00
Jeremy Ruston
fbfe5a26c5
Move the animation duration into a tiddler so that we can easily let it be adjusted in the control panel
2013-08-28 15:15:56 +01:00
Jeremy Ruston
e8425131f4
Correct typo in 954a987d31
2013-08-28 14:44:59 +01:00
Jeremy Ruston
6005d7f19c
Add a theme tweaks panel
...
Themes can define their own theme tweaks tiddler
2013-08-28 11:25:24 +01:00
Jeremy Ruston
954a987d31
Extend the edit widget to be able to edit properties of data tiddlers
2013-08-28 11:23:14 +01:00
Jeremy Ruston
dfb49f811e
Fixed problem with importing tiddlers with double quotes, gt, lt etc
...
Reported by @giffmex
2013-08-28 09:25:54 +01:00
Jeremy Ruston
0421f11fcc
Fix vertical alignment of the title of the top tiddler and the sidebar in the title
...
Little things.
2013-08-27 22:25:53 +01:00
Jeremy Ruston
8fbfc7a18f
Add version number to tools panel in sidebar
2013-08-27 09:01:31 +01:00
Jeremy Ruston
06599bcfc6
Fix up closing tiddlers in the zoomin listview
...
One for @giffmex
2013-08-26 14:48:05 +01:00
Jeremy Ruston
20f06e8eec
Ensure that the core plugins inherit their version number from the main package.info
2013-08-26 13:28:23 +01:00
Jeremy Ruston
779d8b3aad
Update TW2 wikitext content type to text/x-tiddlywiki
...
And also stop assigning the default content type of
`text/vnd.tiddlywiki` to imported tiddlers.
2013-08-25 22:06:28 +01:00
Jeremy Ruston
d0dff80d6d
Fix problem with insertBefore() on Win7/IE10
...
The problem is that insertBefore() on Win7/IE10 crashes if the second
parameter is undefined, rather than behaving as if the parameter is
missing, as all other browsers do. Aaargh.
2013-08-24 23:28:17 +01:00
Jeremy Ruston
df0a1a7c42
Fix problem with wiki.search() incorrectly searching missing tiddlers
2013-08-24 16:51:54 +01:00
Jeremy Ruston
be06257430
Split "transclude" widget into a separate "tiddler" and "transclude" widget
...
Belatedly realised that the design would be clearer without these two
separate concepts being conflated into a single widget.
As a result of this change, any other widget or template that generates
transclude widgets has needed adjustment.
2013-08-24 16:45:45 +01:00
Jeremy Ruston
fdfed22731
Add a class around the tag count so that we can make it bold
...
Suggested by @giffmex
2013-08-23 18:39:27 +01:00
Jeremy Ruston
3b563e19cf
Removed obsolete comments
2013-08-23 18:38:44 +01:00
Jeremy Ruston
d6ec1ea1e5
Remove plugin
field now that we've got the plugin-type
field
...
I've been meaning to remove the `plugin` field for ages.
2013-08-23 18:37:54 +01:00
Jeremy Ruston
ea1855d872
Use the new count widget to add a count to each tag
2013-08-21 23:10:07 +01:00
Jeremy Ruston
e1a38d88a7
Add a count widget
2013-08-21 23:09:54 +01:00
Jeremy Ruston
44f172c5ec
Correct harmless but confusing typo
2013-08-21 23:09:40 +01:00
Jeremy Ruston
ca142dbdb5
Remove extraneous references to current field context variable
...
This should have been done as part of
6fc4e5db7c
2013-08-21 22:42:05 +01:00
Jeremy Ruston
5fe2d718e0
Fix crash with "fields" filter operator applied to missing tiddlers
...
Fixes #132
2013-08-21 22:33:04 +01:00
Jeremy Ruston
daf439121b
Update the ViewTemplate to be driven by tag
...
Now the ViewTemplate just renders the current tiddler through each
template tagged `$:/tags/ViewTemplate`. This allows plugins (and users)
to add/remove elements from the ViewTemplate easily, without
overwriting the ViewTemplate itself.
(For @giffmex)
2013-08-21 20:51:45 +01:00
Jeremy Ruston
8cbb98d44d
Hack the list widget
...
Usually the list transcludes each tiddler through the sample template.
This hack makes it work differently, where each tiddler is used as a
template to render the same current tiddler. The attribute that
switches modes is called "hackTemplate" because this is a temporary
implementation of this capability for experimental purposes
2013-08-21 20:50:08 +01:00
Jeremy Ruston
a427702628
Allow username to be set for the built-in server
2013-08-21 09:53:45 +01:00
Jeremy Ruston
1fd59a4bd3
First pass at a saver for the AndTidWiki app on Android
2013-08-19 13:55:40 +01:00
Jeremy Ruston
bc56253479
Extend the list widget to allow the generated HTML elements to be controlled
...
This makes it possible to generate UL or OL lists as well as the
current divs and spans.
This feature is clearly necessary but I'm not very happy with it. It
feels as though the syntax should be modifying a UL tag to specify the
extra information required to generate the list, rather than turning
the list widget to indirectly specify it's elements.
2013-08-19 11:08:00 +01:00
Jeremy Ruston
a36d3895ff
Remove type attribute from the list widget
...
It's just a shortcut that clutters things up; easier to do the same
thing with a macro
2013-08-18 20:41:46 +01:00
Jeremy Ruston
f4b4415676
Fix problem which was preventing transcluded indexed properties from being parsed inline
2013-08-16 13:11:44 +01:00
Jeremy Ruston
7ca645f609
Remove extraneous duplicated "fields" tab in the tiddler info panel
2013-08-16 09:40:22 +01:00
Jeremy Ruston
c4746606b6
Add "list" and "listed" tabs to tiddler info panel
...
Fixes #126
2013-08-16 09:31:43 +01:00
Jeremy Ruston
b88079442c
Add "listed" filter operator for retrieving the tiddlers that list a specified tiddler
2013-08-16 09:31:05 +01:00
Jeremy Ruston
6fc4e5db7c
Get rid of the old "fieldgrid" and "fieldlist" widgets
...
Instead, we'll use the "list" widget with the new support for macros.
2013-08-15 18:17:11 +01:00
Jeremy Ruston
8c48d45479
Add a "fields" filter operator
2013-08-15 18:15:54 +01:00
Jeremy Ruston
522c7c58bb
Change the tag search box to use "search" rather than "prefix"
...
Fixes #125
2013-08-15 18:14:28 +01:00
Jeremy Ruston
6be8afe49f
Extend the list widget to allow it to render each element as a macro
...
This will enable us to drop several existing widgets: fields,
fieldlist, fieldgrid
2013-08-13 19:33:45 +01:00
Jeremy Ruston
b9259d74f1
Increase search limit to 250
...
We limit the number of returned search results for performance reasons,
but the current limit seems too low.
2013-08-13 19:25:37 +01:00
Jeremy Ruston
e27c5005ef
File renames for 46b2fde2d9
2013-08-09 22:00:42 +01:00
Jeremy Ruston
0cf4c578d4
First take of the ConfigInfo panel
...
It displays internal configuration information for debugging and
learning about TiddlyWiki. Also introduces a way of interleaving
documentation tiddlers (complete for tiddler fields, more module type
docs to come)
2013-08-09 21:57:05 +01:00
Jeremy Ruston
064a3ffb20
Add the new ConfigInfo system tiddler
2013-08-09 16:46:35 +01:00
Jeremy Ruston
0bda00ae71
Extend the fieldlist widget to retrieve all fields used across all tiddlers
2013-08-09 16:46:17 +01:00
Jeremy Ruston
9b7cee81f2
Add type="modules" support to the info widget
...
With type="modules", the info widget outputs a list of the currently
loaded modules, grouped by module type.
2013-08-09 16:45:40 +01:00
Jeremy Ruston
46b2fde2d9
Rename "dump" command to "print" command
...
Being pan-cultural is hard.
2013-08-09 09:24:58 +01:00
Jeremy Ruston
7e82eb13eb
Fix problem with stray drag image showing
...
Changes to the main layout CSS a few weeks ago meant that the drag
image element was visible at the top left corner of the window.
Astoundingly, the fix is to cover it with another div with the same
background colour as the page….
2013-08-08 21:46:38 +01:00
Jeremy Ruston
ad4750d062
Don't sort the "tagging" tab of the tiddler info panel
2013-08-08 19:11:43 +01:00
Jeremy Ruston
a9a2ae2223
Add sorting by tiddler lists
...
The tag and tagging filters now sort their results by the list field of
the tag, if present
2013-08-08 17:39:34 +01:00
Jeremy Ruston
83ea953a1d
Switch the story list over to using the new list field
2013-08-07 17:54:27 +01:00
Jeremy Ruston
8443a9d6ca
Fix comment
2013-08-07 16:04:06 +01:00
Jeremy Ruston
85007cb1e1
Correct comments
2013-08-06 15:27:02 +01:00
Jeremy Ruston
39b6091258
Don't set modification fields on synced tiddlers
2013-08-06 15:26:48 +01:00
Jeremy Ruston
0ae0f68257
Update filenames to reflect changes in 05ac094d2e
2013-08-04 22:31:09 +01:00
Jeremy Ruston
05ac094d2e
Rename the savetiddler
/savetiddlers
commands to rendertiddler
/rendertiddlers
...
'Render' reflects what the commands actually do, and frees up 'save'
for actually saving the raw content of a tiddler.
2013-08-04 22:26:45 +01:00
Jeremy Ruston
be7cc67ab6
Correct mistaken classification of savetiddlers command as asynchronous
2013-08-04 22:02:19 +01:00
Jeremy Ruston
86e73ee323
Set modified field and other metadata for newly created and modified tiddlers
...
Right now we're setting the created/modified time, and only setting the
creator/modifier if the tiddler `$:/status/UserName` is defined.
2013-08-04 14:02:07 +01:00
Jeremy Ruston
bb843a408d
Exclude system tiddlers from recent changes
2013-08-04 13:50:23 +01:00
Jeremy Ruston
5994a84644
Extend ginsu.sh to generate a split.recipe file
2013-08-03 15:03:07 +01:00
Jeremy Ruston
799647e38b
Fix problem with search term being filtered from search results
...
Some leftover code meant that tiddlers titled with the precise search
term were excluded from the results.
2013-08-03 09:28:51 +01:00
Jeremy Ruston
602b9d34e4
Unpack the object returned by getBoundingClientRect()
...
Embedding the return object directly doesn't survive the object being
passed as an event parameter.
Fixes #114
2013-07-25 16:58:42 +01:00
Jeremy Ruston
a79e876806
First pass at a grid widget
...
Need to add support for cell templates and in place editing.
2013-07-22 13:03:46 +01:00
Jeremy Ruston
bb5ebf6733
Allow for an optional top and left sidebars
2013-07-14 23:15:32 +01:00
Jeremy Ruston
795dabb847
Correct typo in view switcher label
2013-07-14 23:14:18 +01:00
Jeremy Ruston
f1a7e433ab
Allow widget names to include digits
2013-07-14 23:13:42 +01:00
Jeremy Ruston
8c73d8db4b
Confirmation message for $tw.slowmo()
2013-07-14 23:13:13 +01:00
Jeremy Ruston
d99ed1816d
Correct themeswitcher and viewswitcher
2013-07-08 21:44:32 +01:00
Jeremy Ruston
1a160485a8
Documentation correction
2013-07-08 21:44:12 +01:00
Jeremy Ruston
6e98af3bbd
Experimenting with different easing functions for the zoomin animation
2013-07-08 17:20:06 +01:00
Jeremy Ruston
9fbb945b0a
Plumbing to allow the current view to be switched
2013-07-08 15:19:12 +01:00
Jeremy Ruston
24ad677d75
Add back the zoomin view
...
An alternative visualisation for the story list. It just shows the
currently selected tiddler, with smooth animations between tiddlers.
Not entirely finished yet; for instance, if you close the current
tiddler you get a blank screen until you select another tiddler.
2013-07-08 15:19:00 +01:00
Jeremy Ruston
ea8c795d01
Add a hack to switch slowmo animation mode
...
Just type `$tw.slowmo()` in the developer console to engage slowmo mode.
2013-07-08 15:17:29 +01:00
Jeremy Ruston
1304bfd0d4
Special treatment so that text reference to title field works for missing tiddlers
...
The title field is the one field that we know for missing tiddlers.
This is needed in a subsequent commit of viewswitcher.
2013-07-08 15:16:55 +01:00
Jeremy Ruston
53ead15273
Refactor scroller so that the scrollIntoView() method is a bit more usable
...
Passing an event instead of a DOM node was silly.
2013-07-08 15:15:53 +01:00
Jeremy Ruston
09dbf26ce1
Make the info dropdown work properly with sticky titles
2013-07-06 16:18:19 +01:00
Jeremy Ruston
efab7cd6ab
Fix problem with Sticky Titles theme
2013-07-06 15:28:10 +01:00
Jeremy Ruston
b0a333b604
Display optional tiddler icon before title
...
Just set the 'icon' field of the tiddler to the title of an image. (See
the "done" tiddler for an example)
2013-07-06 12:58:18 +01:00
Jeremy Ruston
594f4ba204
Update animations to use a timer instead the transitionEnd event
...
Thr trouble is that the transitionEnd event doesn't fire under some
circumstances (eg if the animated element is hidden). So, it's more
reliable to use a timer instead
2013-07-06 12:57:37 +01:00
Jeremy Ruston
b51fb9cfa9
Linting
2013-07-05 22:37:55 +01:00
Jeremy Ruston
6d3f224817
Fix problem with pop listview animation
...
It turns out the transitionEnd event fires separately for each animated
property. We'll just remove ourselves on the first one
2013-07-05 11:15:51 +01:00
Jeremy Ruston
c72a63849b
Add some more methods to the fake DOM
...
These methods are needed to get static saving working in the browser
again (click "Save Static" in the Demo tiddler)
2013-07-05 10:47:08 +01:00
Jeremy Ruston
08f278624b
Allow tag tiddlers to specify the title of an icon tiddler
...
Demonstrated on the "done" tag
2013-07-05 08:53:09 +01:00
Jeremy Ruston
0b25c2cece
Now trying out applying the pop animation to the open tiddler list
2013-07-04 14:19:30 +01:00
Jeremy Ruston
4980d99f70
Use pop animation for the view mode tag list
...
Works well with the task management demo
2013-07-04 13:31:14 +01:00
Jeremy Ruston
e6450e60e2
Add a popping animation to the tags editor
2013-07-04 12:50:31 +01:00
Jeremy Ruston
647bd51299
Fix problem with erroneous initialisation of changedTiddlers member
2013-07-03 16:00:48 +01:00
Jeremy Ruston
e583c1d72d
Use empty string as default value for reveal widget
2013-07-03 16:00:26 +01:00
Jeremy Ruston
627dba01e4
Make getContextScopeId() more selective about context fields that are included
...
We were getting a problem whereby macro definitions were showing up in
the context string.
2013-07-03 16:00:10 +01:00
Jeremy Ruston
6299026407
Fix issue with child nodes of macro call not being refreshed
2013-07-03 15:59:09 +01:00
Jeremy Ruston
be617c7c45
Use a <div> for the title bar of a tiddler
...
We had been using spans
2013-07-01 18:45:04 +01:00
Jeremy Ruston
2ae818dae8
Refactor out the help text in the editor template
2013-06-29 09:20:07 +01:00
Jeremy Ruston
0edfc855b4
Replace obsolete content type
2013-06-27 10:19:38 +01:00
Jeremy Ruston
d93e6b1229
Always default to a href='#title' format for tiddler links
...
The link format will be overridden when we're creating links within
static HTML representations
2013-06-27 09:03:59 +01:00
Jeremy Ruston
12b471b8fb
Extend the HTML rendering mechanism to support attributes specified as macro invocations
2013-06-18 15:37:19 +01:00
Jeremy Ruston
18f8b7266e
Refactor the HTML element parser
...
The purpose is to allow attributes to be specified as macro
invocations. For example `<div myattr=<<mymacro param1 param3>>>`. The
parser needed sprucing up in order to copy with the nesting of angle
brackets. The refactoring has been done with an eye on using the same
technique in the filter expression parser (which is pretty messy at the
moment -- it throws exceptions for syntax errors, which is bad). Later
I'm hoping to extend the technique to create a more flexible table
parser.
2013-06-15 15:12:05 +01:00
Jeremy Ruston
cb34ef20ad
Add input type handling to the texteditor
...
This allows us to customise the input element used for each field type.
The only one implemented at the moment is color, which currently only
works on Chrome
2013-06-13 09:17:36 +01:00
Jeremy Ruston
8471a2217a
Improve handling of fieldmodules lacking a stringify method
2013-06-13 09:16:26 +01:00
Jeremy Ruston
204bd69e83
Fix issue preventing tags being added to a tiddler with no existing tags
2013-06-11 14:52:01 +01:00
Jeremy Ruston
d6654c4a0b
Fixed problem with not being able to manually scroll after navigating to a tiddler
2013-06-10 21:07:23 +01:00
Jeremy Ruston
3cda8758ae
Refactor scrolling animation to use requestAnimationFrame() instead of setInterval()
2013-06-10 14:11:58 +01:00
Jeremy Ruston
2445f13caf
Improved styling for the tags dropdown
2013-06-09 19:41:48 +01:00
Jeremy Ruston
19f298bc80
Add a better tags editor
...
Now tags can be individually removed, and added with autocomplete
2013-06-09 19:28:50 +01:00
Jeremy Ruston
2c20e6579d
Update edit widget to trigger a popup when focussed
...
This will allow us to do autocompletion
2013-06-09 19:27:45 +01:00
Jeremy Ruston
e4aa80b277
Update the transclude widget to update parameters for remove tag message
2013-06-09 19:27:15 +01:00
Jeremy Ruston
d4b6c05bc2
Update linkcatcher to optionally trigger a different event
2013-06-09 19:26:42 +01:00
Jeremy Ruston
0cbb89770f
Update fieldmangler widget to be able to add and remove tags
2013-06-09 19:26:05 +01:00
Jeremy Ruston
92fee547a9
Allow class to be specified for list widget frame element
2013-06-09 19:25:11 +01:00
Jeremy Ruston
a20eb4867e
Update link widget to use current tiddler as default target
2013-06-09 19:24:45 +01:00
Jeremy Ruston
2c8352c442
Update the popup manager to allow popup state to be forced, rather than toggled
...
We'll be needing this shortly
2013-06-09 19:24:21 +01:00
Jeremy Ruston
b3c6b51fc7
Make the prefix filter operator be case insensitive by default
2013-06-09 19:23:52 +01:00
Jeremy Ruston
28da24f902
Split field editor into it's own tiddler
2013-06-08 17:34:51 +01:00
Jeremy Ruston
58a1a46ce4
Style tweaks for the field editor
2013-06-08 17:31:13 +01:00
Jeremy Ruston
aeb8d0d1e6
Allow a placeholder attribute to be specified on the edit widget
...
Also fix some problems with handling of the class and style attributes
2013-06-08 17:30:54 +01:00
Jeremy Ruston
417dd9f65c
Restyle the tiddler and page subtitles
...
Fix #91
2013-06-08 08:12:35 +01:00
Jeremy Ruston
694ca76e7f
Improve the bitmap editor to allow the bitmap to be resized
...
A bit rough and ready, too
2013-06-06 20:55:43 +01:00
Jeremy Ruston
6ae73e0fc7
Fix regex typos
...
The trouble with regexs being that they breed typos…
Fix #103
2013-06-05 19:06:31 +01:00
Jeremy Ruston
d81f45764a
Start refactoring the bitmap editor to permit a more complex UI
2013-06-05 19:04:40 +01:00
Jeremy Ruston
2d5d1d1ce1
Improve editting of corrupt images
...
We now detect errors loading the image and initialise a blank canvas
instead.
This means that it's possible to open HelloThere for editting, and then
change the "type" field to "image/jpeg", and the textarea automatically
switches to a blank bitmap. Next up is making it possible to change the
size of the bitmap.
2013-06-05 15:47:44 +01:00
Jeremy Ruston
c0a26d2849
Ensure that the edit widget refreshes whenever the editor type changes
2013-06-05 15:38:29 +01:00
Jeremy Ruston
131874e154
Fix typo
2013-06-05 15:38:06 +01:00
Jeremy Ruston
e925f1c3dd
Adjust fields widget to sort fields
...
Making it easier to track .tid files under source code control
2013-06-05 14:12:52 +01:00
Jeremy Ruston
1f21bd36d6
Fix problem with displaying modals before the page container is initialised
2013-06-04 16:22:37 +01:00
Jeremy Ruston
854a9d6d1c
Toggle a style on the page container when a modal is displayed
2013-06-04 16:19:47 +01:00
Jeremy Ruston
0fc3c0d4a3
Extend field editor to allow removal and adding of fields
...
Still pretty rough looking
2013-06-04 12:03:53 +01:00
Jeremy Ruston
348a6976b7
Add fieldmangler widget that allows fields to be added and removed to tiddlers
2013-06-04 12:02:37 +01:00
Jeremy Ruston
ab75dde048
Update transclude widget to flag events with the current field
2013-06-04 12:02:18 +01:00
Jeremy Ruston
7a080b7aac
Update class for fieldlist widget
2013-06-04 12:01:40 +01:00
Jeremy Ruston
fb76ee5606
Fix problem that was stopping buttons being able to set tiddlers to the empty string
2013-06-04 12:01:28 +01:00
Jeremy Ruston
ac879b165d
Extend the edit template to include field editors
...
Not yet complete - we can't add or remove fields, and we need to
trigger type-specific editors for certain field types. And the layout
is a bit rubbish at the moment
2013-06-02 23:22:16 +01:00
Jeremy Ruston
538d12e017
Add the fieldlist widget
...
Allows us to render a sequence of fields
2013-06-02 23:20:43 +01:00
Jeremy Ruston
938124ca37
Extend the info widget to return the current field
2013-06-02 23:20:24 +01:00
Jeremy Ruston
6f3f4528c9
Make the edit and view widgets default to the current field
2013-06-02 23:20:08 +01:00
Jeremy Ruston
d5b0a0fb68
Extend the transclude widget to allow a currentField to be set
...
We set the current field as a context variable for the transcluded
content
2013-06-02 23:19:50 +01:00
Jeremy Ruston
456d50b6ef
Make the setstyle widget refresh itself properly
...
This will allow us to dynamically change the colour of tags
2013-06-02 23:18:54 +01:00
Jeremy Ruston
f743e09e7a
Corrected typo
2013-06-02 23:17:53 +01:00
Jeremy Ruston
7dd3839970
Exclude system tiddlers from the more/types listing
2013-05-31 19:57:19 +01:00
Jeremy Ruston
7e27ed1292
Rename static content template for consistency
2013-05-31 19:56:54 +01:00
Jeremy Ruston
bf4216f3ac
Don't count references to shadow tiddlers as missing tiddlers
2013-05-31 17:53:11 +01:00
Jeremy Ruston
ac32b09db3
Rename the tiddlers in the Snow White theme, and enable a static banner
...
The tiddlers in the Snow White theme weren't named as part of their
plugin.
2013-05-31 17:44:09 +01:00
Jeremy Ruston
b0d183070c
Don't allow < and > in external links
2013-05-31 17:42:40 +01:00
Jeremy Ruston
c566284158
More consistent naming for the boot tiddlers
2013-05-31 16:53:19 +01:00
Jeremy Ruston
28b0b58a11
Make a distinction between templates and UI
...
Templates are the low-level bits and pieces that allow TW5 to generate
HTML and CSS renderings of tiddlers. The UI folder contains the
user-visible UI of TW5
2013-05-31 15:38:27 +01:00
Jeremy Ruston
905945ee26
Start rearranging the core plugin
...
Lots of inconsistencies have crept in
2013-05-31 15:22:34 +01:00
Jeremy Ruston
07a1d66e34
Fix bug with search not working
2013-05-31 13:32:46 +01:00
Jeremy Ruston
d27cb19e22
Update titles of certain widgets that were misspelled
2013-05-31 13:23:25 +01:00
Jeremy Ruston
f3703694e9
Add classes to our SVG icons so that they can be styled more easily
2013-05-31 13:09:10 +01:00
Jeremy Ruston
358efd1d1c
Add optional preview in edit mode
2013-05-29 22:43:09 +01:00
Jeremy Ruston
a8b1da33de
Improvements to slide animation
2013-05-28 16:47:16 +01:00
Jeremy Ruston
c7fe9b747a
Make the tiddler info slider animate open and closed
2013-05-28 16:28:59 +01:00
Jeremy Ruston
5cdcadd8b2
Make the reveal widget use the new animator mechanism
2013-05-28 16:28:38 +01:00
Jeremy Ruston
227cadd326
Add a barebones animation framework
...
The idea is to allow us to package animations/transitions into plugins
2013-05-28 16:28:16 +01:00
Jeremy Ruston
3e6efd7902
Move recent changes into it's own snippet
2013-05-28 08:38:23 +01:00
Jeremy Ruston
78cd134c0a
Group the recent changes list by day
2013-05-27 18:00:50 +01:00
Jeremy Ruston
cf75b209ba
Add eachday
and sameday
filter operators
...
These operators will enable us to group the recent changes list by day
2013-05-27 17:59:33 +01:00
Jeremy Ruston
ca51634041
Add the each
filter operator
...
This makes it possible to do grouping within lists
2013-05-27 17:59:03 +01:00
Jeremy Ruston
887d955fc4
Change the search filter operator to not indirect through a tiddler
...
Now that we can make any filter operator indirect through a tiddler we
don't need to have that as a special capability of the search operator.
2013-05-27 17:58:27 +01:00
Jeremy Ruston
f4a3b25d3e
Extend the filter mechanism to allow operands to be indirected through a tiddler text reference
...
In other words, as well as `[sort[myfield]]` to sort by the field
called `myfield`, one can do `[sort{MyTiddler}]` to sort by the field
whose name is in the text of the tiddler `MyTiddler`.
2013-05-27 17:57:37 +01:00
Jeremy Ruston
9193937125
Fixed problem with field filter operator not performing string comparisons
2013-05-27 17:55:45 +01:00
Jeremy Ruston
31a4b96f57
Fixed problem with getTextReference() not always returning a string
2013-05-27 17:55:23 +01:00
Jeremy Ruston
0cf5dc699e
Refactor the filter mechanism
...
Long overdue rewrite to make it simpler, and break the filter operators
out into individual modules.
2013-05-25 17:26:22 +01:00
Jeremy Ruston
5394fc4ee1
Fix typo
2013-05-25 16:40:44 +01:00
Jeremy Ruston
d19affc9c3
Fix problem with non-shadow stylesheets not being recognised at startup
2013-05-25 16:40:34 +01:00
Jeremy Ruston
1e5842dc1c
Fix download saver on Firefox
...
Turns out that Firefox needs the link to be in the document before it
will honour the click on it.
2013-05-23 11:26:47 +01:00
Jeremy Ruston
4ad6f05010
Fix issue with scrolling while editting long tiddlers in Firefox
2013-05-21 17:54:10 +01:00
Jeremy Ruston
71f98ea52c
Use a block mode reveal widget
2013-05-20 11:19:54 +01:00
Jeremy Ruston
d3fa781287
Switch to using a slider for tiddler info
2013-05-19 12:11:18 +01:00
Jeremy Ruston
96462de2f5
Fix problem with not encoding body of non-base64 data URIs
2013-05-18 16:59:53 +01:00
Jeremy Ruston
3806168038
Fixed problem with non-shadow style tiddlers not being recognised
2013-05-18 16:59:24 +01:00
Jeremy Ruston
d8abc0e9e3
Fix up more document references
2013-05-17 17:37:39 +01:00
Jeremy Ruston
5abc0a7835
Get rid of the obsolete font parser
2013-05-17 17:30:33 +01:00
Jeremy Ruston
f3bcc1c0af
Add a datauri widget
...
Used in stylesheets to get a data URI for a font or bitmap
2013-05-17 17:30:03 +01:00
Jeremy Ruston
6e1cd46bc7
Fix document references
2013-05-17 17:29:43 +01:00
Jeremy Ruston
551ebdc005
Major refactoring of rendering mechanism
...
We now use a fake DOM implementation on the server to let us share more
rendering code between the text output vs. DOM output paths.
2013-05-17 10:12:25 +01:00
Jeremy Ruston
07d4c9a639
A slightly better fix for the render context inheritance issue with the htmlwikified viewer for the view widget
2013-05-15 22:15:57 +01:00
Jeremy Ruston
98986ba9cc
Fix problem with render context not inherited into htmlwikified view widgets
2013-05-15 21:33:40 +01:00
Jeremy Ruston
136ecee41e
Refactor the core icons to be inline SVG fragments
...
This allows us to style the images with CSS, which means we finally get
hover effects on our toolbar buttons
2013-05-15 18:45:24 +01:00
Jeremy Ruston
0a3389c277
Add namespace support to the element renderer
...
This allows us to create SVG elements with the correct namespace, which
allows us to have inline SVG images (coming up next)
2013-05-15 18:44:23 +01:00
Jeremy Ruston
dd2a7199f6
Allow a default value to be specified for WikiRenderTree.getContextVariable
2013-05-15 18:43:19 +01:00
Jeremy Ruston
8564602256
Refactor rendertree to simplify context handling
...
Get rid of the separate renderContext stack and instead have a parent
pointer on renderer nodes. This lets us walk back up the render tree to
resolve context references
2013-05-15 17:32:17 +01:00
Jeremy Ruston
c0683fd65c
Added a saver for the TWEdit iPad/iPhone app
2013-05-14 20:20:48 +01:00
Jeremy Ruston
a0a6b69a4e
Sort themes by title
2013-05-14 14:24:18 +01:00
Jeremy Ruston
6864251962
Cleaning up content types
...
Dealt with some inconsistencies
2013-05-13 17:42:07 +01:00
Jeremy Ruston
15d1abf523
Fix problem with context-menu paste not triggering saving of edits
...
We'll use the input event to detect changes, which is reliable but
doesn't work on older browsers
2013-05-11 10:03:11 +01:00
Jeremy Ruston
f43e22f8e5
Remove early bail on switching to a non-existent theme
...
Fixes #98
The excised code was unnecessary, as the rest of the function operates
correctly even if the theme tiddler is missing
2013-05-10 20:24:40 +01:00
Jeremy Ruston
6e44a20804
Fix problem with TiddlyFox on Windows
...
Fix #97
2013-05-10 18:14:01 +01:00
Jeremy Ruston
db67bb8f8a
Add links to config tiddlers to control panel
2013-05-08 17:29:10 +01:00
Jeremy Ruston
37abd01b00
Further attempts to fix pesky iPad layout bug
...
This seems to do the trick
2013-05-08 16:02:29 +01:00
Jeremy Ruston
e36d22df97
Fix iPad issue with displaying page controls
2013-05-08 15:47:40 +01:00
Jeremy Ruston
abcf7df875
Adjust bitmap editor to draw with a yellow pen
...
For highlighting
2013-05-08 15:11:53 +01:00
Jeremy Ruston
762f50d920
More shadow tiddlers
...
These ones are designed as fallback content for empty TiddlyWikis -
these are the tiddlers that end users are expected to modify to
customise their wiki
2013-05-08 14:24:30 +01:00
Jeremy Ruston
c77d2f7490
Add a sidebar button for saving changes
2013-05-08 13:27:26 +01:00
Jeremy Ruston
8796f312cb
A different animation for hiding notifications
...
Only slightly different, but it seems to add visual interest
2013-05-08 13:27:04 +01:00
Jeremy Ruston
e501c0ec2a
Enhance TiddlyFox saver to display a notification on success
2013-05-07 18:09:15 +01:00
Jeremy Ruston
24db38c06b
Add simple notification mechanism
2013-05-07 18:08:44 +01:00
Jeremy Ruston
ed5f88ab84
Fix problem with importing TW files
2013-05-03 19:19:01 +01:00
Jeremy Ruston
b7832cd1d4
Add new tiddler and options buttons to sidebar
2013-05-01 22:10:55 +01:00
Jeremy Ruston
bce0ea841c
Add bullet next to selected theme in theme switcher
2013-05-01 22:10:34 +01:00
Jeremy Ruston
57b7692c97
Sidebar layout tweaks
...
Including add a clear button to the search box, which is another use of
the linkcatcher widget
2013-05-01 16:56:34 +01:00
Jeremy Ruston
1696daf2bf
More explanation of the linkcatcher widget
...
Prompted by @pmaro
2013-05-01 16:11:52 +01:00
Jeremy Ruston
408fcd8aa3
Add a parser for woff fonts
...
It's a bit of a hack to have a parser dedicated to fonts. We'll replace
it with a mechanism that handles generic binary data
2013-05-01 13:04:27 +01:00
Jeremy Ruston
b672e12fef
Add a UI to allow themes to be switched
2013-05-01 12:02:49 +01:00
Jeremy Ruston
aa7b9441fd
Add a linkcatcher widget
...
It intercepts navigation events and saves the target tiddler title into
a specified text reference
2013-05-01 12:02:33 +01:00
Jeremy Ruston
c373fea350
Ensure themes get initialised on the server as well as the browser
...
To make sure that static site generation has access to the theme shadow
tiddlers
2013-04-30 23:04:15 +01:00
Jeremy Ruston
523d70127b
Allow themes to be switched by changing the tiddler $:/theme
2013-04-30 22:57:10 +01:00
Jeremy Ruston
e875de63a9
Ignore shadow tiddlers in the syncer
2013-04-30 22:55:06 +01:00
Jeremy Ruston
a54a7806d5
Remove redefinition of Tiddler.hasField() and added Tiddler.isPlugin()
...
hasField() was already being defined in boot.js
2013-04-30 22:37:02 +01:00
Jeremy Ruston
e12fbf0f9f
Comment clarification
2013-04-30 22:35:52 +01:00
Jeremy Ruston
594871e2d1
Fix for the link macro to work around iPhone annoyance
...
This prevents Mobile Safari from sliding the address bar into view
whenever a tiddler link is clicked
2013-04-29 16:03:35 +01:00
Jeremy Ruston
152fb798eb
Start responding to dynamic stylesheet changes
...
This mechanism will only be triggered by changes to the stylesheet
tiddlers themselves, and not to any dependencies that they might have.
It'll stay that way for a while.
The next thing is making the theme manager actually switch themes,
forcing the right wiki change events to make the stylesheet manager
update itself
2013-04-29 12:07:39 +01:00
Jeremy Ruston
c3e14a85a6
Give tiddlers a hasField() method
2013-04-29 12:05:58 +01:00
Jeremy Ruston
17cfd57390
Start making themes switchable
...
Separately switch in ordinary plugins and themes. Change the convention
for plugin information to use dashes rather than camel case.
2013-04-28 22:52:26 +01:00
Jeremy Ruston
996a7279ed
Switch to using tags to identify stylesheets
...
Using module-type was confusing, because we weren't actually using the
module infrastructure for stylesheet processing.
2013-04-28 18:13:57 +01:00
Jeremy Ruston
31a378b64c
Start support for themes
...
To start with, we move the current stylesheets into a theme plugin
called "Snow White". Wikis have to specify at least one theme in their
`tiddlywiki.info` file. Next we'll add a mechanism for switching
between loaded themes
2013-04-28 09:42:48 +01:00
Jeremy Ruston
d62c9f613c
Style tweaks
2013-04-27 18:03:13 +01:00
Jeremy Ruston
7d8051ef8d
Style tweaks
2013-04-27 16:49:12 +01:00
Jeremy Ruston
b305debf97
Add a close all tiddlers button
...
For @pmario
2013-04-27 16:35:59 +01:00
Jeremy Ruston
059a36b23d
Animate tiddler closures to the left
...
As @pmario points out, avoids nasty interactions with the sidebar
2013-04-27 16:24:41 +01:00
Jeremy Ruston
608175803b
Comments and rearrangements for the base stylesheet
...
Preparatory to picking it apart into separate files
2013-04-27 15:44:56 +01:00
Jeremy Ruston
9a4caec992
Add close buttons to the open tiddler list
2013-04-27 12:11:56 +01:00
Jeremy Ruston
54d53cedd2
Further style tweaks
2013-04-27 11:43:11 +01:00
Jeremy Ruston
b139f4c6f1
Styling improvements
2013-04-27 11:28:46 +01:00
Jeremy Ruston
11f1011acc
Fix toolbar button size in edit template
2013-04-27 10:04:57 +01:00
Jeremy Ruston
6288ed6834
Sidebar adjustments
2013-04-26 21:30:11 +01:00
Jeremy Ruston
3219b948ad
Fix problem with info dropdown text size
2013-04-26 18:05:59 +01:00
Jeremy Ruston
88b7c53972
Some styling changes
...
The idea of moving the sidebar to the right is so that it can grow into
the otherwise empty space to the right of the story column.
Still a work in progress: needs to be responsive, amongst other things
2013-04-26 18:02:02 +01:00
Jeremy Ruston
f487ea68d1
Store the parser list in the wiki constructor
2013-04-25 17:40:12 +01:00
Jeremy Ruston
e42a062dcc
Fixed bug with negated title filter
2013-04-25 10:03:37 +01:00
Jeremy Ruston
82308f642a
Use the text parser to parse CSS
2013-04-25 09:05:17 +01:00
Jeremy Ruston
ba7b886067
Move tiddlyweb stuff into a separate ServerControlPanel
...
Eventually we'll need a more general purpose mechanism for plugins to
add UI to the control panel
2013-04-16 11:17:27 +01:00
Jeremy Ruston
64eadcfc41
Add an HTML parser
...
Allows one to embed raw HTML in wikitext with `$$$.html`/`$$$`
2013-04-10 17:02:37 +01:00
Jeremy Ruston
94287c9ac3
Tidying up drag and drop
2013-04-10 16:55:25 +01:00
Jeremy Ruston
e39d246317
Added basic support for drag and drop of tiddlers
...
Links are now draggable. Dragging outside the browser will drop the
wiki text of the tiddler. Dragging to another TW5 browser window will
drop the entire tiddler, including fields.
2013-04-08 18:47:46 +01:00
Jeremy Ruston
df59269b0d
Fixed problem with plugin precedence
...
We were unpacking plugin tiddlers in arbitrary order, and ensuring that
later plugins didn't overwrite shadow tiddlers from earlier plugins.
Now we'll allow plugins to specify a "pluginPriority" that determines
the load ordering. We also explicitly allow shadow tiddlers from later
plugins to overwrite shadow tiddlers from earlier plugins.
We're setting a base priority on the core plugin, since many plugins
will want to control their loading relative to it.
2013-04-08 18:37:49 +01:00
Jeremy Ruston
6d4768acad
Improve word wrapping behaviour
...
Stops tiddler titles overflowing when they dont contain word breaks
2013-04-06 16:49:47 +01:00
Jeremy Ruston
45ee2b3048
Fix bug that was preventing pasting into edit textareas or input boxes
2013-04-05 13:57:55 +01:00
Jeremy Ruston
ffe11a28d9
Fix tiddler dropdown
2013-04-04 14:24:55 +01:00
Jeremy Ruston
b69f87484d
Remove extraneous debugging code
2013-04-04 14:24:37 +01:00
Jeremy Ruston
4bcebf5bbf
Fix HTML element parser to not pass capturing parenthesis in terminating regexp
2013-04-04 14:24:21 +01:00
Jeremy Ruston
02e0b1059e
Style improvements
2013-04-03 21:11:10 +01:00
Jeremy Ruston
dc00e584fb
Add support for filtering shadow tiddlers
2013-04-03 14:29:12 +01:00
Jeremy Ruston
6c210df0bd
Update HTML deserializer to cope with TiddlyWiki classic and TW5 files
2013-04-03 12:57:17 +01:00
Jeremy Ruston
c182533efc
Parse TiddlyWiki classic wikitext as plain text
...
Too many errors if we try to parse it as TW5 wikitext
2013-04-02 18:20:38 +01:00
Jeremy Ruston
a17e3588a6
Fix problem triggered by stale history list
2013-04-02 09:28:48 +01:00
Jeremy Ruston
c287d9d6d0
First pass at a widget for importing tiddlers
2013-04-01 19:06:39 +01:00
Jeremy Ruston
d99db91dd5
Fixed attribute assignment
2013-03-28 21:47:51 +00:00
Jeremy Ruston
8146d57190
Style tweaks
...
Finally started to use `box-sizing: border-box`
2013-03-28 21:30:22 +00:00
Jeremy Ruston
0f0a96c4da
Update list widget to transclude block vs. inline correctly
2013-03-28 21:29:42 +00:00
Jeremy Ruston
abf3673fc9
Update texteditor to respect prevailing classes and styles
2013-03-28 21:29:20 +00:00
Jeremy Ruston
63fd149ea9
Relaxed restrictions on the names of constituent tiddlers within plugins
...
Thus allowing us to give a more sensible title to the core plugin
2013-03-28 17:15:52 +00:00
Jeremy Ruston
cd36f594c5
Make the core into a plugin
2013-03-28 17:07:30 +00:00
Jeremy Ruston
c411ee5106
Better error handling in boot.js
2013-03-28 14:06:50 +00:00
Jeremy Ruston
9c066617a1
Add a default tab for the tiddler dropdown
...
Unfortunately, we're not yet highlighting the tab itself
2013-03-27 13:48:55 +00:00
Jeremy Ruston
54d858a371
Improved default logic for the reveal widget
2013-03-27 13:48:39 +00:00
Jeremy Ruston
e88db07085
Fixed problem with ignored default in wiki.getTiddlerText()
2013-03-27 13:48:17 +00:00
Jeremy Ruston
554dffd83f
Add tag and missing dropdowns to the sidebar
2013-03-26 09:47:22 +00:00
Jeremy Ruston
b6345a9223
Remove logging from the server command
...
We really need to update the logging infrastructure
2013-03-25 20:19:36 +00:00
Jeremy Ruston
829ab59a7d
Add error message for recursively including a wiki
2013-03-25 19:56:22 +00:00
Jeremy Ruston
5bfcbb99ba
Add support for wiki directories to recursively include other wiki directories
2013-03-25 18:55:41 +00:00
Jeremy Ruston
d73cdfef77
Don't save "bag" fields
...
They're just an artefact of syncing
2013-03-25 12:22:15 +00:00
Jeremy Ruston
10b192e743
Add support for saving binary files
2013-03-25 12:11:34 +00:00
Jeremy Ruston
692b8b4b15
Use a system tiddler for the tiddler dropdown info state
2013-03-25 11:08:42 +00:00
Jeremy Ruston
77a6b72245
Enable server side file synchronisation in the clientserver edition
...
Use with great caution for the moment
2013-03-25 10:43:46 +00:00
Jeremy Ruston
b97681758c
Set up $tw.boot.wikiTidlersPath
...
A surprising amount of refactoring to do this
2013-03-25 10:43:18 +00:00
Jeremy Ruston
f427339a78
Add renderContext parameter to wiki.renderTiddler
2013-03-25 10:42:14 +00:00
Jeremy Ruston
70def07d63
Clearer logging preparatory to implementing file synchronisation
2013-03-24 12:53:09 +00:00
Jeremy Ruston
2870a09dc1
Make some of the sync adaptor methods be optional
2013-03-24 12:27:46 +00:00
Jeremy Ruston
9fb8ef25ed
Ensure we don't register file information for externally loaded tiddlers
...
Also make sure some globals like setInterval are available on the server
2013-03-24 12:27:45 +00:00
Jeremy Ruston
638ed6429c
Show affected filepaths on the server
...
Preparatory to doing file sync on the server
2013-03-23 22:43:39 +00:00
Jeremy Ruston
b574436dff
Don't track file information for externally loaded tiddlers
2013-03-23 22:43:05 +00:00
Jeremy Ruston
e8746c1575
On the server, start registering information about each writable tiddler file
2013-03-23 22:11:23 +00:00
Jeremy Ruston
d7b000fd6b
Start using term shadow tiddlers for tiddlers from plugins
2013-03-23 21:41:28 +00:00
Jeremy Ruston
2479e38155
Refactor loadTiddlersFromPath to return path information for each tiddler
2013-03-23 21:37:48 +00:00
Jeremy Ruston
25e56c2ade
Stop using the term "bundle" to describe plugins
2013-03-23 16:34:12 +00:00
Jeremy Ruston
d8b76f656e
Rearranging boot.js
2013-03-23 16:15:45 +00:00
Jeremy Ruston
ed3a0ba6a3
Stop using 'wiki' directory within wiki directories
2013-03-22 21:30:37 +00:00
Jeremy Ruston
a788593687
Further refactorings of boot.js
2013-03-22 21:12:39 +00:00
Jeremy Ruston
ed07798c29
More tidying up of boot.js
2013-03-22 20:02:19 +00:00
Jeremy Ruston
e336e0661c
Further rearrangements of boot.js
...
Getting better..
2013-03-22 19:44:12 +00:00
Jeremy Ruston
2c5f2bb67a
Reorganising the order of ceremonies in boot.js
...
With a view to making it all a bit more readable
2013-03-22 19:27:09 +00:00
Jeremy Ruston
1beb3a78f1
Fixes to the position of the tiddler info popup
2013-03-22 10:50:46 +00:00
Jeremy Ruston
ff076c33e6
Improvements to appearances in edit mode
2013-03-22 10:17:31 +00:00
Jeremy Ruston
4848a21c6b
Add GettingStarted tiddler for empty TiddlyWikis
2013-03-21 22:21:34 +00:00
Jeremy Ruston
6f88a57a41
Add wiki.countTiddlers() method
2013-03-21 22:21:00 +00:00
Jeremy Ruston
7e46565182
Update help URL for system dialogues
2013-03-21 22:20:37 +00:00
Jeremy Ruston
3eeac8efca
Simplify $tw.utils.log
...
And in the process make it run on node.js
2013-03-21 18:12:57 +00:00
Jeremy Ruston
738952029b
Icons for editing tiddlers
2013-03-20 17:20:46 +00:00
Jeremy Ruston
cf96679e66
Style adjustments
2013-03-20 14:41:29 +00:00
Jeremy Ruston
443ea8d01d
Rudimentary print stylesheet adjustments
2013-03-20 12:14:12 +00:00
Jeremy Ruston
0d2ac57ff7
Make static links to tiddlers with spaces work
...
A bit of a hack - the savetiddlers command should generate filenames
better
2013-03-20 11:02:06 +00:00
Jeremy Ruston
b1d218065e
Remove the form from the search box
...
To stop unintended submission if the user presses enter
2013-03-20 11:01:32 +00:00
Jeremy Ruston
505ce42bbc
Added search feature back
2013-03-20 09:01:44 +00:00
Jeremy Ruston
cbf2e9add9
Add fieldgrid in tiddler info dropdown
2013-03-19 22:39:24 +00:00
Jeremy Ruston
d4ada346dd
The list widget should parse the empty message as inline text
2013-03-19 22:39:04 +00:00
Jeremy Ruston
64c6e63cd4
Better positioning for the tiddler info dropdown
2013-03-19 20:35:34 +00:00
Jeremy Ruston
1a74a9cbdc
Use system tiddler for state in the tag dropdown
2013-03-19 20:35:22 +00:00
Jeremy Ruston
004e0b4f3a
A slightly different blue for links in the sidebar
2013-03-19 20:34:58 +00:00
Jeremy Ruston
2aff4db744
Fix relative date viewer so that it displays absolute dates in static HTML representations
2013-03-19 19:06:23 +00:00
Jeremy Ruston
ec83bc5c64
Bring back the relativedate viewer
2013-03-19 18:59:13 +00:00
Jeremy Ruston
dbfbad3dd3
Let view widget viewers get postRenderInDom() callbacks
2013-03-19 18:59:00 +00:00
Jeremy Ruston
28707edd72
Decode paths for TiddlyFox
2013-03-19 18:36:27 +00:00
Jeremy Ruston
5a6c2b91f8
Parse JSON as text so that it doesn't generate missing tiddlers
2013-03-19 18:26:55 +00:00
Jeremy Ruston
d0c87c679a
Update search templates
...
Not actually using them at the moment but want to avoid the
SearchPreviewTemplate showing up as a non-system tiddler
2013-03-19 18:16:02 +00:00
Jeremy Ruston
cbbc9d5879
Better styling for edit mode
2013-03-19 18:15:29 +00:00
Jeremy Ruston
952f1b3900
Add tiddler info dropdown
...
Including backlinks
2013-03-19 16:45:07 +00:00
Jeremy Ruston
069bb624e5
Fix popup removal
2013-03-19 16:44:32 +00:00
Jeremy Ruston
7cb65a3816
Add 'missing' and 'orphan' tabs
2013-03-19 10:14:44 +00:00
Jeremy Ruston
43001d58d1
Make a control panel sidebar tab
2013-03-18 22:43:08 +00:00
Jeremy Ruston
a1260dc57d
Basic first implementation of tabs for the sidebar
2013-03-18 22:18:54 +00:00
Jeremy Ruston
2a4294dc27
Slight tweak to the default link colour
2013-03-18 22:18:31 +00:00
Jeremy Ruston
4af8026e28
Fix savetiddlers command to create files with special characters in the name
2013-03-18 22:16:01 +00:00
Jeremy Ruston
53fc40e98f
Styling for control panel
2013-03-18 12:08:59 +00:00
Jeremy Ruston
9afb87ffe9
Style the control panel area
2013-03-18 11:14:08 +00:00
Jeremy Ruston
5b6376a386
Better titles for drafts of new tiddlers
2013-03-18 10:59:47 +00:00
Jeremy Ruston
8ca7368200
Disable password autocomplete
...
It doesn't seem to work properly.
2013-03-18 10:53:27 +00:00
Jeremy Ruston
5e12868e76
Fixes to ensure revision field is always a string
...
TiddlyWeb returns it as a number, which seems like it might be an
accident.
2013-03-18 10:13:36 +00:00
Jeremy Ruston
d14c61ef45
Switch "userName" to "username"
...
Because the former is naff
2013-03-17 19:37:31 +00:00
Jeremy Ruston
822f436534
Fix revision handling
2013-03-17 19:26:13 +00:00
Jeremy Ruston
d19fa16ca6
Fix inclusion of revision field when getting a tiddler
2013-03-17 19:25:59 +00:00
Jeremy Ruston
2624fed4f1
Get rid of the support for old-style syncers
2013-03-17 18:45:22 +00:00
Jeremy Ruston
210f596d0c
Marginally improve the elegance of the simple HTTP server
2013-03-17 17:57:46 +00:00
Jeremy Ruston
dbde2bf23b
Started refactoring TiddlyWeb syncer into generic syncer + TiddlyWeb adaptor
...
The refactored plugin is `tiddlyweb2` for the moment. The idea is to be
able to use the same syncer with a different adaptor for syncing
changes to the local file system.
2013-03-17 15:28:49 +00:00
Jeremy Ruston
8e6ce3733d
Use "self" rather than "me" for consistency
2013-03-17 15:06:09 +00:00
Jeremy Ruston
17a9cdd1e3
Remove initSyncers() from wiki.js
2013-03-16 11:06:44 +00:00
Jeremy Ruston
71aa79013d
Remove invokeSyncers() method from wiki.js
2013-03-16 10:58:47 +00:00
Jeremy Ruston
854e8d7083
Use the wiki event mechanism to dispatch lazyLoad notifications to syncers
...
We're trying to get to the point where wiki.js doesn't know about
syncers
2013-03-16 10:50:36 +00:00
Jeremy Ruston
c3b57507b0
Refactored wiki event mechanism to support multiple event types
2013-03-16 10:42:46 +00:00
Jeremy Ruston
623a3ec8f8
Rename "shadow" tiddlers to "system" tiddlers
...
What we have at the moment isn't really the same as TiddlyWiki
classic's shadow tiddlers, it's a much simpler system for excluding
tiddlers. We'll use the term "shadow" instead to refer to the way that
tiddlers in plugins behave, which is exactly like TiddlyWiki classic's
shadow tiddlers.
2013-03-15 22:00:19 +00:00
Jeremy Ruston
e5443e27cb
Minor tweaks to getTiddlers
2013-03-15 20:02:31 +00:00
Jeremy Ruston
71ecb022ef
Update TiddlyWeb support
...
Lots of changes:
* Make the built-in server support recipes and bags, albeit there's
just one of each, called "default"
* Correctly parse returned Etag to get bag of freshly PUT tiddlers
* URI encoding for tiddler titles, so that tiddlers with slashes and so
on work OK
2013-03-12 19:18:56 +00:00
Jeremy Ruston
7e57c422dc
Re-introduce video widget
2013-03-12 19:17:13 +00:00
Jeremy Ruston
6b78352764
Fixed handling of deleting tiddlers over HTTP
2013-03-11 10:04:44 +00:00
Jeremy Ruston
ab8fc26ba1
Update server command to be compatible with the TiddlyWeb syncer
...
Now TW5 in the browser can use the TiddlyWeb syncer to talk to TW5 on
the server
2013-03-10 19:28:24 +00:00
Jeremy Ruston
00ad0bc7a9
Docs update
2013-03-10 19:27:44 +00:00
Jeremy Ruston
fc33df8829
Add support for deleting tiddlers
2013-03-10 19:24:49 +00:00
Jeremy Ruston
21cb1e233e
Add "info" widget for displaying information about tiddlers
...
Currently only supports displaying the changecount of a tiddler
2013-03-10 19:24:22 +00:00
Jeremy Ruston
83a141752c
Further simplifications to syncer interface
...
Dropped the idea of exposing separate server connections
2013-03-09 09:54:01 +00:00
Jeremy Ruston
3da508b7c4
Simplify syncer interface
2013-03-08 20:29:13 +00:00
Jeremy Ruston
7d589b4b27
Removed extraneous debugging code
2013-03-08 17:50:40 +00:00
Jeremy Ruston
e0f342a62e
Comments
2013-03-08 17:50:28 +00:00
Jeremy Ruston
0731135866
Adding comment
2013-03-07 17:18:04 +00:00
Jeremy Ruston
3b458031ff
Fix close button syntx for save instructions
2013-03-07 17:17:42 +00:00
Jeremy Ruston
f85afdb964
Fixed #70
2013-03-06 22:12:21 +00:00
Jeremy Ruston
06c5308c4b
More explicit name for "touchTiddler"
...
Thanks to @boycook for the conversation that triggered this refactoring
2013-03-05 19:59:55 +00:00
Jeremy Ruston
9155b8475f
Use synchronous file writes for saving tiddlers
...
So that we don't get problems with "docs.tid" overwrites "Docs.tid"
halfway through each other
2013-03-05 11:56:15 +00:00
Jeremy Ruston
8e9b2996eb
Restore qualifyHoverTitles
attribute to link widget
2013-03-05 11:55:25 +00:00
Jeremy Ruston
ff3bdcabd6
We don't need the copyright notice in the static representations
2013-03-04 19:21:18 +00:00
Jeremy Ruston
ac6aa1e25f
Fixed template for static CSS generation
2013-03-04 19:19:32 +00:00
Jeremy Ruston
4ab4b1b8bf
Use external stylesheet in static representation
2013-03-04 19:14:47 +00:00
Jeremy Ruston
dc3190d44e
Improve static rendering of tiddlers
2013-03-04 18:48:54 +00:00
Jeremy Ruston
15a9e04a6a
Add support for static site generation
...
See http://five.tiddlywiki.com/static.html for an example
2013-03-04 18:15:54 +00:00
Jeremy Ruston
c24c00e8d6
Make the htmwikified viewer pass the renderContext through
2013-03-04 18:05:22 +00:00
Jeremy Ruston
fc79db53ab
Allow templating with the link widget
...
And add some documentation
2013-03-04 11:13:10 +00:00
Jeremy Ruston
79bb082b92
Restore password widget
...
Hence allowing TiddlySpot integration to work again
2013-03-04 11:12:49 +00:00
Jeremy Ruston
4c06bd72de
Fix #59
...
Much more intelligent automatic scrolling
2013-03-03 20:06:23 +00:00
Jeremy Ruston
f7668c80c4
Fix #61
2013-03-02 16:15:52 +00:00
Jeremy Ruston
eb0f800e5a
Add explanatory text to edit template
2013-03-02 16:08:52 +00:00
Jeremy Ruston
d7896f051a
Fixed problem with greediness of filtered transclude regexp
2013-03-02 13:01:44 +00:00
Jeremy Ruston
25df8bae6a
Quick fix to allow wikilinks to be disabled
...
And using it to disable wikilinks in the readmes
2013-03-01 18:04:53 +00:00
Jeremy Ruston
f8d2c21be1
Adjust tiddler width
2013-03-01 09:13:23 +00:00
Jeremy Ruston
9cbee467cb
Smaller titles for modal dialogs
2013-03-01 09:13:10 +00:00
Jeremy Ruston
5a37820a21
Add modal dialogue styles
2013-02-10 18:44:23 +00:00
Jeremy Ruston
6c4a2a6026
Fix modal dialogue to use inline parsing for header and footer
2013-02-10 18:44:00 +00:00
Jeremy Ruston
2c5b33d75e
Update the close widget on the Download tiddler
2013-02-10 18:43:34 +00:00
Jeremy Ruston
f3acc92730
Tweak removal animation in classic list view
2013-02-09 17:18:00 +00:00
Jeremy Ruston
114e8f4145
Remove extraneous newline in HTML representation
2013-02-09 17:07:52 +00:00
Jeremy Ruston
c76d038b8e
Update command line processing to allow a wiki path to be specified
2013-02-09 17:07:18 +00:00
Jeremy Ruston
63f52dad9e
Tag style tweaks
...
Added a hover effect
2013-02-08 11:12:33 +00:00
Jeremy Ruston
652088009b
Style tweaks for tags
2013-02-08 09:23:54 +00:00
Jeremy Ruston
6584939114
Less confusing method name
2013-02-08 09:22:21 +00:00
Jeremy Ruston
5fd73a2b8d
Remove obsolete modules
...
ArgParser was used by the old tw2 parser, and the Sprite animator was
never actually used
2013-02-08 09:22:02 +00:00
Jeremy Ruston
87986a945d
Animation tweaks for classic listview
2013-02-06 17:06:48 +00:00
Jeremy Ruston
1d77709372
Underline links on hover
...
Looks better and less obtrusive than reversing them
2013-02-06 11:27:34 +00:00
Jeremy Ruston
b0a20e704b
Restored the classic listview
2013-02-06 11:27:09 +00:00
Jeremy Ruston
dd5597fc36
Turn on iOS scrolling for the sidebar
2013-02-05 22:10:35 +00:00
Jeremy Ruston
039c9417fc
Style tweaks
2013-02-05 19:12:23 +00:00
Jeremy Ruston
1b2cdf9cd0
Use string.charAt(n) instead of string[n]
...
Safari doesn't seem to like the string indices in some circumstances
2013-02-05 19:12:05 +00:00
Jeremy Ruston
35d2290155
Style and layout tweaks
2013-02-04 20:47:21 +00:00
Jeremy Ruston
b61778cee2
More style tweaks
2013-02-04 15:29:38 +00:00
Jeremy Ruston
170c1425f7
Normalise custom event names
2013-02-04 15:29:25 +00:00
Jeremy Ruston
1f98ea5c87
Stylesheet tweaks
2013-02-04 11:56:23 +00:00
Jeremy Ruston
365974d14f
Improved generation of titles for draft tiddlers
2013-02-04 11:56:11 +00:00
Jeremy Ruston
b260e6e69a
Ensure that dropdown menu items don't word wrap
2013-02-04 10:54:55 +00:00
Jeremy Ruston
319e1b72f8
Use wikitext horizontal rule
2013-02-04 10:54:42 +00:00
Jeremy Ruston
0961286ad5
Add styles to static rendering
2013-02-04 10:16:07 +00:00
Jeremy Ruston
30d0dec1fa
Replacement styles
...
Smaller simpler styles (including CSS reset from
https://github.com/necolas/normalize.css/ )
2013-02-03 23:02:23 +00:00
Jeremy Ruston
eb2503eac7
Merge branch 'getting-rid-of-bootstrap'
2013-02-03 17:50:18 +00:00
Jeremy Ruston
5df60aaa3c
Don't render content or closing tag for void elements
2013-02-03 17:44:40 +00:00
Jeremy Ruston
c85acd71fe
Move the void element list into the main config file
2013-02-03 17:44:28 +00:00
Jeremy Ruston
4289a027d4
Add newlines after opening and closing tags
...
Which also fixes the problem with the PRE tag eating it's first newline
2013-02-03 17:11:03 +00:00
Jeremy Ruston
440608bfae
Remove files associated with Bootstrap
2013-02-03 16:03:22 +00:00
Jeremy Ruston
5028da3953
Better wording and button colours for password UI
2013-02-02 12:06:59 +00:00
Jeremy Ruston
47b42ac149
The special encrypted template isn't needed anymore
2013-01-31 10:23:08 +00:00
Jeremy Ruston
a9de17bd55
Restore encrypted TiddlyWiki support
2013-01-31 10:20:13 +00:00
Jeremy Ruston
def41c688f
Add the "save changes" button back
...
And remove the not-yet-implemented "edit" button
2013-01-30 21:10:34 +00:00
Jeremy Ruston
9a71117853
Prettify JSON
2013-01-28 19:27:22 +00:00
Jeremy Ruston
07541cbd9f
Correct package.json "engines" entry
2013-01-28 19:26:26 +00:00
Jeremy Ruston
32331a8764
Process DefaultTiddlers on the server as well as the browser
...
Thus fixing the baking of static.html
2013-01-23 12:36:42 +00:00
Jeremy Ruston
83900b0230
Fixed problem with erroneous rendering of empty HTML tags
...
We were doing things like `<div />`, which HTML doesn't like
2013-01-23 12:36:08 +00:00
Jeremy Ruston
bae48d5526
Stop base64 encoding context scope IDs
...
The base64 encoding wasn't working on node.js, and is a bit messy
2013-01-23 12:35:21 +00:00
Jeremy Ruston
d91f12f30a
Turn the recipe deserialiser into a plugin in the tw2 edition
2013-01-22 08:56:21 +00:00
Jeremy Ruston
f37e99d1fb
Extend fields widget to allow stripping of prefixes from tiddler titles
...
This functionality is a bit specific to the production of TW2, and so
might be refactored elsewise in the future.
2013-01-21 17:26:43 +00:00
Jeremy Ruston
d3fefa8b16
Fixed regexp for filtered transclusion
...
Previously we couldn't use filter expressions that included curly braces
2013-01-21 17:24:47 +00:00
Jeremy Ruston
7642f2182c
Restored tag template
2013-01-19 17:01:17 +00:00
Jeremy Ruston
dd3433f39f
Fixed problem with closing all tiddlers in a story
2013-01-18 15:36:49 +00:00
Jeremy Ruston
5e7e1fa93d
Re-introduce the checkbox widget
2013-01-18 09:33:16 +00:00
Jeremy Ruston
71f6194f01
Introduce a simple listview that scrolls to newly inserted entries
2013-01-17 13:52:46 +00:00
Jeremy Ruston
94744843b6
Added new tiddler button
2013-01-17 11:38:02 +00:00
Jeremy Ruston
aba120befc
Added text and bitmap editors
2013-01-17 11:30:35 +00:00
Jeremy Ruston
556473fb21
Try to get dropdown menus working again
...
Bootstrap doesn't like the div/span elements left behind by the view
widget
2013-01-17 11:30:14 +00:00
Jeremy Ruston
106099d991
Removed obsolete code
2013-01-17 11:29:35 +00:00
Jeremy Ruston
e024440ca8
Fixed transclude widget to only refresh when the template changes
...
Not when the tiddler being viewed changes; any such changes will be
picked up by embedded view widgets.
2013-01-17 11:29:21 +00:00
Jeremy Ruston
df59dee188
Removed ability for widgets to not generate any elements
...
It interfered with the refresh mechanism
2013-01-17 11:28:24 +00:00
Jeremy Ruston
6044995df2
Adjust copyright date
2013-01-17 11:27:08 +00:00
Jeremy Ruston
d28ee0b82a
Change module type for parsers to "parser"
2013-01-16 13:56:11 +00:00
Jeremy Ruston
0e2a0068e5
Remove obsolete wikitest command
2013-01-16 13:44:27 +00:00
Jeremy Ruston
84b633acd3
Subtler shade of blue
2013-01-16 11:41:23 +00:00
Jeremy Ruston
baff901685
Added ability to transclude fields of data tiddlers
...
This allows us to transclude colours into CSS
2013-01-15 17:50:47 +00:00
Jeremy Ruston
965cebf195
Start using TiddlyWiki5 native styles
2013-01-06 21:40:21 +00:00
Jeremy Ruston
b19a0ac948
Add dynamic processing of stylesheets with transclusions and macros
2013-01-06 21:39:39 +00:00
Jeremy Ruston
f6b66cfad6
Simplify the page template by getting rid of the nav bar
2013-01-06 21:39:10 +00:00
Jeremy Ruston
41e8942b0c
Add error message when trying to dump a non-existent tiddler
2013-01-06 21:38:38 +00:00
Jeremy Ruston
698f8dd602
Added version widget
2013-01-03 22:55:23 +00:00
Jeremy Ruston
b7b1b0a693
Improved the ViewTemplate
...
Including bringing back the SVG close icon
2013-01-03 22:46:47 +00:00
Jeremy Ruston
a43d7aed95
Added setstyle widget and use it to colour the tag buttons
2013-01-03 22:36:51 +00:00
Jeremy Ruston
975711e22e
Fixed missing parameter
2013-01-03 22:36:33 +00:00
Jeremy Ruston
c09522fbaf
Removed extraneous <p> tag from tag dropdown
...
…by making the <li> element be in block mode
2013-01-03 22:03:56 +00:00
Jeremy Ruston
95c9b7b114
Fixed bug with refreshing transclude widget
2013-01-03 20:54:34 +00:00
Jeremy Ruston
38782ab60c
Improve tag template
...
We have to include fake <li> tags to keep Bootstrap's specificity rules
happy
2013-01-03 20:52:02 +00:00
Jeremy Ruston
a2dfaec054
Get rid of the extraneous <span> around link widgets
2013-01-03 20:51:28 +00:00
Jeremy Ruston
89d44e27df
Refactor things so that widgets can opt not to generate an element
...
They have to have a single child renderer instead
2013-01-03 20:51:13 +00:00
Jeremy Ruston
1c559660d9
Fixed problem with tag dropdown list being inline rather than block
2013-01-03 18:22:52 +00:00
Jeremy Ruston
5755cd5d3f
Make modal wizards work again
2013-01-03 17:06:14 +00:00
Jeremy Ruston
6d24cedbcc
Refactored widget renderers to be hosted within HTML element renderers
...
This arrangement takes better advantage of the similarities between the
now deleted widget renderer and the element renderer. It also obviates
the need for wrapper elements around every widget.
2013-01-03 16:27:55 +00:00
Jeremy Ruston
2124dd1ac1
Add a better error message for unknown widgets
2013-01-01 18:00:02 +00:00
Jeremy Ruston
d96e0073ac
Refactored widgets not to use a base class
2013-01-01 17:51:02 +00:00
Jeremy Ruston
f8340bc4dc
Improvements to reveal widget popup handling
2013-01-01 16:14:42 +00:00
Jeremy Ruston
8fdeefd7d1
Added reveal macro
2012-12-31 18:36:39 +00:00
Jeremy Ruston
61eb585640
Fixed problem with HTML inline parse rule
...
We were incorrectly eating line breaks after self-closing inline HTML
tags
2012-12-31 18:36:13 +00:00
Jeremy Ruston
5b7cdc20ba
Added beginnings of popup widget
2012-12-30 17:23:44 +00:00
Jeremy Ruston
7d5c355d9e
Make the html parser rule work in block mode as well as inline mode
2012-12-30 17:21:38 +00:00
Jeremy Ruston
300b6cc485
Change widget syntax to $
instead of underscore
...
eg `<$list>`
2012-12-30 13:55:19 +00:00
Jeremy Ruston
dbd123675a
Fixed typo
2012-12-30 13:39:07 +00:00
Jeremy Ruston
b649bebad0
Starting to add the tag popups back
2012-12-30 13:37:48 +00:00
Jeremy Ruston
f496cd540e
Store macros in the render context so that they scope in the expected way
2012-12-29 23:17:09 +00:00
Jeremy Ruston
ea13652a64
Fixed subtle little typo
2012-12-29 23:16:34 +00:00
Jeremy Ruston
b9a7f0ed39
Added typed blocks
2012-12-29 22:29:24 +00:00
Jeremy Ruston
27ccb581be
Don't trim macro definition bodies
2012-12-29 22:27:51 +00:00
Jeremy Ruston
12683c7d5f
Removed dead code
...
Left over from the big parser refactoring
2012-12-29 22:27:36 +00:00
Jeremy Ruston
db0b82d4ef
Fix typo in list filter type for shadow tiddlers
2012-12-28 22:57:18 +00:00
Jeremy Ruston
b006cf163f
Remove the old parser code
...
Thus introducing a few functional regressions, but it's going to be
easier to fix things up without the old code knocking around and
getting in the way.
2012-12-28 22:08:32 +00:00
Jeremy Ruston
d6e531e87c
Extend new parser mechanism to determine parser based on content type
...
And add an image parser and a plain text parser
2012-12-27 17:08:29 +00:00
Jeremy Ruston
c078edf468
Rename the old image parser to make room for the new one
2012-12-27 17:07:35 +00:00
Jeremy Ruston
c703fb1267
Get rid of the wikivocabulary object
2012-12-26 22:02:59 +00:00
Jeremy Ruston
cbc08fcc1c
Reorganise the old parsers preparatory to replacing them
2012-12-26 20:03:33 +00:00
Jeremy Ruston
8684c375b8
Rename horizontal rule parser rule for less "rule"-based confusion
2012-12-26 19:49:01 +00:00
Jeremy Ruston
90a09c0a42
Added templates and temporary command for building TiddlyWiki with the new parser
2012-12-26 19:38:39 +00:00
Jeremy Ruston
750389bf6f
New wiki syntax for the title tiddler
2012-12-26 19:37:53 +00:00
Jeremy Ruston
8d185399de
Some new viewers we'll need for cooking TiddlyWiki files
...
This is all part of getting the new parser able to cook TiddlyWiki files
2012-12-26 19:37:33 +00:00
Jeremy Ruston
ac96b13b47
Added "fields" widget
...
Outputs tiddler fields through a text template.
2012-12-26 19:36:54 +00:00
Jeremy Ruston
03e46ad8f5
Add "rules" pragma for specifiying parser rules to be used for a tiddler
2012-12-26 19:35:54 +00:00
Jeremy Ruston
27c21a5edb
Added trim string utility function
2012-12-26 19:35:12 +00:00
Jeremy Ruston
4953fd6c80
Adjusting test content
2012-12-26 19:34:54 +00:00
Jeremy Ruston
d0d0b53a75
Fixed typo in view template
2012-12-26 19:34:25 +00:00
Jeremy Ruston
2635b62a73
Fix bug in styleblock regexp
2012-12-26 19:33:22 +00:00
Jeremy Ruston
0e418f6e8d
Fix the macro definition regexp
2012-12-26 19:33:11 +00:00
Jeremy Ruston
c1ec1578ec
Make sure the parser rules have unique names
2012-12-26 19:32:54 +00:00
Jeremy Ruston
4cf1c9ed1e
Fix problem with the regexp for the "dash" parser
2012-12-26 19:32:06 +00:00
Jeremy Ruston
11d001ad80
Added inline variant of filtered transclusion syntax
2012-12-23 10:47:14 +00:00
Jeremy Ruston
c3a2a24b76
Introduce filtered transclusion syntax
2012-12-23 10:37:18 +00:00
Jeremy Ruston
05ccb85759
Add template syntax for transclusion
2012-12-23 10:36:55 +00:00
Jeremy Ruston
8ef3e59416
Improved whitespace handling in classes
2012-12-23 10:36:37 +00:00
Jeremy Ruston
c31c12d698
Fix bug with extraneous dot in classed blocks
2012-12-23 10:36:25 +00:00
Jeremy Ruston
6fae946bda
Replace classed blocks and runs with styled blocks and runs
2012-12-22 23:10:06 +00:00
Jeremy Ruston
982b6a8773
Switch code block syntax
2012-12-22 23:09:44 +00:00
Jeremy Ruston
8f85ef94a6
Stop using triple curly braces for code
...
We'll use triple curly braces for filtered transclusions, and require
backtick for code.
2012-12-22 23:09:10 +00:00
Jeremy Ruston
fa17eb1b96
Fixed support for custom attributes, classes and tooltips on transclusions
2012-12-20 17:19:28 +00:00
Jeremy Ruston
015145952d
Added support for block macro calls
2012-12-20 17:03:41 +00:00
Jeremy Ruston
b0893956bc
Start introducing both inline and block variants of macro calls
2012-12-20 16:55:08 +00:00
Jeremy Ruston
0cb76f6fc0
Mark each rule with its type as it is instantiated
2012-12-20 16:49:04 +00:00
Jeremy Ruston
094f8c32ca
Finishing moving the parser rules about
2012-12-20 16:41:06 +00:00
Jeremy Ruston
54423e599c
Moving the wikiparser rules around
2012-12-20 16:38:33 +00:00
Jeremy Ruston
42945789e9
Refactor parser rule architecture to allow individual parsers to function as both block and inline parsers
2012-12-20 16:02:03 +00:00
Jeremy Ruston
2f091fefda
Removed erroneous cruft
2012-12-20 15:43:12 +00:00
Jeremy Ruston
055bdd8d8f
Added inline transclusion as well as block transclusion
2012-12-20 15:07:38 +00:00
Jeremy Ruston
360e188e49
Continuing renaming run rules to inline rules
2012-12-20 12:18:38 +00:00
Jeremy Ruston
fc28ed0bbb
Renaming parser "run rules" to "inline rules"
2012-12-20 12:02:35 +00:00
Jeremy Ruston
6ccf13e624
Widgets and macro calls should be spans not divs
...
Although it does mean that we'll end up creating divs inside spans,
which isn't strictly legal but works in all browsers
2012-12-20 10:37:51 +00:00
Jeremy Ruston
2689f6b1e5
Loosened dash formatting rule
...
It no longer has to be followed by whitespace, instead it must be
followed by anything other than a dash.
2012-12-20 09:26:59 +00:00
Jeremy Ruston
5c2f698842
Add parse tree helper for styling elements
2012-12-20 09:21:58 +00:00
Jeremy Ruston
36290c14fa
Fix for multiple macro parameters
...
This is one situation where the assignment to undefined matters
2012-12-20 09:21:44 +00:00
Jeremy Ruston
bede162896
Stop using custom elements to mark widgets
2012-12-20 09:21:08 +00:00
Jeremy Ruston
a4d16488f0
Fix for .tid files that are missing a double line break
2012-12-20 09:20:44 +00:00
Jeremy Ruston
a0155763ed
More demo text in the new parser page template
2012-12-15 17:35:45 +00:00
Jeremy Ruston
a63c7a8822
More parser rules
2012-12-15 17:35:35 +00:00
Jeremy Ruston
0c3c2eeec6
Improve implementation of classed runs
2012-12-15 17:35:16 +00:00
Jeremy Ruston
6ac1b7b9dc
Fixed problem with renderer tree nodes that don't have children
2012-12-15 17:34:48 +00:00
Jeremy Ruston
e3462e5606
Added more parse rules
2012-12-15 11:39:58 +00:00
Jeremy Ruston
817e6f5471
Added some test content to the new wiki parser page template
2012-12-15 11:39:42 +00:00
Jeremy Ruston
60dca0f38a
Added parse tree utility functions
2012-12-15 11:38:59 +00:00
Jeremy Ruston
c0e36f1129
Removed extraneous code
...
This was left over from before the refactoring
2012-12-15 11:38:47 +00:00
Jeremy Ruston
228ee92e95
Enhanced wiki text parser to selectively eat terminator regexp matches
2012-12-15 11:38:28 +00:00
Jeremy Ruston
7593cf1075
Cleaning up the widget refresh mechanism
2012-12-14 19:31:37 +00:00
Jeremy Ruston
966684cb13
Improved event handling for widgets
2012-12-14 17:57:53 +00:00
Jeremy Ruston
5c1caa672b
Moved render() and renderInDom() into widget base class
2012-12-14 17:51:14 +00:00
Jeremy Ruston
94d1c20846
Introduced widget base class
...
And renamed the wiki rule base class
2012-12-14 17:38:46 +00:00
Jeremy Ruston
2522529aac
Repaired accidental damage during debugging
2012-12-14 17:38:13 +00:00
Jeremy Ruston
3e06bca347
Refactor widget implementation
2012-12-14 16:01:37 +00:00
Jeremy Ruston
ac4b3ecef9
Further refactoring of createSubclassesFromModules
2012-12-14 15:51:23 +00:00
Jeremy Ruston
2bef7c2c5c
Further improvements to parser rule implementation
2012-12-14 15:44:19 +00:00
Jeremy Ruston
31b283ef36
Refactoring implementation of wiki parse rules
...
And some documentation.
2012-12-14 13:31:47 +00:00
Jeremy Ruston
28f96de225
Added extend() utility function
2012-12-14 13:30:10 +00:00
Jeremy Ruston
d338a54370
Introduce refactored wiki parser and renderer
...
This is a half-way through a big refactoring of the parsing and
rendering infrastructure. The main change is to separate the parse and
render trees, which makes the code a lot cleaner. The new parser isn't
yet functional enough to replace the existing parser so for the moment
you have to manually invoke it with `$tw.testNewParser()` in your
browser console. I really ought to use branches for this kind of
thing...
2012-12-13 21:34:31 +00:00
Jeremy Ruston
916ca8eecf
More utilities
2012-12-13 21:31:57 +00:00
Jeremy Ruston
ce273a22f1
More DOM utilities
2012-12-13 21:31:41 +00:00
Jeremy Ruston
7c712c4e03
Improve $tw.each() and $tw.modules.applyMethods()
2012-12-13 21:31:19 +00:00
Jeremy Ruston
a4930b7e68
Added checkbox macro
2012-11-30 09:22:17 +00:00
Jeremy Ruston
91e1a38db1
Switched to use double curly braces for transclusion
...
For compatbility with MediaWiki and other engines
2012-11-29 18:34:27 +00:00
Jeremy Ruston
6d09b2fb9c
Improve syntax for classed runs
2012-11-29 17:23:46 +00:00
Jeremy Ruston
97f6314dbb
Update the tiddler and list macros to allow the template to be specified in the body of the macro
2012-11-29 16:40:06 +00:00
Jeremy Ruston
5fd3000838
Allowed zooming in to any element with the data-tw-zoom attribute
2012-11-27 22:27:53 +00:00
Jeremy Ruston
a3c6cfdd78
Fixed width for cecily view
2012-11-27 22:27:36 +00:00
Jeremy Ruston
598c069dd6
Fixed typo
2012-11-27 22:26:35 +00:00
Jeremy Ruston
99275b5425
Improvements to zoomable pan and zoom
2012-11-27 18:30:21 +00:00
Jeremy Ruston
e4fb532ecd
Introduce zoomable macro
...
Used with Cecily to give us pan and zoom across the Cecily canvas.
2012-11-27 16:55:17 +00:00
Jeremy Ruston
3161e8d8ce
Fix problem with CecilyView that is initialised with an empty message
2012-11-26 16:24:31 +00:00
Jeremy Ruston
0154b2a54e
Revised implementation of scrolling behaviour
...
Now we use a "tw-scroll" event to request scrolling
2012-11-26 16:08:52 +00:00
Jeremy Ruston
515e0d9bf1
Fixed bug with table parser
2012-11-26 14:19:54 +00:00
Jeremy Ruston
739b641f39
Temporary hack to the list macro
...
Working around our imperfect inline vs. block detection.
2012-11-26 14:19:15 +00:00
Jeremy Ruston
580bd6438e
Fixed issues with blank tiddler text
...
The empty string is falsy in JavaScript, to keep us on our toes.
2012-11-23 13:08:10 +00:00
Jeremy Ruston
3d38d4add3
Use text/x-tiddlywiki for old format TiddlyWiki text for compatibility
2012-11-19 16:58:16 +00:00
Jeremy Ruston
17e67a5bf9
Add a simple log wrapper
...
We'll make it more sophisticated at some point
2012-11-19 16:55:10 +00:00
Jeremy Ruston
0d175d3eeb
New utility method
...
Surprising that this seems to be the recommended approach
2012-11-19 12:55:04 +00:00
Jeremy Ruston
f07bc18204
More MIME type shenanigans
2012-11-18 15:25:40 +00:00
Jeremy Ruston
84650b9a54
Swap over to the new mime type conventions
...
Discussed in
https://groups.google.com/forum/#!topic/tiddlywikidev/re8xfLqZNCE
2012-11-18 15:22:13 +00:00
Jeremy Ruston
41db3d89ae
Use the plain text parser to display HTML files
...
We could display the HTML in an IFRAME but I think that's often not
what people want
2012-11-18 14:57:10 +00:00
Jeremy Ruston
addef09d1c
Fix problem with JS parser crashing on skinny tiddlers
2012-11-18 14:56:33 +00:00
Jeremy Ruston
605a7a4124
Fixed problem with missing macros throwing an error
2012-11-18 13:43:06 +00:00
Jeremy Ruston
5c87b437ee
Support for lazy loaded tiddlers
2012-11-18 13:14:28 +00:00
Jeremy Ruston
4742ab14fc
Start using the server connection tiddler to store host details
2012-11-17 21:15:19 +00:00
Jeremy Ruston
e194aed449
Introduce syncer mechanism
2012-11-17 20:18:36 +00:00
Jeremy Ruston
5c9b0d62c4
Allow comments in tiddler field blocks
...
Particularly useful for commenting in tiddler dictionaries
2012-11-17 20:18:03 +00:00
Jeremy Ruston
705c88d1aa
Fix TiddlyFox transfer attribute names
2012-11-17 20:17:29 +00:00
Jeremy Ruston
3f58ead593
Add support for data modules
...
Modules can now be JSON or tiddler dictionaries, as well as executable
code
2012-11-17 13:08:25 +00:00
Jeremy Ruston
af21a8ff95
Password prompt improvements
2012-11-16 22:59:44 +00:00
Jeremy Ruston
9eb10fb21a
Clear password if decryption fails
2012-11-16 22:40:56 +00:00
Jeremy Ruston
0dbe4c0291
Get rid of more vestiges of the old empty generation mechanism
2012-11-16 22:40:25 +00:00
Jeremy Ruston
454f892cf2
Remove old mechanism for generating empty.html
2012-11-16 22:26:33 +00:00
Jeremy Ruston
544711fe59
Improved copy writing
...
Marginally better
2012-11-16 19:36:50 +00:00
Jeremy Ruston
a4d88769b9
Only use the download saver when the download attribute is supported
2012-11-16 19:31:32 +00:00
Jeremy Ruston
80bd198908
Introduce new manualdownload saver
...
This saver pops up a modal dialogue giving the user an opportunity to
right click and save the wiki
2012-11-16 19:31:18 +00:00
Jeremy Ruston
b96bcfdca4
Improve the modal dialogue to optionally include a download button
2012-11-16 19:30:30 +00:00
Jeremy Ruston
b74df6d1b0
Remove the old Firefox XUL saver
...
It's only of historical interest now, sadly.
2012-11-16 18:06:45 +00:00
Jeremy Ruston
b48dec6932
Minor style cleanups
2012-11-16 17:44:47 +00:00
Jeremy Ruston
42b4f20113
Refinements to the new password prompting mechanism
2012-11-16 17:23:10 +00:00
Jeremy Ruston
db3a4651a2
Improved crypto and password prompting mechanism
...
Now encrypted tiddlywikis prompt for their password with an html form,
instead of a horrible javascript prompt.
2012-11-16 16:59:47 +00:00
Jeremy Ruston
bf04207350
Rename the wikitext parser
2012-11-15 12:53:10 +00:00
Jeremy Ruston
5f9b2e9d84
Turn the TiddlyWiki 2.x.x parser into a plugin
2012-11-15 12:47:09 +00:00
Jeremy Ruston
26822121be
Update the dump config command
2012-11-15 12:46:53 +00:00
Jeremy Ruston
ce46866317
More JSHint obeisance
2012-11-15 12:46:42 +00:00
Jeremy Ruston
1e51f56754
JSHint obeisance
2012-11-15 12:38:25 +00:00
Jeremy Ruston
9281fa8786
Further refactoring of the boot process and module mechanism
2012-11-15 10:40:03 +00:00
Jeremy Ruston
539b64b626
Refactoring module mechanism
...
Changed the data structure $tw.modules.types to make it possible to
detect repeated registrations
2012-11-14 11:23:43 +00:00
Jeremy Ruston
ce47f5e1d4
Started to move dropbox bits and pieces into a plugin
...
Currently tw5dropbox is broken, pending some further changes around
module handling
2012-11-13 18:42:50 +00:00
Jeremy Ruston
11b2af34d2
More refactoring around the plugin implementation
...
Now wikis can specify which plugins should be loaded
2012-11-13 08:46:44 +00:00
Jeremy Ruston
3b11713e88
Refactoring plugin implementation
...
Including introducing the terminology "tiddler bundles"
2012-11-12 22:16:49 +00:00
Jeremy Ruston
c04f11f3ff
Fix format of metadata comment for bootprefix.js
2012-11-12 22:15:52 +00:00
Jeremy Ruston
481b58eec9
Fixed crash when no browser-startup modules
2012-11-12 22:15:22 +00:00
Jeremy Ruston
5e25d9e9c8
Make the copyright file into an ordinary tiddler file
...
When it was a text file we were relying on boot.js to be able to figure
out the correct title. Better to make it explicit
2012-11-12 22:14:55 +00:00
Jeremy Ruston
f085f3aabb
Use temporary tiddler for search text
2012-11-11 15:08:46 +00:00
Jeremy Ruston
283d917a43
Use temporary tiddler for search text
2012-11-11 15:08:31 +00:00
Jeremy Ruston
f1089c1c92
Use temporary tiddlers for popup locations
2012-11-11 15:03:34 +00:00
Jeremy Ruston
cf15b128c1
Fixed problem with relativedate field viewer
2012-11-11 14:40:49 +00:00
Jeremy Ruston
9612aac296
New implementation for shadow tiddlers
...
Now shadow tiddlers are any tiddler whose title starts with "$:/"
2012-11-11 14:31:45 +00:00
Jeremy Ruston
d7d6e59865
Beginnings of support for syncing
2012-11-11 14:13:08 +00:00
Jeremy Ruston
030f16981a
Tiddler helper method to return a block of fields
2012-11-11 14:12:10 +00:00
Jeremy Ruston
d3e6a0cdf0
Move the slowInSlowOut easing function into utils
2012-11-08 18:34:04 +00:00
Jeremy Ruston
e0d2985ec3
Added explicit story and history list to navigator in PageTemplate
2012-11-07 17:14:07 +00:00
Jeremy Ruston
56c8dc2226
Fixed problem with navigators that don't have a story or history
2012-11-07 16:12:03 +00:00
Jeremy Ruston
34435329e6
Added indirect transclusion
...
The name of the tiddler to transclude is taken from a text reference
2012-11-07 16:11:47 +00:00
Jeremy Ruston
bdc46a8bc3
Move the NewTiddler button
2012-11-07 09:19:00 +00:00
Jeremy Ruston
6c636a671d
Remove zoomer and chooser
2012-11-06 17:51:19 +00:00
Jeremy Ruston
55783a8f5d
Remove the view switcher and the zoomer and chooser
2012-11-06 17:51:08 +00:00
Jeremy Ruston
9f6909ddc4
Appeasing the gods of JSHint
2012-11-06 17:21:56 +00:00
Jeremy Ruston
54252a5400
Made fields popup condensed
2012-11-06 14:12:20 +00:00
Jeremy Ruston
2b4d1bfd18
Add search previews
2012-11-06 14:12:09 +00:00
Jeremy Ruston
c58903f865
Added hover functionality to button and link macros
2012-11-06 14:11:49 +00:00
Jeremy Ruston
034af3b126
Added new "aboveright" position for reveal macro
2012-11-06 14:11:32 +00:00
Jeremy Ruston
083ac7a4bf
Encapsulate logic for handling popups
2012-11-06 14:11:11 +00:00
Jeremy Ruston
b81b2c0c63
Fixed problem with tiddler hashmap handling
...
We need to check hasOwnProperty to avoid problems with tiddlers called
eg "__proto__". There are more changes like this to come
2012-11-06 14:10:55 +00:00
Jeremy Ruston
bb10222b8d
Added fields macro and put it in the default view template
2012-11-05 19:00:54 +00:00
Jeremy Ruston
6819365dfc
Fixes for sideways view
...
Fixed problem with starting up with the empty message displayed, and
problem with incorrect width reading of newly inserted list elements
2012-11-05 15:14:27 +00:00
Jeremy Ruston
c95618e42c
Fix for list macro
...
Hardens findListElementByTitle to work when the empty message is
displayed
2012-11-05 15:13:51 +00:00
Jeremy Ruston
528c62577c
Better spacing on the navigation menu
2012-11-04 19:49:13 +00:00
Jeremy Ruston
04223a3d81
Remove transform at end of classic list view insertion animation
...
Leaving the transform makes a new positioning context without updating
offsetParent
2012-11-04 17:28:51 +00:00
Jeremy Ruston
96145982d9
Fix navigation through list macro entry
2012-11-04 17:28:21 +00:00
Jeremy Ruston
c58a75f834
Fixed issue with dropbox positioning
...
On webkit, applying a perspective appears to set up a new positioning
context without updating offsetParent.
2012-11-04 17:02:01 +00:00
Jeremy Ruston
7a7f293579
Fixed typo
2012-11-03 20:34:39 +00:00
Jeremy Ruston
2ad3e10188
And use the proper form of -webkit-overflow-scrolling
2012-11-03 17:36:27 +00:00
Jeremy Ruston
80ce9f01f9
Only have scrollbars when we need them
2012-11-03 17:35:31 +00:00
Jeremy Ruston
3d747499cb
More enhancements to listview animations
...
Now we've got navigation scrolling back
2012-11-03 16:14:00 +00:00
Jeremy Ruston
5443c8243a
Lots of tweaks to list view animations
...
There's a regression in that navigation animations are currently not
working
2012-11-03 12:34:36 +00:00
Jeremy Ruston
921162ccdf
Add left navigator
2012-11-03 12:33:56 +00:00
Jeremy Ruston
4bff67007d
Introduce sprite handler mechanism
...
For flying things around the page
2012-11-03 12:33:21 +00:00
Jeremy Ruston
22a2651660
Move the animation preferences to the top of the file for ease of access
2012-11-03 12:32:46 +00:00
Jeremy Ruston
b554475d10
New Bootstrap v2.2.0
2012-10-30 22:23:10 +00:00
Jeremy Ruston
072c06b412
Fixed issue #46
2012-10-28 20:51:18 +00:00
Jeremy Ruston
46a1dd662c
Fixed unrendered field link view links
...
Fixing #39
2012-10-28 20:43:33 +00:00
Jeremy Ruston
f7d765da55
ViewTemplate tweak
2012-10-28 20:32:49 +00:00
Jeremy Ruston
77c2804684
Removed extraneous console.log
2012-10-28 18:52:14 +00:00
Jeremy Ruston
cfb3b42438
More refactoring of relativedate implementation
2012-10-28 18:41:48 +00:00
Jeremy Ruston
c0a00f856e
Fixed typo
2012-10-28 18:41:31 +00:00
Jeremy Ruston
c6add09e54
Add a relative date field viewer
...
With a bit of attendant refactoring
2012-10-28 18:18:05 +00:00
Jeremy Ruston
ecd933dd25
Add support for relative dates
...
Including: setting date on save tiddler and adding a date to HelloThere
2012-10-28 14:15:07 +00:00
Jeremy Ruston
5ad86388dc
Add touch scrolling for cecily and sideways listviews
2012-10-28 14:14:16 +00:00
Jeremy Ruston
931bea1194
Fixes to classic and sideways list views
2012-10-28 14:13:38 +00:00
Jeremy Ruston
66087085e7
Whoops, accidentally left some debug commenting out
2012-10-28 09:51:59 +00:00
Jeremy Ruston
607cb49e6e
Better animations for the sideways list view
2012-10-28 09:51:19 +00:00
Jeremy Ruston
d39ad8fff9
Tweak the classic view navigation animation
2012-10-28 09:30:45 +00:00
Jeremy Ruston
1bfa4ca00e
Tweak Cecily startup routine
...
We were making too many assumptions about the DOM layout
2012-10-28 09:06:54 +00:00
Jeremy Ruston
c030f735a8
Keep the new tiddler positioning nozzle within the Cecily map
2012-10-28 08:54:31 +00:00
Jeremy Ruston
07c5a43404
Re-introduce the sideways view
...
And further related tweaks
2012-10-28 08:46:35 +00:00
Jeremy Ruston
f2460a3744
Added simple insertion and deletion animations to cecily view
2012-10-27 19:30:16 +01:00
Jeremy Ruston
1b589fe1be
Cecily styling tweaks
2012-10-27 16:29:12 +01:00
Jeremy Ruston
c95cf6b4b0
Added map parameter to list macro for the listviews to use
2012-10-27 16:06:30 +01:00
Jeremy Ruston
a0843f9c51
Add ability to read JSON files containing an array of tiddlers
2012-10-27 14:51:43 +01:00
Jeremy Ruston
416ab0c060
Removed startup history list processing
...
Not needed anymore
2012-10-26 22:51:54 +01:00
Jeremy Ruston
595a47f270
Make it easier to detect the UTF-8 encoding of the main HTML file
...
It turns out that Dropbox, and some browsers, just sniff the first few
hundred bytes looking for the bit pattern of UTF-8 characters
2012-10-26 22:30:46 +01:00
Jeremy Ruston
e97f778af4
Now we've got scrolling for navigation in classic view
2012-10-26 22:20:06 +01:00
Jeremy Ruston
324a87a8a2
Further refinements to the list mechanism
...
Much better navigation animation for classic view
2012-10-26 22:12:40 +01:00
Jeremy Ruston
865e26bbce
Extraneous console.log
2012-10-26 22:12:23 +01:00
Jeremy Ruston
8730c76884
Saving maps in CecilyView
2012-10-26 17:57:57 +01:00
Jeremy Ruston
187b6bfa4d
Make sure newly inserted classic view list elements get their height reset to auto after being animated
2012-10-26 17:43:52 +01:00
Jeremy Ruston
858fde3b59
Fixed iffy scrolling during navigation
2012-10-26 17:35:03 +01:00
Jeremy Ruston
9797c6aada
Tweaks to the listviews
...
Cecily gets a bit better, and we start to handle navigation events.
Scrolling seems to still be a bit iffy
2012-10-26 17:19:34 +01:00
Jeremy Ruston
dd6e7d7e10
Cecily updates
2012-10-26 14:01:49 +01:00
Jeremy Ruston
3dcada04d4
Extraneous console.log
2012-10-26 14:01:38 +01:00
Jeremy Ruston
7027c30a32
Typo
...
We don't want these macros to be executed when this comment is displayed
2012-10-26 14:01:27 +01:00
Jeremy Ruston
b1f3d169fb
Fix classic list viewer to use the new browser abstraction layer
2012-10-26 14:01:11 +01:00
Jeremy Ruston
da43887d7c
Add the ability to set classes on list elements
2012-10-26 14:00:56 +01:00
Jeremy Ruston
031e3b8b80
Updates to CecilyView and browser.js
2012-10-26 10:28:32 +01:00
Jeremy Ruston
f418f5493e
Bring in a demo area for the Cecily view
2012-10-25 23:05:26 +01:00
Jeremy Ruston
5a58639131
Get rid of the old story macro, and tidy up
2012-10-25 22:44:41 +01:00
Jeremy Ruston
ba4e140147
Fixed problem with retrieving non-existent list tiddlers
2012-10-25 22:44:00 +01:00
Jeremy Ruston
7c76ec02c2
Better programmatic CSS handling
2012-10-25 22:20:27 +01:00
Jeremy Ruston
495f208aa4
Extraneous space
2012-10-25 22:19:50 +01:00
Jeremy Ruston
950b46276e
Start updating the browser prefix stuff
...
The old way led to code that was too long and unreadable.
2012-10-25 14:58:32 +01:00
Jeremy Ruston
cbfc96cabd
Simplify unhyphenating CSS properties
2012-10-25 14:57:48 +01:00
Jeremy Ruston
e063ec6b1a
Added new getTiddlerList() method to wiki
2012-10-25 14:57:33 +01:00
Jeremy Ruston
122c69dfc1
Tweaks to animation speed setting
2012-10-25 13:33:21 +01:00
Jeremy Ruston
723fbf12ce
Minor tweaks to navigator
2012-10-25 13:04:03 +01:00
Jeremy Ruston
73bcb1c31e
Rename the file, too
2012-10-25 12:57:15 +01:00
Jeremy Ruston
6d397edf30
Rename the navigationcatcher macro to navigator
2012-10-25 12:55:36 +01:00
Jeremy Ruston
7c19b9f5a3
Remove old navigator macro
...
We'll rename the new one to "navigator" afterwards
2012-10-25 12:53:32 +01:00
Jeremy Ruston
ccf93118ba
Fixes for new tiddler positioning
2012-10-24 23:03:06 +01:00
Jeremy Ruston
8d67bcb718
Fixes for navigation
2012-10-24 22:50:15 +01:00
Jeremy Ruston
e88da55683
Fixes for the new tiddler button
2012-10-24 22:39:37 +01:00
Jeremy Ruston
f623515b1c
Fixed styles for the EditTemplate
2012-10-24 22:39:25 +01:00
Jeremy Ruston
f77b3a54ca
Switch from the old navigator macro the new navigationcatcher macro
...
We'll probably rename the navigationcatcher macro, because the name is
rubbish.
2012-10-24 22:33:33 +01:00
Jeremy Ruston
ce4a14c68a
Fixed tiddler styling issues
2012-10-24 22:28:25 +01:00
Jeremy Ruston
999d63c0f0
Add a cecily view
...
Finally, the start of a proper 2D ZUI view. It's going to replace the
current "zoomin" storyview
2012-10-24 22:15:57 +01:00
Jeremy Ruston
d1c396507b
Update the PageTemplate to use the list macro instead of the story macro
...
We're going to drop the story macro, which will break some things in
the short term. But it's awesome to be using the one macro for so many
different purposes (the main story, the tags listing, recent changes,
etc.)
2012-10-24 22:15:16 +01:00
Jeremy Ruston
3647690308
Fixed typo in the list macro
...
Pesky dots and dashes
2012-10-24 22:13:44 +01:00
Jeremy Ruston
5f17e7d01b
Fixed problem with list filter
...
It was failing if the list tiddler was missing
2012-10-24 22:11:23 +01:00
Jeremy Ruston
fc6e563c17
Fixed problem with the --server command
...
I hadn't updated the code since using parametic substitution in the
main template
2012-10-24 22:11:01 +01:00
Jeremy Ruston
c160c69187
Fixes to the insertion classic listview animation
2012-10-23 18:45:26 +01:00
Jeremy Ruston
e3f6a33157
First version of the "classic" listview
2012-10-23 18:19:20 +01:00
Jeremy Ruston
c087228b33
Starting to introduce list views
...
These are custom modules for visualising list manipulations and
navigations
2012-10-23 17:13:47 +01:00
Jeremy Ruston
5ced636abf
Rename "viewer" modules to "fieldviewer"
2012-10-23 16:40:22 +01:00
Jeremy Ruston
91bebe7b7f
Tweak the standard list filters
2012-10-23 16:28:53 +01:00
Jeremy Ruston
3a710ad9ce
Fix problem with sortTiddlers
2012-10-23 16:28:38 +01:00
Jeremy Ruston
8d4be5934b
Fixed problem with tags field being set to "undefined" for blank tiddlers
2012-10-21 16:50:37 +01:00
Jeremy Ruston
261ee54b5c
About time we had a "new tiddler" button
2012-10-21 16:44:53 +01:00
Jeremy Ruston
4c9c74586c
A function for displaying relative dates
2012-10-20 14:23:57 +01:00
Jeremy Ruston
092e495e90
Fixes the text reference parsing
2012-10-18 23:20:27 +01:00
Jeremy Ruston
f4f042d2be
Fix to transclusion viewer
2012-10-18 18:59:57 +01:00
Jeremy Ruston
971bc68163
Fixed search bug
2012-10-18 18:27:58 +01:00
Jeremy Ruston
cd04fa22c6
Introduce extensible viewer modules for the view macro
2012-10-18 18:27:27 +01:00
Jeremy Ruston
7d60c8f55e
Get ready to extend the view macro to use plugins for each view format
2012-10-18 15:53:01 +01:00
Jeremy Ruston
6263c0b40d
Allow keyboard input while full screen
2012-10-18 10:52:03 +01:00
Jeremy Ruston
10ed746209
Seach titles as well as bodies
2012-10-18 10:51:52 +01:00
Jeremy Ruston
1a88a12eb5
Fixing dropdown highlights
...
Pesky Bootstrap is a tad specific about wanting an <li> as the
immediate parent of a dropdown item <a>
2012-10-17 23:10:10 +01:00
Jeremy Ruston
c1cf82cfb8
Improve the efficiency of the search filter ordering
2012-10-17 21:00:46 +01:00
Jeremy Ruston
caaa798ced
Support search terms vs. literal search
...
Search terms like "one two" are searched like Google, returning
tiddlers with both terms
2012-10-17 20:38:36 +01:00
Jeremy Ruston
93f0a28c26
More search results
...
It's confusing limiting to 10 results unless we can show an indicator
that more results are available
2012-10-17 20:37:49 +01:00
Jeremy Ruston
1a74d8526f
Temporarily disable the search popup focus handling
...
Just so that search works again
2012-10-17 19:12:05 +01:00
Jeremy Ruston
5e2c3db385
Getting ready for using RegExp for search
...
So that we can do case insensitivity and partial matches
2012-10-17 19:10:48 +01:00
Jeremy Ruston
81a565e608
Starting to get the behaviour of the search popup more correct
2012-10-17 19:10:18 +01:00
Jeremy Ruston
42d4be3f20
Search improvements
...
1. Extended edit macro to allow a search-styled input to be used
2. Moved search box into nav bar
2012-10-17 18:03:17 +01:00
Jeremy Ruston
915caf2a18
Improvements and fixes to search
2012-10-17 14:57:13 +01:00
Jeremy Ruston
0982bcbf45
Added function to search a wiki
...
Crude at the moment
2012-10-17 14:34:59 +01:00
Jeremy Ruston
89819f533f
Added filter to search for text in a given tiddler
...
eg [searchVia[mySearchTermTiddler]] will return all the tiddlers
containing the string in the mySearchTermTiddler.
2012-10-17 14:34:34 +01:00
Jeremy Ruston
abd2693352
Adding temporary UI for testing search
2012-10-16 23:08:28 +01:00
Jeremy Ruston
5ef77ae3dd
Removing dead code
2012-10-16 23:06:53 +01:00
Jeremy Ruston
3e4945b033
Improving comments
2012-10-16 23:06:45 +01:00
Jeremy Ruston
541261f14d
Removing dead code
2012-10-16 23:06:37 +01:00
Jeremy Ruston
dd6fddad01
Added support for the empty message to the list macro
2012-10-16 21:42:36 +01:00
Jeremy Ruston
343a2c2340
Fixed problem with sorting by missing fields
2012-10-16 21:41:12 +01:00
Jeremy Ruston
456b8f9ba8
Fixed list macro to work properly in inline mode
2012-10-16 19:14:04 +01:00
Jeremy Ruston
a832338bb6
Add a function to check whether a tiddler has a given field
2012-10-16 19:12:09 +01:00
Jeremy Ruston
f0974740db
Improvements to list macro
...
Allow shorthand list types, and cope with no template being specified
2012-10-16 19:06:52 +01:00
Jeremy Ruston
bd5995b2e4
Deprecate the old transclude macro
2012-10-16 18:51:17 +01:00
Jeremy Ruston
dcac40ac31
Change the transclude wikitext rule to use the list macro
2012-10-16 18:50:44 +01:00
Jeremy Ruston
cb3741c8ee
Refactored list macro
...
Now does selective refreshing, improving performance in several areas.
(Classic TW always refreshed lists in their entirety). A bit more to
do, but the plan is that this can replace the story macro, too
2012-10-16 18:50:32 +01:00
Jeremy Ruston
3a4288899d
Correction to error message
2012-10-16 18:49:23 +01:00
Jeremy Ruston
35ddf7a81c
Update the password macro so that it can be used on the server
2012-10-16 18:49:13 +01:00
Jeremy Ruston
03623587e1
Added list filter operator
2012-10-16 11:25:14 +01:00
Jeremy Ruston
de2cd34801
Temporarily deprecate the list macro
...
So that we can refactor it incompatibly
2012-10-16 10:15:12 +01:00
Jeremy Ruston
e9f262b9df
Remove the experimental template mapping system
...
Unnecessarily complicated and JSONy
2012-10-16 10:14:41 +01:00
Jeremy Ruston
242884c918
Temporary fix for the transclude macro
...
Change of plan; the list macro is now going to be refactored to
incorporate the functionality of the transclude and story macros as well
2012-10-16 10:14:11 +01:00
Jeremy Ruston
24f0a580b5
Refine macro parameter test
2012-10-16 08:46:29 +01:00
Jeremy Ruston
5a3e2ce438
Refactor story macro to use reexecuteInDom()
2012-10-15 22:02:12 +01:00
Jeremy Ruston
4530eaf24a
Update transclude parser rule to use the tiddler macro for single tiddlers
2012-10-15 19:03:05 +01:00
Jeremy Ruston
62fac05411
Renamed the templateTitle parameter of the transclude macro for consistency with the tiddler macro
2012-10-15 19:02:49 +01:00
Jeremy Ruston
1c699c7118
Update the tiddler macro to have a templateText parameter
2012-10-15 18:46:47 +01:00
Jeremy Ruston
4ad8859864
Beginnings of refactoring the transclude macro
...
We want to make it selectively refresh for better performance
2012-10-15 18:46:33 +01:00
Jeremy Ruston
80cbe2a98f
Refactor out the reexecuteInDom() method of macros
2012-10-15 18:46:04 +01:00
Jeremy Ruston
5761723078
Accidentally omitted from previous commit
2012-10-15 18:45:36 +01:00
Jeremy Ruston
fd4ff10bf3
Added $tw.utils.pulse() for animating elements
...
To make it easier to see things while debugging
2012-10-15 17:18:32 +01:00
Jeremy Ruston
0187f3c3bc
Whitespace cleanup
2012-10-14 00:21:23 +01:00
Jeremy Ruston
6c42f38b9b
Ensure that history and story tiddlers are shadow tiddlers
2012-10-12 19:43:34 +01:00
Jeremy Ruston
d4b2ab4a5f
Add a serialisation for preloading a tiddler
2012-10-12 19:01:19 +01:00
Jeremy Ruston
36e8040773
Added support for tiddlers preloaded through JavaScript
2012-10-12 19:01:03 +01:00
Jeremy Ruston
60eeca5893
Updated to latest version of Bootstrap
2012-10-11 15:58:05 +01:00
Jeremy Ruston
63e486298c
Fixed typo in link macro
2012-10-11 14:56:22 +01:00
Jeremy Ruston
5732cd4239
Updates to tw5dropbox
2012-10-10 16:33:07 +01:00
Jeremy Ruston
1896063788
Added plain module serialiser
...
Needed when we pack lots of modules into a single .js file
2012-10-10 16:32:55 +01:00
Jeremy Ruston
bf75735db9
Several fixes
...
1. Made crypto module optional
2. Moved hasOwnProperty into boot kernel
3. Fixed handling of modules in the browser
2012-10-10 16:32:37 +01:00
Jeremy Ruston
35d8ff871a
First commit of TiddlyWiki5 in the Sky for Dropbox
...
This is a new build of TiddlyWiki5 that pulls it's content from a
Dropbox App folder.
(This naming strategy is seeming increasingly stupid).
2012-10-10 10:47:05 +01:00
Jeremy Ruston
6b6def8725
Fixed the view macro to fail silently if the target tiddler doesn't exist
2012-10-10 10:45:58 +01:00
Jeremy Ruston
fc19a77353
Added support for PDF images
2012-10-10 10:45:39 +01:00
Jeremy Ruston
70ac853d28
Separated out the version check to make it easier to test
2012-10-01 16:50:42 +01:00
Jeremy Ruston
b9e5171da6
Allow template overrides for the story
2012-09-14 17:29:30 +01:00
Jeremy Ruston
52f9e495ae
Add ability for link macro to link through a given field
...
This is a bit of a hack, and a more harmonious way of doing this is
planned
2012-09-14 17:29:17 +01:00
Jeremy Ruston
238946b32b
Update story macro to use rules to choose templates
...
Now special mapping tiddlers are used to determine which templates are
used for a given tiddler
2012-09-12 15:33:11 +01:00
Jeremy Ruston
7b4da4319a
Allow filterTiddlers to be used on a hashmap of tiddlers
2012-09-12 15:32:26 +01:00
Jeremy Ruston
61c501e5a3
Added the full screen icon to the navbar
...
It's now getting a bit crowded.
2012-09-12 10:47:14 +01:00
Jeremy Ruston
7a17e7b216
Added full screen mode plugin
2012-09-12 10:46:39 +01:00
Jeremy Ruston
c39654917f
Added support for browser startup modules
2012-09-12 10:46:28 +01:00
Jeremy Ruston
9e8b665b8b
CSS tweaks for full screen mode
2012-09-12 10:45:59 +01:00
Jeremy Ruston
8386607092
Added feature detection for HTML5 full screen mode
2012-09-12 10:45:23 +01:00
Jeremy Ruston
e637b54f36
Add password handling to server
2012-09-02 21:00:24 +01:00
Jeremy Ruston
2b578c5acc
Add command for saving in encrypted form
...
Temporary UI
2012-09-02 20:59:53 +01:00
Jeremy Ruston
1200c8329a
Add Stanford JavaScript Crypto Library for encryption of tiddlers
...
Initial implementation. The password is hardcoded on the server, but
properly prompted in the browser.
2012-09-02 20:29:47 +01:00
Jeremy Ruston
3070357d70
Refactor serialisers to work on an array of tiddlers
2012-09-02 20:28:32 +01:00
Jeremy Ruston
a95c83628d
Now got exploded plugins working on the server
2012-08-31 17:25:18 +01:00
Jeremy Ruston
e232a374e1
Plugin refactoring
2012-08-31 16:37:11 +01:00
Jeremy Ruston
b2369df65a
Further refactoring to the plugin mechanism
2012-08-31 16:36:57 +01:00
Jeremy Ruston
7a15b6f97a
Fixed mis-renaming of tiddlywiki.files
2012-08-31 15:09:33 +01:00
Jeremy Ruston
ed3a10f043
Renamed tiddlywiki.plugin
files to tiddlywiki.files
...
Because we're just about to use the name `tiddlywiki.plugin` for
exploded plugin folders
2012-08-31 15:04:08 +01:00
Jeremy Ruston
bb972888b9
Constituent tiddlers prefixed with title of plugin tiddler
2012-08-31 14:19:13 +01:00
Jeremy Ruston
88e7a4fb67
Basic plugin support for browser and server
...
Currently only supports plugins packed as a single JSON tiddler
2012-08-31 12:34:39 +01:00
Jeremy Ruston
4cebcddeeb
Fixes suggested by Firefox's console
2012-08-31 11:38:30 +01:00
Jeremy Ruston
dd7bb54965
Removed extraneous parameter from startup module invocation
2012-08-30 15:22:44 +01:00
Jeremy Ruston
8a2b1aea9b
Comment update
2012-08-30 15:20:57 +01:00
Jeremy Ruston
57123933be
Fixed typo
2012-08-30 15:03:01 +01:00
Jeremy Ruston
807f8b8aab
More refactoring to better separate concerns
...
registerModuleTiddlers() references the wiki store and so really should
be a method of it
2012-08-30 15:00:08 +01:00
Jeremy Ruston
b80332316b
More calming, clarifying renaming
2012-08-30 14:53:35 +01:00
Jeremy Ruston
8542bca4ea
Dropped the "Typed" from "TypedModules"
2012-08-30 14:46:58 +01:00
Jeremy Ruston
b9f692d66f
Rename the internal boot modules
2012-08-30 14:43:58 +01:00
Jeremy Ruston
ec2633a241
Clarifying comment
2012-08-30 14:43:13 +01:00
Jeremy Ruston
39edb0160e
Removed extraneous constant
2012-08-30 14:40:33 +01:00
Jeremy Ruston
6c2ebe1eee
Fixed problem with node version number check
2012-08-30 14:40:00 +01:00
Jeremy Ruston
939e153243
Fixed node.js version check
2012-08-30 14:33:07 +01:00
Jeremy Ruston
a3694d8cb3
Removed extraneous console.log
2012-08-30 08:40:00 +01:00
Jeremy Ruston
68f7072c94
TiddlyFox now saves with TiddlyWiki5 as well as TiddlyWiki Classic
2012-08-29 22:40:58 +01:00
Jeremy Ruston
389b6513b6
Fixed wiki.saveWiki to pass the correct parameters to the template
2012-08-25 17:32:43 +01:00
Jeremy Ruston
44bef260f0
Change tiddler macro to use parseTiddler parameter substitution
2012-08-25 14:16:33 +01:00
Jeremy Ruston
52a51b79aa
Extraneous variable definition
2012-08-25 14:16:21 +01:00
Jeremy Ruston
24cb5cb19c
Missing semicolonisation
2012-08-25 14:16:11 +01:00
Jeremy Ruston
68efce20c4
Starting building an empty.html
2012-08-25 12:07:39 +01:00
Jeremy Ruston
1db72ea931
Add support for parameter substitutions to the savetiddler command
2012-08-25 12:07:15 +01:00
Jeremy Ruston
175d7c67fd
Moved support for parameter substitution into wiki.parseText()
...
We'll later refactor the same logic out of the tiddler macro
2012-08-25 12:05:57 +01:00
Jeremy Ruston
1d6eba3071
Add "transclude" format for the view macro
...
Uses the value of the field as the title of a tiddler to transclude
2012-08-23 12:31:16 +01:00
Jeremy Ruston
0bcaa75f18
Improved comments
...
And one minor refactoring
2012-08-22 12:33:21 +01:00
Jeremy Ruston
8e6647b615
Initial tranche of the plugin implementation
...
This first commit adds some of the code needed for the plugin
mechanism, but it isn't all fully operational yet. I'm merging the
branch so that I can get some other pre-requisites done quickly on the
main branch, and then plan to return to this branch.
2012-08-06 22:34:16 +01:00
Jeremy Ruston
daff9c10f3
Tighten terminology for plugins vs. modules
...
"Plugins" are bundles of tiddlers managed as one, "modules" are
JavaScript tiddlers with a module type identifying when and how they
should be executed.
2012-08-03 15:09:48 +01:00
Jeremy Ruston
c11743088a
Niceties for JSHint
2012-08-02 22:32:34 +01:00
Jeremy Ruston
3ade3397fb
Keeping JSHint happy
2012-08-02 22:24:37 +01:00
Jeremy Ruston
1f52b40cb6
Added parser rule for HTML format comments
...
And try it out in the PageTemplate, which is getting pretty
unintelligable
2012-08-02 22:06:52 +01:00
Jeremy Ruston
1f64a9e758
Added node.js version check and related refactorings
2012-08-02 14:32:38 +01:00
Jeremy Ruston
d53eb50a6e
Content changes to reflect change from alpha.tiddlywiki.com to five.tiddlywiki.com
2012-07-23 17:31:36 +01:00
Jeremy Ruston
377d84185a
Missed off previous commit
2012-07-22 22:07:26 +01:00
Jeremy Ruston
a2caf46b1e
Added new wiki methods for reading and writing a toddler as data
2012-07-22 22:03:06 +01:00
Jeremy Ruston
a2c8002f2f
Removed tiddler border
2012-07-21 14:19:32 +01:00
Jeremy Ruston
cc59a49b39
Improved rounder close icon
2012-07-20 22:09:34 +01:00
Jeremy Ruston
c1e33ccacb
Changed default type for typed blocks to be text/plain
2012-07-18 14:28:17 +01:00
Jeremy Ruston
ec77acd6f7
Improved CSS animation technique
...
Clearer and more concise now that we're forcing layout rather than
using nextTick()
2012-07-18 11:45:17 +01:00
Jeremy Ruston
41845ba059
Animate modal message appearance
2012-07-17 18:28:47 +01:00
Jeremy Ruston
f90b127349
Add table formatting rule
2012-07-16 21:13:33 +01:00
Jeremy Ruston
8b61259973
Extend modal message handler to cope with missing subtitle or footer fields
2012-07-16 14:04:29 +01:00
Jeremy Ruston
a2da94e657
Fixed problem with wikitext macro rule selecting block mode wrongly
2012-07-16 13:58:00 +01:00
Jeremy Ruston
5cb834784a
Added optional help link to modal messages
2012-07-16 13:47:28 +01:00
Jeremy Ruston
d21a70f085
Update modal message mechanism to support custom footers
2012-07-16 12:57:44 +01:00
Jeremy Ruston
a689abf0c1
Whoops, should be HTML encoding tiddler div fields
2012-07-16 12:57:19 +01:00
Jeremy Ruston
4a783d08c6
Keeping JSHint happy
2012-07-16 12:56:59 +01:00
Jeremy Ruston
3b609ed1e5
Improving message wording
2012-07-16 10:38:14 +01:00
Jeremy Ruston
806048ab8c
Marginally less clumsy wording
2012-07-15 23:19:36 +01:00
Jeremy Ruston
5c1881f377
Hack to make the reveal macro parse as a run
2012-07-15 23:07:41 +01:00
Jeremy Ruston
0bd059c1f7
Run version of class wikitext rule
2012-07-15 23:07:25 +01:00
Jeremy Ruston
f97c6b6c25
Fixed typo
2012-07-15 23:07:07 +01:00
Jeremy Ruston
a7dd86b52a
Adjust wikitext html rule to parse in block mode if the opening tag is immediate followed by a newline
2012-07-15 23:06:51 +01:00
Jeremy Ruston
ca2c790c27
Fix the reveal macro in run mode
2012-07-15 23:06:24 +01:00
Jeremy Ruston
a149510fa3
Undo the filename change of classblock
2012-07-15 22:38:34 +01:00
Jeremy Ruston
59d9e683d8
Rename classblock parse rule to "class"
2012-07-15 22:37:25 +01:00
Jeremy Ruston
957b17a78c
Introduce edit mode
...
There's a wizard for switching into edit mode, and selective display of
UI elements
2012-07-15 22:35:39 +01:00
Jeremy Ruston
401b804931
Add support for "nomatch" to the reveal macro
2012-07-15 22:34:48 +01:00
Jeremy Ruston
7346a146f0
Extend the tiddler button so that it can set a tiddler to a given value
2012-07-15 22:34:36 +01:00
Jeremy Ruston
05eeacd270
Revise save instructions
2012-07-15 22:34:21 +01:00
Jeremy Ruston
8284b12ac2
Mockup content for the message on entering edit mode
2012-07-15 22:34:14 +01:00
Jeremy Ruston
ba2b537248
Removed extraneous console.log
2012-07-15 18:33:29 +01:00
Jeremy Ruston
87749397c0
Fixed embarrassing bug with the heading wikitext rule
2012-07-15 18:12:45 +01:00
Jeremy Ruston
f182463010
Improvements to the save instructions
2012-07-15 18:12:29 +01:00
Jeremy Ruston
d081de7707
Simplified top navigation bar
2012-07-15 17:37:18 +01:00
Jeremy Ruston
507460eb4e
Add warning notification when viewing a document on a data: uri
...
The intent is to handhold the user through their first save+verification
2012-07-15 17:37:03 +01:00
Jeremy Ruston
c9c26794af
Moved browser feature detection out of startup.js
2012-07-15 17:36:25 +01:00
Jeremy Ruston
dde26f8103
Remove CloseTiddler message to "close"
2012-07-15 17:36:02 +01:00
Jeremy Ruston
c8d98316fa
Removed extraneous class
2012-07-15 17:35:17 +01:00
Jeremy Ruston
9cbf10ea4f
Removed custom link colour
...
Annoyingly, it also affects the "btn-primary" colour
2012-07-15 17:35:04 +01:00
Jeremy Ruston
c74d608418
Removed parser switch
2012-07-14 18:08:00 +01:00
Jeremy Ruston
6d278ea4a1
Reorganisations
...
Part three
2012-07-14 15:58:41 +01:00
Jeremy Ruston
a05adc9d53
Reorganisations
...
Part two
2012-07-14 15:57:36 +01:00
Jeremy Ruston
3d4a5e1602
A bunch more source file reorganisations
...
Part one
2012-07-14 15:56:35 +01:00
Jeremy Ruston
761ffa403d
Complete renaming popupper component to popup
2012-07-14 15:52:35 +01:00
Jeremy Ruston
10b7075c7a
Rename popupper component to popup
...
Less confusing
2012-07-14 15:50:07 +01:00
Jeremy Ruston
4e547a7d35
Complete renaming the include macro to serialize
2012-07-14 15:46:01 +01:00
Jeremy Ruston
a046c774d4
Rename include macro to serialize
...
Because that's much more representative
2012-07-14 15:43:21 +01:00
Jeremy Ruston
73071f18ae
Replace obsolete hide macro with reveal macro
2012-07-13 23:39:20 +01:00
Jeremy Ruston
80fd563ccc
Get rid of obsolete linkcatcher macro
2012-07-13 23:09:45 +01:00
Jeremy Ruston
226e3f1417
Remove obsolete download macro
2012-07-13 22:57:24 +01:00
Jeremy Ruston
b0cc508c56
Fix PageTemplate reference in static template
2012-07-13 22:57:13 +01:00
Jeremy Ruston
e0765ec700
Allow the save template to be specified in the message parameter
2012-07-13 22:56:57 +01:00
Jeremy Ruston
4c1f818094
Extended button macro to take a message parameter
2012-07-13 22:56:30 +01:00
Jeremy Ruston
f1b4521fdb
Use the skinny styles for landscape smartphones
2012-07-13 22:55:39 +01:00
Jeremy Ruston
95e48b39d9
Better styling for smartphone sized screens
2012-07-13 22:20:39 +01:00
Jeremy Ruston
fa67259d6d
Moved command line interface so that it's not included in the core
...
We don't want it in the browser
2012-07-13 18:29:49 +01:00
Jeremy Ruston
e451f2398e
Setting up NPM command line usage of TiddlyWiki
2012-07-13 18:17:46 +01:00
Jeremy Ruston
898e86db79
Use the version number from the package.json file
...
Instead of the old separate version.txt file
2012-07-13 17:38:23 +01:00
Jeremy Ruston
d910d75124
Updated to node v.0.8.2
2012-07-13 17:08:15 +01:00
Jeremy Ruston
3a24bdbaf3
Credit for BidiX
2012-07-13 16:51:35 +01:00
Jeremy Ruston
85068ab0b3
Fixes for upload saver
2012-07-13 13:53:51 +01:00
Jeremy Ruston
5e11de719c
Added HTTP upload saver
...
Now we can save changes to TiddlySpot
2012-07-13 13:03:38 +01:00
Jeremy Ruston
b4a75b25fc
New password macro for setting passwords
...
They are stored unencrypted in localStorage
2012-07-13 13:03:07 +01:00
Jeremy Ruston
e19552774f
Simple password management
2012-07-13 13:02:34 +01:00
Jeremy Ruston
36ff53f40b
Extended edit macro
...
Now it accepts a default value for the field if the tiddler doesn't
exist. It also allows the forcing of a single line input control
2012-07-13 13:02:14 +01:00
Jeremy Ruston
6e86de5652
Update edit macro to be able to edit a specified tiddler
...
Previously you could only edit fields on the current tiddler
2012-07-13 11:26:34 +01:00
Jeremy Ruston
a7c1b1896e
Tell JSHint about Firefox's globals
2012-07-13 11:26:12 +01:00
Jeremy Ruston
3f1e8ee79a
Removed old code
2012-07-13 11:25:57 +01:00
Jeremy Ruston
6ff361cdc2
Restored height fixer for text editor
2012-07-12 18:53:20 +01:00
Jeremy Ruston
05d9cb60fc
Passed host wiki to saver constructors
2012-07-12 16:58:49 +01:00
Jeremy Ruston
9404d670d3
Added download saver, our fallback based on standard HTML
...
It's clunky, and requires manual intervention to accomplish a save, but
it does work on Chrome, Safari, iOS mobile safari
2012-07-12 13:13:48 +01:00
Jeremy Ruston
632c846ae0
Check for being on a file URI before trying to use Firefox's XUL file saving
2012-07-12 13:11:58 +01:00
Jeremy Ruston
1971f86d5e
Remove blanket dependency from transclude macro
...
It was a bit of a sledgehammer to crack a nut, and slowed down Firefox
terribly
2012-07-11 16:26:58 +01:00
Jeremy Ruston
d16481c524
Refactored editor logic to handle refreshes more efficiently
2012-07-11 15:52:15 +01:00
Jeremy Ruston
6a0a4ae00d
Removed extraneous console.log
2012-07-11 15:51:52 +01:00
Jeremy Ruston
c340082653
Added primitive save changes mechanism
...
Works in Firefox for now
2012-07-10 23:18:44 +01:00
Jeremy Ruston
9c26f04928
Extraneous line break
2012-07-10 23:18:17 +01:00
Jeremy Ruston
f04b056392
Fixed a longstanding issue with javascript module tiddlers being truncated by one character
2012-07-10 23:18:07 +01:00
Jeremy Ruston
ea6d7f5c08
Fixed a long standing issue with javascript module tiddlers being truncated
...
Ouch!
2012-07-10 23:17:39 +01:00
Jeremy Ruston
443f2e4aa8
Docs update
2012-07-08 19:26:00 +01:00
Jeremy Ruston
9c7a6e5973
Firefox fix
...
Was preventing zoomin animations working properly
2012-07-07 18:44:27 +01:00
Jeremy Ruston
c49c4ef681
Improved animation for closing tiddlers in the zoomin view
2012-07-07 17:58:28 +01:00
Jeremy Ruston
f412dd19d9
Lots of fixes to storyview mechanism
...
And a new scroller mechanism
2012-07-07 17:14:50 +01:00
Jeremy Ruston
a21d96adc1
Fixed typo
2012-07-07 17:14:19 +01:00
Jeremy Ruston
36372f2aed
Proper support for DefaultTiddlers
...
Now a shadow tiddler called `$:/DefaultTiddlers`
2012-07-07 17:14:02 +01:00
Jeremy Ruston
c509053bc1
Mending the zoomin effect
...
Navigating forwards works OK
2012-06-26 20:50:29 +01:00
Jeremy Ruston
69a0c46447
Split the story macro out into two macros
...
Now the story macro manages the story element sequence, while the
navigator macro listens for the navigation events, and modifies the
story tiddler as required. Also introduces a history tiddler that
retains the history stack so that we can animate navigation properly
(as distinct from animating the addition and removal of story elements).
Note that the zoomin storyview isn't quite finished, but this is a
stable point to commit these changes.
2012-06-26 19:54:51 +01:00
Jeremy Ruston
663fd2fe10
More styling adjustments
...
And started using Bootstrap's responsive stylesheets, so we can start
to look decent on phones
2012-06-24 17:07:38 +01:00
Jeremy Ruston
d02b2913a4
More style shenanigans
...
Sadly my colour scheming skills haven't exactly improved over the years
2012-06-24 15:22:33 +01:00
Jeremy Ruston
3ec409e7c0
Further stylesheet refinements
2012-06-24 14:53:44 +01:00
Jeremy Ruston
6b03b610e2
Added custom Twitter Bootstrap theme
2012-06-24 13:15:00 +01:00
Jeremy Ruston
94c622a40f
Added new storyview called "zoomin"
2012-06-22 18:02:50 +01:00
Jeremy Ruston
f718c597e3
New method for the story macro
2012-06-22 18:02:34 +01:00
Jeremy Ruston
d1cee98f88
Remove the reference to the pasteboard view
2012-06-22 18:02:11 +01:00
Jeremy Ruston
fd58a36140
Update tag dropdown to include link to tag tiddler
2012-06-22 14:13:21 +01:00
Jeremy Ruston
780108c939
Adjust position of opened tiddlers
2012-06-22 13:51:38 +01:00
Jeremy Ruston
14e433a11d
Reverted to classic semantics of new tiddlers opening below the one being navigated from
2012-06-22 12:25:01 +01:00
Jeremy Ruston
be6bff402d
Added closure animation to sideways storyview
2012-06-22 11:28:40 +01:00
Jeremy Ruston
d9c916715b
Better cross browser support for classic closure animation
2012-06-22 09:26:59 +01:00
Jeremy Ruston
7dcbefa9bc
Added a rudimentary animation for closing tiddlers in classic view
2012-06-22 00:10:17 +01:00
Jeremy Ruston
9361376767
Moved view dropdown to the left
...
So it doesn't get cut off so often
2012-06-22 00:09:10 +01:00
Jeremy Ruston
b3aa9bad42
Tweaked toolbar appearance
2012-06-21 20:00:10 +01:00
Jeremy Ruston
d82e372569
Added close button
...
And made the edit button be a graphic, too
2012-06-21 19:44:21 +01:00
Jeremy Ruston
8b23dc3da6
Fixed positioning of view dropdown
2012-06-21 09:11:04 +01:00
Jeremy Ruston
250f9411da
Smooth scrolling for the sideways storyview
2012-06-20 22:20:48 +01:00
Jeremy Ruston
c5292567dd
Split the DOM utilities into their own file
2012-06-20 22:16:41 +01:00
Jeremy Ruston
d0ee6bd691
Wider sideways tiddlers
2012-06-20 22:12:14 +01:00
Jeremy Ruston
a3431c1435
JSHint!
2012-06-20 18:36:43 +01:00
Jeremy Ruston
4bbe0cd4d3
Added new storyview that shows tiddlers stacked up sideways
2012-06-20 18:35:41 +01:00
Jeremy Ruston
08e80d6e02
Completed renaming the scroller storyview to "classic"
2012-06-20 18:03:19 +01:00
Jeremy Ruston
b3c0bec838
Fixed support for storyviewTiddler parameter for story macro
2012-06-20 17:59:38 +01:00
Jeremy Ruston
ca9b68a5d3
Start to let story macro read storyview from a tiddler
...
This is for getting the view dropdown working
2012-06-20 17:43:31 +01:00
Jeremy Ruston
122e7bc770
Added dropdown for choosing the current view
...
It doesn't work fully yet
2012-06-20 17:42:49 +01:00
Jeremy Ruston
966b51a258
New linkcatcher macro
2012-06-20 17:40:55 +01:00
Jeremy Ruston
829909bffa
New hide macro
...
Used for selectively hiding blocks of content
2012-06-20 17:40:41 +01:00
Jeremy Ruston
f5a9df1ae3
Fixed event handler
2012-06-20 17:40:08 +01:00
Jeremy Ruston
2881b138a3
Fixed the transclude macro so that it is marked dependent all
2012-06-19 18:22:27 +01:00
Jeremy Ruston
16dc26b6e8
Fixed the reveal macro so that is marked dependentAll
2012-06-19 18:21:58 +01:00
Jeremy Ruston
5627e731b1
Comment update
2012-06-19 18:01:39 +01:00
Jeremy Ruston
9d39e9a5f1
A better fix for refreshing nested macros
2012-06-19 16:56:55 +01:00
Jeremy Ruston
2282a825ec
Extraneous var
2012-06-19 16:56:40 +01:00
Jeremy Ruston
14f4465b30
Semi-colon
2012-06-19 16:56:29 +01:00
Jeremy Ruston
84b6020f2a
Ensured we remove the popup click handler
2012-06-19 16:50:10 +01:00
Jeremy Ruston
5103f1585b
New popup cancelling mechanism
2012-06-19 16:47:35 +01:00
Jeremy Ruston
08d7a12d04
Finishing off the text reference support
2012-06-19 16:47:25 +01:00
Jeremy Ruston
8b17874db4
Fixed automatic refreshing for macro nodes
2012-06-19 16:47:10 +01:00
Jeremy Ruston
b17a43707d
Ensure that the view macro doesn't generate a pair of nested macros
...
Because that will stop the refresh mechanism from working
2012-06-19 16:46:50 +01:00
Jeremy Ruston
1963c56fa9
Adjust the parent stack for transclusion
...
This enables the dropdowns to work a bit better
2012-06-19 10:59:58 +01:00
Jeremy Ruston
cabc11d517
Use the transclude macro instead of list tagging
in the tag popup
2012-06-19 10:40:30 +01:00
Jeremy Ruston
ec3f16f50f
Enabled sorting by title of tiddlers that don't exist
2012-06-19 10:40:05 +01:00
Jeremy Ruston
642703986a
Changed filter logic to allow selection of non-existent tiddlers
2012-06-19 10:39:44 +01:00
Jeremy Ruston
83eb368f40
Temporarily removed the popup zapper
...
This implementation is too slow and cumbersome; we'll replace it with
something else soon
2012-06-19 10:39:13 +01:00
Jeremy Ruston
0d928c05a5
Added new transclude wikitext rule and macro
...
Which allows us to get rid of the tags macro
2012-06-19 08:57:29 +01:00
Jeremy Ruston
381d0715e9
The beginnings of support for text references
2012-06-19 08:56:15 +01:00
Jeremy Ruston
f4e36e9539
Improved filter support
...
Now there is a "current tiddler" that can be referenced as
`[is[current]]`, and a new `[tags[]]` operator.
2012-06-19 08:55:56 +01:00
Jeremy Ruston
04989a5ceb
Made the chooser slightly less broken
2012-06-16 19:02:56 +01:00
Jeremy Ruston
49cc644293
Whitespace
2012-06-16 19:02:44 +01:00
Jeremy Ruston
6745c7fbf7
Better to use terminating semicolons after each style specifier
...
More compatible with TW2 too
2012-06-14 19:03:51 +01:00
Jeremy Ruston
b41a1cb4de
Fixed problem with styled block wikitext rule
2012-06-14 18:49:51 +01:00
Jeremy Ruston
11c9031873
Added support for style blocks
2012-06-14 18:18:32 +01:00
Jeremy Ruston
fa279514c7
Made the class block rule do it's own class assignment
2012-06-14 17:40:27 +01:00
Jeremy Ruston
abd510442a
Typo
2012-06-14 17:28:14 +01:00
Jeremy Ruston
52f59a4eb4
Medium-sized refactoring of macro architecture
...
Now event handlers are attached to element nodes, not to macro nodes.
2012-06-14 17:15:38 +01:00
Jeremy Ruston
6765d3c04d
Tidying up
2012-06-14 15:05:16 +01:00
Jeremy Ruston
27f77f729f
Clearer name for the state tiddler
2012-06-14 11:36:41 +01:00
Jeremy Ruston
3584d854aa
Add case sensitive sorting
2012-06-14 11:36:26 +01:00
Jeremy Ruston
6c285b04de
Update the recipe handling to use the right wiki object
2012-06-14 11:36:10 +01:00
Jeremy Ruston
acad64a933
Added a case insensitive sort to the filters
...
Hoping to come up with a better syntax for this
2012-06-14 11:35:54 +01:00
Jeremy Ruston
513fa6f756
Fixed problem with tag dropdowns in Firefox
2012-06-13 16:43:08 +01:00
Jeremy Ruston
474212dade
And now the tag popups hide themselves after being used
2012-06-13 16:21:08 +01:00
Jeremy Ruston
ccfa7e1322
Fixed the appearance of tag dropdowns
2012-06-13 16:09:07 +01:00
Jeremy Ruston
161ddcb473
Made it so clicking outside a popup cancels the popup
...
Clicking inside still doesn't cancel it, though
2012-06-13 15:37:07 +01:00
Jeremy Ruston
c168ec0ad4
Allow macros to specify capturing event handlers
2012-06-13 15:36:16 +01:00
Jeremy Ruston
28fd037c47
Got the tag dropdowns working
...
They don't get dismissed correctly, though
2012-06-13 13:19:55 +01:00
Jeremy Ruston
a160fb07e4
Sort tagged tiddlers
2012-06-13 13:19:32 +01:00
Jeremy Ruston
558aaf338f
Fixed issue with textnodes ignoring insertBefore parameter
2012-06-13 10:41:36 +01:00
Jeremy Ruston
0830cdac73
Mo' comments
2012-06-13 10:41:10 +01:00
Jeremy Ruston
caf32d9598
Instituted minimum height for edit textareas
2012-06-13 09:27:58 +01:00
Jeremy Ruston
e5b6d9a722
Adjusted tag dropdown
...
Slowly getting the tag dropdowns working properly
2012-06-13 09:12:41 +01:00
Jeremy Ruston
c3c0abd864
Add reveal macro that shows or hides content depending on the value of a tiddler
2012-06-13 09:12:09 +01:00
Jeremy Ruston
797544c1f9
Adapted button macro so that it can also toggle the value of a tiddler
...
We're splitting the slider macro up into its two constituent parts
2012-06-13 09:11:50 +01:00
Jeremy Ruston
fb5d7793ab
Added tagging option to list macro
2012-06-13 09:11:19 +01:00
Jeremy Ruston
0641685fc8
Fixes for tags macro
2012-06-13 09:10:50 +01:00
Jeremy Ruston
84a352b804
Added wiki.getTiddlersWithTag()
...
We should probably use the filter mechanism for this...
2012-06-13 09:10:03 +01:00
Jeremy Ruston
d2b62eabbe
Further tweaks to the still broken zooming chooser
2012-06-11 22:04:21 +01:00
Jeremy Ruston
f59c24f053
Change chooser macro to use embedded content
...
Not quite done with this yet.
2012-06-11 17:37:34 +01:00
Jeremy Ruston
a4a2b27749
Whitespace!
2012-06-11 17:36:40 +01:00
Jeremy Ruston
e5ba101ebe
Fixed problem with view macro generating null content
...
Avoids errors better to generate empty content
2012-06-11 17:36:28 +01:00
Jeremy Ruston
901b212a66
Fixed zooming chooser
2012-06-11 13:08:16 +01:00
Jeremy Ruston
ed70b4a34b
Removed unnecessary class from PageTemplate
2012-06-11 13:07:51 +01:00
Jeremy Ruston
bf85908d5e
Fixed problem with setting classes on list and story macros
2012-06-11 13:06:22 +01:00
Jeremy Ruston
6448c70984
Refactor zoomer macro to take into account CSS classes
2012-06-11 13:05:57 +01:00
Jeremy Ruston
00050c3c21
Keep JSHint happy
2012-06-11 12:46:58 +01:00
Jeremy Ruston
9f86f98cb1
Got the zooming navigator working again
...
Albeit, it doesn't play well with the fixed navbar
2012-06-11 12:44:10 +01:00
Jeremy Ruston
086feb31dc
Make scroller work on Firefox
2012-06-11 12:01:49 +01:00
Jeremy Ruston
d0a9bfd0f0
Unhyphenate CSS property names when rendering to the DOM
...
Annoyingly, Chrome will happily accept `background-color` and
`backgroundColor` interchangeably, so I hadn't noticed that this was
broken...
2012-06-11 10:41:13 +01:00
Jeremy Ruston
45cf175b8b
Made sorting be case insensitive
2012-06-10 22:53:29 +01:00
Jeremy Ruston
ef8b9d81de
Added navbar to PageTemplate
2012-06-10 22:02:16 +01:00
Jeremy Ruston
006efb0d44
Add div around body in ViewTemplate
2012-06-10 22:01:53 +01:00
Jeremy Ruston
fc49d7dffd
Added tags and color macros
...
Which enables us to do nice colour coded tags. Soon they'll have a drop
down on them too
2012-06-10 19:47:24 +01:00
Jeremy Ruston
2d94e466ae
Bump up the version number
...
As we're going so fast now
2012-06-10 18:12:33 +01:00
Jeremy Ruston
18ae0c5922
Adjustments to default tiddler templates
2012-06-10 18:09:34 +01:00
Jeremy Ruston
7e2ff9e0d8
Extended the image macro to take a width and height
2012-06-10 18:09:15 +01:00
Jeremy Ruston
298b10b8f9
Fixed typo in comment
2012-06-10 18:09:00 +01:00
Jeremy Ruston
e0b630686e
Refactored wikitext parser to deal better with terminated blocks
2012-06-10 17:26:54 +01:00
Jeremy Ruston
0ffa882d09
The start of better styling
2012-06-10 14:46:34 +01:00
Jeremy Ruston
4e0528e3dd
Fixed typo in recipe handling
2012-06-10 13:40:35 +01:00
Jeremy Ruston
3e49513c73
Renamed class wikitext rule as a block rule
2012-06-10 13:40:19 +01:00
Jeremy Ruston
e88873e3a8
Removed mistaken suppression of trailing newlines in JS comments
2012-06-09 22:39:13 +01:00
Jeremy Ruston
ca56de0495
Add a span around the title
...
We can measure the dimensions of the span to get the dimensions of the
title
2012-06-09 22:25:58 +01:00
Jeremy Ruston
cde03baf24
Take newlines out of JS comments
2012-06-09 22:25:31 +01:00
Jeremy Ruston
b90688042c
Set block status of link macro created by view macro
2012-06-09 22:25:13 +01:00
Jeremy Ruston
199d2acb5a
Stop the view macro returning extraneous elements
2012-06-09 19:04:42 +01:00
Jeremy Ruston
9247bb0186
Tweaked mechanism so that macros can be nested directly inside other macros
2012-06-09 18:50:01 +01:00
Jeremy Ruston
1251a35375
Get rid of the Bootstrap JS files
...
JSHint really, really doesn't like this code....
2012-06-09 18:40:36 +01:00
Jeremy Ruston
04e91245cb
Refactored macro mechanism
...
Now there is now longer a dummy DOM element corresponding to the macro
itself. Instead, macros must create a single element child. This allows
us to more easily fit Bootstrap's requirements for HTML layout (eg,
that problem with links in navbars not being recognised). The
refactoring isn't complete, there are still a few bugs to chase down
2012-06-09 18:36:32 +01:00
Jeremy Ruston
9274651bfd
Parse HTML tag contents as a block if it is a block tag
2012-06-09 15:08:30 +01:00
Jeremy Ruston
34311e230f
Wrap the title and subtitle of tiddlers in their own divs
2012-06-09 11:25:49 +01:00
Jeremy Ruston
4a8c2d46b9
Drop jQuery
...
We don't want it as part of the core
2012-06-09 11:25:24 +01:00
Jeremy Ruston
550fd76db1
Stop using the Twitter Bootstrap JS
...
Easier just to reuse the CSS
2012-06-09 11:25:07 +01:00
Jeremy Ruston
3202928c79
Added Bootstrap JavaScript modules and moved CSS into core
2012-06-08 11:49:14 +01:00
Jeremy Ruston
67b4c86c98
Refactored file layout for JavaScript parser
2012-06-08 11:48:46 +01:00
Jeremy Ruston
3c834609b8
Replaced zepto with jquery
...
Twitter Bootstrap doesn't work properly with Zepto
2012-06-08 11:48:25 +01:00
Jeremy Ruston
b5f8f97ccc
Refactored loading of tiddlywiki.plugin
files
...
Now we read the files raw, rather than through the deserialiser
2012-06-08 11:47:05 +01:00
Jeremy Ruston
96c5153dea
We don't need to clone the children of the link macro
2012-06-08 10:51:40 +01:00
Jeremy Ruston
6264bf1bbe
Include Zepto.js
...
It seems much nicer and smaller than jQuery
2012-06-08 10:42:17 +01:00
Jeremy Ruston
5322d3cdfd
Added library modules to browser template
...
Now we can include things like jQuery easily
2012-06-08 10:41:58 +01:00
Jeremy Ruston
2083b7959e
Reordered helper functions
2012-06-07 13:46:41 +01:00
Jeremy Ruston
adf83e71de
Changes the chooser and the zoomer to use the browser prefix mechanism
2012-06-07 13:29:16 +01:00
Jeremy Ruston
e2707ae49d
Updated story macro to allow for contained content
...
This allows us to fix the zooming chooser and zooming navigator
2012-06-07 13:10:15 +01:00
Jeremy Ruston
22b27f4251
Ensured block macros parse their content as blocks, rather than a run
2012-06-07 13:09:48 +01:00
Jeremy Ruston
698f2c39cb
Updated wikitext class
rule to use parseBlockTerminated() method
2012-06-07 13:09:22 +01:00
Jeremy Ruston
52f86e7b01
Added parseBlockTerminated() method to new wikitext parser
2012-06-07 13:08:50 +01:00
Jeremy Ruston
db34b346a4
Corrected default template for download macro
2012-06-07 12:28:03 +01:00
Jeremy Ruston
e8c69ae7dc
Comment updates
2012-06-07 11:31:44 +01:00
Jeremy Ruston
3da70b925f
Saving a shadow tiddler preserves its shadow status
2012-06-06 22:19:34 +01:00
Jeremy Ruston
2053b7c413
Moved loading of core shadow tiddlers into the boot kernel
2012-06-06 21:42:14 +01:00
Jeremy Ruston
6319a7dee5
Renamed wiki
folder
2012-06-06 20:52:30 +01:00
Jeremy Ruston
191be73507
Fixed problem with is
filter operator
2012-06-06 20:51:13 +01:00
Jeremy Ruston
6b56a95ca8
Added JSON extension to file info
2012-06-06 14:54:29 +01:00
Jeremy Ruston
22b836e4ac
Added 'isShadow' flag for system tiddlers
...
Shadow tiddlers are omitted from lists by default
2012-06-06 13:21:20 +01:00
Jeremy Ruston
fa08941a75
Refactored the Tiddler.getFields() method
2012-06-06 12:20:48 +01:00
Jeremy Ruston
1e4c91d348
Renamed filters.js
2012-06-06 12:17:08 +01:00
Jeremy Ruston
91cbd027df
Renamed filters.js
2012-06-06 12:16:50 +01:00
Jeremy Ruston
72de3d4206
Fixed problem with prefix filter
2012-06-06 12:13:31 +01:00
Jeremy Ruston
e2ea8ff436
Refactored shadow tiddlers to not be in a separate store
...
Shortly there will be a flag to mark them
2012-06-06 12:07:33 +01:00
Jeremy Ruston
7c382c5f43
Switched slider to use new syntax for inline content
2012-06-06 11:29:10 +01:00
Jeremy Ruston
31257489a7
More docs updates
2012-06-06 10:15:20 +01:00
Jeremy Ruston
a318ad77cd
Removed extraneous calls to skipWhitespace
...
Instead we'll skip whitespace at the start of a run
2012-06-05 23:15:52 +01:00
Jeremy Ruston
b989e05d98
Improved wikitext docs
2012-06-05 22:54:36 +01:00
Jeremy Ruston
ad25ab4c1a
Fixed parsing problem
...
We need to recheck for the next terminator after a successful run match
to cope with the situation that the run match included the previously
found terminator match
2012-06-05 22:01:06 +01:00
Jeremy Ruston
ee7fba9297
Added support for macros with embedded content
2012-06-05 17:01:17 +01:00
Jeremy Ruston
03da553c3b
Added wikitext for m- and n-dashes
2012-06-05 16:33:35 +01:00
Jeremy Ruston
ca8cf1a386
Simplified wiki link CamelCase regexp
...
Removed rule that made `AAaaa` be a wikilink
2012-06-05 15:19:27 +01:00
Jeremy Ruston
e85ae59fd8
Added ability to suppress external links
2012-06-05 15:14:33 +01:00
Jeremy Ruston
9ab9c9cc42
Added run rule for HTML entities
2012-06-05 15:00:55 +01:00
Jeremy Ruston
d29f4fa996
Removed extraneous indicator that the external link parser is a block parser
2012-06-05 15:00:42 +01:00
Jeremy Ruston
10fb5fd11c
Added run parse for external links
2012-06-05 14:43:43 +01:00
Jeremy Ruston
55dd392fe4
Added run parser for emphasis like bold and italics
2012-06-05 14:43:31 +01:00
Jeremy Ruston
f50e025f7c
Refactored run parser so that it can optionally not consume the terminator
2012-06-05 14:41:30 +01:00
Jeremy Ruston
ec342ed245
Added image rule
2012-06-04 16:13:08 +01:00
Jeremy Ruston
c6a2083e26
Let's switch to the new parser
2012-06-04 16:12:46 +01:00
Jeremy Ruston
4f4fbbfd36
Added typed block support
2012-06-04 13:39:20 +01:00
Jeremy Ruston
537c0901e3
Fixed JavaScript line comments to be parsed as text runs
2012-06-04 13:39:10 +01:00
Jeremy Ruston
c2927eb032
Added support for unterminated runs
2012-06-04 13:38:33 +01:00
Jeremy Ruston
17c77fb3b8
Fixed element used for block code blocks
2012-06-04 12:25:08 +01:00
Jeremy Ruston
75f8abcf35
Added classes on the story macros wrapper elements
2012-06-04 12:11:18 +01:00
Jeremy Ruston
b5f5a742f4
Added support for classes on macros
2012-06-04 12:07:39 +01:00
Jeremy Ruston
47224e7a44
Adjust the templates so that they work with the new parser
2012-06-04 12:07:23 +01:00
Jeremy Ruston
7a62e6f1a4
Add quick switch for replacing old wikitext parser with the new
2012-06-02 13:19:46 +01:00
Jeremy Ruston
5276403e39
Make sure all tree nodes have an addClass method
2012-06-02 13:19:32 +01:00
Jeremy Ruston
ec933eb1b5
Completed code blocks and runs
2012-06-02 10:15:52 +01:00
Jeremy Ruston
80b2d9c9fe
Ensured terminator matches take precedence over rule matches
2012-06-02 10:15:41 +01:00
Jeremy Ruston
d30b63f752
Reorganised file layout for new wikitext parser rules
2012-06-02 09:54:00 +01:00
Jeremy Ruston
1be4dc3cd9
Reorganised file layout for new wikitext parser
2012-06-02 09:53:45 +01:00
Jeremy Ruston
89b8e39f32
Added code blocks and runs
2012-06-02 09:41:21 +01:00
Jeremy Ruston
a169980a54
Fixed two bugs
2012-06-02 09:41:03 +01:00
Jeremy Ruston
a2958c5183
Refactored story tiddler JSON handling
2012-06-02 09:40:49 +01:00
Jeremy Ruston
599d01caa9
Renamed splash tiddler to StaticContent
2012-06-01 20:28:37 +01:00
Jeremy Ruston
9f4d5d8f18
Renamed splash tiddler to StaticContent
...
And removed some extraneous shadow tiddlers
2012-06-01 20:28:27 +01:00
Jeremy Ruston
e0725bbb52
Sort out the naming and location of shadow template tiddlers
2012-06-01 20:04:51 +01:00
Jeremy Ruston
9bc3dce953
Sort out the naming and location of shadow templates
2012-06-01 20:04:10 +01:00
Jeremy Ruston
1b5beefb8d
Fixed default TW5 template
2012-06-01 18:26:55 +01:00
Jeremy Ruston
c355979ce5
Get tiddler div fields in the right order
2012-05-29 22:45:43 +01:00
Jeremy Ruston
9482717c94
Add block mode macros to tiddlytextparser
...
Which improves the whitespace handling for building TW2.6.x
2012-05-29 22:16:02 +01:00
Jeremy Ruston
d23fbe5ef1
Added support for TiddlyWiki old school .recipe files
2012-05-29 22:01:52 +01:00
Jeremy Ruston
3da810b2b3
Extended wiki.serializeTiddler to take a Tiddler() object as well as a title
2012-05-29 22:01:35 +01:00
Jeremy Ruston
b91ccb064b
Added "prefix" filter
...
It selects tiddlers whose title starts with a given string
2012-05-29 22:01:07 +01:00
Jeremy Ruston
2a1b0cec00
Added "removePrefix" parameter to include macro
2012-05-29 21:59:14 +01:00
Jeremy Ruston
61936d4640
Restore further tiddler deserializers
2012-05-29 21:58:57 +01:00
Jeremy Ruston
2121ced4f3
Added new file types & stopped defaulting the content type of tiddlers
2012-05-29 21:58:44 +01:00
Jeremy Ruston
f95dd922cd
Clarified comment in tiddlywiki5 template
2012-05-29 13:00:45 +01:00
Jeremy Ruston
49a3cb8ede
Allow for macros and classes at both run level and block level
...
Involving a bit of a refactoring of the parameters to the
$tw.Tree.Macro constructor
2012-05-28 15:51:52 +01:00
Jeremy Ruston
aa4d435a67
Fixed wikitext rule for CSS classes to not erroneously match {{{
2012-05-27 09:24:37 +01:00
Jeremy Ruston
506519b49a
Switch to using the 'wikitextrule' moduletype for the new wiki text parser
2012-05-27 09:19:37 +01:00
Jeremy Ruston
5738d146e0
Amended macro mechanism so that the same wikitext rule can act as both a run rule and a block rule
2012-05-27 00:22:58 +01:00
Jeremy Ruston
9d90c8fd78
Ignore whitespace after the final block
2012-05-26 23:42:48 +01:00
Jeremy Ruston
4a9af461a6
Adding macros and prettylinks to new wikitext parser
2012-05-26 23:37:44 +01:00
Jeremy Ruston
6dae1ad35a
Comment and whitespace tweaks
2012-05-26 23:37:24 +01:00
Jeremy Ruston
a9f34b8b00
Better error reporting for executing modules on the server
2012-05-26 23:37:03 +01:00
Jeremy Ruston
92353d37b2
First pass at a new wiki text parser
...
This one respects HTML paragraphs properly
2012-05-26 18:30:32 +01:00
Jeremy Ruston
85f1b33ef2
Docs updates
2012-05-20 18:47:11 +01:00
Jeremy Ruston
82f7a547fe
Moved templates in the title hierarchy
2012-05-20 15:20:21 +01:00
Jeremy Ruston
503f60f64c
Comment update
2012-05-20 15:19:52 +01:00
Jeremy Ruston
9ed82c09fd
Introduce identifiers for tiddler subdirectories
2012-05-20 15:19:38 +01:00
Jeremy Ruston
bc022f2ebd
Reverted to opening new tiddlers at the top of the story
2012-05-20 14:25:50 +01:00
Jeremy Ruston
5b3bdcc662
Refactoring some internal identifiers
2012-05-19 19:06:42 +01:00
Jeremy Ruston
34edb48784
A quick sweep for missing or inaccurate code comments
2012-05-19 18:23:14 +01:00
Jeremy Ruston
6a7a5a2591
JSHint-prompted tweaks
2012-05-19 15:13:17 +01:00
Jeremy Ruston
3e899d8daf
Add a new scroller story view
...
This is the default story view
2012-05-19 12:59:16 +01:00
Jeremy Ruston
19d308dd9c
Removed the zoomin story viewer for the moment
2012-05-19 12:58:47 +01:00
Jeremy Ruston
cbb813da9b
Changed $tw.isBrowser to $tw.browser
...
This makes available browser-specific CSS prefixes
2012-05-19 11:29:51 +01:00
Jeremy Ruston
d8f17e9d6b
Started adding support for storyviews that implement different navigation visualisations
2012-05-14 17:37:20 +01:00
Jeremy Ruston
0609670b94
Started adding support for storyviews that implement different navigation visualisations
2012-05-14 17:36:46 +01:00
Jeremy Ruston
e2c7df5574
Added HTTP server command
2012-05-11 17:36:04 +01:00
Jeremy Ruston
d402f4d9b2
parseText() now accepts file extensions as well as content types
2012-05-09 17:35:08 +01:00
Jeremy Ruston
92e3eb233a
Corrected typed block wikitext rule
2012-05-09 17:34:45 +01:00
Jeremy Ruston
1741ea2df9
Added SVG file extension info
2012-05-09 17:34:27 +01:00
Jeremy Ruston
817c0f86f1
Added support for raw markup tiddlers
2012-05-09 13:49:01 +01:00
Jeremy Ruston
bb2d65861f
Remove tab mangling from JavaScript parser
2012-05-09 13:48:45 +01:00
Jeremy Ruston
998bd07ef9
Fixed tiddler loading in the face of Windows style crlf line breaks
2012-05-09 13:48:34 +01:00
Jeremy Ruston
cfcb255c23
Added limit filter operator
2012-05-09 09:40:10 +01:00
Jeremy Ruston
d99b70e0b2
Got rid of some potentially dodgy hasOwnProperty() calls
2012-05-09 08:51:16 +01:00
Jeremy Ruston
557a7b0eba
Restore the JavaScript parser
2012-05-08 19:33:04 +01:00
Jeremy Ruston
830359263d
Corrected typo
2012-05-08 17:44:32 +01:00
Jeremy Ruston
468749159d
Added sort order to tiddler div attributes
...
So that file comparisons work better
2012-05-08 17:42:49 +01:00
Jeremy Ruston
e281d5dc16
Whoops console.log
2012-05-08 16:45:37 +01:00
Jeremy Ruston
19e19a2f42
Added sort operator to filter syntax
2012-05-08 16:02:24 +01:00
Jeremy Ruston
c63eb4c045
Correct the content type for tiddlers loaded from application/x-tiddler containers
2012-05-08 15:19:42 +01:00
Jeremy Ruston
8b0703b694
Added properly compiled tiddler filters
2012-05-08 15:11:53 +01:00
Jeremy Ruston
d92dfa3d81
Some new utilities
2012-05-08 15:11:29 +01:00
Jeremy Ruston
3b2fcc83e7
Fixed problem in static wiki template
2012-05-06 14:20:52 +01:00
Jeremy Ruston
19deb60f8c
Save and restore shadow stylesheets
2012-05-06 14:14:27 +01:00
Jeremy Ruston
bac2c0ec07
Added a download macro
...
This enables us to save changes by cooking a new tiddlywiki and forcing
a download of it
2012-05-06 13:23:29 +01:00
Jeremy Ruston
34bb7f72d7
Adjusting for the directory move arounds
2012-05-05 22:59:47 +01:00
Jeremy Ruston
9465da4335
Part two of turning the rabbit hole inside out
2012-05-05 22:57:21 +01:00