1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-02 18:23:28 +00:00
Commit Graph

259 Commits

Author SHA1 Message Date
Tobias Beer
7ec42f93ec updated $:/tags/PageTemplate
reverted topleftbar & toprightbar
2015-01-28 01:13:29 +01:00
Xavier Cazin
203cb17271 Use the toc-caption() utility macro in Tabbed ToCs as well 2015-01-05 10:59:28 +01:00
Jermolene
af906e4b73 Force filenames for downloading empty and full wikis 2014-12-19 15:20:07 +00:00
Jeremy Ruston
a3a0002bbc Merge pull request #1221 from xcazin/timeline
Move the title display into a macro so that it can be globally overridden
2014-12-12 11:40:51 +00:00
Xavier Cazin
4afca0e2b8 Move the title display into a macro so that it can be overridden
Extension of the idea of 5b38c21a41
2014-12-12 12:33:11 +01:00
Jermolene
5b38c21a41 Disable links when transcluding caption field in toc macro
@BramChen does this work for you?
2014-12-11 17:00:57 +00:00
Jermolene
ef9878802a Transclude the caption field in toc macro
For consistency with the way that tabs work.

To see this in action, on tiddlywiki.com open the tiddler
`$:/tags/ControlPanel` and edit it to add the tag “TableOfContents”.
You’ll see the control panel appear at the bottom of the table of
contents.
2014-12-10 15:42:38 +00:00
Jermolene
31b5eb1578 Allow shadow tiddlers to appear in table of contents macro 2014-12-10 15:41:11 +00:00
Jermolene
957a8608ad Sort language switcher by description
Thanks @BramChen
2014-12-06 15:55:28 +00:00
Jermolene
ab129a620e Add basic tag macro 2014-12-06 13:44:08 +00:00
Jermolene
d4abd1722c Fixes for tabbed TOC
Re-fixes #1185
2014-12-02 23:47:23 +00:00
Jermolene
1e7d9bd3cd Move tabbed toc heading into default template
Fixes #1185
2014-12-02 23:05:54 +00:00
Jermolene
b220c19fb7 Add a template to the tabbed TOC macro
Fixes #1177
2014-12-02 20:27:02 +00:00
Jermolene
e6043b07b9 Update export button to use tiddler title as filename base 2014-11-22 14:19:10 +00:00
Jermolene
b882a0dff1 Fixes to make nested popups work
Thus making the export button a lot more useful
2014-11-21 17:07:03 +00:00
Jermolene
48052130d2 Clarify toc-tabbed macro 2014-11-15 12:29:46 +00:00
Jermolene
47481ed52a Enhance tabbed toc macro with navigation control
Now there are two variants of the macro: the default one opens links
externally, the other opens links internally
2014-11-14 17:06:21 +00:00
Jermolene
f5055c0205 Add tabbed table of contents 2014-11-13 21:39:38 +00:00
Jermolene
e0041d8483 Move page export button next to import 2014-11-13 21:39:38 +00:00
Jermolene
62c265aab0 Icon tweaks 2014-11-12 17:08:51 +00:00
Jermolene
6fc5c70ace First pass at export button
New export button appears as a page control toolbar button, a tiddler
toolbar button, and a button in the advanced search filter tab.

Initially supports exporting as static HTML, CSV, JSON or `.tid` file.

Still to do:

* Made the exporter descriptions translatable
* Hide the export button by default
* User docs
* Cleaning up the existing templates (eg,
`$:/core/templates/alltiddlers.template.html` should work by
transcluding `$:/core/templates/exporters/Static`)
* Docs for the new macros `exportButton`, `csvtiddlers` and
`jsontiddlers`

Issues:

* OS X Numbers refuses to open CSV files that have been generated in
Chrome, because it thinks they’ve been downloaded from the Internet.
Firefox works OK
* The export button won’t work within the tiddler info panel, or from
the *more* popup (this is because we don’t support nested popups)
2014-11-10 20:59:15 +00:00
Jermolene
e175746122 Fix problem with CSS macros
In practice the macros are always invoked in inline mode, meaning that
the triple braces weren’t getting parsed correctly. Now we switch to
inline code
2014-11-10 15:30:35 +00:00
Jermolene
9ac9239c51 Default tiddler info to the fields tab 2014-11-06 21:27:59 +00:00
Jermolene
0a986ccd99 Experiment with alternative view tiddler toolbar default buttons
The “info”, “edit”, “close” troika has been a feature of TW5 since the
very early days. Recent discussion in Hangout #67 has made me question
whether we wouldn’t be better off with the defaults in this commit:
“more”, “edit”, “close”.

