I've edited the MptwTheme to allow proper use of the ToolbarCommands
tidder, and to add folding (via the built-in mptwCollapse macro) to
both GTD and "regular" tiddlers. This removes a lot of clicks for me,
as I can keep tiddlers "available" while maximizing screen space,
instead of closing, searching / going to timeline, re-opening.

Edit the MptwTheme !View sections as below. Note, if you open the
MptwTheme template, and click on MptwTheme##ViewToolbar, you're at the
wrong place - you'll be redirected to a shadow, where your changes
will be ineffective. Double-click / edit the theme tiddler itself.

Replace MptwTheme 's whole !ViewTemplate and !ViewTemplateToolbar
section as follows:

----

!ViewTemplate
<!--{{{-->
<div class="uncollapsedView">
[[MptwTheme##ViewTemplateToolbar]]

<div class="tagglyTagged" macro="tags"><div macro='whatLinksHere
"<br>Linked From: <br>"'></div></div>

<div class='titleContainer'>
        <span class='floatleft' macro='tiddlerIcons' style='cursor:auto !
important;'></span>
        <span class='title' macro='view title'></span>
        <span macro="miniTag"></span>
        <span macro='whatLinksHere "<br>What Links Here: <br> "'></span>
</div>

<div class='subtitle'>
        (updated <span macro='view modified date {{config.mptwDateFormat?
config.mptwDateFormat:"MM/0DD/YY"}}'></span>
        by <span macro='view modifier link'></span>)
        <!--
        (<span macro='message views.wikified.createdPrompt'></span>
        <span macro='view created date {{config.mptwDateFormat?
config.mptwDateFormat:"MM/0DD/YY"}}'></span>)
        -->
</div>

<div macro="showWhen
tiddler.tags.containsAny(['css','html','pre','[[systemConfig]]']) && !
tiddler.text.match('{{'+'{')">
        <div class='viewer'><pre macro='view text'></pre></div>
</div>
<div class='viewer' macro='view text wikified'></div>
<div class='viewer' macro='notes'></div>

<!-- Wrapping div assumes you've installed tagglyTagging. Inner div
assumes WhatLinksHere plugin from 
http://rumkin.com/tools/tiddlywiki/#WhatLinksHerePlugin
-->
<div class="tagglyTagging" macro="tagglyTagging"><div
macro='whatLinksHere "<br>Linked From: <br> "'></div></div>
</div>
<div class="collapsedView">
        <span class='toolbar'>
                <span macro='toolbar jump closeTiddler'></span>
                <span macro='mptwCollapse +'></span>
        </span>
        <span class='floatleft' macro='tiddlerIcons' style='cursor:auto !
important;'></span>
        <span class='title' macro='view title'></span>
</div>

<!--}}}-->

!ViewTemplateToolbar
<!--{{{-->
<div class='toolbar'>
        <span macro="showWhenTagged systemConfig">
                <span macro="toggleTag systemConfigDisable . '[[disable|
systemConfigDisable]]'"></span>
        </span>
        <span macro="showWhenTagged systemTheme"><span macro="applyTheme"></
span></span>
        <span macro="showWhenTagged systemPalette"><span
macro="applyPalette"></span></span>
        <span macro="showWhen tiddler.tags.contains('css') || tiddler.title
== 'StyleSheet'"><span macro="refreshAll"></span></span>
        <span style="padding:1em;"></span>
        <!-- <span macro='toolbar closeTiddler closeOthers +editTiddler
deleteTiddler > fields syncing permalink references jump'></span>
<span macro='newHere label:"new here"'></span> -->
        <span class='toolbar' macro='toolbar
[[ToolbarCommands::ViewToolbar]]'></span>
        <!-- Removed "new journal", uncomment to add it back. It's in my
sidebar mods instead. -->
        <!-- span macro='newJournalHere {{config.mptwJournalFormat?
config.mptwJournalFormat:"MM/0DD/YY"}}'></span -->
        <span macro='mptwCollapse -'></span>
</div>
<!--}}}-->

----

The toolbar now uses the ToolbarCommands tiddler, which I've set up as
follows. You can edit yours to your liking.

----