The rationale is that the primary purpose of the “info” button has
become gaining access to the tools that haven’t been elevated to being
toolbar buttons. Most of the rest of the content of the info panel is
pretty arcane. So let’s try it for a few days - I’d appreciate any
feedback.
2014-11-06 13:39:28 +00:00
Jermolene
e145376838 Fix embarrassing typo in timeline macro
Fixes #1061 - thanks @welford
2014-11-05 09:30:40 +00:00
Jermolene
5093cdc860 Exclude drafts from table of contents macros 2014-11-04 11:54:35 +00:00
Jermolene
a3a50dbf6d Extend timeline macro to be able to use different date fields 2014-11-03 17:26:51 +00:00
Jermolene
48696c7d41 Fix extraneous whitespace in toc macro
Accidentally introduced in 3d7b40fbaa
2014-11-02 21:23:17 +00:00
Jermolene
3d7b40fbaa Fix problem with recursion in table of contents macro
Fixes #1036
2014-11-02 21:03:27 +00:00
Evolena
e07cdb7eed Adding recursive sort parameter to toc macro 2014-10-28 10:49:49 +01:00
Jermolene
b0a0859b62 Allow control over default search results tab 2014-10-28 08:31:09 +00:00
Jermolene
55f0b917e0 Hide advanced search toolbar button by default 2014-10-22 16:45:11 +01:00
Jermolene
6681a8e1f2 Add an advanced search toolbar button 2014-10-22 16:30:41 +01:00
Jermolene
5211f9c40c Fix problem with timeline subfilter
Fixes #975
2014-10-15 17:48:45 +01:00
Jermolene
d6dc4c14d7 Add new-journal-here button to viewtoolbar ordering 2014-10-09 17:36:33 +01:00
Simon Baird
00cdd04edd Add a 'new journal here' button
The journal tiddler will be tagged with the name of the current
tiddler. This is similar to how the new here button works.

(Would have liked to reuse the journalButton code which is almost
identical between new-journal-here and new-journal, but I'm not
sure how to do it.)
2014-10-10 02:06:56 +10:00
Jermolene
3682c26817 Move new journal strings into language directory 2014-10-09 13:09:59 +01:00
Jermolene
70984aa39f Add "new here" button
This is a basic “new here” tiddler toolbar button that just creates a
new tiddler tagged with the title of the current tiddler.

@pmario is there anything else required?
2014-10-08 22:02:32 +01:00
Jermolene
d778a90eb0 Make new journal title and tags be configurable 2014-10-08 18:35:25 +01:00
Jermolene
e872f17842 Add a new journal page toolbar button
Spot the easter egg with the toolbar button…

Fixes #336
2014-10-08 17:46:34 +01:00
Xavier Cazin
c26bd4c5a8 Tweak of the list-links macro in order to display caption fields if present 2014-09-28 21:11:58 +02:00
Mario Pietsch
59f04ffd31 add class parameter to list-links macro 2014-09-28 10:32:54 +02:00
Jermolene
1b0eec143e Refine preliminary list macro
@pmario: I’ve taken your suggestion and made the HTML element type(s)
be macro parameters.
2014-09-17 12:13:24 +01:00
Jermolene
c4123ba374 Extend timeline macro to allow a subfilter 2014-09-13 11:06:50 +01:00
Jermolene
c713eddbef Fixed problem with draft tiddlers not counting as dirty 2014-09-12 14:48:39 +01:00
Jermolene
bc985553ed More reference docs mangling 2014-09-11 15:52:47 +01:00
Jermolene
9adc30f69f Fix bugs with selective expandable toc macro 2014-09-10 21:55:11 +01:00
Jermolene
c6c4cf2289 Improve timeline macro 2014-09-08 18:58:48 +01:00
Jermolene
c1de85838f Replace snippet/recentchanges with timeline macro 2014-09-08 18:20:34 +01:00
Jermolene
ba3f800235 Extend toc macro so that links can be disabled
This allows table of contents to contain heading entries that do not
function as links, like the one in the sidebar.
2014-09-05 09:49:10 +01:00
Jermolene
7e93c93785 Start to empty out the control panel tools tab
The control panel isn’t the right place for tools; it’s a place for
settings and internal configuration.

Once again apologies to the translators for wiping out your hard work!
2014-09-05 09:28:49 +01:00
Jermolene
ede244f0a4 Move SaveWikiButtonTemplate to correct folder 2014-09-05 09:20:10 +01:00
Jermolene
47c53f924f Move control panel autosave settings 2014-09-04 09:58:50 +01:00
Jermolene
6f4af4fc27 Reorganise control panel tabs 2014-09-04 09:58:14 +01:00
Jermolene
a375d2d9b6 Remove "advanced" and "appearance" from control panel tab titles
For example, the previous title for the tiddler containing the editor
types tab of control panel was
“$:/core/ui/ControlPanel/Advanced/EditorTypes”. We’re now removing the
“Advanced” portion, so that we don’t have to rename tiddlers like this
if we move them around between tabs
2014-09-03 12:46:22 +01:00
Jermolene
44228ed9f7 Fix indentation of selective expandable TOC
Fixing #768
2014-09-01 21:27:28 +01:00
Jermolene
ca1de2be99 Revert 6641d5c93f 2014-09-01 20:38:53 +01:00
Jermolene
559afcffd9 Add classes to the toc macro output 2014-08-31 14:05:43 +01:00
Jermolene
6641d5c93f Adjust sync filter to avoid bug with deletions
The `[is[tiddler]]` filter rejects deleted tiddlers, meaning that
deletions were not triggering the dirty state correctly.
2014-08-30 14:04:21 +01:00
Jermolene
2952afe7af Fix for autosave
Re-introduces the “tw-auto-save-wiki” message. The previous approach of
automatically triggering autosave whenever a tiddler changed meant that
changing configuration changes in control panel was triggering an
autosave. Using the explicit message gives us better control of the
situations in which we’ll autosave.

Now we solve the earlier problem of there being outstanding tiddler
change events at the time that we process the “tw-auto-save-wiki” by
deferring the autosave until the outstanding change event comes in.
2014-08-29 09:58:30 +01:00
Jermolene
2f69ea362c Rename "tw-*" messages to "tm-*" 2014-08-28 21:43:44 +01:00
Jermolene
db40ac85c2 Exclude upload name from the saver dirty tracking
Avoiding a bug whereby partially typed upload names trigger an abortive
save.
2014-08-28 20:55:58 +01:00
Jermolene
f223310d34 Yet more "tw-*" -> "tc-*"
Part of #764
2014-08-28 19:41:29 +01:00
Jermolene
9173e944df Rename class "btn-big-green" to "tc-btn-big-green"
Part of #764
2014-08-28 17:30:12 +01:00
Jermolene
d0cbd34bf9 Rename "btn-invisible" class to "tc-btn-invisible"
Part of #764
2014-08-28 17:28:32 +01:00
Jermolene
d8c3691bd1 Removed unneeded CSS classes
Part of #764
2014-08-28 17:17:50 +01:00
Jermolene
b437f1b450 Allow default tiddler info tab to be configured 2014-08-28 09:12:00 +01:00
Jermolene
d2a5a12f2d Extend TOC macros to use caption field
Now the `caption` field is used for the text of each entry, if present,
falling back to the `title` field.
2014-08-28 08:58:53 +01:00
Jermolene
13c4e028b1 Refactored autosave mechanism
Previously we were using a message `tw-auto-save-wiki` to trigger an
autosave. The message was generated by certain UI actions such as
saving a tiddler. The trouble was that the message was being processed
before the wiki change event for the accompanying change had had a
chance to percolate. The end result was that the dirty indicator was
staying lit when using autosave.

The new approach abandons the autosave message and instead triggers the
autosave in the wiki change event when a relevant change occurs.