|~ViewToolbar|closeTiddler closeOthers attachFile +editTiddler
easyEdit jump > bookmarks +cloneTiddler fields syncing permalink
references newHere deleteTiddler|
|~EditToolbar|+saveTiddler saveCloseTiddler -cancelTiddler
cancelCloseTiddler deleteTiddler closeOthers easyEdit|

----

To make GTD tiddlers collapsable as well (and to use the
ToolbarCommands there), edit the MonkeyGTDTheme tiddler and replace
the !ViewTemplate and !ViewTemplateToolbar sections as below:

----

!ViewTemplate
<!--{{{-->
<div macro="showWhen
tiddler.tags.containsAny(config.mGTD.specialTags)">
    <div class="uncollapsedView">
        [[MonkeyGTDTheme##ViewTemplateToolbar]]
        <div class='titleContainer viewer'>[[TitleButtonsSelector]]</div>
        <div macro="showWhenTaggedAny Reference View">
                <!--- just make it look like a normal tiddler --->
                <div class='viewer' macro='view text wikified'></div>
        </div>
        <div macro="else">
                <div macro="showWhen tiddler.text != ''">
                        <div class='viewer'>Notes:</div>
                        <div class='viewer postityellow' macro='view text 
wikified'></div>
                </div>
        </div>
        <div class='viewer'>[[DashboardSelector]]</div>
    </div>
    <div class="collapsedView">
        <span class='toolbar'>
                <span macro='toolbar jump closeTiddler'></span>
                <span macro='mptwCollapse +'></span>
        </span>
        <span class='floatleft' macro='tiddlerIcons' style='cursor:auto !
important;'></span>
        <span class='title' macro='view title'></span>
    </div>
</div>
<div macro="hideWhen
tiddler.tags.containsAny(config.mGTD.specialTags)">
        <!--- use standard template for non gtd tiddlers --->
        [[MptwTheme##ViewTemplate]]
    <div class="collapsedView">
        <span class='toolbar'>
                <span macro='toolbar'></span>
        </span>
        <span class='floatleft' macro='tiddlerIcons' style='cursor:auto !
important;'></span>
    </div>
    <div class="collapsedView">
        <span class='toolbar'>
                <span macro='toolbar'></span>
        </span>
        <span class='floatleft' macro='tiddlerIcons' style='cursor:auto !
important;'></span>
    </div>
</div>
<!--}}}-->

!ViewTemplateToolbar
<!--{{{-->
<!-- it's identical to Mptw at present except add Reference tag to new
journal and new tiddler. will probably tweak it more later. -->
<div class='toolbar'>
        <span macro='mptwCollapse -'></span>
        <span macro="showWhenTagged systemConfig">
                <span macro="toggleTag systemConfigDisable . '[[disable|
systemConfigDisable]]'"></span>
        </span>
        <span macro="showWhenTagged systemTheme"><span macro="applyTheme"></
span></span>
        <span macro="showWhenTagged systemPalette"><span
macro="applyPalette"></span></span>
        <span macro="showWhen tiddler.tags.contains('css') || tiddler.title
== 'StyleSheet'"><span macro="refreshAll"></span></span>
        <span style="padding:1em;"></span>
        <!-- span macro='toolbar closeTiddler closeOthers +editTiddler
deleteTiddler > fields syncing permalink references jump'></span -->
        <span class='toolbar' macro='toolbar
[[ToolbarCommands::ViewToolbar]]'></span>
        <!-- span macro='newHere label:"new here" tag:Reference'></span -->
        <!-- span macro='newJournalHere
{{config.mGTD.getOptTxt("newjournaldateformat")?
config.mGTD.getOptTxt("newjournaldateformat"):"DD-mmm-YY 0hh:0mm"}}
tag:Reference'></span -->
                <span macro="showWhenTagged Action"><span macro="newSavedTiddler
title:'new dependent action' label:'new dependent action' tag:
{{'Action Future [['+config.macros.mgtdList.getRealm()+']]
[['+tiddler.getParent('Context')+']] [['+tiddler.getParent('Project')
+']] [['+tiddler.title+']]'}}"></span></span>
</div>
<!--}}}-->

----

-- 
You received this message because you are subscribed to the Google Groups "GTD 
TiddlyWiki" group.
To post to this group, send email to gtd-tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
gtd-tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/gtd-tiddlywiki?hl=en.

Reply via email to