One happy side effect of these changes is that the dirty indicator now
works as expected with the client server edition - ie, when typing in a
draft tiddler the dirty indicator will flash briefly, and then clear
when the sync mechanism has completed saving the draft.
2014-08-27 10:04:54 +01:00
Jermolene
8041e3bef2 Add a sort parameter to the TOC macro
As requested by @giffmex
2014-08-20 22:48:07 +01:00
Jermolene
58730b7452 Add selective expandable table of contents macro
And improve the layout of the examples
2014-08-19 12:30:22 +01:00
Jermolene
920e11e792 Introduce refresh button and revert home button
Now the home button behaves as it did in 5.0.13, and the new refresh
button does a full page refresh.
2014-08-19 12:12:36 +01:00
Jermolene
8cf726275c First pass at table of contents macros
Introduce macros for automatically generating table of contents
2014-08-18 20:52:36 +01:00
Jermolene
c57b009968 Simpler default defaulttiddlers 2014-08-18 10:27:48 +01:00
Jermolene
727638c12d Clean up CSS macros
Move the CSS macros into global macros, and allow the colour macro to
fallback to the vanilla palette if the required colour isn’t found in
the current palette.
2014-08-18 10:14:19 +01:00
Jermolene
95926b85b9 Move editor type mappings into a single file 2014-08-15 10:06:05 +01:00
Jermolene
9e85ddfec7 Ensure we have a default language in empty.html 2014-08-14 12:00:07 +01:00
Jermolene
4b05608ad5 Add tag manager button 2014-08-14 08:49:03 +01:00
Jermolene
57878631e4 Don't sync the pending import tiddler to the server 2014-08-11 13:38:10 +01:00
Jermolene
1892f33ae6 Hide "revision" and "bag" fields from field editor 2014-08-10 09:13:48 +01:00
Jermolene
1a9bd683e4 Add theme toolbar button 2014-08-02 22:13:54 +01:00
Jermolene
7816c1d944 Add import button 2014-08-02 11:59:07 +01:00
Jermolene
9774c763b1 Add a storyview button 2014-08-01 21:40:13 +01:00
Jermolene
d357e1706c Allow visible edit fields to be configured
Create a tiddler “$:/config/EditTemplateFields/Visibility/fieldname”
with the text “hide” to hide a particular field
2014-08-01 17:03:53 +01:00
Jermolene
799a5b059a Move fullscreen button into core from plugin 2014-08-01 16:52:12 +01:00
Jermolene
c4c4c3d270 Add "more" page control button 2014-07-30 22:25:52 +01:00
Jermolene
f4b834aa2a Add close-all page control button 2014-07-30 11:40:06 +01:00
Jermolene
2380392f35 Add a page control for encryption 2014-07-29 15:43:10 +01:00
Jermolene
4de1a1adbe Normalise titles of toolbar button tiddlers
The title shouldn’t include the toolbar name if we’re starting to have
buttons which can be placed on more than one toolbar.
2014-07-29 13:37:57 +01:00
Jermolene
4bb8c4e8a7 Add toolbar tabs to control panel 2014-07-29 10:20:13 +01:00
Jermolene
46ae9bd34e Add tiddler info tools tab 2014-07-28 14:37:42 +01:00
Jermolene
4be5c28ed4 Try the "more" button on the left 2014-07-28 14:21:11 +01:00
Jermolene
ad4db0de97 Add 'more' toolbar button 2014-07-28 11:29:06 +01:00
Jermolene
497d9812c8 More buttons for the view toolbar
The arrangement of disabling and enabling buttons within the tiddler
info panel is temporary.
2014-07-27 11:43:26 +01:00
Jermolene
71ae63e24f Temporary commit losing power 2014-07-25 17:17:02 +01:00
Jermolene
ed0bf7aed1 Stop defaulting to automatically updating the address bar 2014-07-17 18:40:26 +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
e18d8a8866 Extend the tabs macro to allow tab contents to be templated 2014-07-02 12:15:52 +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
Jermolene
eeedcb6d94 First pass at accessibility improvements for #650 2014-06-14 18:06:56 +01:00