Welcome to TiddlyWiki created by Jeremy Ruston, Copyright © 2007 UnaMesa Association
<<mgtdList startTag:Project title:'Projects with no area' tags:'!Complete' view:Project mode:global
group:ProjectStatus
gView:bold
where:tiddler.getByIndex('Area').length==0
>>
<<mgtdList startTag:Action title:'You should give these actions a context' tags:'!Done' view:DoneAction mode:global
where:tiddler.getByIndex('Context').length==0&&tiddler.hasActiveProject()
>>
<<mgtdList startTag:Action title:'Actions with no project' tags:'!Done' view:DoneAction mode:global
where:tiddler.getByIndex('Project').length==0
>>
{{cols3{
{{col{
}}}
{{col{
}}}
{{col{
}}}
{{clear{
}}}
}}}
Enter projects and actions here. Click 'create these items' to create them.
Example usage:
{{{
Paint House
.Buy ladder and brushes|@Errand
.Choose colours|@Home|W
}}}
By default actions are next actions.
Specify W or F to make them future or Waiting For. You can create multiple projects and project-less actions.
You can also specify area for projects. Order dosn't matter, as there can only be one uniquely named tiddler. The following is valid:
{{{
Paint House|Home Maintenance|Personal
.Buy ladder and brushes|@Errand
.Choose colours|W|@Home
}}}
To specify multiple projects and tasks, along with project-less actions, the below is an example of one way create two projects with tasks, and then a stand alone action.
{{{
Clean up yard|Personal|Home Maintenance
.Pick up sticks|@Weekend
.Bag all the sticks|@Weekend
Check out latest SAN offerings|Research|Work
.Read up on all major vendors offerings|@Reading
.Call Doug for opinion|@Call
.Check budget|@Work|F
.Call Tara about tickets
}}}
If you want to add an action to an already existing project, you can specify the project name to do so:
{{{
.Pick up lumber at Home Depot|Build toolshed|@Errand
}}}
{{cols3{
{{col{
<<tiddler 'Ticklers Requiring Action'>>
<<mgtdList
title:'Next Actions'
startTag:Action tags:'Next && !Done'
view:ActionProj
mode:global
where:tiddler.hasActiveProject()
newButtonTags:'Action Next'
>>
<<mgtdList
title:'Waiting Actions'
startTag:Action
tags:'[(Waiting For)] && !Done'
view:ActionProj
mode:global
where:tiddler.hasActiveProject()
newButtonTags:'Action [(Waiting For)]'
>>
}}}
{{col{
<<mgtdList
title:'Future Actions'
startTag:Action
tags:'Future && !Done'
view:ActionProj
mode:global
where:tiddler.hasActiveProject()
newButtonTags:'Action Future'
>>
{{scroll10{
<<mgtdList
title:'Done Actions'
startTag:Action
tags:'Done'
view:DoneAction
mode:global
newButtonTags:'Action Next Done'
sort:-modified
>>
}}}
}}}
{{col{
<<mgtdList
title:'Active Projects'
startTag:Project
tags:'!Complete && !Someday/Maybe'
view:ProjectBare
mode:global
newButtonTags:'Project Active'
>>
}}}
{{clear{
}}}
}}}
{{cols3{
{{col{
<<tiddler 'Ticklers Requiring Action'>>
<<mgtdList title:'Next Actions' startTag:Action tags:'Next && !Done' view:ActionProj mode:global
group:Context
gView:Context
where:tiddler.hasActiveProject()
newButtonTags:'Action Next'
>>
<<mgtdList title:'Waiting Actions' startTag:Action tags:'[(Waiting For)] && !Done' view:ActionProj mode:global
group:Context
gView:Context
where:tiddler.hasActiveProject()
newButtonTags:'Action [(Waiting For)]'
>>
}}}
{{col{
<<mgtdList title:'Future Actions' startTag:Action tags:'Future && !Done' view:ActionProj mode:global
group:Context
gView:Context
where:tiddler.hasActiveProject()
newButtonTags:'Action Future'
>>
{{scroll10{
<<mgtdList title:'Done Actions' startTag:Action tags:'Done' view:DoneAction mode:global
newButtonTags:'Action Next Done'
sort:-modified
>>
}}}
}}}
{{col{
<<mgtdList title:'Active Projects' startTag:Project tags:'!Complete && !Someday/Maybe' view:ProjectBare mode:global
newButtonTags:'Project Active'
>>
}}}
{{clear{
}}}
}}}
{{cols3{
{{col{
<<tiddler 'Ticklers Requiring Action'>>
<<mgtdList title:'Next Actions' startTag:Action tags:'Next && !Done' view:Action mode:global
group:Project
gView:bold
where:tiddler.hasActiveProject()
newButtonTags:'Action Next'
>>
<<mgtdList title:'Waiting Actions' startTag:Action tags:'[(Waiting For)] && !Done' view:Action mode:global
group:Project
gView:bold
where:tiddler.hasActiveProject()
newButton:'Action [(Waiting For)]'
>>
}}}
{{col{
<<mgtdList title:'Future Actions' startTag:Action tags:'Future && !Done' view:Action mode:global
group:Project
gView:bold
where:tiddler.hasActiveProject()
newButtonTags:'Action Future'
>>
}}}
{{col{
{{scroll10{
<<mgtdList title:'Done Actions' startTag:Action tags:'Done' view:DoneAction mode:global
group:Project
gView:bold
sort:-modified
newButtonTags:'Action Next Done'
where:tiddler.hasActiveProject()
>>
}}}
}}}
{{clear{
}}}
}}}
order:1
button:a
buttonLong:active
<<mgtdList startTag:Project title:'You must assign a next action to these projects (or make them into Someday/Maybe)'
tags:'!Complete && !Someday/Maybe' view:Project mode:global
where:!tiddler.hasNextActionOrSubProject()
>>
Dear Silouan,
Greetings in Christ Jesus.
Are you able to make the porsphora for Saturday and Sunday liturgies this weekend? One small and 2 large would be good. The seal is still at the church, I believe.
In Christ,
Katherine
Can't add others' videos directly but I can mark them as "Favorites" or put them in a vlog.
!!Actions
Done actions older than 14 days. <<deleteAllTagged 'Delete old actions' 'Action' '' 'Done' 'tiddler.olderThanDays(14)'>>
<<mgtdList title:'Done actions older than 14 days'
view:DoneAction
mode:global
sort:-modified
startTag:Action
tags:'Done'
where:'tiddler.olderThanDays(14)'
>>
!!Ticklers
Inactive ticklers older than 14 days. <<deleteAllTagged 'Delete old ticklers' 'Tickler' '' 'Actioned' 'tiddler.olderThanDays(14)'>>
<<mgtdList title:'Inactive ticklers older than 14 days'
startTag:Tickler
tags:'Actioned'
view:Tickler
mode:global
sort:-tickleDate
where:'tiddler.olderThanDays(14)'
>>
!!Projects
Completed projects older than 14 days. (Delete individually).
<<mgtdList title:'Completed projects older than 14 days'
mode:global
sort:-modified
startTag:Project
tags:'Complete'
view:ProjectComplete
where:'tiddler.olderThanDays(14)'
>>
/***
|Name:|CloseOnCancelPlugin|
|Description:|Closes the tiddler if you click new tiddler then cancel. Default behaviour is to leave it open|
|Version:|3.0.1 ($Rev: 3861 $)|
|Date:|$Date: 2008-03-08 10:53:09 +1000 (Sat, 08 Mar 2008) $|
|Source:|http://mptw.tiddlyspot.com/#CloseOnCancelPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License:|http://mptw.tiddlyspot.com/#TheBSDLicense|
***/
//{{{
merge(config.commands.cancelTiddler,{
handler_mptw_orig_closeUnsaved: config.commands.cancelTiddler.handler,
handler: function(event,src,title) {
this.handler_mptw_orig_closeUnsaved(event,src,title);
if (!store.tiddlerExists(title) && !store.isShadowTiddler(title))
story.closeTiddler(title,true);
return false;
}
});
//}}}
Name: MptwBlue
Background: #fff
Foreground: #000
PrimaryPale: #cdf
PrimaryLight: #57c
PrimaryMid: #114
PrimaryDark: #012
SecondaryPale: #ffc
SecondaryLight: #fe8
SecondaryMid: #db4
SecondaryDark: #841
TertiaryPale: #eee
TertiaryLight: #ccc
TertiaryMid: #999
TertiaryDark: #666
Error: #f88
<<saveChanges>>
<<search>>
<<closeAll>>
Kyle and me. Jim Edmonds and David Hillis from Ingeniux.
<<tiddler 'MgtdSettings'>>
!!Theme
(Currently <<eval {{config.options.txtTheme}}>>)
<<selectTheme>>
/***
|''Name:''|CryptoFunctionsPlugin|
|''Description:''|Support for cryptographic functions|
***/
//{{{
if(!version.extensions.CryptoFunctionsPlugin) {
version.extensions.CryptoFunctionsPlugin = {installed:true};
//--
//-- Crypto functions and associated conversion routines
//--
// Crypto "namespace"
function Crypto() {}
// Convert a string to an array of big-endian 32-bit words
Crypto.strToBe32s = function(str)
{
var be = Array();
var len = Math.floor(str.length/4);
var i, j;
for(i=0, j=0; i<len; i++, j+=4) {
be[i] = ((str.charCodeAt(j)&0xff) << 24)|((str.charCodeAt(j+1)&0xff) << 16)|((str.charCodeAt(j+2)&0xff) << 8)|(str.charCodeAt(j+3)&0xff);
}
while (j<str.length) {
be[j>>2] |= (str.charCodeAt(j)&0xff)<<(24-(j*8)%32);
j++;
}
return be;
};
// Convert an array of big-endian 32-bit words to a string
Crypto.be32sToStr = function(be)
{
var str = "";
for(var i=0;i<be.length*32;i+=8)
str += String.fromCharCode((be[i>>5]>>>(24-i%32)) & 0xff);
return str;
};
// Convert an array of big-endian 32-bit words to a hex string
Crypto.be32sToHex = function(be)
{
var hex = "0123456789ABCDEF";
var str = "";
for(var i=0;i<be.length*4;i++)
str += hex.charAt((be[i>>2]>>((3-i%4)*8+4))&0xF) + hex.charAt((be[i>>2]>>((3-i%4)*8))&0xF);
return str;
};
// Return, in hex, the SHA-1 hash of a string
Crypto.hexSha1Str = function(str)
{
return Crypto.be32sToHex(Crypto.sha1Str(str));
};
// Return the SHA-1 hash of a string
Crypto.sha1Str = function(str)
{
return Crypto.sha1(Crypto.strToBe32s(str),str.length);
};
// Calculate the SHA-1 hash of an array of blen bytes of big-endian 32-bit words
Crypto.sha1 = function(x,blen)
{
// Add 32-bit integers, wrapping at 32 bits
add32 = function(a,b)
{
var lsw = (a&0xFFFF)+(b&0xFFFF);
var msw = (a>>16)+(b>>16)+(lsw>>16);
return (msw<<16)|(lsw&0xFFFF);
};
// Add five 32-bit integers, wrapping at 32 bits
add32x5 = function(a,b,c,d,e)
{
var lsw = (a&0xFFFF)+(b&0xFFFF)+(c&0xFFFF)+(d&0xFFFF)+(e&0xFFFF);
var msw = (a>>16)+(b>>16)+(c>>16)+(d>>16)+(e>>16)+(lsw>>16);
return (msw<<16)|(lsw&0xFFFF);
};
// Bitwise rotate left a 32-bit integer by 1 bit
rol32 = function(n)
{
return (n>>>31)|(n<<1);
};
var len = blen*8;
// Append padding so length in bits is 448 mod 512
x[len>>5] |= 0x80 << (24-len%32);
// Append length
x[((len+64>>9)<<4)+15] = len;
var w = Array(80);
var k1 = 0x5A827999;
var k2 = 0x6ED9EBA1;
var k3 = 0x8F1BBCDC;
var k4 = 0xCA62C1D6;
var h0 = 0x67452301;
var h1 = 0xEFCDAB89;
var h2 = 0x98BADCFE;
var h3 = 0x10325476;
var h4 = 0xC3D2E1F0;
for(var i=0;i<x.length;i+=16) {
var j,t;
var a = h0;
var b = h1;
var c = h2;
var d = h3;
var e = h4;
for(j = 0;j<16;j++) {
w[j] = x[i+j];
t = add32x5(e,(a>>>27)|(a<<5),d^(b&(c^d)),w[j],k1);
e=d; d=c; c=(b>>>2)|(b<<30); b=a; a = t;
}
for(j=16;j<20;j++) {
w[j] = rol32(w[j-3]^w[j-8]^w[j-14]^w[j-16]);
t = add32x5(e,(a>>>27)|(a<<5),d^(b&(c^d)),w[j],k1);
e=d; d=c; c=(b>>>2)|(b<<30); b=a; a = t;
}
for(j=20;j<40;j++) {
w[j] = rol32(w[j-3]^w[j-8]^w[j-14]^w[j-16]);
t = add32x5(e,(a>>>27)|(a<<5),b^c^d,w[j],k2);
e=d; d=c; c=(b>>>2)|(b<<30); b=a; a = t;
}
for(j=40;j<60;j++) {
w[j] = rol32(w[j-3]^w[j-8]^w[j-14]^w[j-16]);
t = add32x5(e,(a>>>27)|(a<<5),(b&c)|(d&(b|c)),w[j],k3);
e=d; d=c; c=(b>>>2)|(b<<30); b=a; a = t;
}
for(j=60;j<80;j++) {
w[j] = rol32(w[j-3]^w[j-8]^w[j-14]^w[j-16]);
t = add32x5(e,(a>>>27)|(a<<5),b^c^d,w[j],k4);
e=d; d=c; c=(b>>>2)|(b<<30); b=a; a = t;
}
h0 = add32(h0,a);
h1 = add32(h1,b);
h2 = add32(h2,c);
h3 = add32(h3,d);
h4 = add32(h4,e);
}
return Array(h0,h1,h2,h3,h4);
};
}
//}}}
order:1
button:none
buttonLong:daily
<div macro="showWhenTagged 'Project'">[[TagDashboards##Project]]</div>
<div macro="showWhenTagged 'Context'">[[TagDashboards##Context]]</div>
<div macro="showWhenTagged 'Area'">[[TagDashboards##Area]]</div>
<div macro="showWhenTagged 'Ticklers Requiring Action'">[[TagDashboards##Ticklers Requiring Action]]</div>
<div macro="showWhenTagged 'Upcoming Ticklers '">[[TagDashboards##Upcoming Ticklers ]]</div>
<div macro="showWhenTagged 'Reference'">[[TagDashboards##Reference]]</div>
<div macro="showWhenTagged 'Contact'">[[TagDashboards##Contact]]</div>
/***
|''Name:''|DatePickerLibrary|
|''Description:''|DatePicker library for use with macros|
|''Author:''|Saq Imtiaz ( lewcid@gmail.com )|
|''Code Repository:''|http://svn.tiddlywiki.org/Trunk/contributors/SaqImtiaz/libraries/DatePicker.js|
|''Version:''|0.9|
|''Date:''|06/04/2007|
|''License:''|[[Creative Commons Attribution-ShareAlike 3.0 License|http://creativecommons.org/licenses/by-sa/3.0/]]|
|''~CoreVersion:''|2.3.0|
***/
// /%
//!BEGIN-PLUGIN-CODE
//{{{
function $id(n) {
return document.getElementById(n);
}
DatePicker = {
days : ['S','M','T','W','T','F','S'],
cells : new Array(42),
setup : function(){
var cte = createTiddlyElement;
var table = this.table = cte(null,"table","datePickerTable");
table.style.display = 'none';
document.body.appendChild(table);
var thead = cte(table,"thead");
var hRow = cte(thead,"tr");
hRow.onclick = stopEvent;
cte(hRow,"td",null,"datePickerNav","<<").onclick = DatePicker.prevm;
cte(hRow,"td","datePickerMNS",null,null,{colSpan:"5"});
cte(hRow,"td",null,"datePickerNav",">>",{align:"right"}).onclick=DatePicker.nextm;
var tbody = cte(table,"tbody","datePickerTableBody");
var dayRow = cte(tbody,"tr",null,"datePickerDaysHeader");
for (var i=0; i<this.days.length; i++){
cte(dayRow,"td",null,null,this.days[i]);
}
},
show : function(el,dateObj,cb) {
var me = DatePicker;
var now = me.now = new Date();
if (!dateObj)
dateObj = now;
me.root = el;
if (cb)
me.root.datePickerCallback = cb;
me.scc = { m : now.getMonth(), y : now.getFullYear(), d : now.getDate() };
Popup.place(el,me.table,{x:0,y:1});
var cur = [dateObj.getDate(),dateObj.getMonth()+1,dateObj.getFullYear()];
me.cc = { m : cur[1]-1, y : cur[2] };
me.sd = { m : cur[1]-1, y : cur[2], d : cur[0] };
me.fillCalendar(cur[0],me.scc.d,cur[1]-1,cur[2]);
},
fillCalendar : function(hd,today,cm,cy) {
var me = DatePicker;
var sd = me.now.getDate();
var td = new Date(cy,cm,1)
var cd = td.getDay();
$id('datePickerMNS').innerHTML = td.formatString('MMM YYYY')
var tbody = $id('datePickerTableBody');
removeChildren(tbody);
var days = (new Date(cy, cm+1, 0)).getDate();
var day = 1;
for (var j=1;j<=6;j++) { //rows
var row = createTiddlyElement(tbody,"tr",null,"datePickerDayRow");
for (var t=1; t<=7; t++) { //cells
var d = 7 * (j-1) - (-t); //id key
if ( (d >= (cd -(-1))) && (d<=cd-(-(days))) ) {
var dip = ( ((d-cd < sd) && (cm == me.scc.m) && (cy == me.scc.y)) || (cm < me.scc.m && cy == me.scc.y) || (cy < me.scc.y) );
var htd = ( (hd != '') && (d-cd == hd) );
var hToday = ( (today != '') && (d-cd == today) && cy == me.scc.y && cm == me.scc.m );
if (htd)
_class = 'highlightedDate';
else if (dip)
_class = 'oldDate';
else if (hToday && ! htd)
_class = 'todayDate';
else
_class = 'defaultDate';
var cell = createTiddlyElement(row,"td","datePickerDay"+d,_class,d-cd);
cell.onmouseover = function(e){addClass(this,'tdover');};
cell.onmouseout = function(e){removeClass(this,'tdover');};
cell.onclick = me.selectDate;
me.cells[d] = new Date(cy,cm,d-cd);
}
else {
var cell = createTiddlyElement(row,"td","datePickerDay"+d,"emptyDate");
}
day++;
}
if(day > days + cd)
break;
}
},
nextm : function() {
var me = DatePicker;
me.cc.m += 1;
if (me.cc.m >= 12) {
me.cc.m = 0;
me.cc.y++;
}
me.fillCalendar(me.getDayStatus(me.cc.m,me.cc.y),me.scc.d,me.cc.m,me.cc.y);
return false;
},
prevm : function() {
var me = DatePicker;
me.cc.m -= 1;
if (me.cc.m < 0) {
me.cc.m = 11;
me.cc.y--;
}
me.fillCalendar(me.getDayStatus(me.cc.m,me.cc.y),me.scc.d,me.cc.m,me.cc.y);
return false;
},
getDayStatus : function(ccm,ccy){
return (ccy == this.sd.y && ccm == this.sd.m)? this.sd.d : '';
},
selectDate : function(ev){
var e = ev ? ev : window.event;
var me = DatePicker;
var date = me.cells[resolveTarget(e).id.substring(13,resolveTarget(e).id.length)];
if (me.root.datePickerCallback && typeof me.root.datePickerCallback == 'function')
me.root.datePickerCallback(me.root,date);
$id('datePickerTable').style.display = 'none';
return false;
},
onclick : function(ev){
$id("datePickerTable").style.display = 'none';
return false;
},
create : function(el,dateObj,cb){
el.onclick = el.onfocus = function(e){DatePicker.show(el,dateObj,cb);stopEvent(e)};
},
css: "table#datePickerTable td.datePickerNav {\n"+
" cursor:pointer;\n"+
"}\n"+
"\n"+
".datePickerDaysHeader td {\n"+
" text-align:center;\n"+
" background:#ABABAB;\n"+
" font:12px Arial;\n"+
"}\n"+
"\n"+
".datePickerDayRow td {\n"+
" width:18px;\n"+
" height:18px;\n"+
"}\n"+
"\n"+
"td#datePickerMNS, td.datePickerNav {\n"+
" font:bold 13px Arial;\n"+
"}\n"+
"\n"+
"table#datePickerTable {\n"+
" position:absolute;\n"+
" border-collapse:collapse;\n"+
" background:#FFFFFF;\n"+
" border:1px solid #ABABAB;\n"+
" display:none; \n"+
"}\n"+
"\n"+
"table#datePickerTable td{\n"+
" padding: 3px;\n"+
"}\n"+
"\n"+
"td#datePickerMNS {\n"+
" text-align: center;\n"+
"}\n"+
"\n"+
"tr.datePickerDayRow td {\n"+
" background-color : #C4D3EA;\n"+
" cursor : pointer;\n"+
" border : 1px solid #6487AE;\n"+
" text-align : center;\n"+
" font : 10px Arial;\n"+
"}\n"+
"\n"+
"tr.datePickerDayRow td.defaultDate {\n"+
" color : #333333; \n"+
" text-decoration : none; \n"+
"}\n"+
"\n"+
"tr.datePickerDayRow td.emptyDate {\n"+
" cursor:default; \n"+
"}\n"+
"\n"+
"tr.datePickerDayRow td.oldDate {\n"+
" color : #ABABAB;\n"+
" text-decoration : line-through;\n"+
"}\n"+
"\n"+
"tr.datePickerDayRow td.highlightedDate {\n"+
" background : #FFF799;\n"+
" font-weight : bold;\n"+
" color : #333333;\n"+
"}\n"+
"\n"+
"tr.datePickerDayRow td.todayDate {\n"+
" font-weight : bold;\n"+
" color : red;\n"+
"}\n"+
"\n"+
"table#datePickerTable tr.datePickerDayRow td.tdover {\n"+
" background:#fc6;\n"+
"}",
init : function(){
this.setup();
addEvent(document,'click',DatePicker.onclick);
config.shadowTiddlers['StyleSheetDatePicker'] = this.css;
if(store)
store.addNotification('StyleSheetDatePicker',refreshStyles);
}
};
DatePicker.init();
//}}}
//!END-PLUGIN-CODE
// %/
david.st.louis@peopleadmin.com
512-977-5896
Thanks, Ruth! Our web page needs are simple. I'm looking forward to talking
to Phil!
Dayle
-----Original Message-----
From: Ruth Wardwell [mailto:wardwers@whitman.edu]
Sent: Wednesday, April 30, 2008 1:22 PM
To: 'Dayle Smith'
Cc: 'Philip Silouan Thompson'
Subject: RE: Physics web page?
Hi Dayle,
Well, we can't let that happen! I'll mention this to Phil Thompson, our Web
content specialist. Meantime, please give some thought to these two keys
toward developing an effective Web site:
-- Identify and prioritize the internal and external audiences (e.g., top
priorities likely are: external -- prospective students and faculty,
researchers; internal -- current students and physics faculty, other
faculty, staff)
-- What information will each of these audiences need/want?
Armed with this information, Phil can assemble a navigation that responds to
the audience needs. Know that some of the most widely appreciated components
of an academic department page include:
-- faculty list with e-mail links, "bios" and links to their home pages
-- course offerings
-- major/minor requirements
-- departmental events
-- key external links related to the field of study
-- facilities
-- senior projects
Phil will get in touch with you soon and you can go from there.
Thanks,
Ruth
-----Original Message-----
From: Dayle Smith [mailto:smithdm@whitman.edu]
Sent: Wednesday, April 30, 2008 1:02 PM
To: 'Ruth Wardwell'
Subject: Physics web page?
Hi Ruth-
Do you have someone over there who can help us develop our department's web
page? I think that our sad and out-of-date web page has detracted some
students from considering Whitman, and none of us have time to work on it!
Have a great day,
Dayle Smith
[[Next and Waiting Actions by Context]]
[[Projects Dashboard]]
{{cols2{
{{col{
<<mgtdList
title:'Delegated/Waiting For'
startTag:Action
tags:'[(Waiting For)] && !Done'
view:ActionProj
mode:global
where:tiddler.getByIndex("Contact").length > 0'
group:Contact
gView:bold
newButtonTags:'Action && [(Waiting For)]'
>>
}}}
{{col{
<<mgtdList title:'Done' startTag:Action tags:'Done && [(Waiting For)]' view:DoneAction mode:global
where:tiddler.getByIndex('Contact').length>0
group:Contact
gView:bold
newButtonTags:'Action && Done && [(Waiting For)]'
>>
}}}
{{clear{
}}}
}}}
/***
|Name|DeleteAllTaggedPlugin|
|Based on|http://ido-xp.tiddlyspot.com/#DeleteAllTaggedPlugin|
|Version|MGTD Hacked|
An adaptation of DeleteDoneTasks (Simon Baird) by Ido Magal
To use this insert {{{<<deleteAllTagged>>}}} into the desired tiddler.
Modified quite a bit by Simon for MonkeyGTD
Now only works with MgtdIndexedTags...
Example usage:
{{{<<deleteAllTagged>>}}}
<<deleteAllTagged>>
***/
//{{{
config.macros.deleteAllTagged = {
handler: function ( place,macroName,params,wikifier,paramString,tiddler ) {
var buttonTitle = params[0] ? params[0] : "Delete tiddlers tagged '"+tiddler.title+"'"; // simon's tweak
var tagToDelete = params[1] ? params[1] : tiddler.title;
var alsoDeleteThisTiddler = params[2] ? params[2] : "";
var tagExpr = params[3] ? params[3] : tagToDelete;
var whereExpr = params[4] ? params[4] : "true";
createTiddlyButton( place, buttonTitle, "Delete every tiddler tagged with '"+tiddler.title+"'",
this.deleteAllTagged( tagToDelete, alsoDeleteThisTiddler == "delete", tagExpr, whereExpr ));
},
deleteAllTagged: function(tag,deleteMe,tagExpr,whereExpr) {
return function() {
var collected = fastTagged(tag).filterByTagExpr('[['+tagExpr+']]').filterByEval(whereExpr).toTitleList();
if (collected.length == 0) {
alert( "None found." );
}
else {
if (confirm( "Found these tiddlers:\n'"
+ collected.join( "', '" ) + "'\n\n\n"
+ "Are you sure you want to delete these?" )) {
store.suspendNotifications();
for ( var i=0;i<collected.length;i++ ) {
store.removeTiddler( collected[i] );
story.closeTiddler( collected[i], true );
displayMessage( "Deleted '"+collected[i]+"'" );
}
store.resumeNotifications();
}
}
if (deleteMe) {
if (confirm("Also delete this tiddler, '"+tag+"'?")) {
store.removeTiddler( tag );
story.closeTiddler( tag, true );
displayMessage( "Deleted '"+tag+"'" );
}
}
}
}
};
//}}}
/***
|''Name:''|DeprecatedFunctionsPlugin|
|''Description:''|Support for deprecated functions removed from core|
***/
//{{{
if(!version.extensions.DeprecatedFunctionsPlugin) {
version.extensions.DeprecatedFunctionsPlugin = {installed:true};
//--
//-- Deprecated code
//--
// @Deprecated: Use createElementAndWikify and this.termRegExp instead
config.formatterHelpers.charFormatHelper = function(w)
{
w.subWikify(createTiddlyElement(w.output,this.element),this.terminator);
};
// @Deprecated: Use enclosedTextHelper and this.lookaheadRegExp instead
config.formatterHelpers.monospacedByLineHelper = function(w)
{
var lookaheadRegExp = new RegExp(this.lookahead,"mg");
lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = lookaheadRegExp.exec(w.source);
if(lookaheadMatch && lookaheadMatch.index == w.matchStart) {
var text = lookaheadMatch[1];
if(config.browser.isIE)
text = text.replace(/\n/g,"\r");
createTiddlyElement(w.output,"pre",null,null,text);
w.nextMatch = lookaheadRegExp.lastIndex;
}
};
// @Deprecated: Use <br> or <br /> instead of <<br>>
config.macros.br = {};
config.macros.br.handler = function(place)
{
createTiddlyElement(place,"br");
};
// Find an entry in an array. Returns the array index or null
// @Deprecated: Use indexOf instead
Array.prototype.find = function(item)
{
var i = this.indexOf(item);
return i == -1 ? null : i;
};
// Load a tiddler from an HTML DIV. The caller should make sure to later call Tiddler.changed()
// @Deprecated: Use store.getLoader().internalizeTiddler instead
Tiddler.prototype.loadFromDiv = function(divRef,title)
{
return store.getLoader().internalizeTiddler(store,this,title,divRef);
};
// Format the text for storage in an HTML DIV
// @Deprecated Use store.getSaver().externalizeTiddler instead.
Tiddler.prototype.saveToDiv = function()
{
return store.getSaver().externalizeTiddler(store,this);
};
// @Deprecated: Use store.allTiddlersAsHtml() instead
function allTiddlersAsHtml()
{
return store.allTiddlersAsHtml();
}
// @Deprecated: Use refreshPageTemplate instead
function applyPageTemplate(title)
{
refreshPageTemplate(title);
}
// @Deprecated: Use story.displayTiddlers instead
function displayTiddlers(srcElement,titles,template,unused1,unused2,animate,unused3)
{
story.displayTiddlers(srcElement,titles,template,animate);
}
// @Deprecated: Use story.displayTiddler instead
function displayTiddler(srcElement,title,template,unused1,unused2,animate,unused3)
{
story.displayTiddler(srcElement,title,template,animate);
}
// @Deprecated: Use functions on right hand side directly instead
var createTiddlerPopup = Popup.create;
var scrollToTiddlerPopup = Popup.show;
var hideTiddlerPopup = Popup.remove;
// @Deprecated: Use right hand side directly instead
var regexpBackSlashEn = new RegExp("\\\\n","mg");
var regexpBackSlash = new RegExp("\\\\","mg");
var regexpBackSlashEss = new RegExp("\\\\s","mg");
var regexpNewLine = new RegExp("\n","mg");
var regexpCarriageReturn = new RegExp("\r","mg");
}
//}}}
/%<slider+ Grouped by Context>
%/[[Next Actions|Next Actions by Context]]
[[Starred Next Actions|Starred Next Actions]]
[[Next and Waiting Actions|Next and Waiting Actions by Context]]
[[Action Dashboard|Action Dashboard by Context]]
/%</slider>
%/[[Starred Items]]
[[Tickler Dashboard]]
[[Delegated Tasks Dashboard]]
[[Reference Items]]
[[Done Actions]]
<slider+ Contexts>
<<mgtdList startTag:Action tags:'Next && !Done' groupCountOnly:yes group:Context gView:Context where:tiddler.hasActiveProject()>>
</slider>
<slider Grouped by Project>
[[Next Actions|Next Actions by Project]]
[[Next and Waiting Actions|Next and Waiting Actions by Project]]
[[Action Dashboard|Action Dashboard by Project]]
</slider>
<slider Ungrouped>
[[Next Actions]]
[[Next and Waiting Actions]]
[[Action Dashboard]]
</slider>
<slider All contexts>
<<mgtdList startTag:Context>>
</slider>
<<mgtdList
title:'Done'
mode:global
startTag:Action
tags:'Done'
view:DoneAction
group:day
gView:DoneAction
gSort:-title
newButtonTags:'Action Next Done'
sort:-modified
>>
/***
|Name:|ExtentTagButtonPlugin|
|Description:|Adds a New tiddler button in the tag drop down|
|Version:|3.2 ($Rev: 3861 $)|
|Date:|$Date: 2008-03-08 10:53:09 +1000 (Sat, 08 Mar 2008) $|
|Source:|http://mptw.tiddlyspot.com/#ExtendTagButtonPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License|http://mptw.tiddlyspot.com/#TheBSDLicense|
***/
//{{{
window.onClickTag_mptw_orig = window.onClickTag;
window.onClickTag = function(e) {
window.onClickTag_mptw_orig.apply(this,arguments);
var tag = this.getAttribute("tag");
var title = this.getAttribute("tiddler");
// Thanks Saq, you're a genius :)
var popup = Popup.stack[Popup.stack.length-1].popup;
createTiddlyElement(createTiddlyElement(popup,"li",null,"listBreak"),"div");
wikify("<<newTiddler label:'New tiddler' tag:'"+tag+"'>>",createTiddlyElement(popup,"li"));
return false;
}
//}}}
* Get footer items on a single line
* President's message - Add image
* Front: Profs headline needs line break after
* Trim img on Campus News
* Campus News commencement box - add top Bill Gates pg also
* Link to Gallery from Commencement box
* Stu Awards story - Fulbright - "See story pg 19"
* Fix title formatting in articles.
* Congo articles - line breaks?
* Summer College - end pullquote
* Alumni books: kill "The book is available through Wheatmark, Amazon and Barnes and Noble. "
* Alumni/Where in the world - need content
* Class notes: Link arpjs@
* Alumni/Archive - hide in draft
* Better Feature lead img?
Dear Silouan,
I've heard rumors that you know a lot about computers and constructing/maintaining websites - and I'm pretty sure those rumors are true considering the beautiful parish website. My quandry is this; I know next to nothing about creating a website but I have a business idea that requires more then the basic "pick a template" type of website.
I want to offer custom children's books, narrated by myself, for family members who are facing a lengthy seperation from their children...such as deployed military or an ill grandparent who is in the hospital or nursing home. My idea is that my clients would upload their pictures, fill out an online form with personal info and then I would format these details into my pre-written narrative templetes then send it off to Blurb or Picasso for publishing into a professional, custom children's book. I've written up four narratives covering a deployed parent, parent away on a business trip, ill grandparent and a parent away in prison. They've been edited and critiqued by several people and the next step is for me to finalize the templates for Blurb or Picasso (I haven't made the final decision of which online photobook publisher to use yet).
But the reason I'm writing you is because, as I said, I know next to nothing about website creation. So I've got tons of questions and whatever advice or counsel you have would be very helpful.
Would there be a relatively simple way to facilitate the uploading of my client's pictures? I'm aware that it's not terribly troublesome to create an online form to fill out. But what about proofing the pages? Would there be a way for my clients to do this themselves once they've uploaded their photos and input their information that would also protect me from the possability that they might just copy off the finished pages (pirate them) without paying me to complete the book? My thought without knowing more is that I'd have to withhold the full book or maybe have in giant letters across each page (as Blurb does, I believe) PROOF COPY ONLY. Ideally I'd love to learn how to maintain my website myself...or even create it myself...as I have ZERO start up money. The nice thing is that I'll be requiring payment prior to sending off for the bound copies so I won't be out time or money once this gets rolling but - the matter of setting up the site will, I know, require some start-up costs. (Maybe a lot? I have no idea.)
Anyway, I've been working on this idea for several months and even got into the final approval process for a Yahoo! small business grant back in March (several call-backs for info but it went the grants went to women in larger cities) so I know it is a viable idea. But I'm at a roadblock when it comes to the website. If you can point me in a useful direction I'd be grateful.
Elise
order:3
button:f
buttonLong:future
Hello,
We were able to turn up the volume on the computer and hear this without issue and also without having the volume set to max. Do you have another camcorder that you can compare the videos with? Another camcorder could be used and you could record the exact same scene and see if one is louder on your computer than the other.
You could also try to exchange your unit for another at your place of purchase to see if there is any difference.
Thank you,
Flip Support
/***
|Name:|HideWhenPlugin|
|Description:|Allows conditional inclusion/exclusion in templates|
|Version:|3.1 ($Rev: 3919 $)|
|Date:|$Date: 2008-03-13 02:03:12 +1000 (Thu, 13 Mar 2008) $|
|Source:|http://mptw.tiddlyspot.com/#HideWhenPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License:|http://mptw.tiddlyspot.com/#TheBSDLicense|
For use in ViewTemplate and EditTemplate. Example usage:
{{{<div macro="showWhenTagged Task">[[TaskToolbar]]</div>}}}
{{{<div macro="showWhen tiddler.modifier == 'BartSimpson'"><img src="bart.gif"/></div>}}}
***/
//{{{
window.hideWhenLastTest = false;
window.removeElementWhen = function(test,place) {
window.hideWhenLastTest = test;
if (test) {
removeChildren(place);
place.parentNode.removeChild(place);
}
};
merge(config.macros,{
hideWhen: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( eval(paramString), place);
}},
showWhen: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( !eval(paramString), place);
}},
hideWhenTagged: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( tiddler.tags.containsAll(params), place);
}},
showWhenTagged: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( !tiddler.tags.containsAll(params), place);
}},
hideWhenTaggedAny: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( tiddler.tags.containsAny(params), place);
}},
showWhenTaggedAny: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( !tiddler.tags.containsAny(params), place);
}},
hideWhenTaggedAll: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( tiddler.tags.containsAll(params), place);
}},
showWhenTaggedAll: { handler: function (place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( !tiddler.tags.containsAll(params), place);
}},
hideWhenExists: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( store.tiddlerExists(params[0]) || store.isShadowTiddler(params[0]), place);
}},
showWhenExists: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( !(store.tiddlerExists(params[0]) || store.isShadowTiddler(params[0])), place);
}},
hideWhenTitleIs: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( tiddler.title == params[0], place);
}},
showWhenTitleIs: { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( tiddler.title != params[0], place);
}},
'else': { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
removeElementWhen( !window.hideWhenLastTest, place);
}}
});
//}}}
/***
|Name:|InstantTimestampPlugin|
|Description:|A handy way to insert timestamps in your tiddler content|
|Version:|1.0.10 ($Rev: 3646 $)|
|Date:|$Date: 2008-02-27 02:34:38 +1000 (Wed, 27 Feb 2008) $|
|Source:|http://mptw.tiddlyspot.com/#InstantTimestampPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License:|http://mptw.tiddlyspot.com/#TheBSDLicense|
!!Usage
If you enter {ts} in your tiddler content (without the spaces) it will be replaced with a timestamp when you save the tiddler. Full list of formats:
* {ts} or {t} -> timestamp
* {ds} or {d} -> datestamp
* !ts or !t at start of line -> !!timestamp
* !ds or !d at start of line -> !!datestamp
(I added the extra ! since that's how I like it. Remove it from translations below if required)
!!Notes
* Change the timeFormat and dateFormat below to suit your preference.
* See also http://mptw2.tiddlyspot.com/#AutoCorrectPlugin
* You could invent other translations and add them to the translations array below.
***/
//{{{
config.InstantTimestamp = {
// adjust to suit
timeFormat: 'DD/0MM/YY 0hh:0mm',
dateFormat: 'DD/0MM/YY',
translations: [
[/^!ts?$/img, "'!!{{ts{'+now.formatString(config.InstantTimestamp.timeFormat)+'}}}'"],
[/^!ds?$/img, "'!!{{ds{'+now.formatString(config.InstantTimestamp.dateFormat)+'}}}'"],
// thanks Adapted Cat
[/\{ts?\}(?!\}\})/ig,"'{{ts{'+now.formatString(config.InstantTimestamp.timeFormat)+'}}}'"],
[/\{ds?\}(?!\}\})/ig,"'{{ds{'+now.formatString(config.InstantTimestamp.dateFormat)+'}}}'"]
],
excludeTags: [
"noAutoCorrect",
"noTimestamp",
"html",
"CSS",
"css",
"systemConfig",
"systemConfigDisabled",
"zsystemConfig",
"Plugins",
"Plugin",
"plugins",
"plugin",
"javascript",
"code",
"systemTheme",
"systemPalette"
],
excludeTiddlers: [
"StyleSheet",
"StyleSheetLayout",
"StyleSheetColors",
"StyleSheetPrint"
// more?
]
};
TiddlyWiki.prototype.saveTiddler_mptw_instanttimestamp = TiddlyWiki.prototype.saveTiddler;
TiddlyWiki.prototype.saveTiddler = function(title,newTitle,newBody,modifier,modified,tags,fields,clearChangeCount,created) {
tags = (typeof(tags) == "string") ? tags.readBracketedList() : tags;
var conf = config.InstantTimestamp;
if ( !tags.containsAny(conf.excludeTags) && !conf.excludeTiddlers.contains(newTitle) ) {
var now = new Date();
var trans = conf.translations;
for (var i=0;i<trans.length;i++) {
newBody = newBody.replace(trans[i][0], eval(trans[i][1]));
}
}
// TODO: use apply() instead of naming all args?
return this.saveTiddler_mptw_instanttimestamp(title,newTitle,newBody,modifier,modified,tags,fields,clearChangeCount,created);
}
// you can override these in StyleSheet
setStylesheet(".ts,.ds { background-color:#ddd; font-style:italic; }","instantTimestampStyles");
//}}}
/***
|Name:|LessBackupsPlugin|
|Description:|Intelligently limit the number of backup files you create|
|Version:|3.0.1 ($Rev: 2320 $)|
|Date:|$Date: 2007-06-18 22:37:46 +1000 (Mon, 18 Jun 2007) $|
|Source:|http://mptw.tiddlyspot.com/#LessBackupsPlugin|
|Author:|Simon Baird|
|Email:|simon.baird@gmail.com|
|License:|http://mptw.tiddlyspot.com/#TheBSDLicense|
!!Description
You end up with just backup one per year, per month, per weekday, per hour, minute, and second. So total number won't exceed about 200 or so. Can be reduced by commenting out the seconds/minutes/hours line from modes array
!!Notes
Works in IE and Firefox only. Algorithm by Daniel Baird. IE specific code by by Saq Imtiaz.
***/
//{{{
var MINS = 60 * 1000;
var HOURS = 60 * MINS;
var DAYS = 24 * HOURS;
if (!config.lessBackups) {
config.lessBackups = {
// comment out the ones you don't want or set config.lessBackups.modes in your 'tweaks' plugin
modes: [
["YYYY", 365*DAYS], // one per year for ever
["MMM", 31*DAYS], // one per month
["ddd", 7*DAYS], // one per weekday
//["d0DD", 1*DAYS], // one per day of month
["h0hh", 24*HOURS], // one per hour
["m0mm", 1*HOURS], // one per minute
["s0ss", 1*MINS], // one per second
["latest",0] // always keep last version. (leave this).
]
};
}
window.getSpecialBackupPath = function(backupPath) {
var now = new Date();
var modes = config.lessBackups.modes;
for (var i=0;i<modes.length;i++) {
// the filename we will try
var specialBackupPath = backupPath.replace(/(\.)([0-9]+\.[0-9]+)(\.html)$/,
'$1'+now.formatString(modes[i][0]).toLowerCase()+'$3')
// open the file
try {
if (config.browser.isIE) {
var fsobject = new ActiveXObject("Scripting.FileSystemObject")
var fileExists = fsobject.FileExists(specialBackupPath);
if (fileExists) {
var fileObject = fsobject.GetFile(specialBackupPath);
var modDate = new Date(fileObject.DateLastModified).valueOf();
}
}
else {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
file.initWithPath(specialBackupPath);
var fileExists = file.exists();
if (fileExists) {
var modDate = file.lastModifiedTime;
}
}
}
catch(e) {
// give up
return backupPath;
}
// expiry is used to tell if it's an 'old' one. Eg, if the month is June and there is a
// June file on disk that's more than an month old then it must be stale so overwrite
// note that "latest" should be always written because the expiration period is zero (see above)
var expiry = new Date(modDate + modes[i][1]);
if (!fileExists || now > expiry)
return specialBackupPath;
}
}
// hijack the core function
window.getBackupPath_mptw_orig = window.getBackupPath;
window.getBackupPath = function(localPath) {
return getSpecialBackupPath(getBackupPath_mptw_orig(localPath));
}
//}}}
/***
|''Name:''|LoadRemoteFileThroughProxy (previous LoadRemoteFileHijack)|
|''Description:''|When the TiddlyWiki file is located on the web (view over http) the content of [[SiteProxy]] tiddler is added in front of the file url. If [[SiteProxy]] does not exist "/proxy/" is added. |
|''Version:''|1.1.0|
|''Date:''|mar 17, 2007|
|''Source:''|http://tiddlywiki.bidix.info/#LoadRemoteFileHijack|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''License:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''~CoreVersion:''|2.2.0|
***/
//{{{
version.extensions.LoadRemoteFileThroughProxy = {
major: 1, minor: 1, revision: 0,
date: new Date("mar 17, 2007"),
source: "http://tiddlywiki.bidix.info/#LoadRemoteFileThroughProxy"};
if (!window.bidix) window.bidix = {}; // bidix namespace
if (!bidix.core) bidix.core = {};
bidix.core.loadRemoteFile = loadRemoteFile;
loadRemoteFile = function(url,callback,params)
{
if ((document.location.toString().substr(0,4) == "http") && (url.substr(0,4) == "http")){
url = store.getTiddlerText("SiteProxy", "/proxy/") + url;
}
return bidix.core.loadRemoteFile(url,callback,params);
}
//}}}
<<tabs txtMGTDMore
"Timeline" "Timeline" TabTimeline
"MGTD" "Configuration Options" ConfigMenu
"TW" "TiddlyWiki SideBar" TWSideBar
>>
<<tabs txtMGTDMain
"Work" "Do Work" DoWorkMenu
"Review" "Review" ReviewMenu
"Process" "Process Inbox" ProcessInboxMenu
"More..." "More..." MGTDMoreTab
>>
MPTW is a distribution or edition of TiddlyWiki that includes a standard TiddlyWiki core packaged with some plugins designed to improve usability and provide a better way to organise your information. For more information see http://mptw.tiddlyspot.com/.
| !To Produce | !Markup |
| ''Bold'' | {{{''Bold'' (double single quotes)}}} |
| --Strikethrough-- | {{{--Strikethrough-- (double hyphen) }}} |
| __Underline__ | {{{__Underline__ (double shift-hyphen)}}} |
| //Italic// | {{{//Italic// (double forward stroke)}}} |
| Superscript: 12^^3^^=1728 | {{{12^^3^^=1728 (double caret)}}} |
| Subscript: <html><span title="Formula for Nitroglycerin" style="cursor:pointer>C~~3~~H~~5~~N~~3~~O~~9~~</span></html> | {{{C~~3~~H~~5~~N~~3~~O~~9~~ (double tilde)}}} |
| <html><span style="font-family:Georgia, 'Times New Roman', Times, serif; color:#000066;">Inserted HTML</span></html> | {{{<html><span style="font-family:Georgia, 'Times New Roman', Times, serif; color:#000066;">Inserted HTML</span></html>}}} |
!Heading 1: {{{!Heading 1}}}
!!Heading 2: {{{!!Heading 2}}}
!!!Heading 3: {{{!!!Heading 3}}}
!!!!Heading 4" " {{{!!!!Heading 4}}}
merge(Array.prototype,{
each: function(func) {
for (var i=0;i<this.length;i++)
func(this[i]);
},
// TODO, there is a map in the core now. Is it same as this or different?
map: function(func) {
var result = [];
this.each(function(item) {
result.push(func(item));
});
return result;
},
select: function(func) {
var result = [];
this.each(function(item) {
if (func(item))
result.push(item);
});
return result;
},
reject: function(func) {
var result = [];
this.each(function(item) {
if (!func(item))
result.push(item);
});
return result;
}
});
//------------------------------------------
merge(String.prototype,{
parseTagExpr: function(debug) {
if (this.trim() == "")
return "(true)";
var logicOps = /(!|&&|\|\||\(|\))/g;
var spaced = this.
// because square brackets in templates are no good
// this means you can use [(With Spaces)] instead of [[With Spaces]]
replace(/\[\(/g," [[").
replace(/\)\]/g,"]] ").
// space things out so we can use readBracketedList. tricky eh?
replace(logicOps," $1 ");
var expr = "";
var tokens = spaced.readBracketedList(false); // false means not unique. nice one JR!
tokens.each(function(tok) {
if (tok.match(logicOps)) {
expr += tok;
}
else if (tok.match(/^parent:/)) {
// experimental
var lookForTagInParent = tok.split(":")[1];
expr += "tiddler.parents().anyHasTag('"+lookForTagInParent+"')";
}
else {
expr += "tiddler.tags.contains('%0')".format([
// fix single quote bug. hurrah
// but still have nasty round bracket bug
tok.replace(/'/,"\\'")
]);
}
});
if (debug)
alert(expr);
return '('+expr+')';
}
});
merge(Tiddler.prototype,{
matchesEvalExpr: function(evalExpr) {
var tiddler = this;
return eval(evalExpr);
},
matchesTagExpr: function(tagExpr) {
return this.matchesEvalExpr(tagExpr.parseTagExpr());
},
olderThanDays: function(days) {
return this.modified.getTime() < (new Date()).getTime() - days*1000*60*60*24;
}
});
//------------------------------------
merge(Tiddler.prototype,{
render: function(method,renderOptions) {
return this["render_"+method](renderOptions);
},
renderUtil: function(formatString,formatValues) {
return formatString.format(formatValues);
},
sorter: function(field) {
var sortMethod = "sort_"+field;
if (this[sortMethod])
return this[sortMethod]();
else
return this[field];
},
sorterUtil: function(otherTiddler,method) {
var desc = false;
if (method.substring(0,1) == "-") {
desc = true;
method = method.substring(1);
}
if (this.sorter(method) > otherTiddler.sorter(method))
return (desc ? -1 : +1);
else if (this.sorter(method) < otherTiddler.sorter(method))
return (desc ? +1 : -1);
else
return 0;
}
});
merge(String.prototype,{
sorterUtil: function(otherTiddler,method) {
var t1 = store.getTiddler(this);
var t2 = store.getTiddler(otherTiddler);
if (t1 && t2)
return t1.sorterUtil(t2,method);
// this part is a little flakey but I'm aiming to
// put the None heading last in all cases
else if (t2)
return +1;
else if (t1)
return -1;
else
return 0;
}
});
//------------------------------------------
merge(Array.prototype,{
// returns a hash
groupBy_hash: function(func) {
var result = {};
var leftOverGroup = '__NONE__';
this.each(function(item) {
var groups = func(item);
if (groups.length > 0) {
groups.each(function(group) {
if (!result[group])
result[group] = [];
result[group].push(item);
});
}
else {
if (!result[leftOverGroup])
result[leftOverGroup] = [];
result[leftOverGroup].push(item);
}
});
return result;
},
// returns an array of arrays, like Hash#sort in ruby
groupBy: function(func,itemSort,groupSort) {
if (!itemSort) itemSort = "title";
if (!groupSort) groupSort = "-title";
var result = this.groupBy_hash(func);
var sortedResult = [];
for (var g in result)
sortedResult.push([g,result[g].sort(function(a,b){return a.sorterUtil(b,itemSort);})]);
return sortedResult.sort(function(a,b){return a[0].sorterUtil(b[0],groupSort);});
},
// for convenience since it's mostly what we want
groupByTag: function(tag,itemSort,groupSort) {
return this.groupBy(function(t){return t.getByIndex(tag);},itemSort,groupSort);
}
});
//------------------------------------------
// for lists of tiddlers
merge(Array.prototype,{
filterByEval: function(evalExpr) {
return this.select(function(t) {
return t.matchesEvalExpr(evalExpr);
});
},
filterByTagExpr: function(tagExpr) {
return this.filterByEval(tagExpr.parseTagExpr());
},
filterGroupsByEval: function(evalExpr) {
// presumes the group name is a tiddler
return this.select(function(tGroup) {
var tiddler = store.getTiddler(tGroup[0]);
return tiddler && tiddler.matchesEvalExpr(evalExpr);
});
},
filterGroupsByTagExpr: function(tagExpr) {
return this.filterGroupsByEval(tagExpr.parseTagExpr());
},
render: function(renderMethod,renderOptions) {
return this.map(function(tiddler){
return tiddler.render(renderMethod,renderOptions);
}).join("\n");
},
renderGrouped: function(listRenderMethod,headingRenderMethod,noneHeading,renderOptions,groupCountOnly,nbTags) {
// do I ever use renderOptions??
// this lost some elegance when I shoehorned the groupCountOnly part in. todo refactor
// then lost some more with the nbTags addition...
// might need some reworking
var result = "";
this.each(function(g) {
var groupName = g[0];
var groupItems = g[1];
var showCount = "";
if (groupCountOnly && groupCountOnly != "")
showCount = groupItems.length > 0 ? " ("+groupItems.length+")" : "";
var makeHeading = (groupCountOnly&&groupCountOnly!="") ? "" : "!!";
var newButtonMarkup = "";
// this sucks
if (nbTags && nbTags != '') {
newButtonMarkup = " "+config.macros.mgtdList.getNewButton(nbTags + " [["+groupName+"]]");
}
if (groupName == "__NONE__") {
result = result + makeHeading + "[[("+(noneHeading?noneHeading:"No "+headingRenderMethod)+")]]"+showCount+newButtonMarkup+"\n";
}
else {
var gTiddler = store.getTiddler(groupName);
if (gTiddler) {
result = result + makeHeading+gTiddler.render(headingRenderMethod)+showCount+newButtonMarkup+"\n";
}
else {
result = result + makeHeading+"[["+groupName+"]]"+showCount+newButtonMarkup+"\n";
}
}
if (!groupCountOnly || groupCountOnly == "")
result = result + groupItems.render(listRenderMethod,renderOptions) + "\n";
});
if (groupCountOnly && groupCountOnly != "")
result = result.replace(/\n$/,''); // hack. remove trailing linefeed
return result;
},
tiddlerSort: function(sortBy) {
return this.sort(function(a,b) { return a.sorterUtil(b,sortBy); });
},
toTitleList: function() {
return this.map(function(t){return t.title;});
}
});
//------------------------------------------
config.options.txtTheme = 'MonkeyGTDTheme';
if (!config.mGTD) config.mGTD = {};
config.mGTD.specialTags = [
"Action",
"Project",
"Area",
"Realm",
"Context",
"View",
"Tickler",
"Reference",
"Contact"
]
config.mGTD.tagsToIndex = [
"Project",
"Area",
"Realm",
"Context",
"ActionStatus",
"TicklerStatus",
"ProjectStatus",
"GTDComponent",
"Sidebar",
"Contact",
"TicklerRepeatType"
];
config.mgtdVersion = "3.0 alpha r510095";
config.macros.mgtdVersion={handler:function(place){wikify(config.mgtdVersion,place);}};
config.toggleTagAlwaysTouchModDate = true; // see ToggleTagPlugin
config.shadowTiddlers.SiteTitle = 'MonkeyGTD';
config.shadowTiddlers.SiteSubtitle = 'a getting things done system powered by tiddlywiki';
config.mGTD.getOptChk = function(option) { return store.fetchTiddler('MgtdSettings').tags.contains(option); }
config.mGTD.getOptTxt = function(fieldName) { return store.fetchTiddler('MgtdSettings').fields[fieldName.toLowerCase()]; }
config.mGTD.setOptTxt = function(fieldName,fieldValue) { store.fetchTiddler('MgtdSettings').fields[fieldName.toLowerCase()] = fieldValue; }
// from tiddlytools.com/#CoreTweaks, thanks Eric
window.coreWikify = wikify;
window.wikify = function(source,output,highlightRegExp,tiddler)
{
if (source) arguments[0]=source.replace(/\\\\\n/mg,"<br>");
coreWikify.apply(this,arguments);
}
merge(Date.prototype,{
addDay: function(n) { this.setDate( this.getDate() + n); },
addWeek: function(n) { this.setDate( this.getDate() + n*7); },
addMonth: function(n) { this.setMonth( this.getMonth() + n); },
addYear: function(n) { this.setYear( this.getFullYear() + n); }
});
// TODO. this doesn't really belong here
merge(Tiddler.prototype,{
touch: function() {
this.changed();
this.modified = new Date();
store.setDirty(true);
store.notify(this.title,true);
}
});
// it works in view mode, that's why we can't just use edit macro
merge(config.macros, {
mgtdEditField: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var fieldName = params[0];
var useTiddler = tiddler;
if (params[1])
useTiddler = store.fetchTiddler(params[1]);
var curVal = useTiddler.fields[fieldName] || '';
var editBox = createTiddlyElement(place,'input',null,'editBox');
editBox.value = curVal;
var callback = function(){
useTiddler.fields[fieldName] = this.value;
useTiddler.touch(); // see MgtdDateUtils
}
editBox.onchange = callback;
}
}
});
function wikifiedMessage(message) {
wikify(message,getMessageDiv());
}
merge(config.macros,{
help: {
handler: function (place,macroName,params,wikifier,paramString,tiddler) {
createTiddlyButton(place,"?","help",function() {
var useThis = params[0]?params[0]:tiddler.title;
var helpContent = "{{help{\n''~MonkeyGTD Help''\n!"+useThis+"\n"+store.getTiddlerText("MonkeyGTDHelp##"+useThis)+"\n}}}\n";
// doesn't work at all. I have no idea how to use TW popups apparently ...
//var popup = Popup.create(place,"div","popupTiddler");
//wikify(helpContent,popup,null,tiddler);
//Popup.show();
// stick with this for now
clearMessage();
wikifiedMessage("{{help{\n''~MonkeyGTD Help''\n!"+useThis+"\n"+store.getTiddlerText("MonkeyGTDHelp##"+useThis)+"\n}}}\n");
return false;
});
}
}
});
config.indexedTags = {
// will be populated with our tag lists
tagLists: {},
// will be populated with our tag indexes
indexes: {},
// will be populated with the tags that need indexing
tagsToIndex: [],
saveTiddlerHijack: function(title,newTitle,newBody,modifier,modified,tags,fields) {
var before = store.getTiddler(title);
var oldTags = before ? [].concat(before.tags) : null; // concat so we get a dup
store.suspendNotifications();
var result = this.saveTiddler_orig_indexedTags(title,newTitle,newBody,modifier,modified,tags,fields);
var newTags = store.getTiddler(newTitle).tags;
config.indexedTags.updateTagLists(title,oldTags,newTitle,newTags);
config.indexedTags.updateIndexes(title,newTitle,newTags);
store.resumeNotifications();
store.notify(title,true);
return result;
},
removeTiddlerHijack: function(title) {
var before = store.getTiddler(title);
var oldTags = before ? [].concat(before.tags) : null; // concat so we get a dup
store.suspendNotifications();
this.removeTiddler_orig_indexedTags(title);
config.indexedTags.updateTagLists(title,oldTags);
config.indexedTags.updateIndexes(title);
store.resumeNotifications();
store.notify(title,true);
},
setTiddlerTagHijack: function(title,status,tag) {
var before = store.getTiddler(title);
var oldTags = before ? [].concat(before.tags) : null; // concat so we get a dup
store.suspendNotifications();
this.setTiddlerTag_orig_indexedTags(title,status,tag);
var after = store.getTiddler(title);
var newTags = after ? after.tags : null;
config.indexedTags.updateTagLists(title,oldTags,title,newTags);
config.indexedTags.updateIndexes(title,title,newTags);
store.resumeNotifications();
store.notify(title,true);
},
updateTagLists: function(title,oldTags,newTitle,newTags) {
if (oldTags)
oldTags.each(function(tagName) {
config.indexedTags.tagLists[tagName].remove(title);
});
if (newTags)
newTags.each(function(tagName) {
if (!config.indexedTags.tagLists[tagName])
config.indexedTags.tagLists[tagName] = [];
config.indexedTags.tagLists[tagName].pushUnique(newTitle);
});
},
updateIndexes: function(title,newTitle,newTags) {
delete config.indexedTags.indexes[title];
if (newTags) {
config.indexedTags.indexes[newTitle] = {};
config.indexedTags.tagsToIndex.each(function(tagToIndex) {
config.indexedTags.indexes[newTitle][tagToIndex] = [];
newTags.each(function(tag) {
if (config.indexedTags.tagLists[tagToIndex] && config.indexedTags.tagLists[tagToIndex].contains(tag)) {
config.indexedTags.indexes[newTitle][tagToIndex].pushUnique(tag);
}
});
});
}
},
initTagLists: function() {
store.getTags().map(function(pair) { return pair[0]; }).each(function(t) {
config.indexedTags.tagLists[t] = store.getTaggedTiddlers(t).map(function(tt) { return tt.title; });
});
},
initIndexes: function() {
store.forEachTiddler(function(title,tiddler) {
config.indexedTags.updateIndexes(title,title,tiddler.tags);
});
},
dump: function() {
alert(this.indexes["Buy petrol for mower"]["Project"]);
alert(this.indexes["Buy petrol for mower"]["Realm"]);
},
tiddlerMethods: {
getByIndex: function(tag) {
return config.indexedTags.indexes[this.title][tag];
},
hasParent: function(tag) {
return this.getByIndex(tag).length > 0
},
hasNoParent: function(tag) {
return !this.hasParent(tag);
},
hasActiveProject: function() {
var projs = this.getByIndex("Project");
if (projs.length == 0)
// no project but we will say it's active
// because otherwise it will not show up anywhere
return true;
for (var i=0;i<projs.length;i++)
if (
(config.indexedTags.indexes[projs[i]]['ProjectStatus'].contains('Active'))
&&
!store.fetchTiddler(projs[i]).tags.contains('Complete') // seems stupid
)
return true;
return false;
},
getAreasForAction: function() {
// we will go to some trouble to permit actions in multiple areas
// either explicitly or via their project...
// also permit multiple projects......
// explicit:
var result = [];
result = result.concat(this.getByIndex("Area"));
// implicit (via project/s):
var projs = this.getByIndex("Project");
for (var i=0;i<projs.length;i++)
result = result.concat(store.fetchTiddler(projs[i]).getByIndex("Area"));
return result;
},
hasNextAction: function() {
var children = fastTagged(this.title).filterByTagExpr('Action && !Done && (Next || [(Waiting For)])');
return children.length > 0;
},
hasSubProject: function() {
var children = fastTagged(this.title).filterByTagExpr('Project && !Complete && Active');
return children.length > 0;
},
hasNextActionOrSubProject: function() {
return (this.hasSubProject() || this.hasNextAction());
}
},
globalMethods: {
fastTagged: function(tag) {
var list = config.indexedTags.tagLists[tag];
return (list?list:[]).map(function(t){return store.getTiddler(t);});
}
},
init: function(tagsToIndex) {
merge(window,this.globalMethods);
merge(Tiddler.prototype,this.tiddlerMethods);
this.tagsToIndex = tagsToIndex;
this.initTagLists();
this.initIndexes();
TiddlyWiki.prototype.saveTiddler_orig_indexedTags = TiddlyWiki.prototype.saveTiddler;
TiddlyWiki.prototype.removeTiddler_orig_indexedTags = TiddlyWiki.prototype.removeTiddler;
TiddlyWiki.prototype.setTiddlerTag_orig_indexedTags = TiddlyWiki.prototype.setTiddlerTag;
TiddlyWiki.prototype.saveTiddler = this.saveTiddlerHijack;
TiddlyWiki.prototype.removeTiddler = this.removeTiddlerHijack;
TiddlyWiki.prototype.setTiddlerTag = this.setTiddlerTagHijack;
}
};
config.indexedTags.init(config.mGTD.tagsToIndex);
merge(config.macros,{
ticklerAlert: {
handler: function (place,macroName,params,wikifier,paramString,tiddler) {
var realmFilter = '';
if (!config.mGTD.getOptChk('AlertsIgnoreRealm'))
realmFilter = ' && tiddler.tags.containsAny(config.macros.mgtdList.getActiveRealms())';
var theList = fastTagged('Tickler').
filterByTagExpr('Enabled && !Actioned').
filterByEval('tiddler.fields.mgtd_date <= (new Date()).convertToYYYYMMDDHHMM()'+realmFilter);
if (theList.length > 0) {
var blinker = createTiddlyElement(place,'blink');
wikify('{{ticklerAlert{[[*ticklers*|Ticklers Requiring Action]]}}}',blinker,null,tiddler);
}
}
},
mgtdList: {
getActiveRealms: function() {
return store.fetchTiddler("MgtdSettings").getByIndex("Realm");
},
getRealm: function(tiddlerTitle) {
// if we're in a project inherit the realm from the project
var inTiddler = store.fetchTiddler(tiddlerTitle);
if (inTiddler && inTiddler.tags.contains('Project')) {
// get the realm from the project
return inTiddler.getByIndex('Realm');
}
// otherwise use the active realm
var active = config.macros.mgtdList.getActiveRealms();
if (active.length == 1) {
return active[0];
}
// if there's more than one active realm use a slice to get the realm priority and choose the highest one
else {
// TODO, make this prettier
var toBeat = "zzzzzzz";
var soFar = active[0];
for (var i=0;i<active.length;i++) {
var pri = store.getTiddlerSlice(active[i],"priority");
if (pri && pri < toBeat) {
toBeat = pri;
soFar = active[i];
}
}
return soFar;
}
},
getNewButton: function(tags,extraTags) {
if (typeof tags != 'string')
tags = String.encodeTiddlyLinkList(tags);
return '<<newSavedTiddler label:+ tag:"'+tags+'">>'; // newSavedTiddler wants tags in one param?
},
handler: function (place,macroName,params,wikifier,paramString,tiddler) {
var pp = paramString.parseParams("tags",null,true);
// title of the list
var title = getParam(pp,"title","");
// local means only look at tiddlers tagged with this tiddler
// global means look at every tiddler
var tagMode = getParam(pp,"mode","local");
// optional. ignored unless mode global. specify for speed gains
var startTag = getParam(pp,"startTag");
// eg, "Next && !Done"
var tagExpr = getParam(pp,"tags","");
// additional filter. gets eval'ed
var whereExpr = getParam(pp,"where","");
// group by another tag
var groupBy = getParam(pp,"group","");
// group by count only mode
var groupCountOnly = getParam(pp,"groupCountOnly","");
// filter the groups by tag expr
var gTagExpr = getParam(pp,"gTag","");
// or eval'ed expression
var gWhereExpr = getParam(pp,"gWhere","");
// how to render list items
var viewType = getParam(pp,"view","plain");
// how to render headings
var gViewType = getParam(pp,"gView",groupBy);
// if there are tiddlers who aren't grouped then give them this title
// mainly used to label future actions...
var leftoverTitle = getParam(pp,"leftoverTitle","No "+groupBy);
// if set to "yes" then we ignore the realm and show everthing
var ignoreRealm = getParam(pp, "ignoreRealm","");
// sort items
var sortBy = getParam(pp,"sort","title");
// sort groups
var gSortBy = getParam(pp,"gSort","title");
// new button
var newButton = getParam(pp,"newButton",""); // not using
var newButtonTags = getParam(pp,"newButtonTags","");
newButtonTags = newButtonTags.replace(/\[\(/g," [[").replace(/\)\]/g,"]] "); // change [(..)] to [[..]]
if (!startTag)
if (tagMode != "global")
startTag = tiddler.title;
var listRefreshContainer = createTiddlyElement(place,"div");
// TODO one big attribute?
listRefreshContainer.setAttribute("refresh","macro");
listRefreshContainer.setAttribute("macroName",macroName);
listRefreshContainer.setAttribute("title",title);
listRefreshContainer.setAttribute("startTag",startTag);
listRefreshContainer.setAttribute("tagMode",tagMode);
listRefreshContainer.setAttribute("tagExpr",tagExpr);
listRefreshContainer.setAttribute("groupBy",groupBy);
listRefreshContainer.setAttribute("groupCountOnly",groupCountOnly);
listRefreshContainer.setAttribute("gTagExpr",gTagExpr);
listRefreshContainer.setAttribute("whereExpr",whereExpr);
listRefreshContainer.setAttribute("gWhereExpr",gWhereExpr);
listRefreshContainer.setAttribute("sortBy",sortBy);
listRefreshContainer.setAttribute("gSortBy",gSortBy);
listRefreshContainer.setAttribute("viewType",viewType);
listRefreshContainer.setAttribute("gViewType",gViewType);
listRefreshContainer.setAttribute("ignoreRealm",ignoreRealm);
listRefreshContainer.setAttribute("leftoverTitle",leftoverTitle);
listRefreshContainer.setAttribute("newButton",newButton);
listRefreshContainer.setAttribute("newButtonTags",newButtonTags);
if (tiddler)
listRefreshContainer.setAttribute("tiddlerTitle",tiddler.title);
this.refresh(listRefreshContainer);
},
refresh: function(place) {
removeChildren(place);
var title = place.getAttribute("title");
var startTag = place.getAttribute("startTag");
var tagMode = place.getAttribute("tagMode");
var tagExpr = place.getAttribute("tagExpr");
var groupBy = place.getAttribute("groupBy");
var groupCountOnly = place.getAttribute("groupCountOnly");
var gTagExpr = place.getAttribute("gTagExpr");
var whereExpr = place.getAttribute("whereExpr");
var gWhereExpr = place.getAttribute("gWhereExpr");
var sortBy = place.getAttribute("sortBy");
var gSortBy = place.getAttribute("gSortBy");
var viewType = place.getAttribute("viewType");
var gViewType = place.getAttribute("gViewType");
var ignoreRealm = place.getAttribute("ignoreRealm");
var leftoverTitle = place.getAttribute("leftoverTitle");
var newButton = place.getAttribute("newButton");
var newButtonTags = place.getAttribute("newButtonTags");
var tiddlerTitle = place.getAttribute("tiddlerTitle");
var wikifyThis = "";
wikifyThis += "{{mgtdList{\n";
if (title != "")
wikifyThis += "!"+title
var nbTags;
if (newButtonTags != '') {
nbTags = [
newButtonTags, // the tags specified in the macro params
'[['+config.macros.mgtdList.getRealm(tiddlerTitle)+']]', // the realm. always want a realm
(tagMode=='global'?'':'[['+tiddlerTitle+']]') // if not global, then the add tiddler we're in, new here style
].join(' ');
var nbList = nbTags.readBracketedList();
var nbExtra = nbTags;
// also we want an area. another hack. darn you subprojects.. :)
if (nbList.contains('Project') && !nbList.containsAny(fastTagged('Area').toTitleList())) {
var foo = store.fetchTiddler(tiddlerTitle).getByIndex('Area');
if (foo.length > 0) {
nbExtra += ' [[' + foo[0] + ']]';
}
}
if (nbList.contains('Project') && !nbList.containsAny(fastTagged('ProjectStatus').toTitleList())) {
// stupid hack for subprojects list in project dashboards
// don't want to create a project with no status
// this is the hack:
nbExtra += ' Active';
}
// same hack thing for actions
if (nbList.contains('Action') && !nbList.containsAny(fastTagged('ActionStatus').toTitleList())) {
nbExtra += ' Next';
}
wikifyThis += this.getNewButton(nbExtra);
// but still use nbTags later on in group headings...
}
if (title != "" || newButton != "")
wikifyThis += "\n";
wikifyThis += "{{innerList{\n";
var checkForContent = wikifyThis;
var theList = [];
if (startTag && startTag != 'undefined'/* this sucks */) {
theList = fastTagged(startTag);
}
else {
// why so hard to get an array of all tiddlers?
store.forEachTiddler(function(t_title,t_tiddler) { theList.push(t_tiddler); });
}
if (tagExpr != "") theList = theList.filterByTagExpr(tagExpr);
if (whereExpr != "") theList = theList.filterByEval(whereExpr);
if (ignoreRealm != "yes") {
var activeRealms = config.macros.mgtdList.getActiveRealms();
theList = theList.select(function(t) {
var realm = t.getByIndex("Realm");
return (
realm.length == 0 || // so something with no realm shows up
realm.containsAny(activeRealms)
);
});
}
if (groupBy == "day") {
// experimental. changing a tag doesn't update modified so
// this isn't as useful
theList = theList.groupBy(function(t){return [t.modified.formatString('YYYY-0MM-0DD')];});
wikifyThis += theList.renderGrouped(viewType,gViewType,leftoverTitle);
}
else if (groupBy != "") {
theList = theList.groupByTag(groupBy,sortBy,gSortBy);
if (gTagExpr != "") theList = theList.filterGroupsByTagExpr(gTagExpr);
if (gWhereExpr != "") theList = theList.filterGroupsByEval(gWhereExpr);
wikifyThis += theList.renderGrouped(viewType,gViewType,leftoverTitle,null,groupCountOnly,nbTags);
}
else {
theList = theList.tiddlerSort(sortBy);
wikifyThis += theList.render(viewType);
}
if (wikifyThis == checkForContent)
wikifyThis += "{{none{none}}}";
wikifyThis += "}}}\n";
wikifyThis += "}}}\n";
wikify(wikifyThis,place,null,tiddler);
forceReflow();
}
}
});
merge(config.macros,{
processInbox: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var shortHand = {
'W': 'Waiting For',
'N': 'Next',
'F': 'Future'
};
wikify("Quick add projects and actions (See [[About Quick Add]] for more info):\n",place);
var pi = createTiddlyElement(place,"textarea",null,"piBox");
wikify("\n",place);
var a1 = createTiddlyCheckbox(place,"Open created projects",true,null);
a1.id = 'piShowProjects';
var a2 = createTiddlyCheckbox(place,"Open created actions",true,null);
a2.id = 'piShowActions';
wikify("\n",place);
var btn = createTiddlyButton(place,"quick add now","create these items",function(e) {
var lines = pi.value.split("\n");
var currentProject = "";
var displayThese = [];
for (var i=0;i<lines.length;i++) {
//alert(lines[i]);
var fields = lines[i].split(/[|;]/);
if (!fields[0] || fields[0].trim() == "") {
currentProject = "";
}
else {
var title = fields.shift();
//alert(title);
// add the realm
fields.push(config.macros.mgtdList.getRealm());
if (title[0] != '.') {
//alert("project "+title);
currentProject = title;
if (document.getElementById('piShowProjects').checked)
displayThese.push(title);
fields.push("Project"); // make it a project
fields.push("Active"); // make it active
if (store.tiddlerExists(title))
alert("Warning: '"+title+"' already exists, did not create");
else
store.saveTiddler(
title,title,
"", // content
config.options.txtUserName,
new Date(),
fields, // tags
null // extra fields
);
}
else {
// default to next actions
if (!fields.containsAny(['N','F','W']))
fields.push('N');
fields = fields.map(function(f) {
if (shortHand[f] && shortHand[f] != '')
return shortHand[f];
else
return f;
});
//alert("action "+title);
title = title.trim();
title = title.replace(/^\.+/,'');
if (document.getElementById('piShowActions').checked)
displayThese.push(title);
fields.push("GTD"); // make it a GTD item
fields.push("Action"); // make it an action
if (currentProject.trim() != "")
fields.push(currentProject); // make it in this project
if (store.tiddlerExists(title))
alert("Warning: '"+title+" already exists, did not create");
else
store.saveTiddler(
title,title,
"", // content
config.options.txtUserName,
new Date(),
fields, // tags
null // extra fields
);
}
}
}
for (var ii=0;ii<displayThese.length;ii++)
story.displayTiddler("bottom",displayThese[ii]);
alert("Done creating items");
return false;
}); // end of createTiddlyButton
}
}
});
!!Options
Show tickler alerts regardless of realm settings.
<<toggleTag AlertsIgnoreRealm MgtdSettings>>
Actions can have multiple contexts.
<<toggleTag MultipleContexts MgtdSettings>>
Show full project name next to actions in action lists instead of just [P].
<<toggleTag FullProjectInActionLists MgtdSettings>>
Show full contact name next to actions in action lists instead of just [C].
<<toggleTag FullContactInActionLists MgtdSettings>>
Enter the date format for ticklers.
Tickler date format:<<mgtdEditField ticklerdateformat MgtdSettings>>
(see [[Date Formats|http://tiddlywiki.org/wiki/Date_Formats]])
// requires MgtdIndexedTags for the fastTagged and getByIndex methods
// TODO make these usable without MgtdIndexedTags if it doesn't exist
merge(Tiddler.prototype,{
addTag: function(tag) {
store.setTiddlerTag(this.title,true,tag);
},
removeTag: function(tag) {
store.setTiddlerTag(this.title,false,tag);
},
setTagFromGroup: function(tagGroup,tag) {
var tagList = fastTagged(tagGroup);
// it goes slow if you don't do this
store.suspendNotifications();
// remove all the tags in the group
for (var i=0;i<tagList.length;i++)
this.removeTag(tagList[i].title);
// add the one selected
if (tag)
this.addTag(tag);
// touch the modified date so we can sort usefully
this.modified = new Date();
// resume notification and notify
store.resumeNotifications();
store.notify(this.title,true);
},
toggleTag: function(tag) {
store.setTiddlerTag(this.title,!this.hasTag(tag),tag);
// touch the modified date
this.modified = new Date();
},
hasTag: function(tag) {
return this.tags.contains(tag);
}
});
merge(config.macros,{
singleToggleTag: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var pp = paramString.parseParams("tag",null,true);
if (!tiddler)
tiddler = store.getTiddler(getParam(pp,"title"));
var tag = getParam(pp,"tag");
var t = store.fetchTiddler(tag);
var title = getParam(pp,"title",tiddler.title);
var actOnTiddler = store.getTiddler(title);
var label = store.getTiddlerSlice(t.title,"button");
var labelOff = store.getTiddlerSlice(t.title,"buttonOff");
// dreadful hack
if (tag == "Starred")
label = "\u2605";
var autoClass = "button " + t.title.replace(/[\/ ]/g,'')
if (!label) label = t.title;
if (!labelOff) labelOff = label;
var curState = actOnTiddler.hasTag(tag);
var cl = createTiddlyButton(place, curState?label:labelOff, t.title, function(e) {
actOnTiddler.toggleTag(tag);
return false;
},
autoClass + " " + (curState ? "on" : "off")
);
}
},
groupOfSingleToggleTags: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var pp = paramString.parseParams("tag",null,true);
var useCheckbox = getParam(pp,"useCheckbox","");
if (!tiddler)
tiddler = store.getTiddler(getParam(pp,"title"));
var tag = getParam(pp,"tag");
var title = getParam(pp,"title",tiddler.title);
var refresh = getParam(pp,"refresh"); // stupid bit for pagetemplate hack
var actOnTiddler = store.getTiddler(title);
var getValues = fastTagged(tag).sort(function(a,b){
return a.sorterUtil(b,"orderSlice");
});
getValues.each(function(t) {
var label = store.getTiddlerSlice(t.title,"button");
var autoClass = "button " + t.title.replace(/[\/ ]/g,'')
if (!label)
label = t.title;
if (useCheckbox == "yes") {
// checkbox style toggle tags
wikify("<<toggleTag [["+t.title+"]] [["+tiddler.title+"]] ->>[["+label+"]] " ,place,null,tiddler);
}
else {
// button style toggle tags
var cl = createTiddlyButton(place, label, t.title, function(e) {
actOnTiddler.toggleTag(t.title);
if (refresh == "page")
refreshPageTemplate();
return false;
},
autoClass + " " + (actOnTiddler.getByIndex(tag).contains(t.title) ? "on" : "off")
);
}
});
}
},
multiToggleTag: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var pp = paramString.parseParams("tag",null,true);
if (!tiddler)
tiddler = store.getTiddler(getParam(pp,"title"));
var tag = getParam(pp,"tag");
var refresh = getParam(pp,"refresh"); // stupid bit for pagetemplate hack
var longVersion = getParam(pp,"longVersion");
var title = getParam(pp,"title",tiddler.title);
var actOnTiddler = store.getTiddler(title);
var getValues = fastTagged(tag).sort(function(a,b){
return a.sorterUtil(b,"orderSlice");
});
getValues.each(function(t) {
var label = store.getTiddlerSlice(t.title,longVersion?"buttonLong":"button");
var extraClass = store.getTiddlerSlice(t.title,"buttonClass");
var autoClass = (extraClass ? extraClass : "") + " button " + t.title.replace(/[\/ ]/g,'')
if (!label) label = t.title;
var cl = createTiddlyButton(place, label, t.title, function(e) {
actOnTiddler.setTagFromGroup(tag,t.title);
if (refresh == "page")
refreshPageTemplate();
return false;
},
autoClass + " " + (actOnTiddler.getByIndex(tag).contains(t.title) ? "on" : "off")
);
});
}
},
multiSelectTag: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var pp = paramString.parseParams("tag",null,true);
if (!tiddler)
tiddler = store.getTiddler(getParam(pp,"title"));
var tag = getParam(pp,"tag");
var refresh = getParam(pp,"refresh"); // stupid bit for pagetemplate hack
var allowNone = getParam(pp,"allowNone");
var title = getParam(pp,"title",tiddler.title);
var actOnTiddler = store.getTiddler(title);
var selectOptions = [];
if (allowNone)
selectOptions.push({name: null, caption:'-'});// TODO this doesn't work right?
var getValues = fastTagged(tag).sort(function(a,b){
return a.sorterUtil(b,"orderSlice");
});
getValues.each(function(t) {
var useTitle = store.getTiddlerSlice(t.title,"button");
if (!useTitle) useTitle = t.title;
selectOptions.push({name: t.title, caption:useTitle});
});
var dd = createTiddlyDropDown(place, function(e) {
actOnTiddler.setTagFromGroup(
tag,
selectOptions[this.selectedIndex].name
);
if (refresh == "page")
refreshPageTemplate();
return false;
},
selectOptions,
actOnTiddler.getByIndex(tag)[0]
);
}
},
multiCheckboxTag: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var pp = paramString.parseParams("tag",null,true);
if (!tiddler)
tiddler = store.getTiddler(getParam(pp,"title"));
var tag = getParam(pp,"tag");
var title = getParam(pp,"title",tiddler.title);
var actOnTiddler = store.getTiddler(title);
var getValues = fastTagged(tag).sort(function(a,b){
return a.sorterUtil(b,"orderSlice");
});
var output = "";
getValues.each(function(t) {
output += "<<toggleTag [[%0]] [[%1]] [[%0]]>>".format([
t.title,
actOnTiddler.title
]);
});
wikify(output,place,null,tiddler);
}
},
// these don't really belong here but never mind..
convertToFromTickler: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
if (tiddler.tags.contains('Tickler')) {
createTiddlyButton(place, "make action", "make this tickler into a next action", function(e) {
tiddler.removeTag("Tickler");
tiddler.addTag("Action");
tiddler.removeTag("Done");
tiddler.setTagFromGroup("ActionStatus","Next");
return false;
});
createTiddlyButton(place, "make project", "make this tickler into an active project", function(e) {
tiddler.removeTag("Tickler");
tiddler.addTag("Project");
tiddler.removeTag("Complete");
tiddler.setTagFromGroup("ProjectStatus",'Active');
return false;
});
}
if (tiddler.tags.containsAny(['Action','Project'])) {
createTiddlyButton(place, "make tickler", "make this item into a tickler", function(e) {
tiddler.removeTag("Action");
tiddler.removeTag("Project");
tiddler.addTag("Tickler");
return false;
});
}
}
},
linkToParent: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var label = params[1] ? params[1] : '>>';
var useTiddler = params[2] ? store.fetchTiddler(params[2]) : tiddler;
var links = useTiddler.getByIndex(params[0]);
var output = "";
for (var i=0;i<links.length;i++)
output += ( (i==0?'':' ') + "[[%1|%0]]".format([links[i], label == 'title' ? '['+links[i]+']' : label]) );
if (output != "")
wikify(output,place,null,useTiddler);
}
}
});
setStylesheet(["",
".button.off {font-weight:bold;border-color:#eee;background:#fff;color:#ccc;margin:0px;font-size:110%}",
".button.on {font-weight:bold;border-color:#444;background:#888;color:#fff;margin:0px;font-size:110%}",
".button.tiny { font-size:75%; }",
// TODO move this css elsewhere
"#realmSelector .button.off {margin:0 0.5em;padding:0 1em;border:2px solid #aaa;background:#eee;color:#333;}", // actually reversed, ie off is "on"
"#realmSelector .button.on {margin:0 0.5em;padding:0 1em;border:2px solid #999;background:#999;color:#ccc;}", // actually reversed, ie off is "on"
// TODO put into styles instead of here?
// actions
".viewer .Next.button.on {border-color:#55c;background:#cfa;color:#4a4;}",
".viewer .WaitingFor.button.on {border-color:#b84;background:#fdb;color:#b84;}",
".viewer .Future.button.on {border-color:#48b;background:#bdf;color:#48b;}",
// projects
".viewer .Active.button.on {border-color:#55c;background:#cfa;color:#4a4;}",
".viewer .SomedayMaybe.button.on {border-color:#48b;background:#bdf;color:#48b;}",
// ticklers
".viewer .Enabled.button.on {border-color:#55c;background:#cfa;color:#4a4;}",
".viewer .Disabled.button.on {border-color:#b84;background:#fdb;color:#b84;}",
".viewer .Starred.button {padding:0;font-size:170%;}",
".viewer .Starred.button.on {border-color:#fff;background:#fff;color:#f80;}",
".viewer .Starred.button.off {border-color:#fff;background:#fff;color:#ddd;}",
""].join("\n"),"tTag");
//}}}
URL: http://monkeygtd.tiddlyspot.com/upgrade.html
// won't be overwritten by updates
// eg:
//// config.options.txtTheme = 'MonkeyGTDPrint3x5';
//{{{
merge(config.macros, {
eval: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
wikify(eval(paramString),place,null,tiddler);
}
}
});
//}}}
/%
This is the contents of the help you get when you click the question mark button
%/
!Project
No help yet for Project
!Action
No help yet for Action
!Tickler
No help yet for Tickler
!View
No help yet for View
!Context
No help yet for Context
!Area
No help yet for Area
!Realm
No help yet for Realm
!Reference
No help yet for Reference
!Action Dashboard
This Dashboard is the place where you can get an overview of your next actions.
!Action Dashboard by Project
This Dashboard is the place where you can get an overview of your next actions organised by Project. Note that when doing work you shouldn't be really be using this view. You should be focussed on context rather than project.
!Action Dashboard by Context
This Dashboard is the place where you can get an overview of your next actions organised by Context. This might be too cluttered if you have a lot of actions. If you know you are in a particular context consider just clicking the context to focus on that context.
!Next Actions
No help yet for Next Actions
!Next Actions by Context
No help yet for Next Actions by Context
!Next Actions by Project
No help yet for Next Actions by Project
!Projects Dashboard
No help yet for Projects Dashboard
!Projects Dashboard by Area
No help yet for Projects Dashboard by Area
!Next and Waiting Actions
No help yet for Next and Waiting Actions
!Next and Waiting Actions by Context
No help yet for Next and Waiting Actions by Context
!Next and Waiting Actions by Project
No help yet for Next and Waiting Actions by Project
!Done Actions
No help yet for Done Actions
!Active Projects With No Next Action
No help yet for Active Projects With No Next Action
!Quick Add
No help yet for Quick Add
!About Quick Add
No help yet for About Quick Add
!Tickler Dashboard
No help yet for Tickler Dashboard
!Ticklers Requiring Action
No help yet for Ticklers Requiring Action
!Reference Items
No help yet for Reference Items
!Starred Items
No help yet for Starred Items
|Name|MonkeyGTD Narrow|
|Description|MonkeyGTD Theme for Narrow Screens|
|PageTemplate|MonkeyGTDTheme##PageTemplate|
|StyleSheet|MonkeyGTDNarrow##StyleSheet|
|ViewTemplate|MonkeyGTDTheme##ViewTemplate|
|EditTemplate|MptwTheme##EditTemplate|
!StyleSheet
/*{{{*/
[[MonkeyGTDTheme##StyleSheet]]
/* give a little less space for menu */
#sidebar { width: 16em; /* instead of 16em */ }
#displayArea { margin-right:15.7em; /* instead of 15.7em */ }
#sidebarTabs .tabContents { width:15em; /* instead of 15em */ }
.txtMGTDMain .tab {
font-size:80%!important;
}
.txtMGTDMain .tabContents {
font-size:90%;
}
[[StyleSheet]]
/*}}}*/
|Name|MonkeyGTD Print 3x5|
|Description|MonkeyGTD Theme for Printing 3x5 Cards|
|PageTemplate|MonkeyGTDTheme##PageTemplate|
|StyleSheet|MonkeyGTDPrint3x5##StyleSheet|
|ViewTemplate|MonkeyGTDTheme##ViewTemplate|
|EditTemplate|MptwTheme##EditTemplate|
!StyleSheet
/*{{{*/
[[MonkeyGTDTheme##StyleSheet]]
[[MonkeyGTDTheme##Printing3x5Styles]]
[[StyleSheet]]
/*}}}*/
|Name|MonkeyGTD|
|Description|MonkeyGTD Theme|
|PageTemplate|MonkeyGTDTheme##PageTemplate|
|StyleSheet|MonkeyGTDTheme##StyleSheet|
|ViewTemplate|MonkeyGTDTheme##ViewTemplate|
|EditTemplate|MptwTheme##EditTemplate|
!ViewTemplate
<!--{{{-->
<div macro="showWhen tiddler.tags.containsAny(config.mGTD.specialTags)">
[[MptwTheme##ViewTemplateToolbar]]
<div class='titleContainer viewer'>[[TitleButtonsSelector]]</div>
[[MonkeyGTDTheme##Panel]]
<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 macro="hideWhen tiddler.tags.containsAny(config.mGTD.specialTags)">
<!--- use standard template for non gtd tiddlers --->
[[MptwTheme##ViewTemplate]]
</div>
<!--}}}-->
!Panel
<!--{{{-->
<!--- nothing as yet? --->
<!--}}}-->
!Dashboard
<!--{{{-->
<div macro="showWhenTagged Project" class="viewer" >[[Dashboards##Project]]</div>
<div macro="showWhenTagged Area" class="viewer" >[[Dashboards##Area]]</div>
<div macro="showWhenTagged Realm" class="viewer" >[[Dashboards##Realm]]</div>
<div macro="showWhenTagged Context" class="viewer" >[[Dashboards##Context]]</div>
<div macro="showWhenTitleIs 'Action Dashboard'" >[[Dashboards##Action Dashboard]]</div>
<div macro="showWhenTitleIs 'Action Dashboard by Context'" >[[Dashboards##Action Dashboard by Context]]</div>
<div macro="showWhenTitleIs 'Just Next Actions'" >[[Dashboards##Just Next Actions]]</div>
<div macro="showWhenTitleIs 'Just Next Actions by Context'" >[[Dashboards##Just Next Actions by Context]]</div>
<div macro="showWhenTitleIs 'Projects'" >[[Dashboards##Projects]]</div>
<!--- many more. but fix DRY issues --->
<!--}}}-->
!Subtitle
<span class='subtitle'>
Updated
<span macro='view modified date {{config.mptwDateFormat?config.mptwDateFormat:"MM/0DD/YY"}}'></span>
(<span macro='message views.wikified.createdPrompt'></span>
<span macro='view created date {{config.mptwDateFormat?config.mptwDateFormat:"MM/0DD/YY"}}'></span>)
</span>
!PageTemplate
<!--{{{-->
<div class='header' macro='gradient vert [[ColorPalette::PrimaryLight]] [[ColorPalette::PrimaryMid]]'>
<div style="float:right" id='searchBox' macro="search Search..."></div>
<div class='header2'>MonkeyGTD <span style="font-size:75%;font-weight:normal;" macro="mgtdVersion"></span></div>
</div>
<div macro='gradient vert [[ColorPalette::PrimaryMid]] [[ColorPalette::PrimaryDark]]'>
<div style="float:right" id="toggleSideBar"><span macro="toggleSideBar"></span></div>
<div class='mtoolbar'>
<div>
<span class="label">REALM</span><span id='arealmSelector' macro="groupOfSingleToggleTags tag:Realm title:MgtdSettings refresh:page"></span>
<span id='ticklerAlert' refresh='content' tiddler='TicklerAlert' force="true"></span>
<span id='newButtons' refresh='content' tiddler='NewButtons'></span>
</div>
</div>
</div>
<div id='mainMenu' refresh='content' tiddler='MainMenu'></div>
<div id='sidebar'>
<div id='sidebarOptions'>
<span macro="saveChanges"></span>
<span macro="closeAll"></span>
<span macro="showWhen store.tiddlerExists('TspotSidebar')||store.isShadowTiddler('TspotSidebar')"><span refresh='content' tiddler='TspotSidebar'></span></span>
</div>
<div id='sidebarTabs' refresh='content' force='true' tiddler='MGTDSidebar'></div>
</div>
<div id='displayArea'>
<div id='messageArea'></div>
<div id='tiddlerDisplay'></div>
</div>
<!--}}}-->
!SidebarMenus
<!--{{{-->
<!--- not using --->
<div id='twsidebar' macro="showWhen store.fetchTiddler('MgtdSettings').tags.contains('TW')">
<div id='sidebarOptions' refresh='content' tiddler='SideBarOptions'></div>
<div id='sidebarTabs' refresh='content' force='true' tiddler='SideBarTabs'></div>
</div>
<div id='twsidebar' macro="hideWhen store.fetchTiddler('MgtdSettings').tags.contains('TW')">
<div id='sidebarOptions'>
<span macro="showWhen store.tiddlerExists('TspotSidebar')||store.isShadowTiddler('TspotSidebar')"><span refresh='content' tiddler='TspotSidebar'></span></span>
<span refresh='content' tiddler='CommonMenu'></span>
</div>
</div>
<div id='monkeygtdsidebar' macro="showWhen store.fetchTiddler('MgtdSettings').tags.contains('Do Work')">
<div class="menu" refresh='content' tiddler='DoWorkMenu'></div>
</div>
<div id='monkeygtdsidebar' macro="showWhen store.fetchTiddler('MgtdSettings').tags.contains('Review')">
<div class='menu' refresh='content' tiddler='ReviewMenu'></div>
</div>
<div id='monkeygtdsidebar' macro="showWhen store.fetchTiddler('MgtdSettings').tags.contains('Process Inbox')">
<div class='menu' refresh='content' tiddler='ProcessInboxMenu'></div>
</div>
<!---
<div id='monkeygtdsidebar' macro="showWhen store.fetchTiddler('MgtdSettings').tags.contains('Collect Items')">
<div class='menu' refresh='content' tiddler='CollectItemsMenu'></div>
</div>
--->
<div id='monkeygtdsidebar' macro="showWhen store.fetchTiddler('MgtdSettings').tags.contains('Config')">
<div class='menu' refresh='content' tiddler='ConfigMenu'></div>
</div>
<!--}}}-->
!Printing3x5Styles
/*{{{*/
@media print {
.cols3 .col {width: 100%; float:none;}
.cols2 .col {width: 100%; float:none;}
.titleContainer {text-align:center;}
/* LAYOUT ELEMENTS
========================================================== */
*
{
margin: 0;
padding: 0;
}
body {
background: #fff;
color: #000;
font-size: 6.2pt;
font-family: "Lucida Grande", "Bitstream Vera Sans", Helvetica,
Verdana, Arial, sans-serif;
}
img {
max-width: 2.5in;
max-height: 4.5in;
}
.tiddler {
margin: 0 0 2em 0;
border-top: 1px solid #000;
page-break-before: always;
}
.tiddler:first-child {
page-break-before: avoid;
}
p, blockquote, ul, li, ol, dt, dd, dl, table
{
margin: 0 0 .3em 0;
}
h1, h2, h3, h4, h5, h6
{
margin: .2em 0;
}
h1
{
font-size: 1.5em;
}
h2
{
font-size: 1.3em;
}
h3
{
font-size: 1.25em;
}
h4
{
font-size: 1.15em;
}
h5
{
font-size: 1.1em;
}
blockquote
{
margin: .6em;
padding-left: .6em;
border-left: 1px solid #ccc;
}
ul
{
list-style-type: circle;
}
li
{
margin: .1em 0 .1em 2em;
line-height: 1.4em;
}
table
{
border-collapse: collapse;
font-size: 1em;
}
hr {
border: none;
border-top: dotted 1px #777;
height: 1px;
color: #777;
margin: .6em 0;
}
}/* end @media print */
/*}}}*/
!StyleSheet
/*{{{*/
[[MptwTheme##StyleSheet]]
.header2 {
background:url(http://simonbaird.com/images/monkeygtd/logo-trans.gif) no-repeat -15px 2px transparent;
padding:5px;
padding-left:80px;
color:white;
font-size:1.3em;
font-weight:bold;
}
#backstageShow { color:[[ColorPalette::PrimaryLight]] ! important; }
/* the png is superior due to alpha transparency. stupid IE */
html>body .header2 {background-image:url(http://simonbaird.com/images/monkeygtd/logo-trans.png)}
.headerShadow, .headerForeground {
padding:0;
}
.mtoolbar { padding:0.1em; padding-top:0.5em;}
.mtoolbar .button { margin-left:0.5em; padding:0.2em 0.3em; margin:0.2em 0.3em; }
.mtoolbar .button.off {background-color:[[ColorPalette::TertiaryMid]]!important; color:black; font-weight:normal;border-color:[[ColorPalette::PrimaryDark]];}
.mtoolbar .button.on {background-color:[[ColorPalette::TertiaryLight]]; color:black; border-color:[[ColorPalette::PrimaryDark]];}
.mtoolbar .button {
-moz-border-radius-topleft: 0.5em;
-moz-border-radius-topright: 0.5em;
}
#newButtons { padding-left:3em; }
#newButtons br { display:none; }
#newButtons .button { background-color:transparent; color:white; border-color:transparent; }
.txtMGTDMain .tabContents {
font-size:120%;
}
.txtMGTDMore .tabContents {
font-size:90%;
}
.tabContents .sliderButton {
font-size:120%;
background-color:[[ColorPalette::TertiaryLight]];
}
.mtoolbar .label { font-size:80%; color:[[ColorPalette::PrimaryLight]]; padding:0.5em;}
#displayArea {
margin: 1em 15.7em 0em 1em; /* use the freed up space */
}
#sidebar, #sidebarOptions
width:18em;
}
#sidebarTabs {
width:100%;
}
#mainMenu { display:none; }
#sidebar .menu a {
font-size:140%;
}
#sidebar .menu ul {
padding-left:2em;
padding-top:0;
margin-top:0;
}
#sidebar .menu h1,
#sidebar .menu h2
{
color:[[ColorPalette::PrimaryDark]];
margin:0;
padding:0;
margin-top:0.25em;
}
#sidebar .menu h1 {
font-size:180%;
}
#sidebar .menu h2 {
font-size:140%;
margin-left:0.5em;
}
.viewer table.twocol,
.viewer table.threecol {
border-style:none ! important;
border-collapse:no-collapse;
width:100%;
padding:0; margin:0;
}
.viewer table.twocol td,
.viewer table.threecol td {
border-style:none ! important;
vertical-align:top;
padding-right:1em;
}
.viewer table.twocol tr,
.viewer table.threecol tr {
border-style:none ! important;
}
.viewer table.twocol td {
width:50%;
}
.viewer table.threecol td {
width:33%;
}
.mgtdList h1 {
border-bottom:1px solid #aaa;
color:#444;
font-size:110%;
margin:0;
padding:0;
}
.mgtdList h1 br {
display:none;
}
.mgtdList h1 .button {
border-color:transparent;
font-weight:bold;
font-size:110%;
}
.mgtdList h1 .button:hover {
border-color:#999;
}
.mgtdList h2 {
border-style:none!important;
font-size:100%;
margin:0; padding:0;
margin-top:0.7em;
margin-left:-0.2em;
color:#444;
}
.mgtdList h2 .button {
border-style:none!important;
}
.mgtdList {
padding:0;
padding-right:1em;
}
.mgtdList .innerList {
padding:0.5em 1em 0em 1em;
}
.tabContents .sliderPanel {
margin-left:2em;
}
.txtMGTDMain .mgtdList .innerList {
font-size:80%;
padding-left:0em;
}
.tabContents li {
margin-left:2em;
}
.mgtdList .plain { padding-left:1em; }
/* TODO why not just make it all of them... */
.mgtdList .action .tiddlyLinkExisting,
.mgtdList .plain .tiddlyLinkExisting,
.mgtdList .tickler .tiddlyLinkExisting
{
font-weight: normal ! important;
}
/* TODO why not just make it all of them... */
.mgtdList .action .tiddlyLink,
.mgtdList .plain .tiddlyLink,
.mgtdList .tickler .tiddlyLink
{
font-weight: normal ! important;
}
.mgtdList .button {
font-weight: normal;
margin:1px;
}
body {
background: [[ColorPalette::TertiaryLight]];
}
.title { font-size:150%; color:black; }
#monkeygtdsidebar h1 {
font-size:120%; color:green;
}
.none { color:[[ColorPalette::TertiaryMid]]; font-size:90%; font-style:italic; }
.postityellow {
background-color:#ffa;
border:2px solid #dd8;
padding-left:1em;
padding-bottom:0.5em;
}
.postityellow h1,
.postityellow h2,
.postityellow h3,
.postityellow h4
{
border-style:none;
}
#sidebar .sliderButton { font-weight:bold; padding-left:0.25em; }
#sidebar .sliderPanel ul { margin-bottom:0px; }
#sidebar .sliderPanel li { font-weight:medium; font-size:90%; }
#sidebar .mgtdList .innerList .tiddlyLink {
font-size:120%;
}
.innerList h3 {
font-size:80%;
margin:0; padding:0;
}
#newButtons .sliderPanel {
background-color:[[ColorPalette::TertiaryMid]];
margin-top:4px;
padding:1em;
border-top:2px solid #444;
border-bottom:2px solid #444;
}
#newButtons .sliderPanel br {
display:inline;
}
#newButtons .sliderPanel .button {
font-weight:bold;
color:black
border:1px solid black;
background-color:#666;
}
.piBox {
width:95%;
height:8em;
}
.smaller { font-size: 85%; }
.scroll10 .innerList {
overflow:auto;
height:12em;
}
.dateBox {
/* TODO make prettier */
font-weight:medium; font-size:120%; margin:0.1em; background-color:#ffd;
border:2px solid [[ColorPalette::TertiaryMid]];
background-color:[[ColorPalette::TertiaryPale]];
text-align:center;
width:8em;
}
.mgtdList .dateBox { font-weight:medium; font-size:100%; }
#ticklerAlert br { display:none; }
.ticklerAlert { padding-left:3em; }
.ticklerAlert .tiddlyLink { color:white; }
/* give a little more space for menu */
#sidebar { width: 21em; /* instead of 16em */ }
#displayArea { margin-right:20.7em; /* instead of 15.7em */ }
#sidebarTabs .tabContents { width:20em; /* instead of 15em */ }
#messageArea .help { width:40em; font-size:90%; }
#searchBox {
position:absolute;
top: 2px;
right: 7em;
z-index:200;
/* make room for backstage link? */
}
#searchBox .button {
display:none;
}
.tabContents .button {
display:block;
}
.tabContents .li .button {
display:inline; /* hack to make for quickopentags in tabTags look right... */
}
.tabContents li .button {
display:inline; /* hack to make for quickopentags in tabTags look right... */
}
.txtMGTDMain .tab {
font-size:120%;
}
.projLink .tiddlyLinkExisting, .projLink {
font-weight:normal;
color:[[ColorPalette::TertiaryDark]];
}
.projLinkFull .tiddlyLinkExisting, .projLinkFull {
font-weight:normal;
color:[[ColorPalette::TertiaryDark]];
font-size:90%;
}
/* ============= new div based columns ================= */
.col {
float: left;
vertical-align:top;
}
/* IE not doing these right :( */
/* .cols3>br, .col>br { display:none; } */
/* so try this instead. it's annoying and will mean you have trouble
with brs in non-mgtdlist content. .normal might help */
.cols2 br, .cols3 br { display:none; }
.mgtdList br, .normal { display:block!important; }
.col .mgtdList { margin-bottom:1.5em; } /* since we're no longer seeing the brs... */
.cols3 .col {
width: 33%;
}
.cols2 .col {
width: 50%;
}
.clear {
clear: left;
}
/* ============= */
#toggleSideBar {
margin-top:0.5em;
margin-right:0.5em;
}
.button.HideSideBarButton {
color:[[ColorPalette::PrimaryLight]];
border-style:none;
font-weight:bold;
font-size:80%;
padding:0em 1em;
background-color:[[ColorPalette::PrimaryMid]];
-moz-border-radius: 0.5em;
}
/* applicable for any printing. (moved from the 3x5 section) */
@media print {
#sidebar, .mtoolbar, .header2, #toggleSideBar, #backstageArea,
#backstageButton, #searchBox, .subtitle, .button {display: none !important;}
#displayArea {margin: 0;}
#contentWrapper .chkOptionInput {border:0; width:0.25cm;}
.titleContainer {border-bottom: 1px dotted #000;}
}
/* for user styles */
[[StyleSheet]]
/*}}}*/
order:3
button:month
buttonLong:monthly
Name: MptwBlack
Background: #000
Foreground: #fff
PrimaryPale: #333
PrimaryLight: #555
PrimaryMid: #888
PrimaryDark: #aaa
SecondaryPale: #111
SecondaryLight: #222
SecondaryMid: #555
SecondaryDark: #888
TertiaryPale: #222
TertiaryLight: #666
TertiaryMid: #888
TertiaryDark: #aaa
Error: #300
This is in progress. Help appreciated.
Name: MptwBlue
Background: #fff
Foreground: #000
PrimaryPale: #cdf
PrimaryLight: #57c
PrimaryMid: #114
PrimaryDark: #012
SecondaryPale: #ffc
SecondaryLight: #fe8
SecondaryMid: #db4
SecondaryDark: #841
TertiaryPale: #eee
TertiaryLight: #ccc
TertiaryMid: #999
TertiaryDark: #666
Error: #f88
/***
|Name:|MptwConfigPlugin|
|Description:|Miscellaneous tweaks used by MPTW|
|Version:|1.0 ($Rev: 3646 $)|
|Date:|$Date: 2008-02-27 02:34:38 +1000 (Wed, 27 Feb 2008) $|
|Source:|http://mptw.tiddlyspot.com/#MptwConfigPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License:|http://mptw.tiddlyspot.com/#MptwConfigPlugin|
!!Note: instead of editing this you should put overrides in MptwUserConfigPlugin
***/
//{{{
var originalReadOnly = readOnly;
config.options.chkHttpReadOnly = false; // means web visitors can experiment with your site by clicking edit
readOnly = false; // needed because the above doesn't work any more post 2.1 (??)
config.options.chkInsertTabs = true; // tab inserts a tab when editing a tiddler
config.views.wikified.defaultText = ""; // don't need message when a tiddler doesn't exist
config.views.editor.defaultText = ""; // don't need message when creating a new tiddler
config.mptwVersion = "2.3.7";
config.macros.mptwVersion={handler:function(place){wikify(config.mptwVersion,place);}};
if (config.options.txtTheme == '')
config.options.txtTheme = 'MptwTheme';
// add to default GettingStarted
config.shadowTiddlers.GettingStarted += "\n\nSee also [[MPTW]].";
// add select theme and palette controls in default OptionsPanel
config.shadowTiddlers.OptionsPanel = config.shadowTiddlers.OptionsPanel.replace(/(\n\-\-\-\-\nAlso see AdvancedOptions)/, "{{select{<<selectTheme>>\n<<selectPalette>>}}}$1");
// these are used by ViewTemplate
config.mptwDateFormat = 'DD/MM/YY';
config.mptwJournalFormat = 'Journal DD/MM/YY';
//}}}
Name: MptwGreen
Background: #fff
Foreground: #000
PrimaryPale: #9b9
PrimaryLight: #385
PrimaryMid: #031
PrimaryDark: #020
SecondaryPale: #ffc
SecondaryLight: #fe8
SecondaryMid: #db4
SecondaryDark: #841
TertiaryPale: #eee
TertiaryLight: #ccc
TertiaryMid: #999
TertiaryDark: #666
Error: #f88
Name: MptwRed
Background: #fff
Foreground: #000
PrimaryPale: #eaa
PrimaryLight: #c55
PrimaryMid: #711
PrimaryDark: #500
SecondaryPale: #ffc
SecondaryLight: #fe8
SecondaryMid: #db4
SecondaryDark: #841
TertiaryPale: #eee
TertiaryLight: #ccc
TertiaryMid: #999
TertiaryDark: #666
Error: #f88
|Name|MptwRounded|
|Description|Mptw Theme with some rounded corners (Firefox only)|
|ViewTemplate|MptwTheme##ViewTemplate|
|EditTemplate|MptwTheme##EditTemplate|
|PageTemplate|MptwTheme##PageTemplate|
|StyleSheet|MptwRoundTheme##StyleSheet|
!StyleSheet
/*{{{*/
[[MptwTheme##StyleSheet]]
.tiddler,
.sliderPanel,
.button,
.tiddlyLink,
.tabContents
{ -moz-border-radius: 1em; }
.tab {
-moz-border-radius-topleft: 0.5em;
-moz-border-radius-topright: 0.5em;
}
#topMenu {
-moz-border-radius-bottomleft: 2em;
-moz-border-radius-bottomright: 2em;
}
/*}}}*/
Name: MptwSmoke
Background: #fff
Foreground: #000
PrimaryPale: #aaa
PrimaryLight: #777
PrimaryMid: #111
PrimaryDark: #000
SecondaryPale: #ffc
SecondaryLight: #fe8
SecondaryMid: #db4
SecondaryDark: #841
TertiaryPale: #eee
TertiaryLight: #ccc
TertiaryMid: #999
TertiaryDark: #666
Error: #f88
|Name|MptwStandard|
|Description|Mptw Theme with the default TiddlyWiki PageLayout|
|ViewTemplate|MptwTheme##ViewTemplate|
|EditTemplate|MptwTheme##EditTemplate|
Name: MptwTeal
Background: #fff
Foreground: #000
PrimaryPale: #B5D1DF
PrimaryLight: #618FA9
PrimaryMid: #1a3844
PrimaryDark: #000
SecondaryPale: #ffc
SecondaryLight: #fe8
SecondaryMid: #db4
SecondaryDark: #841
TertiaryPale: #f8f8f8
TertiaryLight: #bbb
TertiaryMid: #999
TertiaryDark: #888
Error: #f88
|Name|MptwTheme|
|Description|Mptw Theme including custom PageLayout|
|PageTemplate|MptwTheme##PageTemplate|
|ViewTemplate|MptwTheme##ViewTemplate|
|EditTemplate|MptwTheme##EditTemplate|
|StyleSheet|MptwTheme##StyleSheet|
http://mptw.tiddlyspot.com/#MptwTheme ($Rev: 1829 $)
!PageTemplate
<!--{{{-->
<div class='header' macro='gradient vert [[ColorPalette::PrimaryLight]] [[ColorPalette::PrimaryMid]]'>
<div class='headerShadow'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
<div class='headerForeground'>
<span class='siteTitle' refresh='content' tiddler='SiteTitle'></span>
<span class='siteSubtitle' refresh='content' tiddler='SiteSubtitle'></span>
</div>
</div>
<!-- horizontal MainMenu -->
<div id='topMenu' refresh='content' tiddler='MainMenu'></div>
<!-- original MainMenu menu -->
<!-- <div id='mainMenu' refresh='content' tiddler='MainMenu'></div> -->
<div id='sidebar'>
<div id='sidebarOptions' refresh='content' tiddler='SideBarOptions'></div>
<div id='sidebarTabs' refresh='content' force='true' tiddler='SideBarTabs'></div>
</div>
<div id='displayArea'>
<div id='messageArea'></div>
<div id='tiddlerDisplay'></div>
</div>
<!--}}}-->
!ViewTemplate
<!--{{{-->
[[MptwTheme##ViewTemplateToolbar]]
<div class="tagglyTagged" macro="tags"></div>
<div class='titleContainer'>
<span class='title' macro='view title'></span>
<span macro="miniTag"></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 macro="else">
<div class='viewer' macro='view text wikified'></div>
</div>
<div class="tagglyTagging" macro="tagglyTagging"></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 macro='newJournalHere {{config.mptwJournalFormat?config.mptwJournalFormat:"MM/0DD/YY"}}'></span>
</div>
<!--}}}-->
!EditTemplate
<!--{{{-->
<div class="toolbar" macro="toolbar +saveTiddler saveCloseTiddler closeOthers -cancelTiddler cancelCloseTiddler deleteTiddler"></div>
<div class="title" macro="view title"></div>
<div class="editLabel">Title</div><div class="editor" macro="edit title"></div>
<div macro='annotations'></div>
<div macro="showWhenExists EditPanelTemplate">[[EditPanelTemplate]]</div>
<div class="editLabel">Content</div><div class="editor" macro="edit text"></div>
<div class="editLabel">Tags</div><div class="editor" macro="edit tags"></div>
<div class="editorFooter"><span macro="message views.editor.tagPrompt"></span><span macro="tagChooser"></span></div>
<!--}}}-->
!StyleSheet
/*{{{*/
/* a contrasting background so I can see where one tiddler ends and the other begins */
body {
background: [[ColorPalette::TertiaryLight]];
}
/* sexy colours and font for the header */
.headerForeground {
color: [[ColorPalette::PrimaryPale]];
}
.headerShadow, .headerShadow a {
color: [[ColorPalette::PrimaryMid]];
}
/* separate the top menu parts */
.headerForeground, .headerShadow {
padding: 1em 1em 0;
}
.headerForeground, .headerShadow {
font-family: 'Trebuchet MS' sans-serif;
font-weight:bold;
}
.headerForeground .siteSubtitle {
color: [[ColorPalette::PrimaryLight]];
}
.headerShadow .siteSubtitle {
color: [[ColorPalette::PrimaryMid]];
}
/* make shadow go and down right instead of up and left */
.headerShadow {
left: 1px;
top: 1px;
}
/* prefer monospace for editing */
.editor textarea, .editor input {
font-family: 'Consolas' monospace;
background-color:[[ColorPalette::TertiaryPale]];
}
/* sexy tiddler titles */
.title {
font-size: 250%;
color: [[ColorPalette::PrimaryLight]];
font-family: 'Trebuchet MS' sans-serif;
}
/* more subtle tiddler subtitle */
.subtitle {
padding:0px;
margin:0px;
padding-left:1em;
font-size: 90%;
color: [[ColorPalette::TertiaryMid]];
}
.subtitle .tiddlyLink {
color: [[ColorPalette::TertiaryMid]];
}
/* a little bit of extra whitespace */
.viewer {
padding-bottom:3px;
}
/* don't want any background color for headings */
h1,h2,h3,h4,h5,h6 {
background-color: transparent;
color: [[ColorPalette::Foreground]];
}
/* give tiddlers 3d style border and explicit background */
.tiddler {
background: [[ColorPalette::Background]];
border-right: 2px [[ColorPalette::TertiaryMid]] solid;
border-bottom: 2px [[ColorPalette::TertiaryMid]] solid;
margin-bottom: 1em;
padding:1em 2em 2em 1.5em;
}
/* make options slider look nicer */
#sidebarOptions .sliderPanel {
border:solid 1px [[ColorPalette::PrimaryLight]];
}
/* the borders look wrong with the body background */
#sidebar .button {
border-style: none;
}
/* this means you can put line breaks in SidebarOptions for readability */
#sidebarOptions br {
display:none;
}
/* undo the above in OptionsPanel */
#sidebarOptions .sliderPanel br {
display:inline;
}
/* horizontal main menu stuff */
#displayArea {
margin: 1em 15.7em 0em 1em; /* use the freed up space */
}
#topMenu br {
display: none;
}
#topMenu {
background: [[ColorPalette::PrimaryMid]];
color:[[ColorPalette::PrimaryPale]];
}
#topMenu {
padding:2px;
}
#topMenu .button, #topMenu .tiddlyLink, #topMenu a {
margin-left: 0.5em;
margin-right: 0.5em;
padding-left: 3px;
padding-right: 3px;
color: [[ColorPalette::PrimaryPale]];
font-size: 115%;
}
#topMenu .button:hover, #topMenu .tiddlyLink:hover {
background: [[ColorPalette::PrimaryDark]];
}
/* make 2.2 act like 2.1 with the invisible buttons */
.toolbar {
visibility:hidden;
}
.selected .toolbar {
visibility:visible;
}
/* experimental. this is a little borked in IE7 with the button
* borders but worth it I think for the extra screen realestate */
.toolbar { float:right; }
/* fix for TaggerPlugin. from sb56637. improved by FND */
.popup li .tagger a {
display:inline;
}
/* makes theme selector look a little better */
#sidebarOptions .sliderPanel .select .button {
padding:0.5em;
display:block;
}
#sidebarOptions .sliderPanel .select br {
display:none;
}
/* make it print a little cleaner */
@media print {
#topMenu {
display: none ! important;
}
/* not sure if we need all the importants */
.tiddler {
border-style: none ! important;
margin:0px ! important;
padding:0px ! important;
padding-bottom:2em ! important;
}
.tagglyTagging .button, .tagglyTagging .hidebutton {
display: none ! important;
}
.headerShadow {
visibility: hidden ! important;
}
.tagglyTagged .quickopentag, .tagged .quickopentag {
border-style: none ! important;
}
.quickopentag a.button, .miniTag {
display: none ! important;
}
}
/* get user styles specified in StyleSheet */
[[StyleSheet]]
/*}}}*/
|Name|MptwTrim|
|Description|Mptw Theme with a reduced header to increase useful space|
|ViewTemplate|MptwTheme##ViewTemplate|
|EditTemplate|MptwTheme##EditTemplate|
|PageTemplate|MptwTrimTheme##PageTemplate|
|StyleSheet|MptwTrimTheme##StyleSheet|
!StyleSheet
/*{{{*/
[[MptwTheme##StyleSheet]]
/*}}}*/
!PageTemplate
<!--{{{-->
<!-- horizontal MainMenu -->
<div id='topMenu' macro='gradient vert [[ColorPalette::PrimaryLight]] [[ColorPalette::PrimaryMid]]'>
<span refresh='content' tiddler='SiteTitle' style="padding-left:1em;font-weight:bold;"></span>:
<span refresh='content' tiddler='MainMenu'></span>
</div>
<div id='sidebar'>
<div id='sidebarOptions'>
<div refresh='content' tiddler='SideBarOptions'></div>
<div style="margin-left:0.1em;"
macro='slider chkTabSliderPanel SideBarTabs {{"tabs \u00bb"}} "Show Timeline, All, Tags, etc"'></div>
</div>
</div>
<div id='displayArea'>
<div id='messageArea'></div>
<div id='tiddlerDisplay'></div>
</div>
/***
|Description:|A place to put your config tweaks so they aren't overwritten when you upgrade MPTW|
See http://www.tiddlywiki.org/wiki/Configuration_Options for other options you can set. In some cases where there are clashes with other plugins it might help to rename this to zzMptwUserConfigPlugin so it gets executed last.
***/
//{{{
// example: set your preferred date format
//config.mptwDateFormat = 'MM/0DD/YY';
//config.mptwJournalFormat = 'Journal MM/0DD/YY';
// example: set the theme you want to start with
// config.options.txtTheme = 'MptwRoundTheme';
// example: switch on autosave, backups and set a backup folder
//config.options.chkSaveBackups = true;
//config.options.chkAutoSave = true;
//config.options.txtBackupFolder = 'twbackup';
//}}}
Whitman Pictures/Museum Splash.jpg
<<newSavedTiddler title:'New Action' label:'+ action' tag:{{'Action Next [['+config.macros.mgtdList.getRealm()+']]'}}>>
<<newSavedTiddler title:'New Project' label:'+ project' tag:{{'Project Active [['+config.macros.mgtdList.getRealm()+']]'}}>>
<<newSavedTiddler title:'New Tickler' label:'+ tickler' tag:{{'Tickler Once Enabled [['+config.macros.mgtdList.getRealm()+']]'}}>>
<slider quick add>
<<processInbox>>
</slider>
/***
|Name:|NewHerePlugin|
|Description:|Creates the new here and new journal macros|
|Version:|3.0 ($Rev: 3861 $)|
|Date:|$Date: 2008-03-08 10:53:09 +1000 (Sat, 08 Mar 2008) $|
|Source:|http://mptw.tiddlyspot.com/#NewHerePlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License|http://mptw.tiddlyspot.com/#TheBSDLicense|
***/
//{{{
merge(config.macros, {
newHere: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]>>",place,null,tiddler);
}
},
newJournalHere: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newJournal "+paramString+" tag:[["+tiddler.title+"]]>>",place,null,tiddler);
}
}
});
//}}}
/***
|Name:|NewMeansNewPlugin|
|Description:|If 'New Tiddler' already exists then create 'New Tiddler (1)' and so on|
|Version:|1.1 ($Rev: 2263 $)|
|Date:|$Date: 2007-06-13 04:22:32 +1000 (Wed, 13 Jun 2007) $|
|Source:|http://mptw.tiddlyspot.com/empty.html#NewMeansNewPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License|http://mptw.tiddlyspot.com/#TheBSDLicense|
!!Note: I think this should be in the core
***/
//{{{
String.prototype.getNextFreeName = function() {
var numberRegExp = / \(([0-9]+)\)$/;
var match = numberRegExp.exec(this);
if (match) {
var num = parseInt(match[1]) + 1;
return this.replace(numberRegExp," ("+num+")");
}
else {
return this + " (1)";
}
}
config.macros.newTiddler.checkForUnsaved = function(newName) {
var r = false;
story.forEachTiddler(function(title,element) {
if (title == newName)
r = true;
});
return r;
}
config.macros.newTiddler.getName = function(newName) {
while (store.getTiddler(newName) || config.macros.newTiddler.checkForUnsaved(newName))
newName = newName.getNextFreeName();
return newName;
}
config.macros.newTiddler.onClickNewTiddler = function()
{
var title = this.getAttribute("newTitle");
if(this.getAttribute("isJournal") == "true") {
var now = new Date();
title = now.formatString(title.trim());
}
title = config.macros.newTiddler.getName(title); // <--- only changed bit
var params = this.getAttribute("params");
var tags = params ? params.split("|") : [];
var focus = this.getAttribute("newFocus");
var template = this.getAttribute("newTemplate");
var customFields = this.getAttribute("customFields");
story.displayTiddler(null,title,template,false,null,null);
var tiddlerElem = document.getElementById(story.idPrefix + title);
if(customFields)
story.addCustomFields(tiddlerElem,customFields);
var text = this.getAttribute("newText");
if(typeof text == "string")
story.getTiddlerField(title,"text").value = text.format([title]);
for(var t=0;t<tags.length;t++)
story.setTiddlerTag(title,tags[t],+1);
story.focusTiddler(title,focus);
return false;
};
//}}}
config.macros.newSavedTiddler={};
config.macros.newSavedTiddler.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
if(readOnly){
return false;
}
var p = paramString.parseParams("anon",null,true,false,false);
var label = getParam(p,"label","NewSavedTiddler");
var tooltip = getParam(p,"tooltip","Create a new saved tiddler");
var btn = createTiddlyButton(place,label,tooltip,this.onClick);
btn.params = paramString;
return false;
};
config.macros.newSavedTiddler.onClick = function(e) {
var p = this.params.parseParams("anon",null,true,false,false);
var titlePrompt = getParam(p,"prompt","Enter the title for the new tiddler:");
var title = prompt(titlePrompt,"");
if(title){
title = config.macros.newTiddler.getName(title); // from NewMeansNewPlugin
var text = getParam(p,"text","");
var tags = getParam(p,"tag","");
var fields = getParam(p,"fields","").decodeHashMap();
tags = tags.replace(/\[\(/g,'[[');
tags = tags.replace(/\)\]/g,']]');
store.saveTiddler(title,title,text,config.options.txtUserName,new Date(),tags,fields);
story.displayTiddler(this,title);
return false;
}
}
order:1
button:n
buttonLong:next
<<mgtdList title:'Next Actions' startTag:Action tags:'Next && !Done' view:ActionProj mode:global
where:tiddler.hasActiveProject()
newButtonTags:'Action Next'
>>
<<mgtdList title:'Next Actions by Context' startTag:Action tags:'Next && !Done' view:ActionProj mode:global
group:Context
newButtonTags:'Action Next'
where:tiddler.hasActiveProject()
>>
<<mgtdList startTag:Action tags:'Next && !Done' view:Action mode:global
group:Project
gView:bold
newButtonTags:'Action Next'
where:tiddler.hasActiveProject()
>>
{{cols2{
{{col{
<<mgtdList startTag:Action title:'Next' tags:'Next && !Done' view:ActionProj mode:global
newButtonTags:'Action Next'
where:tiddler.hasActiveProject()
>>
}}}
{{col{
<<mgtdList startTag:Action title:'Waiting' tags:'[(Waiting For)] && !Done' view:ActionProj mode:global
newButtonTags:'Action [(Waiting For)]'
where:tiddler.hasActiveProject()
>>
}}}
{{clear{
}}}
}}}
{{cols2{
{{col{
<<mgtdList startTag:Action title:'Next' tags:'Next && !Done' view:ActionProj mode:global
group:Context
gView:Context
newButtonTags:'Action Next'
where:tiddler.hasActiveProject()
>>
}}}
{{col{
<<mgtdList startTag:Action title:'Waiting' tags:'[(Waiting For)] && !Done' view:ActionProj mode:global
group:Context
gView:Context
newButtonTags:'Action [(Waiting For)]'
where:tiddler.hasActiveProject()
>>
}}}
{{clear{
}}}
}}}
{{cols2{
{{col{
<<mgtdList startTag:Action title:'Next' tags:'Next && !Done' view:Action mode:global
group:Project
gView:bold
newButtonTags:'Action Next'
where:tiddler.hasActiveProject()
>>
}}}
{{col{
<<mgtdList startTag:Action title:'Waiting' tags:'[(Waiting For)] && !Done' view:Action mode:global
group:Project
gView:bold
where:tiddler.hasActiveProject()
newButtonTags:'Action [(Waiting For)]'
>>
}}}
{{clear{
}}}
}}}
order:1
button:none
buttonLong:one time
/***
|Name:|PrettyDatesPlugin|
|Description:|Provides a new date format ('pppp') that displays times such as '2 days ago'|
|Version:|1.0 ($Rev: 3646 $)|
|Date:|$Date: 2008-02-27 02:34:38 +1000 (Wed, 27 Feb 2008) $|
|Source:|http://mptw.tiddlyspot.com/#PrettyDatesPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License:|http://mptw.tiddlyspot.com/#TheBSDLicense|
!!Notes
* If you want to you can rename this plugin. :) Some suggestions: LastUpdatedPlugin, RelativeDatesPlugin, SmartDatesPlugin, SexyDatesPlugin.
* Inspired by http://ejohn.org/files/pretty.js
***/
//{{{
Date.prototype.prettyDate = function() {
var diff = (((new Date()).getTime() - this.getTime()) / 1000);
var day_diff = Math.floor(diff / 86400);
if (isNaN(day_diff)) return "";
else if (diff < 0) return "in the future";
else if (diff < 60) return "just now";
else if (diff < 120) return "1 minute ago";
else if (diff < 3600) return Math.floor(diff/60) + " minutes ago";
else if (diff < 7200) return "1 hour ago";
else if (diff < 86400) return Math.floor(diff/3600) + " hours ago";
else if (day_diff == 1) return "Yesterday";
else if (day_diff < 7) return day_diff + " days ago";
else if (day_diff < 14) return "a week ago";
else if (day_diff < 31) return Math.ceil(day_diff/7) + " weeks ago";
else if (day_diff < 62) return "a month ago";
else if (day_diff < 365) return "about " + Math.ceil(day_diff/31) + " months ago";
else if (day_diff < 730) return "a year ago";
else return Math.ceil(day_diff/365) + " years ago";
}
Date.prototype.formatString_orig_mptw = Date.prototype.formatString;
Date.prototype.formatString = function(template) {
return this.formatString_orig_mptw(template).replace(/pppp/,this.prettyDate());
}
// for MPTW. otherwise edit your ViewTemplate as required.
// config.mptwDateFormat = 'pppp (DD/MM/YY)';
config.mptwDateFormat = 'pppp';
//}}}
[[Quick Add]]
''<<newSavedTiddler label:'new next action' tag:{{'Action Next [['+config.macros.mgtdList.getRealm()+']]'}}>>/%/%
%/<<newSavedTiddler label:'new waiting action' tag:{{'Action [(Waiting For)] [['+config.macros.mgtdList.getRealm()+']]'}}>>/%
%/<<newSavedTiddler label:'new future action' tag:{{'Action Future [['+config.macros.mgtdList.getRealm()+']]'}}>>/%
%/<<newSavedTiddler label:'new active project' tag:{{'Project Active [['+config.macros.mgtdList.getRealm()+']]'}}>>/%
%/<<newSavedTiddler label:'new someday project' tag:{{'Project Someday/Maybe [['+config.macros.mgtdList.getRealm()+']]'}}>>/%
%/<<newSavedTiddler label:'new tickler' tag:{{'Tickler Once Enabled [['+config.macros.mgtdList.getRealm()+']]'}}>>/%
%/<<newSavedTiddler label:'new contact' tag:{{'Contact [['+config.macros.mgtdList.getRealm()+']]'}}>>/%
%/<<newSavedTiddler label:'new context' tag:{{'Context [['+config.macros.mgtdList.getRealm()+']]'}}>>/%
%/<<newSavedTiddler label:'new area' tag:{{'Area [['+config.macros.mgtdList.getRealm()+']]'}}>>/%
%/<<newSavedTiddler label:'new realm' tag:{{'Realm [['+config.macros.mgtdList.getRealm()+']]'}}>>''
!!Recent
<<mgtdList mode:global tags:'Project || Action' view:plain sort:-modified >>
<html>
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">Subject: </th>
<td>Re: [community] name this tool?</td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">Date: </th>
<td>Thu, 27 Mar 2008 10:52:48 -0700</td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">From: </th>
<td>forbesdm <forbesdm@whitman.edu></td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">To: </th>
<td>Philip Silouan Thompson <thompsps@whitman.edu></td>
</tr>
<tr>
<th align="right" nowrap="nowrap" valign="baseline">CC: </th>
<td>John Bogley <bogleyjw@whitman.edu>, 'Nina Lerman'
<lermanne@whitman.edu>, bettison@whitman.edu</td>
</tr>
</tbody>
</table>
<br>
<br>
Dear all.
<div><br class="khtml-block-placeholder">
</div>
<div>I am all for connecting and networking. Might I recommend that
you look at the webpage for Haverford from the panel of 14. There's a
link that says simply "The Arts'" on the home page. If you look at the
page on the arts, you will see that it includes all applicable venues
on campus <a moz-do-not-send="true"
href="http://www.haverford.edu/thearts/">http://www.haverford.edu/thearts/</a>.
Perhaps something along these lines would meet the needs expressed.
I'd be happy to get together at some point to discuss this and other
options.</div>
<div><br class="khtml-block-placeholder">
</div>
<div>Best,</div>
<div>Dawn Forbes</div>
<div>Interim Director for Sheehan Gallery</div>
<div><br class="khtml-block-placeholder">
</div>
<div><br>
<div>
<div>On Mar 27, 2008, at 10:14 AM, Philip Silouan Thompson wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite"> Hi John,<br>
<br>
When Nina and I spoke about this yesterday I thought the Maxey Museum
ought to be listed on a new page together with the Sheehan and Stevens
Galleries -- and perhaps Harper Joy Theatre? (Others?) The best name
I've come up with so far is "Art and Culture on Campus" which doesn't
thrill me.<br>
<br>
Anyway, I've been thinking that this new page ought to be linked from
some of these pages:<br>
<ul>
<li><a moz-do-not-send="true"
href="http://www.whitman.edu/content/student-activities">Student
Activities</a> (which already links to Stevens and HJT)</li>
<li>Under <i>About Whitman</i>, either <a moz-do-not-send="true"
href="http://www.whitman.edu/content/about/campuscommunity">Campus
& Community</a> or <a moz-do-not-send="true"
href="http://www.whitman.edu/content/about/tradition">Whitman Tradition</a></li>
<li><a moz-do-not-send="true"
href="http://www.whitman.edu/content/parents">Parents</a></li>
<li><a moz-do-not-send="true"
href="http://www.whitman.edu/content/others">Others</a></li>
<li>There are a few things listed under <a moz-do-not-send="true"
href="http://www.whitman.edu/content/index/acad">Academic Departments</a>
that aren't academic departments; might this new page go there?<br>
</li>
</ul>
There's also a very nice printed brochure meant to guide a visitor on a
walking tour of campus outdoor art. The new page might promote the
outdoor-art-gallery aspect, and link to <i>Visit Whitman</i>.<br>
<br>
In any case, all I need to make this happen is a name for the new page
("Art and Culture on Campus" is my working title), and a quick
paragraph describing each museum or gallery linked from the page. I can
steal text from the target pages, or ask curators and faculty to write
something up.<br>
<br>
That's what I've come up with so far. Thoughts, suggestions, issues?<br>
<br>
-- Phil<br>
<br>
<hr size="2" width="100%"><br>
John Bogley wrote:
<blockquote cite="mid:889B12E2507E44DE801E85D9FF6B551D@whitman.edu"
type="cite">
<pre wrap="">It has come to my attention that we do not have the Maxey Musuem linked<br>anywhere off the home page. It seems to me that we need to add links to<br>both this site (see below) and the Sheehan Gallery, which I could not link<br>to off any logical page this morning as I was thinking through where we migh<br>wish to put this link. The logical spot might be off the academics home<br>page or off the about Whitman homepage. I'm copying Laurie B-V on this as<br>well as Nina Lehrman and Dawn Forbes to think this through with others.<br> </pre>
</blockquote>
<br>
</blockquote>
</div>
<br>
</div></html>
{{cols3{
{{col{
<<mgtdList title:'Active Projects' startTag:Project tags:'Active && !Complete' view:Project mode:global
newButtonTags:'Project Active'
>>
}}}
{{col{
<<mgtdList title:'Future Projects' startTag:Project tags:'Someday/Maybe && !Complete' view:Project mode:global
newButtonTags:'Project Someday/Maybe'
>>
}}}
{{col{
<<mgtdList title:'Completed Projects' startTag:Project tags:'Complete' view:ProjectComplete mode:global>>
}}}
{{clear{
}}}
}}}
{{cols3{
{{col{
<<mgtdList title:'Active Projects' startTag:Project tags:'Active && !Complete' view:Project mode:global
group:Area
gView:bold
newButtonTags:'Project Active'
>>
}}}
{{col{
<<mgtdList title:'Someday/Maybe Projects' startTag:Project tags:'Someday/Maybe && !Complete' view:Project mode:global
group:Area
gView:bold
newButtonTags:'Project Someday/Maybe'
>>
}}}
{{col{
<<mgtdList title:'Completed Projects' startTag:Project tags:'Complete' view:ProjectComplete mode:global
group:Area
gView:bold
newButtonTags:'Project Active Complete'
>>
}}}
{{clear{
}}}
}}}
/***
|Name:|QuickOpenTagPlugin|
|Description:|Changes tag links to make it easier to open tags as tiddlers|
|Version:|3.0.1 ($Rev: 3861 $)|
|Date:|$Date: 2008-03-08 10:53:09 +1000 (Sat, 08 Mar 2008) $|
|Source:|http://mptw.tiddlyspot.com/#QuickOpenTagPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License:|http://mptw.tiddlyspot.com/#TheBSDLicense|
***/
//{{{
config.quickOpenTag = {
dropdownChar: (document.all ? "\u25bc" : "\u25be"), // the little one doesn't work in IE?
createTagButton: function(place,tag,excludeTiddler) {
// little hack so we can do this: <<tag PrettyTagName|RealTagName>>
var splitTag = tag.split("|");
var pretty = tag;
if (splitTag.length == 2) {
tag = splitTag[1];
pretty = splitTag[0];
}
var sp = createTiddlyElement(place,"span",null,"quickopentag");
createTiddlyText(createTiddlyLink(sp,tag,false),pretty);
var theTag = createTiddlyButton(sp,config.quickOpenTag.dropdownChar,
config.views.wikified.tag.tooltip.format([tag]),onClickTag);
theTag.setAttribute("tag",tag);
if (excludeTiddler)
theTag.setAttribute("tiddler",excludeTiddler);
return(theTag);
},
miniTagHandler: function(place,macroName,params,wikifier,paramString,tiddler) {
var tagged = store.getTaggedTiddlers(tiddler.title);
if (tagged.length > 0) {
var theTag = createTiddlyButton(place,config.quickOpenTag.dropdownChar,
config.views.wikified.tag.tooltip.format([tiddler.title]),onClickTag);
theTag.setAttribute("tag",tiddler.title);
theTag.className = "miniTag";
}
},
allTagsHandler: function(place,macroName,params) {
var tags = store.getTags(params[0]);
var filter = params[1]; // new feature
var ul = createTiddlyElement(place,"ul");
if(tags.length == 0)
createTiddlyElement(ul,"li",null,"listTitle",this.noTags);
for(var t=0; t<tags.length; t++) {
var title = tags[t][0];
if (!filter || (title.match(new RegExp('^'+filter)))) {
var info = getTiddlyLinkInfo(title);
var theListItem =createTiddlyElement(ul,"li");
var theLink = createTiddlyLink(theListItem,tags[t][0],true);
var theCount = " (" + tags[t][1] + ")";
theLink.appendChild(document.createTextNode(theCount));
var theDropDownBtn = createTiddlyButton(theListItem," " +
config.quickOpenTag.dropdownChar,this.tooltip.format([tags[t][0]]),onClickTag);
theDropDownBtn.setAttribute("tag",tags[t][0]);
}
}
},
// todo fix these up a bit
styles: [
"/*{{{*/",
"/* created by QuickOpenTagPlugin */",
".tagglyTagged .quickopentag, .tagged .quickopentag ",
" { margin-right:1.2em; border:1px solid #eee; padding:2px; padding-right:0px; padding-left:1px; }",
".quickopentag .tiddlyLink { padding:2px; padding-left:3px; }",
".quickopentag a.button { padding:1px; padding-left:2px; padding-right:2px;}",
"/* extra specificity to make it work right */",
"#displayArea .viewer .quickopentag a.button, ",
"#displayArea .viewer .quickopentag a.tiddyLink, ",
"#mainMenu .quickopentag a.tiddyLink, ",
"#mainMenu .quickopentag a.tiddyLink ",
" { border:0px solid black; }",
"#displayArea .viewer .quickopentag a.button, ",
"#mainMenu .quickopentag a.button ",
" { margin-left:0px; padding-left:2px; }",
"#displayArea .viewer .quickopentag a.tiddlyLink, ",
"#mainMenu .quickopentag a.tiddlyLink ",
" { margin-right:0px; padding-right:0px; padding-left:0px; margin-left:0px; }",
"a.miniTag {font-size:150%;} ",
"#mainMenu .quickopentag a.button ",
" /* looks better in right justified main menus */",
" { margin-left:0px; padding-left:2px; margin-right:0px; padding-right:0px; }",
"#topMenu .quickopentag { padding:0px; margin:0px; border:0px; }",
"#topMenu .quickopentag .tiddlyLink { padding-right:1px; margin-right:0px; }",
"#topMenu .quickopentag .button { padding-left:1px; margin-left:0px; border:0px; }",
"/*}}}*/",
""].join("\n"),
init: function() {
// we fully replace these builtins. can't hijack them easily
window.createTagButton = this.createTagButton;
config.macros.allTags.handler = this.allTagsHandler;
config.macros.miniTag = { handler: this.miniTagHandler };
config.shadowTiddlers["QuickOpenTagStyles"] = this.styles;
store.addNotification("QuickOpenTagStyles",refreshStyles);
}
}
config.quickOpenTag.init();
//}}}
{{cols2{
{{col{
<<mgtdList title:'Reference Items For Active Project' tag:Reference startTag:Reference view:plain mode:global
group:Project
gView:bold
newButtonTags:'Reference'
where:tiddler.hasActiveProject()
>>
}}}
{{col{
<<mgtdList title:'Other Reference Items' tag:Reference startTag:Reference view:plain mode:global
group:Project
gView:bold
newButtonTags:'Reference'
where:!tiddler.hasActiveProject()
>>
}}}
{{clear{
}}}
}}}
/***
|Name:|RenameTagsPlugin|
|Description:|Allows you to easily rename or delete tags across multiple tiddlers|
|Version:|3.0 ($Rev: 3861 $)|
|Date:|$Date: 2008-03-08 10:53:09 +1000 (Sat, 08 Mar 2008) $|
|Source:|http://mptw.tiddlyspot.com/#RenameTagsPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License|http://mptw.tiddlyspot.com/#TheBSDLicense|
Rename a tag and you will be prompted to rename it in all its tagged tiddlers.
***/
//{{{
config.renameTags = {
prompts: {
rename: "Rename the tag '%0' to '%1' in %2 tidder%3?",
remove: "Remove the tag '%0' from %1 tidder%2?"
},
removeTag: function(tag,tiddlers) {
store.suspendNotifications();
for (var i=0;i<tiddlers.length;i++) {
store.setTiddlerTag(tiddlers[i].title,false,tag);
}
store.resumeNotifications();
store.notifyAll();
},
renameTag: function(oldTag,newTag,tiddlers) {
store.suspendNotifications();
for (var i=0;i<tiddlers.length;i++) {
store.setTiddlerTag(tiddlers[i].title,false,oldTag); // remove old
store.setTiddlerTag(tiddlers[i].title,true,newTag); // add new
}
store.resumeNotifications();
store.notifyAll();
},
storeMethods: {
saveTiddler_orig_renameTags: TiddlyWiki.prototype.saveTiddler,
saveTiddler: function(title,newTitle,newBody,modifier,modified,tags,fields) {
if (title != newTitle) {
var tagged = this.getTaggedTiddlers(title);
if (tagged.length > 0) {
// then we are renaming a tag
if (confirm(config.renameTags.prompts.rename.format([title,newTitle,tagged.length,tagged.length>1?"s":""])))
config.renameTags.renameTag(title,newTitle,tagged);
if (!this.tiddlerExists(title) && newBody == "")
// dont create unwanted tiddler
return null;
}
}
return this.saveTiddler_orig_renameTags(title,newTitle,newBody,modifier,modified,tags,fields);
},
removeTiddler_orig_renameTags: TiddlyWiki.prototype.removeTiddler,
removeTiddler: function(title) {
var tagged = this.getTaggedTiddlers(title);
if (tagged.length > 0)
if (confirm(config.renameTags.prompts.remove.format([title,tagged.length,tagged.length>1?"s":""])))
config.renameTags.removeTag(title,tagged);
return this.removeTiddler_orig_renameTags(title);
}
},
init: function() {
merge(TiddlyWiki.prototype,this.storeMethods);
}
}
config.renameTags.init();
//}}}
I am writing to ask that you please update the Spanish department webpage for the fall. The following areas are the ones that need urgent updating:
1. In the academics page at http://www.whitman.edu/content/spanish/academics -- can you please include the information from the 2008-2009 catalog? It currently lists the previous year's info and we have changed the major/minor requirements, so it needs to be updated entirely. We are also in the midsts of updating the final exam guide, as soon as the PDF is ready, I can send to you to add as a link. For now, can you please just remove the previous guide? Thanks
2. In the courses page at http://www.whitman.edu/content/spanish/academics/courses -- can you please update with this year's catalog info? Most of the courses (with few exceptions) have been changed/updated, so perhaps it is best to update the entire page with the new info from the catalog.
3. And finally, in the people page at http://www.whitman.edu/content/spanish/people -- we need to add two new professors, but I am yet to collect their info - so as soon as I have that, I can send it to you. But can you remove Andres Lema-Hincapie, as he is no longer at Whitman? Thanks.
[[Projects Dashboard]]
[[Projects Dashboard by Area]]
[[Action Dashboard by Project]]
[[Active Projects With No Next Action]]
[[Delegated Tasks Dashboard]]
[[Cleanup]]
[[Subprojects]]
<slider+ Areas>
<<mgtdList startTag:Project tags:'Active && !Complete' groupCountOnly:yes group:Area gView:plain>>
</slider>
<slider All areas>
<<mgtdList startTag:Area>>
</slider>
Interview tabela dn teleconference
Photos top Thorin
/***
|Name:|SaveCloseTiddlerPlugin|
|Description:|Provides two extra toolbar commands, saveCloseTiddler and cancelCloseTiddler|
|Version:|3.0 ($Rev: 3861 $)|
|Date:|$Date: 2008-03-08 10:53:09 +1000 (Sat, 08 Mar 2008) $|
|Source:|http://mptw.tiddlyspot.com/#SaveCloseTiddlerPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License:|http://mptw.tiddlyspot.com/#TheBSDLicense|
To use these you must add them to the tool bar in your EditTemplate
***/
//{{{
merge(config.commands,{
saveCloseTiddler: {
text: 'done/close',
tooltip: 'Save changes to this tiddler and close it',
handler: function(e,src,title) {
config.commands.saveTiddler.handler(e,src,title);
config.commands.closeTiddler.handler(e,src,title);
return false;
}
},
cancelCloseTiddler: {
text: 'cancel/close',
tooltip: 'Undo changes to this tiddler and close it',
handler: function(e,src,title) {
config.commands.cancelTiddler.handler(e,src,title);
config.commands.closeTiddler.handler(e,src,title);
return false;
}
}
});
//}}}
Silouan,
Looking ahead to Sunday 7/20, I don't have and can't find music for St Thomas of Mt Maleon and St Acacius. Can you work your composing magic and set the texts for us?
Many thanks-
Christine
ps- Steve and Elena are in the summer musical and have early calls on Sat nights (5:30) starting tonight so I will not be at vespers the next 4 weeks.
Trop : Tone 4: O God of our Fathers, /
Who ever dealest with us according to Thy gentleness, /
withdraw not Thy mercy from us, /
but by their entreaties /
govern our life in peace.
Kontak: Tone 4: Truly thou didst show forth a great victory! /
Wherefore, aflame with divine life, /
thou didst vanquish the corrupt king and all beautiful things, /
making thine abode on Mount Maleon, /
from whence thou didst ascend /
to the King of kings in the heavens. /
O Thomas, pray thou unceasingly for us all.
Tone 2:
Forsaking the world, thou didst follow Christ from childhood, /
O all-wise and venerable Acacius, /
and, emulating His voluntary humility, /
thou didst cast down the prideful tyrant. /
Pray thou unceasingly in behalf of us all.
/***
|Name:|SelectThemePlugin|
|Description:|Lets you easily switch theme and palette|
|Version:|1.0 ($Rev: 3646 $)|
|Date:|$Date: 2008-02-27 02:34:38 +1000 (Wed, 27 Feb 2008) $|
|Source:|http://mptw.tiddlyspot.com/#SelectThemePlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License:|http://mptw.tiddlyspot.com/#TheBSDLicense|
!Notes
* Borrows largely from ThemeSwitcherPlugin by Martin Budden http://www.martinswiki.com/#ThemeSwitcherPlugin
* Theme is cookie based. But set a default by setting config.options.txtTheme in MptwConfigPlugin (for example)
* Palette is not cookie based. It actually overwrites your ColorPalette tiddler when you select a palette, so beware.
!Usage
* {{{<<selectTheme>>}}} makes a dropdown selector
* {{{<<selectPalette>>}}} makes a dropdown selector
* {{{<<applyTheme>>}}} applies the current tiddler as a theme
* {{{<<applyPalette>>}}} applies the current tiddler as a palette
* {{{<<applyTheme TiddlerName>>}}} applies TiddlerName as a theme
* {{{<<applyPalette TiddlerName>>}}} applies TiddlerName as a palette
***/
//{{{
config.macros.selectTheme = {
label: {
selectTheme:"select theme",
selectPalette:"select palette"
},
prompt: {
selectTheme:"Select the current theme",
selectPalette:"Select the current palette"
},
tags: {
selectTheme:'systemTheme',
selectPalette:'systemPalette'
}
};
config.macros.selectTheme.handler = function(place,macroName)
{
var btn = createTiddlyButton(place,this.label[macroName],this.prompt[macroName],this.onClick);
// want to handle palettes and themes with same code. use mode attribute to distinguish
btn.setAttribute('mode',macroName);
};
config.macros.selectTheme.onClick = function(ev)
{
var e = ev ? ev : window.event;
var popup = Popup.create(this);
var mode = this.getAttribute('mode');
var tiddlers = store.getTaggedTiddlers(config.macros.selectTheme.tags[mode]);
// for default
if (mode == "selectPalette") {
var btn = createTiddlyButton(createTiddlyElement(popup,'li'),"(default)","default color palette",config.macros.selectTheme.onClickTheme);
btn.setAttribute('theme',"(default)");
btn.setAttribute('mode',mode);
}
for(var i=0; i<tiddlers.length; i++) {
var t = tiddlers[i].title;
var name = store.getTiddlerSlice(t,'Name');
var desc = store.getTiddlerSlice(t,'Description');
var btn = createTiddlyButton(createTiddlyElement(popup,'li'),name ? name : title,desc ? desc : config.macros.selectTheme.label['mode'],config.macros.selectTheme.onClickTheme);
btn.setAttribute('theme',t);
btn.setAttribute('mode',mode);
}
Popup.show();
return stopEvent(e);
};
config.macros.selectTheme.onClickTheme = function(ev)
{
var mode = this.getAttribute('mode');
var theme = this.getAttribute('theme');
if (mode == 'selectTheme')
story.switchTheme(theme);
else // selectPalette
config.macros.selectTheme.updatePalette(theme);
return false;
};
config.macros.selectTheme.updatePalette = function(title)
{
if (title != "") {
store.deleteTiddler("ColorPalette");
if (title != "(default)")
store.saveTiddler("ColorPalette","ColorPalette",store.getTiddlerText(title),
config.options.txtUserName,undefined,"");
refreshAll();
if(config.options.chkAutoSave)
saveChanges(true);
}
};
config.macros.applyTheme = {
label: "apply",
prompt: "apply this theme or palette" // i'm lazy
};
config.macros.applyTheme.handler = function(place,macroName,params,wikifier,paramString,tiddler) {
var useTiddler = params[0] ? params[0] : tiddler.title;
var btn = createTiddlyButton(place,this.label,this.prompt,config.macros.selectTheme.onClickTheme);
btn.setAttribute('theme',useTiddler);
btn.setAttribute('mode',macroName=="applyTheme"?"selectTheme":"selectPalette"); // a bit untidy here
}
config.macros.selectPalette = config.macros.selectTheme;
config.macros.applyPalette = config.macros.applyTheme;
config.macros.refreshAll = { handler: function(place,macroName,params,wikifier,paramString,tiddler) {
createTiddlyButton(place,"refresh","refresh layout and styles",function() { refreshAll(); });
}};
//}}}
* Review Friday, June 11?
* //(Launch Monday, July 14?)//
order:2
button:s/m
buttonLong:someday/maybe
/***
|''Name:''|SparklinePlugin|
|''Description:''|Sparklines macro|
***/
//{{{
if(!version.extensions.SparklinePlugin) {
version.extensions.SparklinePlugin = {installed:true};
//--
//-- Sparklines
//--
config.macros.sparkline = {};
config.macros.sparkline.handler = function(place,macroName,params)
{
var data = [];
var min = 0;
var max = 0;
var v;
for(var t=0; t<params.length; t++) {
v = parseInt(params[t]);
if(v < min)
min = v;
if(v > max)
max = v;
data.push(v);
}
if(data.length < 1)
return;
var box = createTiddlyElement(place,"span",null,"sparkline",String.fromCharCode(160));
box.title = data.join(",");
var w = box.offsetWidth;
var h = box.offsetHeight;
box.style.paddingRight = (data.length * 2 - w) + "px";
box.style.position = "relative";
for(var d=0; d<data.length; d++) {
var tick = document.createElement("img");
tick.border = 0;
tick.className = "sparktick";
tick.style.position = "absolute";
tick.src = "data:image/gif,GIF89a%01%00%01%00%91%FF%00%FF%FF%FF%00%00%00%C0%C0%C0%00%00%00!%F9%04%01%00%00%02%00%2C%00%00%00%00%01%00%01%00%40%02%02T%01%00%3B";
tick.style.left = d*2 + "px";
tick.style.width = "2px";
v = Math.floor(((data[d] - min)/(max-min)) * h);
tick.style.top = (h-v) + "px";
tick.style.height = v + "px";
box.appendChild(tick);
}
};
}
//}}}
{{cols3{
{{col{
<<mgtdList title:'Starred Actions' startTag:Starred tags:'Action && !Done' view:ActionProj mode:global
group:ActionStatus
gView:bold
newButtonTags:'Starred Action'
>>
<<mgtdList title:'Starred Done Actions' startTag:Starred tags:'Done' view:DoneAction mode:global
newButtonTags:'Starred Action Done'
>>
}}}
{{col{
<<mgtdList title:'Starred Projects' startTag:Starred tags:'Project && !Complete' view:Project mode:global
group:ProjectStatus
gView:bold
newButtonTags:'Starred Project'
>>
<<mgtdList title:'Completed Projects' startTag:Starred tags:'Project && Complete' view:ProjectComplete mode:global
newButtonTags:'Starred Project Complete'
>>
}}}
{{col{
<<mgtdList title:'Other Starred Items' startTag:Starred tags:'!Project && !Action' view:star mode:global
group:GTDComponent
gView:bold
newButtonTags:'Starred'
>>
}}}
{{clear{
}}}
}}}
<<mgtdList title:'Starred Next Actions by Context' startTag:Action tags:'Next && !Done && Starred' view:ActionProj mode:global
group:Context
newButtonTags:'Action Next Starred'
where:tiddler.hasActiveProject()
>>
table#datePickerTable td.datePickerNav {
cursor:pointer;
}
.datePickerDaysHeader td {
text-align:center;
background:#ABABAB;
font:100% Arial;
}
/*
.datePickerDayRow td {
width:18px;
height:18px;
}
*/
td#datePickerMNS, td.datePickerNav {
font-weight:bold;
}
table#datePickerTable {
position:absolute;
/* border-collapse:collapse; */
background:#FFFFFF;
border:1px solid #000;
display:none;
}
table#datePickerTable td {
padding: 3px;
}
td#datePickerMNS {
text-align: center;
}
tr.datePickerDayRow td {
background-color : #FFF;
cursor : pointer;
border : 1px solid #FFF;
text-align : center;
font-size:100%;
}
tr.datePickerDayRow td.defaultDate {
color : #000;
text-decoration : none;
}
tr.datePickerDayRow td.emptyDate {
cursor:default;
}
tr.datePickerDayRow td.oldDate {
color : #ABABAB;
text-decoration : line-through;
}
tr.datePickerDayRow td.highlightedDate {
background : #FFF;
font-weight : bold;
color : #F66;
border:1px solid #999;
}
tr.datePickerDayRow td.todayDate {
font-weight : bold;
color : red;
}
table#datePickerTable tr.datePickerDayRow td.tdover {
background:#fc6;
}
This isn't very good but it might be of some use. It's the best attempt we have at showing a list of subprojects.
<<mgtdList title:'Subprojects' startTag:Project tags:'Project && !Complete' view:Project mode:global
where:tiddler.getByIndex('Project').length>0
group:Project
gView:ProjectBare
newButtonTags:'Project Active'
leftoverTitle:'(Projects that aren't subprojects)
>>
<<tiddler SideBarOptions>>
<<tiddler SideBarTabs>>
<<tabs txtMoreTab "Tags" "All Tags" TabAllTags "Miss" "Missing tiddlers" TabMoreMissing "Orph" "Orphaned tiddlers" TabMoreOrphans "Shad" "Shadowed tiddlers" TabMoreShadowed>>
<<allTags excludeLists [a-z]>>
!Project
<!--{{{-->
<table class="threecol"><tr><td>
[[TagDashboards##Ticklers Requiring Action]]
<div macro="mgtdList title:'Next Actions' tags:'Action && Next && !Done' view:Action
group:Context
gView:Context
newButtonTags:'Action Next'
"></div>
<!-- was this:
group:Context
gView:Context
-->
<div macro="mgtdList title:'Waiting Actions by Person' tags:'Action && [(Waiting For)] && !Done' view:Action
group:Contact
gView:bold
newButtonTags:'Action [(Waiting For)]'
"></div>
</td><td>
<div macro="mgtdList title:'Active Subprojects' tags:'Project && !Complete' view:Project
group:ProjectStatus
gView:bold
newButtonTags:'Project'
"></div>
<div macro="mgtdList title:'Completed Subprojects' tags:'Project && Complete' view:ProjectComplete
newButtonTags:'Project Active Complete'
"></div>
<div macro="mgtdList title:'Future Actions' tags:'Action && Future && !Done' view:Action
group:Context
gView:Context
newButtonTags:'Action Future'
"></div>
</td><td>
[[TagDashboards##Upcoming Ticklers]]
<div macro="mgtdList title:'Reference Items' tags:'Reference' view:plain newButtonTags:'Reference' "></div>
<div macro="mgtdList title:'Done Actions' tags:'Action && Done' view:DoneAction
newButtonTags:'Action Done Next'
sort:-modified
"></div>
</td></tr></table>
<!--}}}-->
!Context
<!--{{{-->
<table class="twocol"><tr><td>
<div macro="mgtdList title:'Next' tags:'Action && Next && !Done' view:ActionProj
where:tiddler.hasActiveProject()
"></div>
</td><td>
<div macro="mgtdList title:'Waiting' tags:'Action && [(Waiting For)] && !Done' view:ActionProj
where:tiddler.hasActiveProject()
"></div>
</td></tr></table>
<!--}}}-->
!Area
<!--{{{-->
<table class="threecol"><tr><td>
<div macro="mgtdList title:'Active Projects' tags:'Project && !Complete && !Someday/Maybe' view:Project newButtonTags:'Project Active' "></div>
</td><td>
<div macro="mgtdList title:'Someday/Maybe Projects' tags:'Project && !Complete && Someday/Maybe' view:Project newButtonTags:'Project Someday/Maybe' "></div>
</td><td>
<div macro="mgtdList title:'Completed Projects' tags:'Project && Complete' view:ProjectComplete newButtonTags:'Project Someday/Maybe' "></div>
</td>
</tr></table>
<!--}}}-->
!Ticklers Requiring Action
<div macro="mgtdList title:'Ticklers Requiring Action' tags:'Tickler && Enabled && !Actioned' view:Tickler newButtonTags:'Tickler Enabled Once'
where:'tiddler.fields.mgtd_date && ((new Date()).convertToYYYYMMDDHHMM() >= tiddler.fields.mgtd_date ) '
sortBy:tickleDate
"></div>
!Upcoming Ticklers
<!--- not actually a tag. included by other sections --->
<div macro="mgtdList title:'Upcoming Ticklers' tags:'Tickler && Enabled && !Actioned' view:Tickler newButtonTags:'Tickler Enabled Once'
where:'!tiddler.fields.mgtd_date || ((new Date()).convertToYYYYMMDDHHMM() < tiddler.fields.mgtd_date ) '
sortBy:tickleDate
"></div>
!Reference
<div class="tagglyTagging" macro="tagglyTagging"></div><!--- this makes me happy :) --->
!Contact
<table class="twocol"><tr><td>
<div macro="mgtdList title:'Delegated Actions' tags:'Action && !Done && [(Waiting For)]' view:ActionProj
newButtonTags:'Action [(Waiting For)]'
"></div>
<div macro="mgtdList title:'Associated Actions' tags:'Action && !Done && ![(Waiting For)]' view:ActionProj
group:ActionStatus
gView:bold
newButtonTags:'Action'
"></div>
</td><td>
<div macro="mgtdList title:'Associated Projects' tags:'Project && !Complete' view:Project
group:ProjectStatus
gView:bold
newButtonTags:'Project'
"></div>
<div macro="mgtdList title:'Associated Ticklers' tags:'Tickler && !Actioned && Enabled' view:Tickler
newButtonTags:'Tickler Enabled Once'
sort:tickleDate
"></div>
<div macro="mgtdList title:'Done Actions' tags:'Action && Done' view:DoneAction
newButtonTags:Done
"></div>
<div macro="mgtdList title:'Completed Projects' tags:'Project && Complete' view:ProjectComplete
newButtonTags:'Project'
"></div>
</td></tr></table>
/***
|Name:|TagglyTaggingPlugin|
|Description:|tagglyTagging macro is a replacement for the builtin tagging macro in your ViewTemplate|
|Version:|3.1 ($Rev: 4092 $)|
|Date:|$Date: 2008-03-24 12:32:33 +1000 (Mon, 24 Mar 2008) $|
|Source:|http://mptw.tiddlyspot.com/#TagglyTaggingPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License:|http://mptw.tiddlyspot.com/#TheBSDLicense|
!Notes
See http://mptw.tiddlyspot.com/#TagglyTagging
***/
//{{{
config.taggly = {
// for translations
lingo: {
labels: {
asc: "\u2191", // down arrow
desc: "\u2193", // up arrow
title: "title",
modified: "modified",
created: "created",
show: "+",
hide: "-",
normal: "normal",
group: "group",
commas: "commas",
sitemap: "sitemap",
numCols: "cols\u00b1", // plus minus sign
label: "Tagged as '%0':",
excerpts: "excerpts",
descr: "descr",
slices: "slices",
contents: "contents",
sliders: "sliders",
noexcerpts: "title only"
},
tooltips: {
title: "Click to sort by title",
modified: "Click to sort by modified date",
created: "Click to sort by created date",
show: "Click to show tagging list",
hide: "Click to hide tagging list",
normal: "Click to show a normal ungrouped list",
group: "Click to show list grouped by tag",
sitemap: "Click to show a sitemap style list",
commas: "Click to show a comma separated list",
numCols: "Click to change number of columns",
excerpts: "Click to show excerpts",
descr: "Click to show the description slice",
slices: "Click to show all slices",
contents: "Click to show entire tiddler contents",
sliders: "Click to show tiddler contents in sliders",
noexcerpts: "Click to show entire title only"
}
},
config: {
showTaggingCounts: true,
listOpts: {
// the first one will be the default
sortBy: ["title","modified","created"],
sortOrder: ["asc","desc"],
hideState: ["show","hide"],
listMode: ["normal","group","sitemap","commas"],
numCols: ["1","2","3","4","5","6"],
excerpts: ["noexcerpts","excerpts","descr","slices","contents","sliders"]
},
valuePrefix: "taggly.",
excludeTags: ["excludeLists","excludeTagging"],
excerptSize: 50,
excerptMarker: "/%"+"%/"
},
getTagglyOpt: function(title,opt) {
var val = store.getValue(title,this.config.valuePrefix+opt);
return val ? val : this.config.listOpts[opt][0];
},
setTagglyOpt: function(title,opt,value) {
if (!store.tiddlerExists(title))
// create it silently
store.saveTiddler(title,title,config.views.editor.defaultText.format([title]),config.options.txtUserName,new Date(),"");
// if value is default then remove it to save space
return store.setValue(title,
this.config.valuePrefix+opt,
value == this.config.listOpts[opt][0] ? null : value);
},
getNextValue: function(title,opt) {
var current = this.getTagglyOpt(title,opt);
var pos = this.config.listOpts[opt].indexOf(current);
// a little usability enhancement. actually it doesn't work right for grouped or sitemap
var limit = (opt == "numCols" ? store.getTaggedTiddlers(title).length : this.config.listOpts[opt].length);
var newPos = (pos + 1) % limit;
return this.config.listOpts[opt][newPos];
},
toggleTagglyOpt: function(title,opt) {
var newVal = this.getNextValue(title,opt);
this.setTagglyOpt(title,opt,newVal);
},
createListControl: function(place,title,type) {
var lingo = config.taggly.lingo;
var label;
var tooltip;
var onclick;
if ((type == "title" || type == "modified" || type == "created")) {
// "special" controls. a little tricky. derived from sortOrder and sortBy
label = lingo.labels[type];
tooltip = lingo.tooltips[type];
if (this.getTagglyOpt(title,"sortBy") == type) {
label += lingo.labels[this.getTagglyOpt(title,"sortOrder")];
onclick = function() {
config.taggly.toggleTagglyOpt(title,"sortOrder");
return false;
}
}
else {
onclick = function() {
config.taggly.setTagglyOpt(title,"sortBy",type);
config.taggly.setTagglyOpt(title,"sortOrder",config.taggly.config.listOpts.sortOrder[0]);
return false;
}
}
}
else {
// "regular" controls, nice and simple
label = lingo.labels[type == "numCols" ? type : this.getNextValue(title,type)];
tooltip = lingo.tooltips[type == "numCols" ? type : this.getNextValue(title,type)];
onclick = function() {
config.taggly.toggleTagglyOpt(title,type);
return false;
}
}
// hide button because commas don't have columns
if (!(this.getTagglyOpt(title,"listMode") == "commas" && type == "numCols"))
createTiddlyButton(place,label,tooltip,onclick,type == "hideState" ? "hidebutton" : "button");
},
makeColumns: function(orig,numCols) {
var listSize = orig.length;
var colSize = listSize/numCols;
var remainder = listSize % numCols;
var upperColsize = colSize;
var lowerColsize = colSize;
if (colSize != Math.floor(colSize)) {
// it's not an exact fit so..
upperColsize = Math.floor(colSize) + 1;
lowerColsize = Math.floor(colSize);
}
var output = [];
var c = 0;
for (var j=0;j<numCols;j++) {
var singleCol = [];
var thisSize = j < remainder ? upperColsize : lowerColsize;
for (var i=0;i<thisSize;i++)
singleCol.push(orig[c++]);
output.push(singleCol);
}
return output;
},
drawTable: function(place,columns,theClass) {
var newTable = createTiddlyElement(place,"table",null,theClass);
var newTbody = createTiddlyElement(newTable,"tbody");
var newTr = createTiddlyElement(newTbody,"tr");
for (var j=0;j<columns.length;j++) {
var colOutput = "";
for (var i=0;i<columns[j].length;i++)
colOutput += columns[j][i];
var newTd = createTiddlyElement(newTr,"td",null,"tagglyTagging"); // todo should not need this class
wikify(colOutput,newTd);
}
return newTable;
},
createTagglyList: function(place,title) {
switch(this.getTagglyOpt(title,"listMode")) {
case "group": return this.createTagglyListGrouped(place,title); break;
case "normal": return this.createTagglyListNormal(place,title,false); break;
case "commas": return this.createTagglyListNormal(place,title,true); break;
case "sitemap":return this.createTagglyListSiteMap(place,title); break;
}
},
getTaggingCount: function(title) {
// thanks to Doug Edmunds
if (this.config.showTaggingCounts) {
var tagCount = store.getTaggedTiddlers(title).length;
if (tagCount > 0)
return " ("+tagCount+")";
}
return "";
},
getExcerpt: function(inTiddlerTitle,title,indent) {
if (!indent)
indent = 1;
var displayMode = this.getTagglyOpt(inTiddlerTitle,"excerpts");
var t = store.getTiddler(title);
if (t && displayMode == "excerpts") {
var text = t.text.replace(/\n/," ");
var marker = text.indexOf(this.config.excerptMarker);
if (marker != -1) {
return " {{excerpt{<nowiki>" + text.substr(0,marker) + "</nowiki>}}}";
}
else if (text.length < this.config.excerptSize) {
return " {{excerpt{<nowiki>" + t.text + "</nowiki>}}}";
}
else {
return " {{excerpt{<nowiki>" + t.text.substr(0,this.config.excerptSize) + "..." + "</nowiki>}}}";
}
}
else if (t && displayMode == "contents") {
return "\n{{contents indent"+indent+"{\n" + t.text + "\n}}}";
}
else if (t && displayMode == "sliders") {
return "<slider slide>\n{{contents{\n" + t.text + "\n}}}\n</slider>";
}
else if (t && displayMode == "descr") {
var descr = store.getTiddlerSlice(title,'Description');
return descr ? " {{excerpt{" + descr + "}}}" : "";
}
else if (t && displayMode == "slices") {
var result = "";
var slices = store.calcAllSlices(title);
for (var s in slices)
result += "|%0|<nowiki>%1</nowiki>|\n".format([s,slices[s]]);
return result ? "\n{{excerpt excerptIndent{\n" + result + "}}}" : "";
}
return "";
},
notHidden: function(t,inTiddler) {
if (typeof t == "string")
t = store.getTiddler(t);
return (!t || !t.tags.containsAny(this.config.excludeTags) ||
(inTiddler && this.config.excludeTags.contains(inTiddler)));
},
// this is for normal and commas mode
createTagglyListNormal: function(place,title,useCommas) {
var list = store.getTaggedTiddlers(title,this.getTagglyOpt(title,"sortBy"));
if (this.getTagglyOpt(title,"sortOrder") == "desc")
list = list.reverse();
var output = [];
var first = true;
for (var i=0;i<list.length;i++) {
if (this.notHidden(list[i],title)) {
var countString = this.getTaggingCount(list[i].title);
var excerpt = this.getExcerpt(title,list[i].title);
if (useCommas)
output.push((first ? "" : ", ") + "[[" + list[i].title + "]]" + countString + excerpt);
else
output.push("*[[" + list[i].title + "]]" + countString + excerpt + "\n");
first = false;
}
}
return this.drawTable(place,
this.makeColumns(output,useCommas ? 1 : parseInt(this.getTagglyOpt(title,"numCols"))),
useCommas ? "commas" : "normal");
},
// this is for the "grouped" mode
createTagglyListGrouped: function(place,title) {
var sortBy = this.getTagglyOpt(title,"sortBy");
var sortOrder = this.getTagglyOpt(title,"sortOrder");
var list = store.getTaggedTiddlers(title,sortBy);
if (sortOrder == "desc")
list = list.reverse();
var leftOvers = []
for (var i=0;i<list.length;i++)
leftOvers.push(list[i].title);
var allTagsHolder = {};
for (var i=0;i<list.length;i++) {
for (var j=0;j<list[i].tags.length;j++) {
if (list[i].tags[j] != title) { // not this tiddler
if (this.notHidden(list[i].tags[j],title)) {
if (!allTagsHolder[list[i].tags[j]])
allTagsHolder[list[i].tags[j]] = "";
if (this.notHidden(list[i],title)) {
allTagsHolder[list[i].tags[j]] += "**[["+list[i].title+"]]"
+ this.getTaggingCount(list[i].title) + this.getExcerpt(title,list[i].title) + "\n";
leftOvers.setItem(list[i].title,-1); // remove from leftovers. at the end it will contain the leftovers
}
}
}
}
}
var allTags = [];
for (var t in allTagsHolder)
allTags.push(t);
var sortHelper = function(a,b) {
if (a == b) return 0;
if (a < b) return -1;
return 1;
};
allTags.sort(function(a,b) {
var tidA = store.getTiddler(a);
var tidB = store.getTiddler(b);
if (sortBy == "title") return sortHelper(a,b);
else if (!tidA && !tidB) return 0;
else if (!tidA) return -1;
else if (!tidB) return +1;
else return sortHelper(tidA[sortBy],tidB[sortBy]);
});
var leftOverOutput = "";
for (var i=0;i<leftOvers.length;i++)
if (this.notHidden(leftOvers[i],title))
leftOverOutput += "*[["+leftOvers[i]+"]]" + this.getTaggingCount(leftOvers[i]) + this.getExcerpt(title,leftOvers[i]) + "\n";
var output = [];
if (sortOrder == "desc")
allTags.reverse();
else if (leftOverOutput != "")
// leftovers first...
output.push(leftOverOutput);
for (var i=0;i<allTags.length;i++)
if (allTagsHolder[allTags[i]] != "")
output.push("*[["+allTags[i]+"]]" + this.getTaggingCount(allTags[i]) + this.getExcerpt(title,allTags[i]) + "\n" + allTagsHolder[allTags[i]]);
if (sortOrder == "desc" && leftOverOutput != "")
// leftovers last...
output.push(leftOverOutput);
return this.drawTable(place,
this.makeColumns(output,parseInt(this.getTagglyOpt(title,"numCols"))),
"grouped");
},
// used to build site map
treeTraverse: function(title,depth,sortBy,sortOrder) {
var list = store.getTaggedTiddlers(title,sortBy);
if (sortOrder == "desc")
list.reverse();
var indent = "";
for (var j=0;j<depth;j++)
indent += "*"
var childOutput = "";
for (var i=0;i<list.length;i++)
if (list[i].title != title)
if (this.notHidden(list[i].title,this.config.inTiddler))
childOutput += this.treeTraverse(list[i].title,depth+1,sortBy,sortOrder);
if (depth == 0)
return childOutput;
else
return indent + "[["+title+"]]" + this.getTaggingCount(title) + this.getExcerpt(this.config.inTiddler,title,depth) + "\n" + childOutput;
},
// this if for the site map mode
createTagglyListSiteMap: function(place,title) {
this.config.inTiddler = title; // nasty. should pass it in to traverse probably
var output = this.treeTraverse(title,0,this.getTagglyOpt(title,"sortBy"),this.getTagglyOpt(title,"sortOrder"));
return this.drawTable(place,
this.makeColumns(output.split(/(?=^\*\[)/m),parseInt(this.getTagglyOpt(title,"numCols"))), // regexp magic
"sitemap"
);
},
macros: {
tagglyTagging: {
handler: function (place,macroName,params,wikifier,paramString,tiddler) {
var refreshContainer = createTiddlyElement(place,"div");
// do some refresh magic to make it keep the list fresh - thanks Saq
refreshContainer.setAttribute("refresh","macro");
refreshContainer.setAttribute("macroName",macroName);
if (params[0])
refreshContainer.setAttribute("title",params[0]);
else {
refreshContainer.setAttribute("title",tiddler.title);
}
this.refresh(refreshContainer);
},
refresh: function(place) {
var title = place.getAttribute("title");
removeChildren(place);
addClass(place,"tagglyTagging");
if (store.getTaggedTiddlers(title).length > 0) {
var lingo = config.taggly.lingo;
config.taggly.createListControl(place,title,"hideState");
if (config.taggly.getTagglyOpt(title,"hideState") == "show") {
createTiddlyElement(place,"span",null,"tagglyLabel",lingo.labels.label.format([title]));
config.taggly.createListControl(place,title,"title");
config.taggly.createListControl(place,title,"modified");
config.taggly.createListControl(place,title,"created");
config.taggly.createListControl(place,title,"listMode");
config.taggly.createListControl(place,title,"excerpts");
config.taggly.createListControl(place,title,"numCols");
config.taggly.createTagglyList(place,title);
}
}
}
}
},
// todo fix these up a bit
styles: [
"/*{{{*/",
"/* created by TagglyTaggingPlugin */",
".tagglyTagging { padding-top:0.5em; }",
".tagglyTagging li.listTitle { display:none; }",
".tagglyTagging ul {",
" margin-top:0px; padding-top:0.5em; padding-left:2em;",
" margin-bottom:0px; padding-bottom:0px;",
"}",
".tagglyTagging { vertical-align: top; margin:0px; padding:0px; }",
".tagglyTagging table { margin:0px; padding:0px; }",
".tagglyTagging .button { visibility:hidden; margin-left:3px; margin-right:3px; }",
".tagglyTagging .button, .tagglyTagging .hidebutton {",
" color:[[ColorPalette::TertiaryLight]]; font-size:90%;",
" border:0px; padding-left:0.3em;padding-right:0.3em;",
"}",
".tagglyTagging .button:hover, .hidebutton:hover, ",
".tagglyTagging .button:active, .hidebutton:active {",
" border:0px; background:[[ColorPalette::TertiaryPale]]; color:[[ColorPalette::TertiaryDark]];",
"}",
".selected .tagglyTagging .button { visibility:visible; }",
".tagglyTagging .hidebutton { color:[[ColorPalette::Background]]; }",
".selected .tagglyTagging .hidebutton { color:[[ColorPalette::TertiaryLight]] }",
".tagglyLabel { color:[[ColorPalette::TertiaryMid]]; font-size:90%; }",
".tagglyTagging ul {padding-top:0px; padding-bottom:0.5em; margin-left:1em; }",
".tagglyTagging ul ul {list-style-type:disc; margin-left:-1em;}",
".tagglyTagging ul ul li {margin-left:0.5em; }",
".editLabel { font-size:90%; padding-top:0.5em; }",
".tagglyTagging .commas { padding-left:1.8em; }",
"/* not technically tagglytagging but will put them here anyway */",
".tagglyTagged li.listTitle { display:none; }",
".tagglyTagged li { display: inline; font-size:90%; }",
".tagglyTagged ul { margin:0px; padding:0px; }",
".excerpt { color:[[ColorPalette::TertiaryDark]]; }",
".excerptIndent { margin-left:4em; }",
"div.tagglyTagging table,",
"div.tagglyTagging table tr,",
"td.tagglyTagging",
" {border-style:none!important; }",
".tagglyTagging .contents { border-bottom:2px solid [[ColorPalette::TertiaryPale]]; padding:0 1em 1em 0.5em;",
" margin-bottom:0.5em; }",
".tagglyTagging .indent1 { margin-left:3em; }",
".tagglyTagging .indent2 { margin-left:4em; }",
".tagglyTagging .indent3 { margin-left:5em; }",
".tagglyTagging .indent4 { margin-left:6em; }",
".tagglyTagging .indent5 { margin-left:7em; }",
".tagglyTagging .indent6 { margin-left:8em; }",
".tagglyTagging .indent7 { margin-left:9em; }",
".tagglyTagging .indent8 { margin-left:10em; }",
".tagglyTagging .indent9 { margin-left:11em; }",
".tagglyTagging .indent10 { margin-left:12em; }",
"/*}}}*/",
""].join("\n"),
init: function() {
merge(config.macros,this.macros);
config.shadowTiddlers["TagglyTaggingStyles"] = this.styles;
store.addNotification("TagglyTaggingStyles",refreshStyles);
}
};
config.taggly.init();
//}}}
/***
InlineSlidersPlugin
By Saq Imtiaz
http://tw.lewcid.org/sandbox/#InlineSlidersPlugin
// syntax adjusted to not clash with NestedSlidersPlugin
// added + syntax to start open instead of closed
***/
//{{{
config.formatters.unshift( {
name: "inlinesliders",
// match: "\\+\\+\\+\\+|\\<slider",
match: "\\<slider",
// lookaheadRegExp: /(?:\+\+\+\+|<slider) (.*?)(?:>?)\n((?:.|\n)*?)\n(?:====|<\/slider>)/mg,
lookaheadRegExp: /(?:<slider)(\+?) (.*?)(?:>)\n((?:.|\n)*?)\n(?:<\/slider>)/mg,
handler: function(w) {
this.lookaheadRegExp.lastIndex = w.matchStart;
var lookaheadMatch = this.lookaheadRegExp.exec(w.source)
if(lookaheadMatch && lookaheadMatch.index == w.matchStart ) {
var btn = createTiddlyButton(w.output,lookaheadMatch[2] + " "+"\u00BB",lookaheadMatch[2],this.onClickSlider,"button sliderButton");
var panel = createTiddlyElement(w.output,"div",null,"sliderPanel");
panel.style.display = (lookaheadMatch[1] == '+' ? "block" : "none");
wikify(lookaheadMatch[3],panel);
w.nextMatch = lookaheadMatch.index + lookaheadMatch[0].length;
}
},
onClickSlider : function(e) {
if(!e) var e = window.event;
var n = this.nextSibling;
n.style.display = (n.style.display=="none") ? "block" : "none";
return false;
}
});
//}}}
{{cols2{
{{col{
<<tiddler 'Ticklers Requiring Action'>>
<<mgtdList title:'Upcoming Ticklers' startTag:Tickler tags:'!Actioned' view:Tickler mode:global newButtonTags:'Tickler Once'
where:'!tiddler.fields.mgtd_date || ((new Date()).convertToYYYYMMDDHHMM() < tiddler.fields.mgtd_date )'
sort:'tickleDate'
>>
}}}
{{col{
<<mgtdList title:'Old Ticklers' startTag:Tickler tags:'Actioned' view:Tickler mode:global newButtonTags:'Tickler Actioned Once' >>
}}}
{{clear{
}}}
}}}
<<mgtdList
title:'Ticklers Requiring Action'
startTag:Tickler
tags:'Enabled && !Actioned'
view:Tickler
mode:global
newButtonTags:'Tickler Enabled Once'
where:'tiddler.fields.mgtd_date && ((new Date()).convertToYYYYMMDDHHMM() >= tiddler.fields.mgtd_date )'
sort:'tickleDate'
ignoreRealm:{{config.mGTD.getOptChk('AlertsIgnoreRealm')?'yes':''}}
>>
// for sorting tiddlers
merge(Tiddler.prototype,{
sort_tickleDate: function() { return this.fields['mgtd_date']; }, // todo
sort_orderSlice: function() {
var orderSlice = store.getTiddlerSlice(this.title,"order");
return orderSlice ? orderSlice : this.title; // so if there's no slice we get sorting by title
}
});
// for displaying tiddlers in lists
// idea: use <<tiddler with:?>>
if (!config.mGTD) config.mGTD = {};
config.mGTD.data = {
starOn: 'data:image/gif;base64,R0lGODlhDwAPAMQfAF9h4RYVnZeQJC0u0lRQU42R6P/7Fv74L05NrRkZxi4tW52XXv71D8nAIWxnjnRxr3NuMJKOluXbBe7kCa2x7UFD1vPoB77D8Jqe6n6B5tvTUr62BMrP8lJPh1xbuv///yH5BAEAAB8ALAAAAAAPAA8AAAWD4CeOWQKMaDpESepi3tFlLgpExlK9RT9ohkYi08N8KhWP8nEwMBwIDyJRSTgO2CaDYcBOCAlMgtDYmhmTDSFQ+HAqgbLZIlAMLqiKw7m1EAYuFQsGEhITEwItKBc/EgIEAhINAUYkCBIQAQMBEGonIwAKa21iCgo7IxQDFRQjF1VtHyEAOw==',
starOff: 'data:image/gif;base64,R0lGODlhDwAPALMPAP///8zj++r7/7vb/rHW/tPt/9Lk+qzT/rbY/sHh/8Te/N7q+Nzy/7nY/djn+f///yH5BAEAAA8ALAAAAAAPAA8AAARg8MkZjpo4k0KyNwlQBB42MICAfEF7APDRBsYzIEkewGKeDI1DgUckMg6GTdFIqC0QgyUgQVhgGkOi4OBBCJYdzILAywIGNcoOgCAQvowBRpE4kgzCQgPjQCAcEwsNTRIRADs=',
yuiSprite: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAfQCAMAAACHRu2lAAADAFBMVEX////56Lbe3+DrwjXpuiX0yKLokkL2NDSthiL60Jr4YV7xs4ely/8vPqzXsyj1j4/KzumdnZ3MfApzhs5uiqzaow3hehKBmbfx1Ebh4uPopxvUCAH4JCQoMZPg4OGEh8E/atHi4+P1R0ehcw7osjqWqsP4FRXoqzv658otK2vcTQTmmhX1slX76t/mnD/tiRvnpD3laAREWbPqvTczQ6zq6uvxqGG5utdtbW3VMQGtscTOtm6FhYX3VVX0dXX4175zc3Pm5ubqwCna2tvElhb4Cwvmdi7OsUzc3N3Q0dIlK4cTDkv566j3xIC0k0j24FM7Q5tSY7rtiyH71dV+f6zkig7wmjTmsh5JSUkuN5z2amrodA7peRThdBEZG2pcfsrZxovrVlf2enp3dJPgWQLlyk0fJHdNaMMkKpE8Ubbptzj5xcXfyXXwlizX2Nr+/v7BwcH8/Pz7+/v6+vr39/fn6Ojj4+Xv8PD19fVCb9nm8f/f4ODs7Ozy8vL29vbh4eLg4eL19fYAAADn8f/c7P/V5//n8v/5+frH3//o6uri7v/r6+zj8P/l5ubf4OH6+vvx8fLX6P/5+fnr7Ozl8P/R5v/L4v/P4//E3f/f7f/39/na6f/g7f/y9PTt7+9Bbtd/f38iIiLy8vT19vbMztDn6Oqsr7Dw8PHx8fH5+vq+wcLJyss7Zcs5YcS62P/29vdAa9Ts7e3U1dYuUrAwVrXo6Oo5Y8g9Z87d3d/v7+/09PT09fXExca4u703X8Ls7O3m5+jw8PDt7e/X19jw8fGztbfl5eZAbNVAbdbx8vIoTKYrTqvhdxvx0lj5vLzzUkf1y0yxsbHh5++Wlpbzzjxqamrm2sHx1WfXhgbo6Oj7f3/14Iz8cXfPt4f97+LWPCDh7v+eo9Gkq9vy+f/ujynkznb711DqCgvzozvnfhfqkWH+/fRRb8b22n3iYQ0gJIH77Ww6TbLtLi+kpKXbwE1mZmYmR6Dm5ufb3N2/2v+lqKvY2Nrc3d/o8v////8zW7zbSCWcAAAAAXRSTlMAQObYZgAACOFJREFUeNrt3Hl4FPUdx/FvmpAgsIFgwJCwseRGMEuuutoQIglyRCRYyWYBoSpijFpBsd221Oja1lpaa7V3a9vtfd/3Se8rgYSQpijWorRKD+hd29ppf/NLKnGP+X2iEza7fF5/BJ593s9vZ3aTZ77PzsyKBZIkhjeC8HAnSG4Cyc0guRcknwbJ10HyE5C8BCTfBsldIHk9SOaB5EmQ/BvEkCFDhgwZMmTIMBVDItJ6QBMQ3gaSYpA8ByRfAckqkLSA5Hsg+RxIVoPkAyD5OEi+AZKPgeSbIPkBSD4Ekn+BGDJkyJAhQ4YMGU6ikIjGx/2T8e6fY78TJLtAcitIQiC5HyT3gOTDIPkqSD4LkvtA0gCSD4JkLwi/YODFIPzKAvjDq7tB+IdXT4AYMmTIkCFDhgwZRodENGJHfLFdgg8Hdjz7cCCkfoQGjOGAvzFkhRr9A6ZQNY27G+3a9NSqbD7ZOe3M7mZ/825gZ9AV4W3MG93rPOOKeaGnfrr0zphC+LeHiIgm9wTg2DkfCp5x6PcnJ/SPci9M4s64/M4Ij+ZERJwAJnwCSFY4IRNAmrw8nACIiE63CSBJZwGedg7AORxzDsAxDI35fN3wmf2YziHM8/v3QDsDrwhvozX2HIDpdcwLufzO8CwAEREngAmcAAZCWDgwIUdX6DoAy9rjP3kcdmNFeBvxvc4LuT6bcQIgIkpXfojqdiA3De7wT0iI3IaYIGzobIgXxtyceCgSHop6SIfR9ybujYQje6Me02HU1/9eqLoLo78TWIdRtyZ2hsOrY+5X1OHtTzdPrTgv6rHbdfiKKMWqLI56TIcx3+u7KhLujHpIh7tjtHS2RD2iw1sAOkRuyNPhywE6hPjx33AiIk4A6TQB+BsShFEH+6Fw5FDMUBBvAog3AMSdAOKOAPEmgF27VofDncAEEHcEiDcBxBsA4k4AfwtHVsUMBXEngJjDPycAIqLU95dmf3Me0DUO9lg9g43GLm9QH7kHjWs29+iwp9k4pIwOA37XVhwc3cZB1/Zaralex0H+OhERUcq4ID8/vxzozio/YB0oP8vYlZf/asaMGXeUG9fMPzDDdiDfGFo6fDTftRXhbbT3+lFkr9Wa4OtIREQ0KaT5dQANDdBZgJ2HIrGnARKcBYCuA7DPAcSeBog9C7BARQv0D8NZgCF9BmBeJNxpOAtQ3Fk85h/DdQBxJLgOgGcBiIg4AaTWlYDYdQBxxZkAhvTBf++QaQIY0gd/NQYMuTUB6KsAYi8ESHAdAHgl4KpI7IUA8SeAlhZOAERElH7CI9ASXRN9dr4BRMn03hFoia6JPjvfAKJTesTHRwN8hsCHDbdX5KRBNK4jPj4a4DMEPmy4vSInDaJTNBSM4wCOf6gQ5sGZKCWGgnEcwPEPFeCDOBGd+oM+thZ0IFcNzzcQpdRBH1sLOpCrhucbaJLJzDQ3vSJnZGbW1Z2h/2vu6roN5RLV1WX013V3q3KJ8/aNdGVl1YaNrKuz+u2uLNsYZvSrrLKy1xB2d/+hX2WVS4xhWX+/3ZnCjLKMfjtbUt2bgXXVzmVv5f+z6uxspyev7B0j2/yG9/IPg4gove07vF85vM/Y7Z82bdrS/SU5+8zd0qamphJDaXclL1D/mZmT41g+sHGj7qRJhU0O4f4HnlovZ36Ocyhy3dIcHVYYwivtquS6mfOLHMKSjXqxnJkiV1Y4heoJFb0XORV/dggPq2yp3u2ZFSs2Or2OFRUV0/R+r1hR5PyKq7KipGS+qVPlihFF5t+KKx4rKnrsin38OyIiSjkPHlT6HjR2qvrN8uVZWX2Grk9VdmcsVaWKvkAgsMgQZmXphQOBDYZd6bOfsq+wsPAXwI7rrs+9TgoLF0GdLAI7Fc52OYRt2ACuCIezZ7u9jURE9Cyd3d7V1dV+tik7LxisvbbeE+zynufcddX+vv4R6xGPx3vCsQzWXuPxzLJmeVS5xmn76rfWezy169er0HPissRhe32tKs48cqYdehcmDrv+pBYcfWpPcItDuPXak6GnLXF4YmzodQjb118zGga93u0O23hZ+9ZgMKhCr9J2lcPrs6a23esdCbe0Ob4zW054vUdmHbG7C5zfw4Vbtq/xrtneZujs7VzY1ta28Cr+GRERpZxf5yrXm7u/Xn1xRkFm7krjelf/LmNdwcHluc83hLkXZ/zRDrNaTWHBunV2GDCGBwsKqqoyswJTDeH1uZmZw8NZgVbTNsrK3Kzh4UDrJebXZ+Wc4eE5U4EX/IVzlEuQsFRBwp9rQPhQae4cbMWpra2lD0G/P6Wl/BsiIkpF/wElM3w1SO4AyctAePgmkLwOJK8FybtA8naQvBIk7wTJG0HyKpC8GSRvBclbQPIakLwNJP8EMWTIkCFDhgwZMowOiWh8XgpKZvgeEB7+GCQ/AslnQPJcEB5+GSSfAMmXQPJJkHwLJP8F4eEXQPJ5kPwMJD8Fyd9BDBkyZMiQIUOGDKNDIpogFiglwhtBExDuBOHhTSC5GSR3guQdILkVJCGQfA0k94DkOyD5Lkj2gOSLIPkHiCFDhgwZMmTIkGF0SESn8WcADBkyTL8wFT7bgz+yewNIPgpK5kd27wPJ90HybpDcB5K7QPiguQAkd4PkCZC8CMSQIUOGp1tIRNqnQPgdOfBN0PBt1fCN2vCt3/DN5PDt6fAN7/At9PBN+fBt/vAXB8BfRQB/uQH8dQnuf1MD/CUR8NdOpMJ3aDBkyJAhQ4YMGZ4uIRGl3+n9tDppdy9IdoHk/SC5HyQfAeHn4uCr4m8ByQ9BchtIngQxZMiQIUOGDBkynEQhET0T02tqpiPdspqOG2qWAWH2pWsXb8o2d1NqFlu/9NVMMYbHjq61LN+mXuOebHp8sQp9pv05d1NHR4d6at/m4+c6hs/b/LjPZ1X5fL7jv3Xqqmo6LvX5qtaq8Ng5Ti9R9uYbVNNx1A63XeT4Wqvk6LIpx+bOndt7/nSHBY8p1ZY117bt4YTh8ct1MWW6/ufyooThRdu2naOcrxUVPcw/ECIiIiIionTwP2GPpt8/BTzoAAAAAElFTkSuQmCC',
unicodeStar: "\u2605" // "black star"
};
merge(Tiddler.prototype,{
render_Action: function() { return this.renderUtil(
'{{action{'+
'<<toggleTag Done [[%0]] ->>'+
'<<multiToggleTag tag:ActionStatus title:[[%0]]>>'+
//'<<multiSelectTag tag:Project title:[[%0]]>>'+
//'<<multiCheckboxTag tag:ActionStatus title:[[%0]]>>'+
'<<singleToggleTag tag:Starred title:[[%0]]>>'+
' [[%0]] }}}',
[
this.title
]
);},
render_Tickler: function() {
var repeatType = this.getByIndex('TicklerRepeatType');
var doneControl = "";
if (repeatType.length == 0 || repeatType.contains('Once')) {
// show normal done checkbox
doneControl = '<<toggleTag Actioned [[%0]] ->>';
}
else if (repeatType.contains('Daily')) { doneControl = '<<addDay [[%0]]>>' }
else if (repeatType.contains('Weekly')) { doneControl = '<<addWeek [[%0]]>>' }
else if (repeatType.contains('Monthly')) { doneControl = '<<addMonth [[%0]]>>' }
else if (repeatType.contains('Yearly')) { doneControl = '<<addYear [[%0]]>>' }
return this.renderUtil(
'{{tickler{'+
'%1'+
'<<singleToggleTag tag:Starred title:[[%0]]>>'+
'<<dateChooser [[%0]]>>'+
' [[%0]]}}}',
[
this.title,
doneControl.format([this.title])
]
);},
render_DisabledTickler: function() { return this.renderUtil(
'{{tickler{'+
'<<singleToggleTag tag:Starred title:[[%0]]>>'+
' [[%0]] - <<dateChooser [[%0]]>> }}}',
[
this.title
]
);},
render_Project: function() { return this.renderUtil(
'{{project{'+
'<<toggleTag Complete [[%0]] ->>'+
'<<multiToggleTag tag:ProjectStatus title:[[%0]]>>'+
//'<<multiSelectTag tag:Project title:[[%0]]>>'+
//'<<multiCheckboxTag tag:ActionStatus title:[[%0]]>>'+
'<<singleToggleTag tag:Starred title:[[%0]]>>'+
' [[%0]] }}}',
[
this.title
]
);},
render_ProjectBare: function() { return this.renderUtil(
'{{project{'+
'<<singleToggleTag tag:Starred title:[[%0]]>>'+
' [[%0]] }}}',
[
this.title
]
);},
render_ProjectComplete: function() { return this.renderUtil(
'{{project{'+
'<<toggleTag Complete [[%0]] ->>'+
'<<singleToggleTag tag:Starred title:[[%0]]>>'+
' [[%0]] }}}',
[
this.title
]
);},
render_ActionProj: function() {
// actually it's not going to be easy to have
// an action in more than one project
// but just in case....
var pLink = "";
if (config.mGTD.getOptChk('FullProjectInActionLists')) {
pLink += "{{projLinkFull{<<linkToParent Project [[title]] [[%0]]>>}}}".format([this.title]);
}
else {
pLink += "{{projLink{<<linkToParent Project '[P]' [[%0]]>>}}}".format([this.title]);
}
if (config.mGTD.getOptChk('FullContactInActionLists')) {
pLink += "{{projLinkFull{<<linkToParent Contact [[title]] [[%0]]>>}}}".format([this.title]);
}
else {
pLink += "{{projLink{<<linkToParent Contact '[C]' [[%0]]>>}}}".format([this.title]);
}
return this.renderUtil(
'{{action{'+
'<<toggleTag Done [[%0]] ->>'+
'<<multiToggleTag tag:ActionStatus title:[[%0]]>>'+
'<<singleToggleTag tag:Starred title:[[%0]]>>'+
' [[%0]]}}} %1',
[
this.title,
pLink
]
);},
render_DoneAction: function() { return this.renderUtil(
'{{action{'+
'<<toggleTag Done [[%0]] ->>'+
'<<singleToggleTag tag:Starred title:[[%0]]>>'+
' [[%0]] }}}',
[
this.title
]
);},
render_ProjectHeading: function() { return this.renderUtil(
'{{project{'+
'[[%0]] '+
'<<toggleTag Complete [[%0]] ->>'+
'@@font-size:80%;<<multiToggleTag tag:ProjectStatus title:[[%0]]>>@@'+
'<<singleToggleTag tag:Starred title:[[%0]]>>'+
'}}}',
[
this.title
]
);},
render_Context: function() { return this.renderUtil(
'[[%0]]',
[
this.title
]
);},
render_plain: function() { return this.renderUtil(
'{{plain{[[%0]]}}}',
[
this.title
]
);},
render_star: function() { return this.renderUtil(
'{{plain{'+
'<<singleToggleTag tag:Starred title:[[%0]]>>'+
'[[%0]]}}}',
[
this.title
]
);},
// TODO. this seems stupid
render_bold: function() { return this.renderUtil(
"[[%0]]",
[
this.title
]
);}
});
!Project
<!--{{{-->
<span class='title' macro='view title'></span>
<span macro="linkToParent Area '[A]'"></span>
<span macro="linkToParent Project '[P]'"></span>
(Project)<span macro="help Project"></span>
<span macro="toggleTag Complete . -"></span>
<span macro="hideWhenTagged Complete">
<span macro="multiToggleTag ProjectStatus longVersion:on"></span>
</span>
<span macro="singleToggleTag tag:Starred"></span>
<br/>
Area:<span macro="multiSelectTag Area allowNone:on"></span><span macro="linkToParent Area"></span>
Realm:<span macro="multiSelectTag Realm"></span>
[[MonkeyGTDTheme##Subtitle]]
<br/>
Subproject of:<span macro="multiSelectTag Project allowNone:on"></span><span macro="linkToParent Project"></span><br/>
Associated contact:<span macro="multiSelectTag Contact allowNone:on"></span><span macro="linkToParent Contact"></span></span>
<span macro="deleteAllTagged 'delete project' '' 'delete'"></span><br/>
<span macro="convertToFromTickler"></span>
<!--}}}-->
!Action
<!--{{{-->
<span class='title' macro='view title'></span>
<span macro="linkToParent Project '[P]'"></span>
(Action)<span macro="help Action"></span>
<span macro="toggleTag Done . -"></span>
<span macro="hideWhenTagged Done">
<span macro="multiToggleTag ActionStatus longVersion:on"></span>
</span>
<span macro="singleToggleTag tag:Starred"></span>
<br/>
<span macro="showWhen config.mGTD.getOptChk('MultipleContexts')">
Context:<span macro="groupOfSingleToggleTags Context useCheckbox:yes"></span><br/>
</span>
<span macro="else">
Context:<span macro="multiSelectTag Context allowNone:on"></span><span macro="linkToParent Context"></span>
</span>
Project:<span macro="multiSelectTag Project allowNone:on"></span><span macro="linkToParent Project"></span>
<span macro="showWhen tiddler.getByIndex('Project').length == 0">
<!-- only show area if there's no project --->
Area:<span macro="multiSelectTag Area allowNone:on"></span>
</span>
Realm:<span macro="multiSelectTag Realm"></span>
[[MonkeyGTDTheme##Subtitle]]
<br/>
<span macro="showWhen tiddler.tags.contains('Waiting For') && !tiddler.tags.contains('Done')">
<!-- different label for waiting -->
Delegated to/waiting on:
</span><span macro="else">
Associated contact:
</span>
<span macro="multiSelectTag Contact allowNone:on"></span>
<span macro="linkToParent Contact"></span> <br/>
<span macro="convertToFromTickler"></span>
</span>
<!--}}}-->
!Tickler
<!--{{{-->
<span class='title' macro='view title'></span>
<span macro="linkToParent Project '[P]'"></span>
(Tickler)<span macro="help Tickler"></span>
<span macro="showWhen tiddler.tags.contains('Once') || tiddler.getByIndex('TicklerRepeatType').length==0"><span macro="toggleTag Actioned . -"></span></span>
<span macro="showWhenTagged 'Daily'" ><span macro="addDay"></span></span>
<span macro="showWhenTagged 'Weekly'" ><span macro="addWeek"></span></span>
<span macro="showWhenTagged 'Monthly'" ><span macro="addMonth"></span></span>
<span macro="showWhenTagged 'Yearly'" ><span macro="addYear"></span></span>
<span macro="singleToggleTag tag:Starred"></span>
<span macro="hideWhenTagged Actioned">
<span macro="multiToggleTag TicklerStatus longVersion:on"></span>
</span>
<span macro="hideWhenTagged Actioned">
<span macro="multiToggleTag TicklerRepeatType longVersion:on"></span>
</span>
<br/>
Project:<span macro="multiSelectTag Project allowNone:on"></span><span macro="linkToParent Project"></span>
<span macro="showWhen tiddler.getByIndex('Project').length == 0">
<!-- only show area if there's no project --->
Area:<span macro="multiSelectTag Area allowNone:on"></span>
</span>
Realm:<span macro="multiSelectTag Realm"></span>
[[MonkeyGTDTheme##Subtitle]]
<br/>
Tickler date:<span macro="dateChooser"></span>
<span macro="addDay"></span>
<span macro="addWeek"></span>
<span macro="addMonth"></span>
<span macro="addYear"></span>
<br/>
Associated contact:<span macro="multiSelectTag Contact allowNone:on"></span><span macro="linkToParent Contact"></span>
<br/>
<span macro="convertToFromTickler"></span>
<!--}}}-->
!View
<!--{{{-->
<span class='title' macro='view title'></span><span macro="help"></span>
<!--}}}-->
!Context
<!--{{{-->
<span class='title' macro='view title'></span> (Context)<span macro="help Context"></span>
<span macro="singleToggleTag tag:Starred"></span>
<!--}}}-->
!Area
<!--{{{-->
<span class='title' macro='view title'></span> (Area)<span macro="help Area"></span>
<span macro="singleToggleTag tag:Starred"></span>
<!--}}}-->
!Realm
<!--{{{-->
<span class='title' macro='view title'></span> (Realm)<span macro="help Realm"></span>
<!--}}}-->
!Reference
<!--{{{-->
<span class='title' macro='view title'></span>
<span macro="linkToParent Project '[P]'"></span>
(Reference)<span macro="help Reference"></span>
<span macro="singleToggleTag tag:Starred"></span>
<br/>
Project:<span macro="multiSelectTag Project allowNone:on"></span><span macro="linkToParent Project"></span>
<span macro="showWhen tiddler.getByIndex('Project').length == 0">
<!-- only show area if there's no project --->
Area:<span macro="multiSelectTag Area allowNone:on"></span>
</span>
Realm:<span macro="multiSelectTag Realm"></span><br/>
<div style="border-bottom:1px solid [[ColorPalette::TertiaryLight]]">Double click or click "edit" to edit. Use "new here" to make sub item.</div><!--- TODO should be a class --->
<!--}}}-->
!Contact
<!--{{{-->
<span class='title' macro='view title'></span> (Contact)<span macro="help Contact"></span>
<span macro="singleToggleTag tag:Starred"></span>
[[MonkeyGTDTheme##Subtitle]]
<!--}}}-->
<div macro="showWhenTagged 'Project'">[[TitleButtons##Project]]</div>
<div macro="showWhenTagged 'Action'">[[TitleButtons##Action]]</div>
<div macro="showWhenTagged 'Tickler'">[[TitleButtons##Tickler]]</div>
<div macro="showWhenTagged 'View'">[[TitleButtons##View]]</div>
<div macro="showWhenTagged 'Context'">[[TitleButtons##Context]]</div>
<div macro="showWhenTagged 'Area'">[[TitleButtons##Area]]</div>
<div macro="showWhenTagged 'Realm'">[[TitleButtons##Realm]]</div>
<div macro="showWhenTagged 'Reference'">[[TitleButtons##Reference]]</div>
<div macro="showWhenTagged 'Contact'">[[TitleButtons##Contact]]</div>
// Created by Saq. Taken from tw.lewcid.org
config.macros.toggleSideBar={};
config.macros.toggleSideBar.settings={
styleHide : "#sidebar { display: none;}\n"+"#contentWrapper #displayArea { margin-right: 1em;}\n"+"",
styleShow : " ",
arrow1: "<<",
arrow2: ">>"
//arrow1: "�",
//arrow2: "�"
};
config.macros.toggleSideBar.handler=function (place,macroName,params,wikifier,paramString,tiddler)
{
var tooltip= params[1]||'toggle sidebar';
var mode = (params[2] && params[2]=="hide")? "hide":"show";
var arrow = (mode == "hide")? this.settings.arrow1:this.settings.arrow2;
var label= (params[0]&¶ms[0]!='.')?params[0]+" "+arrow:arrow;
var theBtn = createTiddlyButton(place,label,tooltip,this.onToggleSideBar,"button HideSideBarButton");
if (mode == "hide")
{
(document.getElementById("sidebar")).setAttribute("toggle","hide");
setStylesheet(this.settings.styleHide,"ToggleSideBarStyles");
}
};
config.macros.toggleSideBar.onToggleSideBar = function(){
var sidebar = document.getElementById("sidebar");
var settings = config.macros.toggleSideBar.settings;
if (sidebar.getAttribute("toggle")=='hide')
{
setStylesheet(settings.styleShow,"ToggleSideBarStyles");
sidebar.setAttribute("toggle","show");
this.firstChild.data= (this.firstChild.data).replace(settings.arrow1,settings.arrow2);
}
else
{
setStylesheet(settings.styleHide,"ToggleSideBarStyles");
sidebar.setAttribute("toggle","hide");
this.firstChild.data= (this.firstChild.data).replace(settings.arrow2,settings.arrow1);
}
return false;
}
/***
|Name:|ToggleTagPlugin|
|Description:|Makes a checkbox which toggles a tag in a tiddler|
|Version:|3.1.0 ($Rev: 4331 $)|
|Date:|$Date: 2008-04-12 13:42:50 +1000 (Sat, 12 Apr 2008) $|
|Source:|http://mptw.tiddlyspot.com/#ToggleTagPlugin|
|Author:|Simon Baird <simon.baird@gmail.com>|
|License:|http://mptw.tiddlyspot.com/#TheBSDLicense|
!!Usage
{{{<<toggleTag }}}//{{{TagName TiddlerName LabelText}}}//{{{>>}}}
* TagName - the tag to be toggled, default value "checked"
* TiddlerName - the tiddler to toggle the tag in, default value the current tiddler
* LabelText - the text (gets wikified) to put next to the check box, default value is '{{{[[TagName]]}}}' or '{{{[[TagName]] [[TiddlerName]]}}}'
(If a parameter is '.' then the default will be used)
* TouchMod flag - if non empty then touch the tiddlers mod date. Note, can set config.toggleTagAlwaysTouchModDate to always touch mod date
!!Examples
|Code|Description|Example|h
|{{{<<toggleTag>>}}}|Toggles the default tag (checked) in this tiddler|<<toggleTag>>|
|{{{<<toggleTag TagName>>}}}|Toggles the TagName tag in this tiddler|<<toggleTag TagName>>|
|{{{<<toggleTag TagName TiddlerName>>}}}|Toggles the TagName tag in the TiddlerName tiddler|<<toggleTag TagName TiddlerName>>|
|{{{<<toggleTag TagName TiddlerName 'click me'>>}}}|Same but with custom label|<<toggleTag TagName TiddlerName 'click me'>>|
|{{{<<toggleTag . . 'click me'>>}}}|dot means use default value|<<toggleTag . . 'click me'>>|
!!Notes
* If TiddlerName doesn't exist it will be silently created
* Set label to '-' to specify no label
* See also http://mgtd-alpha.tiddlyspot.com/#ToggleTag2
!!Known issues
* Doesn't smoothly handle the case where you toggle a tag in a tiddler that is current open for editing
* Should convert to use named params
***/
//{{{
if (config.toggleTagAlwaysTouchModDate == undefined) config.toggleTagAlwaysTouchModDate = false;
merge(config.macros,{
toggleTag: {
createIfRequired: true,
shortLabel: "[[%0]]",
longLabel: "[[%0]] [[%1]]",
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var tag = (params[0] && params[0] != '.') ? params[0] : "checked";
var title = (params[1] && params[1] != '.') ? params[1] : tiddler.title;
var defaultLabel = (title == tiddler.title ? this.shortLabel : this.longLabel);
var label = (params[2] && params[2] != '.') ? params[2] : defaultLabel;
var touchMod = (params[3] && params[3] != '.') ? params[3] : "";
label = (label == '-' ? '' : label); // dash means no label
var theTiddler = (title == tiddler.title ? tiddler : store.getTiddler(title));
var cb = createTiddlyCheckbox(place, label.format([tag,title]), theTiddler && theTiddler.isTagged(tag), function(e) {
if (!store.tiddlerExists(title)) {
if (config.macros.toggleTag.createIfRequired) {
var content = store.getTiddlerText(title); // just in case it's a shadow
store.saveTiddler(title,title,content?content:"",config.options.txtUserName,new Date(),null);
}
else
return false;
}
if ((touchMod != "" || config.toggleTagAlwaysTouchModDate) && theTiddler)
theTiddler.modified = new Date();
store.setTiddlerTag(title,this.checked,tag);
return true;
});
}
}
});
//}}}
/***
Contains the stuff you need to use Tiddlyspot
Note you must also have UploadPlugin installed
***/
//{{{
// edit this if you are migrating sites or retrofitting an existing TW
config.tiddlyspotSiteId = 'silouan';
// make it so you can by default see edit controls via http
config.options.chkHttpReadOnly = false;
window.readOnly = false; // make sure of it (for tw 2.2)
window.showBackstage = true; // show backstage too
// disable autosave in d3
if (window.location.protocol != "file:")
config.options.chkGTDLazyAutoSave = false;
// tweak shadow tiddlers to add upload button, password entry box etc
with (config.shadowTiddlers) {
SiteUrl = 'http://'+config.tiddlyspotSiteId+'.tiddlyspot.com';
SideBarOptions = SideBarOptions.replace(/(<<saveChanges>>)/,"$1<<tiddler TspotSidebar>>");
OptionsPanel = OptionsPanel.replace(/^/,"<<tiddler TspotOptions>>");
DefaultTiddlers = DefaultTiddlers.replace(/^/,"[[WelcomeToTiddlyspot]] ");
MainMenu = MainMenu.replace(/^/,"[[WelcomeToTiddlyspot]] ");
}
// create some shadow tiddler content
merge(config.shadowTiddlers,{
'WelcomeToTiddlyspot':[
"This document is a ~TiddlyWiki from tiddlyspot.com. A ~TiddlyWiki is an electronic notebook that is great for managing todo lists, personal information, and all sorts of things.",
"",
"@@font-weight:bold;font-size:1.3em;color:#444; //What now?// @@ Before you can save any changes, you need to enter your password in the form below. Then configure privacy and other site settings at your [[control panel|http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/controlpanel]] (your control panel username is //" + config.tiddlyspotSiteId + "//).",
"<<tiddler TspotControls>>",
"See also GettingStarted.",
"",
"@@font-weight:bold;font-size:1.3em;color:#444; //Working online// @@ You can edit this ~TiddlyWiki right now, and save your changes using the \"save to web\" button in the column on the right.",
"",
"@@font-weight:bold;font-size:1.3em;color:#444; //Working offline// @@ A fully functioning copy of this ~TiddlyWiki can be saved onto your hard drive or USB stick. You can make changes and save them locally without being connected to the Internet. When you're ready to sync up again, just click \"upload\" and your ~TiddlyWiki will be saved back to tiddlyspot.com.",
"",
"@@font-weight:bold;font-size:1.3em;color:#444; //Help!// @@ Find out more about ~TiddlyWiki at [[TiddlyWiki.com|http://tiddlywiki.com]]. Also visit [[TiddlyWiki.org|http://tiddlywiki.org]] for documentation on learning and using ~TiddlyWiki. New users are especially welcome on the [[TiddlyWiki mailing list|http://groups.google.com/group/TiddlyWiki]], which is an excellent place to ask questions and get help. If you have a tiddlyspot related problem email [[tiddlyspot support|mailto:support@tiddlyspot.com]].",
"",
"@@font-weight:bold;font-size:1.3em;color:#444; //Enjoy :)// @@ We hope you like using your tiddlyspot.com site. Please email [[feedback@tiddlyspot.com|mailto:feedback@tiddlyspot.com]] with any comments or suggestions."
].join("\n"),
'TspotControls':[
"| tiddlyspot password:|<<option pasUploadPassword>>|",
"| site management:|<<upload http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/store.cgi index.html . . " + config.tiddlyspotSiteId + ">>//(requires tiddlyspot password)//<br>[[control panel|http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/controlpanel]], [[download (go offline)|http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/download]]|",
"| links:|[[tiddlyspot.com|http://tiddlyspot.com/]], [[FAQs|http://faq.tiddlyspot.com/]], [[blog|http://tiddlyspot.blogspot.com/]], email [[support|mailto:support@tiddlyspot.com]] & [[feedback|mailto:feedback@tiddlyspot.com]], [[donate|http://tiddlyspot.com/?page=donate]]|"
].join("\n"),
'TspotSidebar':[
"<<upload http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/store.cgi index.html . . " + config.tiddlyspotSiteId + ">><html><a href='http://" + config.tiddlyspotSiteId + ".tiddlyspot.com/download' class='button'>download</a></html>"
].join("\n"),
'TspotOptions':[
"tiddlyspot password:",
"<<option pasUploadPassword>>",
""
].join("\n")
});
//}}}
| !date | !user | !location | !storeUrl | !uploadDir | !toFilename | !backupdir | !origin |
| 12/5/2008 14:17:55 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 12/5/2008 14:21:56 | YourName | [[silouan.html|file://localhost/Users/silouan/Desktop/silouan.html]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 12/5/2008 15:28:58 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 12/5/2008 15:46:52 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 12/5/2008 15:52:41 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 12/5/2008 15:53:23 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 12/5/2008 15:55:10 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 12/5/2008 15:55:27 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 12/5/2008 15:55:31 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 12/5/2008 16:0:58 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 12/5/2008 16:7:3 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 12/5/2008 16:8:15 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 12/5/2008 16:8:17 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok | Ok |
| 12/5/2008 16:8:47 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 13/5/2008 9:22:28 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 13/5/2008 10:13:11 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 13/5/2008 13:58:40 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 13/5/2008 14:49:46 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 13/5/2008 14:54:48 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 13/5/2008 15:21:1 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 13/5/2008 16:25:4 | YourName | [[silouan.html|file://localhost/Users/silouan/Desktop/silouan.html]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 13/5/2008 16:29:30 | PhilipSiIouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 13/5/2008 17:31:33 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 14/5/2008 8:26:30 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 14/5/2008 8:33:10 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 14/5/2008 10:52:57 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 14/5/2008 16:47:43 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 15/5/2008 15:12:38 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 16/5/2008 12:0:41 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 16/5/2008 12:1:53 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 16/5/2008 12:4:8 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 16/5/2008 12:6:21 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 16/5/2008 12:11:26 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 16/5/2008 12:13:9 | PhilipSilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 19/5/2008 11:17:43 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 19/5/2008 11:21:51 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 19/5/2008 11:30:16 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 19/5/2008 11:32:36 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 20/5/2008 10:39:39 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 20/5/2008 11:21:46 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 22/5/2008 15:51:24 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 28/5/2008 10:49:25 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 28/5/2008 10:49:45 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 28/5/2008 10:50:42 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 28/5/2008 10:59:25 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 28/5/2008 11:2:49 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 28/5/2008 11:4:14 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 28/5/2008 11:4:31 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 28/5/2008 11:55:18 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 30/5/2008 6:48:45 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 16/6/2008 9:36:22 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 16/6/2008 13:2:46 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 16/6/2008 16:44:37 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 18/6/2008 11:13:9 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 18/6/2008 15:28:10 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 18/6/2008 17:34:49 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 19/6/2008 17:9:23 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 20/6/2008 14:36:32 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 20/6/2008 16:42:38 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 23/6/2008 12:6:42 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 24/6/2008 12:6:22 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 24/6/2008 12:10:32 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 26/6/2008 12:18:11 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 7/7/2008 12:17:32 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 8/7/2008 14:29:45 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 9/7/2008 10:48:22 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 9/7/2008 11:57:42 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 9/7/2008 14:38:15 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 10/7/2008 8:21:14 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 10/7/2008 9:55:8 | YourName | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 11/7/2008 9:33:18 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 16/7/2008 16:39:56 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 17/7/2008 14:11:13 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 17/7/2008 14:24:3 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 17/7/2008 15:9:41 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 18/7/2008 10:25:29 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 18/7/2008 11:33:46 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 21/7/2008 10:29:46 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 22/7/2008 9:15:7 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 22/7/2008 13:48:24 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 22/7/2008 15:52:17 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 4/8/2008 10:53:40 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . | Ok |
| 4/8/2008 10:57:10 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
| 11/8/2008 15:25:38 | SilouanThompson | [[/|http://silouan.tiddlyspot.com/]] | [[store.cgi|http://silouan.tiddlyspot.com/store.cgi]] | . | index.html | . |
/***
|''Name:''|UploadPlugin|
|''Description:''|Save to web a TiddlyWiki|
|''Version:''|3.4.5|
|''Date:''|Oct 15, 2006|
|''Source:''|http://tiddlywiki.bidix.info/#UploadPlugin|
|''Documentation:''|http://tiddlywiki.bidix.info/#UploadDoc|
|''Author:''|BidiX (BidiX (at) bidix (dot) info)|
|''License:''|[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D ]]|
|''~CoreVersion:''|2.0.0|
|''Browser:''|Firefox 1.5; InternetExplorer 6.0; Safari|
|''Include:''|config.lib.file; config.lib.log; config.lib.options; PasswordTweak|
|''Require:''|[[UploadService|http://tiddlywiki.bidix.info/#UploadService]]|
***/
//{{{
version.extensions.UploadPlugin = {
major: 3, minor: 4, revision: 5,
date: new Date(2006,9,15),
source: 'http://tiddlywiki.bidix.info/#UploadPlugin',
documentation: 'http://tiddlywiki.bidix.info/#UploadDoc',
author: 'BidiX (BidiX (at) bidix (dot) info',
license: '[[BSD open source license|http://tiddlywiki.bidix.info/#%5B%5BBSD%20open%20source%20license%5D%5D]]',
coreVersion: '2.0.0',
browser: 'Firefox 1.5; InternetExplorer 6.0; Safari'
};
//}}}
////+++!![config.lib.file]
//{{{
if (!config.lib) config.lib = {};
if (!config.lib.file) config.lib.file= {
author: 'BidiX',
version: {major: 0, minor: 1, revision: 0},
date: new Date(2006,3,9)
};
config.lib.file.dirname = function (filePath) {
var lastpos;
if ((lastpos = filePath.lastIndexOf("/")) != -1) {
return filePath.substring(0, lastpos);
} else {
return filePath.substring(0, filePath.lastIndexOf("\\"));
}
};
config.lib.file.basename = function (filePath) {
var lastpos;
if ((lastpos = filePath.lastIndexOf("#")) != -1)
filePath = filePath.substring(0, lastpos);
if ((lastpos = filePath.lastIndexOf("/")) != -1) {
return filePath.substring(lastpos + 1);
} else
return filePath.substring(filePath.lastIndexOf("\\")+1);
};
window.basename = function() {return "@@deprecated@@";};
//}}}
////===
////+++!![config.lib.log]
//{{{
if (!config.lib) config.lib = {};
if (!config.lib.log) config.lib.log= {
author: 'BidiX',
version: {major: 0, minor: 1, revision: 1},
date: new Date(2006,8,19)
};
config.lib.Log = function(tiddlerTitle, logHeader) {
if (version.major < 2)
this.tiddler = store.tiddlers[tiddlerTitle];
else
this.tiddler = store.getTiddler(tiddlerTitle);
if (!this.tiddler) {
this.tiddler = new Tiddler();
this.tiddler.title = tiddlerTitle;
this.tiddler.text = "| !date | !user | !location |" + logHeader;
this.tiddler.created = new Date();
this.tiddler.modifier = config.options.txtUserName;
this.tiddler.modified = new Date();
if (version.major < 2)
store.tiddlers[tiddlerTitle] = this.tiddler;
else
store.addTiddler(this.tiddler);
}
return this;
};
config.lib.Log.prototype.newLine = function (line) {
var now = new Date();
var newText = "| ";
newText += now.getDate()+"/"+(now.getMonth()+1)+"/"+now.getFullYear() + " ";
newText += now.getHours()+":"+now.getMinutes()+":"+now.getSeconds()+" | ";
newText += config.options.txtUserName + " | ";
var location = document.location.toString();
var filename = config.lib.file.basename(location);
if (!filename) filename = '/';
newText += "[["+filename+"|"+location + "]] |";
this.tiddler.text = this.tiddler.text + "\n" + newText;
this.addToLine(line);
};
config.lib.Log.prototype.addToLine = function (text) {
this.tiddler.text = this.tiddler.text + text;
this.tiddler.modifier = config.options.txtUserName;
this.tiddler.modified = new Date();
if (version.major < 2)
store.tiddlers[this.tiddler.tittle] = this.tiddler;
else {
store.addTiddler(this.tiddler);
story.refreshTiddler(this.tiddler.title);
store.notify(this.tiddler.title, true);
}
if (version.major < 2)
store.notifyAll();
};
//}}}
////===
////+++!![config.lib.options]
//{{{
if (!config.lib) config.lib = {};
if (!config.lib.options) config.lib.options = {
author: 'BidiX',
version: {major: 0, minor: 1, revision: 0},
date: new Date(2006,3,9)
};
config.lib.options.init = function (name, defaultValue) {
if (!config.options[name]) {
config.options[name] = defaultValue;
saveOptionCookie(name);
}
};
//}}}
////===
////+++!![PasswordTweak]
//{{{
version.extensions.PasswordTweak = {
major: 1, minor: 0, revision: 3, date: new Date(2006,8,30),
type: 'tweak',
source: 'http://tiddlywiki.bidix.info/#PasswordTweak'
};
//}}}
/***
!!config.macros.option
***/
//{{{
config.macros.option.passwordCheckboxLabel = "Save this password on this computer";
config.macros.option.passwordType = "password"; // password | text
config.macros.option.onChangeOption = function(e)
{
var opt = this.getAttribute("option");
var elementType,valueField;
if(opt) {
switch(opt.substr(0,3)) {
case "txt":
elementType = "input";
valueField = "value";
break;
case "pas":
elementType = "input";
valueField = "value";
break;
case "chk":
elementType = "input";
valueField = "checked";
break;
}
config.options[opt] = this[valueField];
saveOptionCookie(opt);
var nodes = document.getElementsByTagName(elementType);
for(var t=0; t<nodes.length; t++)
{
var optNode = nodes[t].getAttribute("option");
if (opt == optNode)
nodes[t][valueField] = this[valueField];
}
}
return(true);
};
config.macros.option.handler = function(place,macroName,params)
{
var opt = params[0];
if(config.options[opt] === undefined) {
return;}
var c;
switch(opt.substr(0,3)) {
case "txt":
c = document.createElement("input");
c.onkeyup = this.onChangeOption;
c.setAttribute ("option",opt);
c.className = "txtOptionInput "+opt;
place.appendChild(c);
c.value = config.options[opt];
break;
case "pas":
// input password
c = document.createElement ("input");
c.setAttribute("type",config.macros.option.passwordType);
c.onkeyup = this.onChangeOption;
c.setAttribute("option",opt);
c.className = "pasOptionInput "+opt;
place.appendChild(c);
c.value = config.options[opt];
// checkbox link with this password "save this password on this computer"
c = document.createElement("input");
c.setAttribute("type","checkbox");
c.onclick = this.onChangeOption;
c.setAttribute("option","chk"+opt);
c.className = "chkOptionInput "+opt;
place.appendChild(c);
c.checked = config.options["chk"+opt];
// text savePasswordCheckboxLabel
place.appendChild(document.createTextNode(config.macros.option.passwordCheckboxLabel));
break;
case "chk":
c = document.createElement("input");
c.setAttribute("type","checkbox");
c.onclick = this.onChangeOption;
c.setAttribute("option",opt);
c.className = "chkOptionInput "+opt;
place.appendChild(c);
c.checked = config.options[opt];
break;
}
};
//}}}
/***
!! Option cookie stuff
***/
//{{{
window.loadOptionsCookie_orig_PasswordTweak = window.loadOptionsCookie;
window.loadOptionsCookie = function()
{
var cookies = document.cookie.split(";");
for(var c=0; c<cookies.length; c++) {
var p = cookies[c].indexOf("=");
if(p != -1) {
var name = cookies[c].substr(0,p).trim();
var value = cookies[c].substr(p+1).trim();
switch(name.substr(0,3)) {
case "txt":
config.options[name] = unescape(value);
break;
case "pas":
config.options[name] = unescape(value);
break;
case "chk":
config.options[name] = value == "true";
break;
}
}
}
};
window.saveOptionCookie_orig_PasswordTweak = window.saveOptionCookie;
window.saveOptionCookie = function(name)
{
var c = name + "=";
switch(name.substr(0,3)) {
case "txt":
c += escape(config.options[name].toString());
break;
case "chk":
c += config.options[name] ? "true" : "false";
// is there an option link with this chk ?
if (config.options[name.substr(3)]) {
saveOptionCookie(name.substr(3));
}
break;
case "pas":
if (config.options["chk"+name]) {
c += escape(config.options[name].toString());
} else {
c += "";
}
break;
}
c += "; expires=Fri, 1 Jan 2038 12:00:00 UTC; path=/";
document.cookie = c;
};
//}}}
/***
!! Initializations
***/
//{{{
// define config.options.pasPassword
if (!config.options.pasPassword) {
config.options.pasPassword = 'defaultPassword';
window.saveOptionCookie('pasPassword');
}
// since loadCookies is first called befor password definition
// we need to reload cookies
window.loadOptionsCookie();
//}}}
////===
////+++!![config.macros.upload]
//{{{
config.macros.upload = {
accessKey: "U",
formName: "UploadPlugin",
contentType: "text/html;charset=UTF-8",
defaultStoreScript: "store.php"
};
// only this two configs need to be translated
config.macros.upload.messages = {
aboutToUpload: "About to upload TiddlyWiki to %0",
backupFileStored: "Previous file backuped in %0",
crossDomain: "Certainly a cross-domain isue: access to an other site isn't allowed",
errorDownloading: "Error downloading",
errorUploadingContent: "Error uploading content",
fileLocked: "Files is locked: You are not allowed to Upload",
fileNotFound: "file to upload not found",
fileNotUploaded: "File %0 NOT uploaded",
mainFileUploaded: "Main TiddlyWiki file uploaded to %0",
passwordEmpty: "Unable to upload, your password is empty",
urlParamMissing: "url param missing",
rssFileNotUploaded: "RssFile %0 NOT uploaded",
rssFileUploaded: "Rss File uploaded to %0"
};
config.macros.upload.label = {
promptOption: "Save and Upload this TiddlyWiki with UploadOptions",
promptParamMacro: "Save and Upload this TiddlyWiki in %0",
saveLabel: "save to web",
saveToDisk: "save to disk",
uploadLabel: "upload"
};
config.macros.upload.handler = function(place,macroName,params){
// parameters initialization
var storeUrl = params[0];
var toFilename = params[1];
var backupDir = params[2];
var uploadDir = params[3];
var username = params[4];
var password; // for security reason no password as macro parameter
var label;
if (document.location.toString().substr(0,4) == "http")
label = this.label.saveLabel;
else
label = this.label.uploadLabel;
var prompt;
if (storeUrl) {
prompt = this.label.promptParamMacro.toString().format([this.toDirUrl(storeUrl, uploadDir, username)]);
}
else {
prompt = this.label.promptOption;
}
createTiddlyButton(place, label, prompt,
function () {
config.macros.upload.upload(storeUrl, toFilename, uploadDir, backupDir, username, password);
return false;},
null, null, this.accessKey);
};
config.macros.upload.UploadLog = function() {
return new config.lib.Log('UploadLog', " !storeUrl | !uploadDir | !toFilename | !backupdir | !origin |" );
};
config.macros.upload.UploadLog.prototype = config.lib.Log.prototype;
config.macros.upload.UploadLog.prototype.startUpload = function(storeUrl, toFilename, uploadDir, backupDir) {
var line = " [[" + config.lib.file.basename(storeUrl) + "|" + storeUrl + "]] | ";
line += uploadDir + " | " + toFilename + " | " + backupDir + " |";
this.newLine(line);
};
config.macros.upload.UploadLog.prototype.endUpload = function() {
this.addToLine(" Ok |");
};
config.macros.upload.basename = config.lib.file.basename;
config.macros.upload.dirname = config.lib.file.dirname;
config.macros.upload.toRootUrl = function (storeUrl, username)
{
return root = (this.dirname(storeUrl)?this.dirname(storeUrl):this.dirname(document.location.toString()));
}
config.macros.upload.toDirUrl = function (storeUrl, uploadDir, username)
{
var root = this.toRootUrl(storeUrl, username);
if (uploadDir && uploadDir != '.')
root = root + '/' + uploadDir;
return root;
}
config.macros.upload.toFileUrl = function (storeUrl, toFilename, uploadDir, username)
{
return this.toDirUrl(storeUrl, uploadDir, username) + '/' + toFilename;
}
config.macros.upload.upload = function(storeUrl, toFilename, uploadDir, backupDir, username, password)
{
// parameters initialization
storeUrl = (storeUrl ? storeUrl : config.options.txtUploadStoreUrl);
toFilename = (toFilename ? toFilename : config.options.txtUploadFilename);
backupDir = (backupDir ? backupDir : config.options.txtUploadBackupDir);
uploadDir = (uploadDir ? uploadDir : config.options.txtUploadDir);
username = (username ? username : config.options.txtUploadUserName);
password = config.options.pasUploadPassword; // for security reason no password as macro parameter
if (!password || password === '') {
alert(config.macros.upload.messages.passwordEmpty);
return;
}
if (storeUrl === '') {
storeUrl = config.macros.upload.defaultStoreScript;
}
if (config.lib.file.dirname(storeUrl) === '') {
storeUrl = config.lib.file.dirname(document.location.toString())+'/'+storeUrl;
}
if (toFilename === '') {
toFilename = config.lib.file.basename(document.location.toString());
}
clearMessage();
// only for forcing the message to display
if (version.major < 2)
store.notifyAll();
if (!storeUrl) {
alert(config.macros.upload.messages.urlParamMissing);
return;
}
// Check that file is not locked
if (window.BidiX && BidiX.GroupAuthoring && BidiX.GroupAuthoring.lock) {
if (BidiX.GroupAuthoring.lock.isLocked() && !BidiX.GroupAuthoring.lock.isMyLock()) {
alert(config.macros.upload.messages.fileLocked);
return;
}
}
var log = new this.UploadLog();
log.startUpload(storeUrl, toFilename, uploadDir, backupDir);
if (document.location.toString().substr(0,5) == "file:") {
saveChanges();
}
var toDir = config.macros.upload.toDirUrl(storeUrl, toFilename, uploadDir, username);
displayMessage(config.macros.upload.messages.aboutToUpload.format([toDir]), toDir);
this.uploadChanges(storeUrl, toFilename, uploadDir, backupDir, username, password);
if(config.options.chkGenerateAnRssFeed) {
//var rssContent = convertUnicodeToUTF8(generateRss());
var rssContent = generateRss();
var rssPath = toFilename.substr(0,toFilename.lastIndexOf(".")) + ".xml";
this.uploadContent(rssContent, storeUrl, rssPath, uploadDir, '', username, password,
function (responseText) {
if (responseText.substring(0,1) != '0') {
displayMessage(config.macros.upload.messages.rssFileNotUploaded.format([rssPath]));
}
else {
var toFileUrl = config.macros.upload.toFileUrl(storeUrl, rssPath, uploadDir, username);
displayMessage(config.macros.upload.messages.rssFileUploaded.format(
[toFileUrl]), toFileUrl);
}
// for debugging store.php uncomment last line
//DEBUG alert(responseText);
});
}
return;
};
config.macros.upload.uploadChanges = function(storeUrl, toFilename, uploadDir, backupDir,
username, password) {
var original;
if (document.location.toString().substr(0,4) == "http") {
original = this.download(storeUrl, toFilename, uploadDir, backupDir, username, password);
return;
}
else {
// standard way : Local file
original = loadFile(getLocalPath(document.location.toString()));
if(window.Components) {
// it's a mozilla browser
try {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
var converter = Components.classes["@mozilla.org/intl/scriptableunicodeconverter"]
.createInstance(Components.interfaces.nsIScriptableUnicodeConverter);
converter.charset = "UTF-8";
original = converter.ConvertToUnicode(original);
}
catch(e) {
}
}
}
//DEBUG alert(original);
this.uploadChangesFrom(original, storeUrl, toFilename, uploadDir, backupDir,
username, password);
};
config.macros.upload.uploadChangesFrom = function(original, storeUrl, toFilename, uploadDir, backupDir,
username, password) {
var startSaveArea = '<div id="' + 'storeArea">'; // Split up into two so that indexOf() of this source doesn't find it
var endSaveArea = '</d' + 'iv>';
// Locate the storeArea div's
var posOpeningDiv = original.indexOf(startSaveArea);
var posClosingDiv = original.lastIndexOf(endSaveArea);
if((posOpeningDiv == -1) || (posClosingDiv == -1))
{
alert(config.messages.invalidFileError.format([document.location.toString()]));
return;
}
var revised = original.substr(0,posOpeningDiv + startSaveArea.length) +
allTiddlersAsHtml() + "\n\t\t" +
original.substr(posClosingDiv);
var newSiteTitle;
if(version.major < 2){
newSiteTitle = (getElementText("siteTitle") + " - " + getElementText("siteSubtitle")).htmlEncode();
} else {
newSiteTitle = (wikifyPlain ("SiteTitle") + " - " + wikifyPlain ("SiteSubtitle")).htmlEncode();
}
revised = revised.replaceChunk("<title"+">","</title"+">"," " + newSiteTitle + " ");
revised = revised.replaceChunk("<!--PRE-HEAD-START--"+">","<!--PRE-HEAD-END--"+">","\n" + store.getTiddlerText("MarkupPreHead","") + "\n");
revised = revised.replaceChunk("<!--POST-HEAD-START--"+">","<!--POST-HEAD-END--"+">","\n" + store.getTiddlerText("MarkupPostHead","") + "\n");
revised = revised.replaceChunk("<!--PRE-BODY-START--"+">","<!--PRE-BODY-END--"+">","\n" + store.getTiddlerText("MarkupPreBody","") + "\n");
revised = revised.replaceChunk("<!--POST-BODY-START--"+">","<!--POST-BODY-END--"+">","\n" + store.getTiddlerText("MarkupPostBody","") + "\n");
var response = this.uploadContent(revised, storeUrl, toFilename, uploadDir, backupDir,
username, password, function (responseText) {
if (responseText.substring(0,1) != '0') {
alert(responseText);
displayMessage(config.macros.upload.messages.fileNotUploaded.format([getLocalPath(document.location.toString())]));
}
else {
if (uploadDir !== '') {
toFilename = uploadDir + "/" + config.macros.upload.basename(toFilename);
} else {
toFilename = config.macros.upload.basename(toFilename);
}
var toFileUrl = config.macros.upload.toFileUrl(storeUrl, toFilename, uploadDir, username);
if (responseText.indexOf("destfile:") > 0) {
var destfile = responseText.substring(responseText.indexOf("destfile:")+9,
responseText.indexOf("\n", responseText.indexOf("destfile:")));
toFileUrl = config.macros.upload.toRootUrl(storeUrl, username) + '/' + destfile;
}
else {
toFileUrl = config.macros.upload.toFileUrl(storeUrl, toFilename, uploadDir, username);
}
displayMessage(config.macros.upload.messages.mainFileUploaded.format(
[toFileUrl]), toFileUrl);
if (backupDir && responseText.indexOf("backupfile:") > 0) {
var backupFile = responseText.substring(responseText.indexOf("backupfile:")+11,
responseText.indexOf("\n", responseText.indexOf("backupfile:")));
toBackupUrl = config.macros.upload.toRootUrl(storeUrl, username) + '/' + backupFile;
displayMessage(config.macros.upload.messages.backupFileStored.format(
[toBackupUrl]), toBackupUrl);
}
var log = new config.macros.upload.UploadLog();
log.endUpload();
store.setDirty(false);
// erase local lock
if (window.BidiX && BidiX.GroupAuthoring && BidiX.GroupAuthoring.lock) {
BidiX.GroupAuthoring.lock.eraseLock();
// change mtime with new mtime after upload
var mtime = responseText.substr(responseText.indexOf("mtime:")+6);
BidiX.GroupAuthoring.lock.mtime = mtime;
}
}
// for debugging store.php uncomment last line
//DEBUG alert(responseText);
}
);
};
config.macros.upload.uploadContent = function(content, storeUrl, toFilename, uploadDir, backupDir,
username, password, callbackFn) {
var boundary = "---------------------------"+"AaB03x";
var request;
try {
request = new XMLHttpRequest();
}
catch (e) {
request = new ActiveXObject("Msxml2.XMLHTTP");
}
if (window.netscape){
try {
if (document.location.toString().substr(0,4) != "http") {
netscape.security.PrivilegeManager.enablePrivilege('UniversalBrowserRead');}
}
catch (e) {}
}
//DEBUG alert("user["+config.options.txtUploadUserName+"] password[" + config.options.pasUploadPassword + "]");
// compose headers data
var sheader = "";
sheader += "--" + boundary + "\r\nContent-disposition: form-data; name=\"";
sheader += config.macros.upload.formName +"\"\r\n\r\n";
sheader += "backupDir="+backupDir
+";user=" + username
+";password=" + password
+";uploaddir=" + uploadDir;
// add lock attributes to sheader
if (window.BidiX && BidiX.GroupAuthoring && BidiX.GroupAuthoring.lock) {
var l = BidiX.GroupAuthoring.lock.myLock;
sheader += ";lockuser=" + l.user
+ ";mtime=" + l.mtime
+ ";locktime=" + l.locktime;
}
sheader += ";;\r\n";
sheader += "\r\n" + "--" + boundary + "\r\n";
sheader += "Content-disposition: form-data; name=\"userfile\"; filename=\""+toFilename+"\"\r\n";
sheader += "Content-Type: " + config.macros.upload.contentType + "\r\n";
sheader += "Content-Length: " + content.length + "\r\n\r\n";
// compose trailer data
var strailer = new String();
strailer = "\r\n--" + boundary + "--\r\n";
//strailer = "--" + boundary + "--\r\n";
var data;
data = sheader + content + strailer;
//request.open("POST", storeUrl, true, username, password);
try {
request.open("POST", storeUrl, true);
}
catch(e) {
alert(config.macros.upload.messages.crossDomain + "\nError:" +e);
exit;
}
request.onreadystatechange = function () {
if (request.readyState == 4) {
if (request.status == 200)
callbackFn(request.responseText);
else
alert(config.macros.upload.messages.errorUploadingContent + "\nStatus: "+request.status.statusText);
}
};
request.setRequestHeader("Content-Length",data.length);
request.setRequestHeader("Content-Type","multipart/form-data; boundary="+boundary);
request.send(data);
};
config.macros.upload.download = function(uploadUrl, uploadToFilename, uploadDir, uploadBackupDir,
username, password) {
var request;
try {
request = new XMLHttpRequest();
}
catch (e) {
request = new ActiveXObject("Msxml2.XMLHTTP");
}
try {
if (uploadUrl.substr(0,4) == "http") {
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
}
else {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
}
} catch (e) { }
//request.open("GET", document.location.toString(), true, username, password);
try {
request.open("GET", document.location.toString(), true);
}
catch(e) {
alert(config.macros.upload.messages.crossDomain + "\nError:" +e);
exit;
}
request.onreadystatechange = function () {
if (request.readyState == 4) {
if(request.status == 200) {
config.macros.upload.uploadChangesFrom(request.responseText, uploadUrl,
uploadToFilename, uploadDir, uploadBackupDir, username, password);
}
else
alert(config.macros.upload.messages.errorDownloading.format(
[document.location.toString()]) + "\nStatus: "+request.status.statusText);
}
};
request.send(null);
};
//}}}
////===
////+++!![Initializations]
//{{{
config.lib.options.init('txtUploadStoreUrl','store.php');
config.lib.options.init('txtUploadFilename','');
config.lib.options.init('txtUploadDir','');
config.lib.options.init('txtUploadBackupDir','');
config.lib.options.init('txtUploadUserName',config.options.txtUserName);
config.lib.options.init('pasUploadPassword','');
setStylesheet(
".pasOptionInput {width: 11em;}\n"+
".txtOptionInput.txtUploadStoreUrl {width: 25em;}\n"+
".txtOptionInput.txtUploadFilename {width: 25em;}\n"+
".txtOptionInput.txtUploadDir {width: 25em;}\n"+
".txtOptionInput.txtUploadBackupDir {width: 25em;}\n"+
"",
"UploadOptionsStyles");
if (document.location.toString().substr(0,4) == "http") {
config.options.chkAutoSave = false;
saveOptionCookie('chkAutoSave');
}
config.shadowTiddlers.UploadDoc = "[[Full Documentation|http://tiddlywiki.bidix.info/l#UploadDoc ]]\n";
//}}}
////===
////+++!![Core Hijacking]
//{{{
config.macros.saveChanges.label_orig_UploadPlugin = config.macros.saveChanges.label;
config.macros.saveChanges.label = config.macros.upload.label.saveToDisk;
config.macros.saveChanges.handler_orig_UploadPlugin = config.macros.saveChanges.handler;
config.macros.saveChanges.handler = function(place)
{
if ((!readOnly) && (document.location.toString().substr(0,4) != "http"))
createTiddlyButton(place,this.label,this.prompt,this.onClick,null,null,this.accessKey);
};
//}}}
////===
order:2
button:w
buttonLong:waiting for
order:2
button:week
buttonLong:weekly
Lunch and Discussion. I will share the overall goals and priorities for the year. Each of you, please, need to be prepared to discuss the following:
-- most proud accomplishment of the past year, personal and professional
-- what I would most like to accomplish, personal and professional
-- What I like most about my job
-- What didn't work so well this past year
-- What I like most about Whitman College
order:4
button:year
buttonLong:yearly
/***
|''Name:''|YourSearchPlugin|
|''Version:''|2.1.3 (2008-04-16)|
|''Source:''|http://tiddlywiki.abego-software.de/#YourSearchPlugin|
|''Author:''|UdoBorkowski (ub [at] abego-software [dot] de)|
|''Licence:''|[[BSD open source license (abego Software)|http://www.abego-software.de/legal/apl-v10.html]]|
|''Copyright:''|© 2005-2008 [[abego Software|http://www.abego-software.de]]|
|''~CoreVersion:''|2.1.0|
|''Community:''|[[del.icio.us|http://del.icio.us/post?url=http://tiddlywiki.abego-software.de/index.html%23YourSearchPlugin]]|
|''Browser:''|Firefox 1.0.4+; Firefox 1.5; ~InternetExplorer 6.0|
!About YourSearch
YourSearch gives you a bunch of new features to simplify and speed up your daily searches in TiddlyWiki. It seamlessly integrates into the standard TiddlyWiki search: just start typing into the 'search' field and explore!
For more information see [[Help|YourSearch Help]].
!Compatibility
This plugin requires TiddlyWiki 2.1.
Check the [[archive|http://tiddlywiki.abego-software.de/archive]] for ~YourSearchPlugins supporting older versions of TiddlyWiki.
!Source Code
***/
/***
This plugin's source code is compressed (and hidden). Use this [[link|http://tiddlywiki.abego-software.de/archive/YourSearchPlugin/Plugin-YourSearch-src.2.1.3.js]] to get the readable source code.
***/
///%
if(!version.extensions.YourSearchPlugin){version.extensions.YourSearchPlugin={major:2,minor:1,revision:3,source:"http://tiddlywiki.abego-software.de/#YourSearchPlugin",licence:"[[BSD open source license (abego Software)|http://www.abego-software.de/legal/apl-v10.html]]",copyright:"Copyright (c) abego Software GmbH, 2005-2008 (www.abego-software.de)"};if(!window.abego){window.abego={};}
if(!Array.forEach){Array.forEach=function(_1,_2,_3){for(var i=0,len=_1.length;i<len;i++){_2.call(_3,_1[i],i,_1);}};Array.prototype.forEach=function(_5,_6){for(var i=0,len=this.length;i<len;i++){_5.call(_6,this[i],i,this);}};}
abego.toInt=function(s,_9){if(!s){return _9;}
var n=parseInt(s);return(n==NaN)?_9:n;};abego.createEllipsis=function(_b){var e=createTiddlyElement(_b,"span");e.innerHTML="…";};abego.shallowCopy=function(_d){if(!_d){return _d;}
var _e={};for(var n in _d){_e[n]=_d[n];}
return _e;};abego.copyOptions=function(_10){return!_10?{}:abego.shallowCopy(_10);};abego.countStrings=function(_11,s){if(!s){return 0;}
var len=s.length;var n=0;var _15=0;while(1){var i=_11.indexOf(s,_15);if(i<0){return n;}
n++;_15=i+len;}
return n;};abego.getBracedText=function(_17,_18,_19){if(!_18){_18=0;}
var re=/\{([^\}]*)\}/gm;re.lastIndex=_18;var m=re.exec(_17);if(m){var s=m[1];var _1d=abego.countStrings(s,"{");if(!_1d){if(_19){_19.lastIndex=re.lastIndex;}
return s;}
var len=_17.length;for(var i=re.lastIndex;i<len&&_1d;i++){var c=_17.charAt(i);if(c=="{"){_1d++;}else{if(c=="}"){_1d--;}}}
if(!_1d){if(_19){_19.lastIndex=i-1;}
return _17.substring(m.index+1,i-1);}}};abego.select=function(_21,_22,_23,_24){if(!_24){_24=[];}
_21.forEach(function(t){if(_22.call(_23,t)){_24.push(t);}});return _24;};abego.consumeEvent=function(e){if(e.stopPropagation){e.stopPropagation();}
if(e.preventDefault){e.preventDefault();}
e.cancelBubble=true;e.returnValue=true;};abego.TiddlerFilterTerm=function(_27,_28){if(!_28){_28={};}
var _29=_27;if(!_28.textIsRegExp){_29=_27.escapeRegExp();if(_28.fullWordMatch){_29="\\b"+_29+"\\b";}}
var _2a=new RegExp(_29,"m"+(_28.caseSensitive?"":"i"));this.tester=new abego.MultiFieldRegExpTester(_2a,_28.fields,_28.withExtendedFields);};abego.TiddlerFilterTerm.prototype.test=function(_2b){return this.tester.test(_2b);};abego.parseNewTiddlerCommandLine=function(s){var m=/(.*?)\.(?:\s+|$)([^#]*)(#.*)?/.exec(s);if(!m){m=/([^#]*)()(#.*)?/.exec(s);}
if(m){var r;if(m[3]){var s2=m[3].replace(/#/g,"");r=s2.parseParams("tag");}else{r=[[]];}
var _30=m[2]?m[2].trim():"";r.push({name:"text",value:_30});r[0].text=[_30];return{title:m[1].trim(),params:r};}else{return{title:s.trim(),params:[[]]};}};abego.parseTiddlerFilterTerm=function(_31,_32,_33){var re=/\s*(?:(?:\{([^\}]*)\})|(?:(=)|([#%!])|(?:(\w+)\s*\:(?!\/\/))|(?:(?:("(?:(?:\\")|[^"])+")|(?:\/((?:(?:\\\/)|[^\/])+)\/)|(\w+\:\/\/[^\s]+)|([^\s\)\-\"]+)))))/mg;var _35={"!":"title","%":"text","#":"tags"};var _36={};var _37;re.lastIndex=_32;while(1){var i=re.lastIndex;var m=re.exec(_31);if(!m||m.index!=i){throw"Word or String literal expected";}
if(m[1]){var _3a={};var _3b=abego.getBracedText(_31,0,_3a);if(!_3b){throw"Invalid {...} syntax";}
var f=Function("tiddler","return ("+_3b+");");return{func:f,lastIndex:_3a.lastIndex,markRE:null};}
if(m[2]){_37=true;}else{if(m[3]){_36[_35[m[3]]]=1;}else{if(m[4]){_36[m[4]]=1;}else{var _3d=m[6];var _3e=m[5]?window.eval(m[5]):m[6]?m[6]:m[7]?m[7]:m[8];var _33=abego.copyOptions(_33);_33.fullWordMatch=_37;_33.textIsRegExp=_3d;var _3f=[];for(var n in _36){_3f.push(n);}
if(_3f.length==0){_33.fields=_33.defaultFields;}else{_33.fields=_3f;_33.withExtendedFields=false;}
var _41=new abego.TiddlerFilterTerm(_3e,_33);var _42=_3d?_3e:_3e.escapeRegExp();if(_42&&_37){_42="\\b"+_42+"\\b";}
return{func:function(_43){return _41.test(_43);},lastIndex:re.lastIndex,markRE:_42?"(?:"+_42+")":null};}}}}};abego.BoolExp=function(s,_45,_46){this.s=s;var _47=_46&&_46.defaultOperationIs_OR;var _48=/\s*(?:(\-|not)|(\())/gi;var _49=/\s*\)/g;var _4a=/\s*(?:(and|\&\&)|(or|\|\|))/gi;var _4b=/\s*[^\)\s]/g;var _4c=/\s*(\-|not)?(\s*\()?/gi;var _4d;var _4e=function(_4f){_4c.lastIndex=_4f;var m=_4c.exec(s);var _51;var _52;if(m&&m.index==_4f){_4f+=m[0].length;_51=m[1];if(m[2]){var e=_4d(_4f);_49.lastIndex=e.lastIndex;if(!_49.exec(s)){throw"Missing ')'";}
_52={func:e.func,lastIndex:_49.lastIndex,markRE:e.markRE};}}
if(!_52){_52=_45(s,_4f,_46);}
if(_51){_52.func=(function(f){return function(_55){return!f(_55);};})(_52.func);_52.markRE=null;}
return _52;};_4d=function(_56){var _57=_4e(_56);while(1){var l=_57.lastIndex;_4a.lastIndex=l;var m=_4a.exec(s);var _5a;var _5b;if(m&&m.index==l){_5a=!m[1];_5b=_4e(_4a.lastIndex);}else{try{_5b=_4e(l);}
catch(e){return _57;}
_5a=_47;}
_57.func=(function(_5c,_5d,_5e){return _5e?function(_5f){return _5c(_5f)||_5d(_5f);}:function(_60){return _5c(_60)&&_5d(_60);};})(_57.func,_5b.func,_5a);_57.lastIndex=_5b.lastIndex;if(!_57.markRE){_57.markRE=_5b.markRE;}else{if(_5b.markRE){_57.markRE=_57.markRE+"|"+_5b.markRE;}}}};var _61=_4d(0);this.evalFunc=_61.func;if(_61.markRE){this.markRegExp=new RegExp(_61.markRE,_46.caseSensitive?"mg":"img");}};abego.BoolExp.prototype.exec=function(){return this.evalFunc.apply(this,arguments);};abego.BoolExp.prototype.getMarkRegExp=function(){return this.markRegExp;};abego.BoolExp.prototype.toString=function(){return this.s;};abego.MultiFieldRegExpTester=function(re,_63,_64){this.re=re;this.fields=_63?_63:["title","text","tags"];this.withExtendedFields=_64;};abego.MultiFieldRegExpTester.prototype.test=function(_65){var re=this.re;for(var i=0;i<this.fields.length;i++){var s=store.getValue(_65,this.fields[i]);if(typeof s=="string"&&re.test(s)){return this.fields[i];}}
if(this.withExtendedFields){return store.forEachField(_65,function(_69,_6a,_6b){return typeof _6b=="string"&&re.test(_6b)?_6a:null;},true);}
return null;};abego.TiddlerQuery=function(_6c,_6d,_6e,_6f,_70){if(_6e){this.regExp=new RegExp(_6c,_6d?"mg":"img");this.tester=new abego.MultiFieldRegExpTester(this.regExp,_6f,_70);}else{this.expr=new abego.BoolExp(_6c,abego.parseTiddlerFilterTerm,{defaultFields:_6f,caseSensitive:_6d,withExtendedFields:_70});}
this.getQueryText=function(){return _6c;};this.getUseRegExp=function(){return _6e;};this.getCaseSensitive=function(){return _6d;};this.getDefaultFields=function(){return _6f;};this.getWithExtendedFields=function(){return _70;};};abego.TiddlerQuery.prototype.test=function(_71){if(!_71){return false;}
if(this.regExp){return this.tester.test(_71);}
return this.expr.exec(_71);};abego.TiddlerQuery.prototype.filter=function(_72){return abego.select(_72,this.test,this);};abego.TiddlerQuery.prototype.getMarkRegExp=function(){if(this.regExp){return"".search(this.regExp)>=0?null:this.regExp;}
return this.expr.getMarkRegExp();};abego.TiddlerQuery.prototype.toString=function(){return(this.regExp?this.regExp:this.expr).toString();};abego.PageWiseRenderer=function(){this.firstIndexOnPage=0;};merge(abego.PageWiseRenderer.prototype,{setItems:function(_73){this.items=_73;this.setFirstIndexOnPage(0);},getMaxPagesInNavigation:function(){return 10;},getItemsCount:function(_74){return this.items?this.items.length:0;},getCurrentPageIndex:function(){return Math.floor(this.firstIndexOnPage/this.getItemsPerPage());},getLastPageIndex:function(){return Math.floor((this.getItemsCount()-1)/this.getItemsPerPage());},setFirstIndexOnPage:function(_75){this.firstIndexOnPage=Math.min(Math.max(0,_75),this.getItemsCount()-1);},getFirstIndexOnPage:function(){this.firstIndexOnPage=Math.floor(this.firstIndexOnPage/this.getItemsPerPage())*this.getItemsPerPage();return this.firstIndexOnPage;},getLastIndexOnPage:function(){return Math.min(this.getFirstIndexOnPage()+this.getItemsPerPage()-1,this.getItemsCount()-1);},onPageChanged:function(_76,_77){},renderPage:function(_78){if(_78.beginRendering){_78.beginRendering(this);}
try{if(this.getItemsCount()){var _79=this.getLastIndexOnPage();var _7a=-1;for(var i=this.getFirstIndexOnPage();i<=_79;i++){_7a++;_78.render(this,this.items[i],i,_7a);}}}
finally{if(_78.endRendering){_78.endRendering(this);}}},addPageNavigation:function(_7c){if(!this.getItemsCount()){return;}
var _7d=this;var _7e=function(e){if(!e){var e=window.event;}
abego.consumeEvent(e);var _80=abego.toInt(this.getAttribute("page"),0);var _81=_7d.getCurrentPageIndex();if(_80==_81){return;}
var _82=_80*_7d.getItemsPerPage();_7d.setFirstIndexOnPage(_82);_7d.onPageChanged(_80,_81);};var _83;var _84=this.getCurrentPageIndex();var _85=this.getLastPageIndex();if(_84>0){_83=createTiddlyButton(_7c,"Previous","Go to previous page (Shortcut: Alt-'<')",_7e,"prev");_83.setAttribute("page",(_84-1).toString());_83.setAttribute("accessKey","<");}
for(var i=-this.getMaxPagesInNavigation();i<this.getMaxPagesInNavigation();i++){var _87=_84+i;if(_87<0){continue;}
if(_87>_85){break;}
var _88=(i+_84+1).toString();var _89=_87==_84?"currentPage":"otherPage";_83=createTiddlyButton(_7c,_88,"Go to page %0".format([_88]),_7e,_89);_83.setAttribute("page",(_87).toString());}
if(_84<_85){_83=createTiddlyButton(_7c,"Next","Go to next page (Shortcut: Alt-'>')",_7e,"next");_83.setAttribute("page",(_84+1).toString());_83.setAttribute("accessKey",">");}}});abego.LimitedTextRenderer=function(){var _8a=40;var _8b=4;var _8c=function(_8d,_8e,_8f){var n=_8d.length;if(n==0){_8d.push({start:_8e,end:_8f});return;}
var i=0;for(;i<n;i++){var _92=_8d[i];if(_92.start<=_8f&&_8e<=_92.end){var r;var _94=i+1;for(;_94<n;_94++){r=_8d[_94];if(r.start>_8f||_8e>_92.end){break;}}
var _95=_8e;var _96=_8f;for(var j=i;j<_94;j++){r=_8d[j];_95=Math.min(_95,r.start);_96=Math.max(_96,r.end);}
_8d.splice(i,_94-i,{start:_95,end:_96});return;}
if(_92.start>_8f){break;}}
_8d.splice(i,0,{start:_8e,end:_8f});};var _98=function(_99){var _9a=0;for(var i=0;i<_99.length;i++){var _9c=_99[i];_9a+=_9c.end-_9c.start;}
return _9a;};var _9d=function(c){return(c>="a"&&c<="z")||(c>="A"&&c<="Z")||c=="_";};var _9f=function(s,_a1){if(!_9d(s[_a1])){return null;}
for(var i=_a1-1;i>=0&&_9d(s[i]);i--){}
var _a3=i+1;var n=s.length;for(i=_a1+1;i<n&&_9d(s[i]);i++){}
return{start:_a3,end:i};};var _a5=function(s,_a7,_a8){var _a9;if(_a8){_a9=_9f(s,_a7);}else{if(_a7<=0){return _a7;}
_a9=_9f(s,_a7-1);}
if(!_a9){return _a7;}
if(_a8){if(_a9.start>=_a7-_8b){return _a9.start;}
if(_a9.end<=_a7+_8b){return _a9.end;}}else{if(_a9.end<=_a7+_8b){return _a9.end;}
if(_a9.start>=_a7-_8b){return _a9.start;}}
return _a7;};var _aa=function(s,_ac){var _ad=[];if(_ac){var _ae=0;var n=s.length;var _b0=0;do{_ac.lastIndex=_ae;var _b1=_ac.exec(s);if(_b1){if(_ae<_b1.index){var t=s.substring(_ae,_b1.index);_ad.push({text:t});}
_ad.push({text:_b1[0],isMatch:true});_ae=_b1.index+_b1[0].length;}else{_ad.push({text:s.substr(_ae)});break;}}while(true);}else{_ad.push({text:s});}
return _ad;};var _b3=function(_b4){var _b5=0;for(var i=0;i<_b4.length;i++){if(_b4[i].isMatch){_b5++;}}
return _b5;};var _b7=function(s,_b9,_ba,_bb,_bc){var _bd=Math.max(Math.floor(_bc/(_bb+1)),_8a);var _be=Math.max(_bd-(_ba-_b9),0);var _bf=Math.min(Math.floor(_ba+_be/3),s.length);var _c0=Math.max(_bf-_bd,0);_c0=_a5(s,_c0,true);_bf=_a5(s,_bf,false);return{start:_c0,end:_bf};};var _c1=function(_c2,s,_c4){var _c5=[];var _c6=_b3(_c2);var pos=0;for(var i=0;i<_c2.length;i++){var t=_c2[i];var _ca=t.text;if(t.isMatch){var _cb=_b7(s,pos,pos+_ca.length,_c6,_c4);_8c(_c5,_cb.start,_cb.end);}
pos+=_ca.length;}
return _c5;};var _cc=function(s,_ce,_cf){var _d0=_cf-_98(_ce);while(_d0>0){if(_ce.length==0){_8c(_ce,0,_a5(s,_cf,false));return;}else{var _d1=_ce[0];var _d2;var _d3;if(_d1.start==0){_d2=_d1.end;if(_ce.length>1){_d3=_ce[1].start;}else{_8c(_ce,_d2,_a5(s,_d2+_d0,false));return;}}else{_d2=0;_d3=_d1.start;}
var _d4=Math.min(_d3,_d2+_d0);_8c(_ce,_d2,_d4);_d0-=(_d4-_d2);}}};var _d5=function(_d6,s,_d8,_d9,_da){if(_d9.length==0){return;}
var _db=function(_dc,s,_de,_df,_e0){var t;var _e2;var pos=0;var i=0;var _e5=0;for(;i<_de.length;i++){t=_de[i];_e2=t.text;if(_df<pos+_e2.length){_e5=_df-pos;break;}
pos+=_e2.length;}
var _e6=_e0-_df;for(;i<_de.length&&_e6>0;i++){t=_de[i];_e2=t.text.substr(_e5);_e5=0;if(_e2.length>_e6){_e2=_e2.substr(0,_e6);}
if(t.isMatch){createTiddlyElement(_dc,"span",null,"marked",_e2);}else{createTiddlyText(_dc,_e2);}
_e6-=_e2.length;}
if(_e0<s.length){abego.createEllipsis(_dc);}};if(_d9[0].start>0){abego.createEllipsis(_d6);}
var _e7=_da;for(var i=0;i<_d9.length&&_e7>0;i++){var _e9=_d9[i];var len=Math.min(_e9.end-_e9.start,_e7);_db(_d6,s,_d8,_e9.start,_e9.start+len);_e7-=len;}};this.render=function(_eb,s,_ed,_ee){if(s.length<_ed){_ed=s.length;}
var _ef=_aa(s,_ee);var _f0=_c1(_ef,s,_ed);_cc(s,_f0,_ed);_d5(_eb,s,_ef,_f0,_ed);};};(function(){function alertAndThrow(msg){alert(msg);throw msg;}
if(version.major<2||(version.major==2&&version.minor<1)){alertAndThrow("YourSearchPlugin requires TiddlyWiki 2.1 or newer.\n\nCheck the archive for YourSearch plugins\nsupporting older versions of TiddlyWiki.\n\nArchive: http://tiddlywiki.abego-software.de/archive");}
abego.YourSearch={};var _f2;var _f3;var _f4=function(_f5){_f2=_f5;};var _f6=function(){return _f2?_f2:[];};var _f7=function(){return _f2?_f2.length:0;};var _f8=4;var _f9=10;var _fa=2;var _fb=function(s,re){var m=s.match(re);return m?m.length:0;};var _ff=function(_100,_101){var _102=_101.getMarkRegExp();if(!_102){return 1;}
var _103=_100.title.match(_102);var _104=_103?_103.length:0;var _105=_fb(_100.getTags(),_102);var _106=_103?_103.join("").length:0;var _107=_100.title.length>0?_106/_100.title.length:0;var rank=_104*_f8+_105*_fa+_107*_f9+1;return rank;};var _109=function(_10a,_10b,_10c,_10d,_10e,_10f){_f3=null;var _110=_10a.reverseLookup("tags",_10f,false);try{var _111=[];if(config.options.chkSearchInTitle){_111.push("title");}
if(config.options.chkSearchInText){_111.push("text");}
if(config.options.chkSearchInTags){_111.push("tags");}
_f3=new abego.TiddlerQuery(_10b,_10c,_10d,_111,config.options.chkSearchExtendedFields);}
catch(e){return[];}
var _112=_f3.filter(_110);var _113=abego.YourSearch.getRankFunction();for(var i=0;i<_112.length;i++){var _115=_112[i];var rank=_113(_115,_f3);_115.searchRank=rank;}
if(!_10e){_10e="title";}
var _117=function(a,b){var _11a=a.searchRank-b.searchRank;if(_11a==0){if(a[_10e]==b[_10e]){return(0);}else{return(a[_10e]<b[_10e])?-1:+1;}}else{return(_11a>0)?-1:+1;}};_112.sort(_117);return _112;};var _11b=80;var _11c=50;var _11d=250;var _11e=50;var _11f=25;var _120=10;var _121="yourSearchResult";var _122="yourSearchResultItems";var _123;var _124;var _125;var _126;var _127;var _128=function(){if(version.extensions.YourSearchPlugin.styleSheetInited){return;}
version.extensions.YourSearchPlugin.styleSheetInited=true;setStylesheet(store.getTiddlerText("YourSearchStyleSheet"),"yourSearch");};var _129=function(){return _124!=null&&_124.parentNode==document.body;};var _12a=function(){if(_129()){document.body.removeChild(_124);}};var _12b=function(e){_12a();var _12d=this.getAttribute("tiddlyLink");if(_12d){var _12e=this.getAttribute("withHilite");var _12f=highlightHack;if(_12e&&_12e=="true"&&_f3){highlightHack=_f3.getMarkRegExp();}
story.displayTiddler(this,_12d);highlightHack=_12f;}
return(false);};var _130=function(){if(!_125){return;}
var root=_125;var _132=findPosX(root);var _133=findPosY(root);var _134=root.offsetHeight;var _135=_132;var _136=_133+_134;var _137=findWindowWidth();if(_137<_124.offsetWidth){_124.style.width=(_137-100)+"px";_137=findWindowWidth();}
var _138=_124.offsetWidth;if(_135+_138>_137){_135=_137-_138-30;}
if(_135<0){_135=0;}
_124.style.left=_135+"px";_124.style.top=_136+"px";_124.style.display="block";};var _139=function(){if(_124){window.scrollTo(0,ensureVisible(_124));}
if(_125){window.scrollTo(0,ensureVisible(_125));}};var _13a=function(){_130();_139();};var _13b;var _13c;var _13d=new abego.PageWiseRenderer();var _13e=function(_13f){this.itemHtml=store.getTiddlerText("YourSearchItemTemplate");if(!this.itemHtml){alertAndThrow("YourSearchItemTemplate not found");}
this.place=document.getElementById(_122);if(!this.place){this.place=createTiddlyElement(_13f,"div",_122);}};merge(_13e.prototype,{render:function(_140,_141,_142,_143){_13b=_143;_13c=_141;var item=createTiddlyElement(this.place,"div",null,"yourSearchItem");item.innerHTML=this.itemHtml;applyHtmlMacros(item,null);refreshElements(item,null);},endRendering:function(_145){_13c=null;}});var _146=function(){if(!_124||!_125){return;}
var html=store.getTiddlerText("YourSearchResultTemplate");if(!html){html="<b>Tiddler YourSearchResultTemplate not found</b>";}
_124.innerHTML=html;applyHtmlMacros(_124,null);refreshElements(_124,null);var _148=new _13e(_124);_13d.renderPage(_148);_13a();};_13d.getItemsPerPage=function(){var n=(config.options.chkPreviewText)?abego.toInt(config.options.txtItemsPerPageWithPreview,_120):abego.toInt(config.options.txtItemsPerPage,_11f);return(n>0)?n:1;};_13d.onPageChanged=function(){_146();};var _14a=function(){if(_125==null||!config.options.chkUseYourSearch){return;}
if((_125.value==_123)&&_123&&!_129()){if(_124&&(_124.parentNode!=document.body)){document.body.appendChild(_124);_13a();}else{abego.YourSearch.onShowResult(true);}}};var _14b=function(){_12a();_124=null;_123=null;};var _14c=function(self,e){while(e!=null){if(self==e){return true;}
e=e.parentNode;}
return false;};var _14f=function(e){if(e.target==_125){return;}
if(e.target==_126){return;}
if(_124&&_14c(_124,e.target)){return;}
_12a();};var _151=function(e){if(e.keyCode==27){_12a();}};addEvent(document,"click",_14f);addEvent(document,"keyup",_151);var _153=function(text,_155,_156){_123=text;_f4(_109(store,text,_155,_156,"title","excludeSearch"));abego.YourSearch.onShowResult();};var _157=function(_158,_159,_15a,_15b,_15c,_15d){_128();_123="";var _15e=null;var _15f=function(txt){if(config.options.chkUseYourSearch){_153(txt.value,config.options.chkCaseSensitiveSearch,config.options.chkRegExpSearch);}else{story.search(txt.value,config.options.chkCaseSensitiveSearch,config.options.chkRegExpSearch);}
_123=txt.value;};var _161=function(e){_15f(_125);return false;};var _163=function(e){if(!e){var e=window.event;}
_125=this;switch(e.keyCode){case 13:if(e.ctrlKey&&_127&&_129()){_127.onclick.apply(_127,[e]);}else{_15f(this);}
break;case 27:if(_129()){_12a();}else{this.value="";clearMessage();}
break;}
if(String.fromCharCode(e.keyCode)==this.accessKey||e.altKey){_14a();}
if(this.value.length<3&&_15e){clearTimeout(_15e);}
if(this.value.length>2){if(this.value!=_123){if(!config.options.chkUseYourSearch||config.options.chkSearchAsYouType){if(_15e){clearTimeout(_15e);}
var txt=this;_15e=setTimeout(function(){_15f(txt);},500);}}else{if(_15e){clearTimeout(_15e);}}}
if(this.value.length==0){_12a();}};var _166=function(e){this.select();clearMessage();_14a();};var args=_15c.parseParams("list",null,true);var _169=getFlag(args,"buttonAtRight");var _16a=getParam(args,"sizeTextbox",this.sizeTextbox);var btn;if(!_169){btn=createTiddlyButton(_158,this.label,this.prompt,_161);}
var txt=createTiddlyElement(_158,"input",null,null,null);if(_15a[0]){txt.value=_15a[0];}
txt.onkeyup=_163;txt.onfocus=_166;txt.setAttribute("size",_16a);txt.setAttribute("accessKey",this.accessKey);txt.setAttribute("autocomplete","off");if(config.browser.isSafari){txt.setAttribute("type","search");txt.setAttribute("results","5");}else{txt.setAttribute("type","text");}
if(_169){btn=createTiddlyButton(_158,this.label,this.prompt,_161);}
_125=txt;_126=btn;};var _16d=function(){_12a();var _16e=_f6();var n=_16e.length;if(n){var _170=[];for(var i=0;i<n;i++){_170.push(_16e[i].title);}
story.displayTiddlers(null,_170);}};var _172=function(_173,_174,_175,_176){invokeMacro(_173,"option",_174,_175,_176);var elem=_173.lastChild;var _178=elem.onclick;elem.onclick=function(e){var _17a=_178.apply(this,arguments);_146();return _17a;};return elem;};var _17b=function(s){var _17d=["''","{{{","}}}","//","<<<","/***","***/"];var _17e="";for(var i=0;i<_17d.length;i++){if(i!=0){_17e+="|";}
_17e+="("+_17d[i].escapeRegExp()+")";}
return s.replace(new RegExp(_17e,"mg"),"").trim();};var _180=function(){var i=_13b;return(i>=0&&i<=9)?(i<9?(i+1):0):-1;};var _182=new abego.LimitedTextRenderer();var _183=function(_184,s,_186){_182.render(_184,s,_186,_f3.getMarkRegExp());};var _187=TiddlyWiki.prototype.saveTiddler;TiddlyWiki.prototype.saveTiddler=function(_188,_189,_18a,_18b,_18c,tags,_18e){_187.apply(this,arguments);_14b();};var _18f=TiddlyWiki.prototype.removeTiddler;TiddlyWiki.prototype.removeTiddler=function(_190){_18f.apply(this,arguments);_14b();};config.macros.yourSearch={label:"yourSearch",prompt:"Gives access to the current/last YourSearch result",handler:function(_191,_192,_193,_194,_195,_196){if(_193.length==0){return;}
var name=_193[0];var func=config.macros.yourSearch.funcs[name];if(func){func(_191,_192,_193,_194,_195,_196);}},tests:{"true":function(){return true;},"false":function(){return false;},"found":function(){return _f7()>0;},"previewText":function(){return config.options.chkPreviewText;}},funcs:{itemRange:function(_199){if(_f7()){var _19a=_13d.getLastIndexOnPage();var s="%0 - %1".format([_13d.getFirstIndexOnPage()+1,_19a+1]);createTiddlyText(_199,s);}},count:function(_19c){createTiddlyText(_19c,_f7().toString());},query:function(_19d){if(_f3){createTiddlyText(_19d,_f3.toString());}},version:function(_19e){var t="YourSearch %0.%1.%2".format([version.extensions.YourSearchPlugin.major,version.extensions.YourSearchPlugin.minor,version.extensions.YourSearchPlugin.revision]);var e=createTiddlyElement(_19e,"a");e.setAttribute("href","http://tiddlywiki.abego-software.de/#YourSearchPlugin");e.innerHTML="<font color=\"black\" face=\"Arial, Helvetica, sans-serif\">"+t+"<font>";},copyright:function(_1a1){var e=createTiddlyElement(_1a1,"a");e.setAttribute("href","http://www.abego-software.de");e.innerHTML="<font color=\"black\" face=\"Arial, Helvetica, sans-serif\">© 2005-2008 <b><font color=\"red\">abego</font></b> Software<font>";},newTiddlerButton:function(_1a3){if(_f3){var r=abego.parseNewTiddlerCommandLine(_f3.getQueryText());var btn=config.macros.newTiddler.createNewTiddlerButton(_1a3,r.title,r.params,"new tiddler","Create a new tiddler based on search text. (Shortcut: Ctrl-Enter; Separators: '.', '#')",null,"text");var _1a6=btn.onclick;btn.onclick=function(){_12a();_1a6.apply(this,arguments);};_127=btn;}},linkButton:function(_1a7,_1a8,_1a9,_1aa,_1ab,_1ac){if(_1a9<2){return;}
var _1ad=_1a9[1];var text=_1a9<3?_1ad:_1a9[2];var _1af=_1a9<4?text:_1a9[3];var _1b0=_1a9<5?null:_1a9[4];var btn=createTiddlyButton(_1a7,text,_1af,_12b,null,null,_1b0);btn.setAttribute("tiddlyLink",_1ad);},closeButton:function(_1b2,_1b3,_1b4,_1b5,_1b6,_1b7){var _1b8=createTiddlyButton(_1b2,"close","Close the Search Results (Shortcut: ESC)",_12a);},openAllButton:function(_1b9,_1ba,_1bb,_1bc,_1bd,_1be){var n=_f7();if(n==0){return;}
var _1c0=n==1?"open tiddler":"open all %0 tiddlers".format([n]);var _1c1=createTiddlyButton(_1b9,_1c0,"Open all found tiddlers (Shortcut: Alt-O)",_16d);_1c1.setAttribute("accessKey","O");},naviBar:function(_1c2,_1c3,_1c4,_1c5,_1c6,_1c7){_13d.addPageNavigation(_1c2);},"if":function(_1c8,_1c9,_1ca,_1cb,_1cc,_1cd){if(_1ca.length<2){return;}
var _1ce=_1ca[1];var _1cf=(_1ce=="not");if(_1cf){if(_1ca.length<3){return;}
_1ce=_1ca[2];}
var test=config.macros.yourSearch.tests[_1ce];var _1d1=false;try{if(test){_1d1=test(_1c8,_1c9,_1ca,_1cb,_1cc,_1cd)!=_1cf;}else{_1d1=(!eval(_1ce))==_1cf;}}
catch(ex){}
if(!_1d1){_1c8.style.display="none";}},chkPreviewText:function(_1d2,_1d3,_1d4,_1d5,_1d6,_1d7){var _1d8=_1d4.slice(1).join(" ");var elem=_172(_1d2,"chkPreviewText",_1d5,_1d7);elem.setAttribute("accessKey","P");elem.title="Show text preview of found tiddlers (Shortcut: Alt-P)";return elem;}}};config.macros.foundTiddler={label:"foundTiddler",prompt:"Provides information on the tiddler currently processed on the YourSearch result page",handler:function(_1da,_1db,_1dc,_1dd,_1de,_1df){var name=_1dc[0];var func=config.macros.foundTiddler.funcs[name];if(func){func(_1da,_1db,_1dc,_1dd,_1de,_1df);}},funcs:{title:function(_1e2,_1e3,_1e4,_1e5,_1e6,_1e7){if(!_13c){return;}
var _1e8=_180();var _1e9=_1e8>=0?"Open tiddler (Shortcut: Alt-%0)".format([_1e8.toString()]):"Open tiddler";var btn=createTiddlyButton(_1e2,null,_1e9,_12b,null);btn.setAttribute("tiddlyLink",_13c.title);btn.setAttribute("withHilite","true");_183(btn,_13c.title,_11b);if(_1e8>=0){btn.setAttribute("accessKey",_1e8.toString());}},tags:function(_1eb,_1ec,_1ed,_1ee,_1ef,_1f0){if(!_13c){return;}
_183(_1eb,_13c.getTags(),_11c);},text:function(_1f1,_1f2,_1f3,_1f4,_1f5,_1f6){if(!_13c){return;}
_183(_1f1,_17b(_13c.text),_11d);},field:function(_1f7,_1f8,_1f9,_1fa,_1fb,_1fc){if(!_13c){return;}
var name=_1f9[1];var len=_1f9.length>2?abego.toInt(_1f9[2],_11e):_11e;var v=store.getValue(_13c,name);if(v){_183(_1f7,_17b(v),len);}},number:function(_200,_201,_202,_203,_204,_205){var _206=_180();if(_206>=0){var text="%0)".format([_206.toString()]);createTiddlyElement(_200,"span",null,"shortcutNumber",text);}}}};var opts={chkUseYourSearch:true,chkPreviewText:true,chkSearchAsYouType:true,chkSearchInTitle:true,chkSearchInText:true,chkSearchInTags:true,chkSearchExtendedFields:true,txtItemsPerPage:_11f,txtItemsPerPageWithPreview:_120};for(var n in opts){if(config.options[n]==undefined){config.options[n]=opts[n];}}
config.shadowTiddlers.AdvancedOptions+="\n<<option chkUseYourSearch>> Use 'Your Search' //([[more options|YourSearch Options]]) ([[help|YourSearch Help]])// ";config.shadowTiddlers["YourSearch Help"]="!Field Search\nWith the Field Search you can restrict your search to certain fields of a tiddler, e.g"+" only search the tags or only the titles. The general form is //fieldname//'':''//textToSearch// (e."+"g. {{{title:intro}}}). In addition one-character shortcuts are also supported for the standard field"+"s {{{title}}}, {{{text}}} and {{{tags}}}:\n|!What you want|!What you type|!Example|\n|Search ''titles "+"only''|start word with ''!''|{{{!jonny}}} (shortcut for {{{title:jonny}}})|\n|Search ''contents/text "+"only''|start word with ''%''|{{{%football}}} (shortcut for {{{text:football}}})|\n|Search ''tags only"+"''|start word with ''#''|{{{#Plugin}}} (shortcut for {{{tags:Plugin}}})|\n\nUsing this feature you may"+" also search the extended fields (\"Metadata\") introduced with TiddlyWiki 2.1, e.g. use {{{priority:1"+"}}} to find all tiddlers with the priority field set to \"1\".\n\nYou may search a word in more than one"+" field. E.g. {{{!#Plugin}}} (or {{{title:tags:Plugin}}} in the \"long form\") finds tiddlers containin"+"g \"Plugin\" either in the title or in the tags (but does not look for \"Plugin\" in the text). \n\n!Boole"+"an Search\nThe Boolean Search is useful when searching for multiple words.\n|!What you want|!What you "+"type|!Example|\n|''All words'' must exist|List of words|{{{jonny jeremy}}} (or {{{jonny and jeremy}}}"+")|\n|''At least one word'' must exist|Separate words by ''or''|{{{jonny or jeremy}}}|\n|A word ''must "+"not exist''|Start word with ''-''|{{{-jonny}}} (or {{{not jonny}}})|\n\n''Note:'' When you specify two"+" words, separated with a space, YourSearch finds all tiddlers that contain both words, but not neces"+"sarily next to each other. If you want to find a sequence of word, e.g. '{{{John Brown}}}', you need"+" to put the words into quotes. I.e. you type: {{{\"john brown\"}}}.\n\nUsing parenthesis you may change "+"the default \"left to right\" evaluation of the boolean search. E.g. {{{not (jonny or jeremy)}}} finds"+" all tiddlers that contain neither \"jonny\" nor \"jeremy. In contrast to this {{{not jonny or jeremy}}"+"} (i.e. without parenthesis) finds all tiddlers that either don't contain \"jonny\" or that contain \"j"+"eremy\".\n\n!'Exact Word' Search\nBy default a search result all matches that 'contain' the searched tex"+"t. E.g. if you search for {{{Task}}} you will get all tiddlers containing 'Task', but also '~Complet"+"edTask', '~TaskForce' etc.\n\nIf you only want to get the tiddlers that contain 'exactly the word' you"+" need to prefix it with a '='. E.g. typing '=Task' will find the tiddlers that contain the word 'Tas"+"k', ignoring words that just contain 'Task' as a substring.\n\n!~CaseSensitiveSearch and ~RegExpSearch"+"\nThe standard search options ~CaseSensitiveSearch and ~RegExpSearch are fully supported by YourSearc"+"h. However when ''~RegExpSearch'' is on Filtered and Boolean Search are disabled.\n\nIn addition you m"+"ay do a \"regular expression\" search even with the ''~RegExpSearch'' set to false by directly enterin"+"g the regular expression into the search field, framed with {{{/.../}}}. \n\nExample: {{{/m[ae][iy]er/"+"}}} will find all tiddlers that contain either \"maier\", \"mayer\", \"meier\" or \"meyer\".\n\n!~JavaScript E"+"xpression Filtering\nIf you are familiar with JavaScript programming and know some TiddlyWiki interna"+"ls you may also use JavaScript expression for the search. Just enter a JavaScript boolean expression"+" into the search field, framed with {{{ { ... } }}}. In the code refer to the variable tiddler and e"+"valuate to {{{true}}} when the given tiddler should be included in the result. \n\nExample: {{{ { tidd"+"ler.modified > new Date(\"Jul 4, 2005\")} }}} returns all tiddler modified after July 4th, 2005.\n\n!Com"+"bined Search\nYou are free to combine the various search options. \n\n''Examples''\n|!What you type|!Res"+"ult|\n|{{{!jonny !jeremy -%football}}}|all tiddlers with both {{{jonny}}} and {{{jeremy}}} in its tit"+"les, but no {{{football}}} in content.|\n|{{{#=Task}}}|All tiddlers tagged with 'Task' (the exact wor"+"d). Tags named '~CompletedTask', '~TaskForce' etc. are not considered.|\n\n!Access Keys\nYou are encour"+"aged to use the access keys (also called \"shortcut\" keys) for the most frequently used operations. F"+"or quick reference these shortcuts are also mentioned in the tooltip for the various buttons etc.\n\n|"+"!Key|!Operation|\n|{{{Alt-F}}}|''The most important keystroke'': It moves the cursor to the search in"+"put field so you can directly start typing your query. Pressing {{{Alt-F}}} will also display the pr"+"evious search result. This way you can quickly display multiple tiddlers using \"Press {{{Alt-F}}}. S"+"elect tiddler.\" sequences.|\n|{{{ESC}}}|Closes the [[YourSearch Result]]. When the [[YourSearch Resul"+"t]] is already closed and the cursor is in the search input field the field's content is cleared so "+"you start a new query.|\n|{{{Alt-1}}}, {{{Alt-2}}},... |Pressing these keys opens the first, second e"+"tc. tiddler from the result list.|\n|{{{Alt-O}}}|Opens all found tiddlers.|\n|{{{Alt-P}}}|Toggles the "+"'Preview Text' mode.|\n|{{{Alt-'<'}}}, {{{Alt-'>'}}}|Displays the previous or next page in the [[Your"+"Search Result]].|\n|{{{Return}}}|When you have turned off the 'as you type' search mode pressing the "+"{{{Return}}} key actually starts the search (as does pressing the 'search' button).|\n\n//If some of t"+"hese shortcuts don't work for you check your browser if you have other extensions installed that alr"+"eady \"use\" these shortcuts.//";config.shadowTiddlers["YourSearch Options"]="|>|!YourSearch Options|\n|>|<<option chkUseYourSearch>> Use 'Your Search'|\n|!|<<option chkPreviewText"+">> Show Text Preview|\n|!|<<option chkSearchAsYouType>> 'Search As You Type' Mode (No RETURN required"+" to start search)|\n|!|Default Search Filter:<<option chkSearchInTitle>>Title ('!') <<option chk"+"SearchInText>>Text ('%') <<option chkSearchInTags>>Tags ('#') <<option chkSearchExtendedFiel"+"ds>>Extended Fields<html><br><font size=\"-2\">The fields of a tiddlers that are searched when you don"+"'t explicitly specify a filter in the search text <br>(Explictly specify fields using one or more '!"+"', '%', '#' or 'fieldname:' prefix before the word/text to find).</font></html>|\n|!|Number of items "+"on search result page: <<option txtItemsPerPage>>|\n|!|Number of items on search result page with pre"+"view text: <<option txtItemsPerPageWithPreview>>|\n";config.shadowTiddlers["YourSearchStyleSheet"]="/***\n!~YourSearchResult Stylesheet\n***/\n/*{{{*/\n.yourSearchResult {\n\tposition: absolute;\n\twidth: 800"+"px;\n\n\tpadding: 0.2em;\n\tlist-style: none;\n\tmargin: 0;\n\n\tbackground: #ffd;\n\tborder: 1px solid DarkGra"+"y;\n}\n\n/*}}}*/\n/***\n!!Summary Section\n***/\n/*{{{*/\n.yourSearchResult .summary {\n\tborder-bottom-width:"+" thin;\n\tborder-bottom-style: solid;\n\tborder-bottom-color: #999999;\n\tpadding-bottom: 4px;\n}\n\n.yourSea"+"rchRange, .yourSearchCount, .yourSearchQuery {\n\tfont-weight: bold;\n}\n\n.yourSearchResult .summary ."+"button {\n\tfont-size: 10px;\n\n\tpadding-left: 0.3em;\n\tpadding-right: 0.3em;\n}\n\n.yourSearchResult .summa"+"ry .chkBoxLabel {\n\tfont-size: 10px;\n\n\tpadding-right: 0.3em;\n}\n\n/*}}}*/\n/***\n!!Items Area\n***/\n/*{{{*"+"/\n.yourSearchResult .marked {\n\tbackground: none;\n\tfont-weight: bold;\n}\n\n.yourSearchItem {\n\tmargin-to"+"p: 2px;\n}\n\n.yourSearchNumber {\n\tcolor: #808080;\n}\n\n\n.yourSearchTags {\n\tcolor: #008000;\n}\n\n.yourSearc"+"hText {\n\tcolor: #808080;\n\tmargin-bottom: 6px;\n}\n\n/*}}}*/\n/***\n!!Footer\n***/\n/*{{{*/\n.yourSearchFoote"+"r {\n\tmargin-top: 8px;\n\tborder-top-width: thin;\n\tborder-top-style: solid;\n\tborder-top-color: #999999;"+"\n}\n\n.yourSearchFooter a:hover{\n\tbackground: none;\n\tcolor: none;\n}\n/*}}}*/\n/***\n!!Navigation Bar\n***/"+"\n/*{{{*/\n.yourSearchNaviBar a {\n\tfont-size: 16px;\n\tmargin-left: 4px;\n\tmargin-right: 4px;\n\tcolor: bla"+"ck;\n\ttext-decoration: underline;\n}\n\n.yourSearchNaviBar a:hover {\n\tbackground-color: none;\n}\n\n.yourSe"+"archNaviBar .prev {\n\tfont-weight: bold;\n\tcolor: blue;\n}\n\n.yourSearchNaviBar .currentPage {\n\tcolor: #"+"FF0000;\n\tfont-weight: bold;\n\ttext-decoration: none;\n}\n\n.yourSearchNaviBar .next {\n\tfont-weight: bold"+";\n\tcolor: blue;\n}\n/*}}}*/\n";config.shadowTiddlers["YourSearchResultTemplate"]="<!--\n{{{\n-->\n<span macro=\"yourSearch if found\">\n<!-- The Summary Header ============================"+"================ -->\n<table class=\"summary\" border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\">"+"<tbody>\n <tr>\n\t<td align=\"left\">\n\t\tYourSearch Result <span class=\"yourSearchRange\" macro=\"yourSearc"+"h itemRange\"></span>\n\t\t of <span class=\"yourSearchCount\" macro=\"yourSearch count\"></span>\n"+"\t\tfor <span class=\"yourSearchQuery\" macro=\"yourSearch query\"></span>\n\t</td>\n\t<td class=\"yourSea"+"rchButtons\" align=\"right\">\n\t\t<span macro=\"yourSearch chkPreviewText\"></span><span class=\"chkBoxLabel"+"\">preview text</span>\n\t\t<span macro=\"yourSearch newTiddlerButton\"></span>\n\t\t<span macro=\"yourSearch openAllButton\"></span>\n\t\t<span macro=\"yourSearch lin"+"kButton 'YourSearch Options' options 'Configure YourSearch'\"></span>\n\t\t<span macro=\"yourSearch linkB"+"utton 'YourSearch Help' help 'Get help how to use YourSearch'\"></span>\n\t\t<span macro=\"yourSearch clo"+"seButton\"></span>\n\t</td>\n </tr>\n</tbody></table>\n\n<!-- The List of Found Tiddlers ================="+"=========================== -->\n<div id=\"yourSearchResultItems\" itemsPerPage=\"25\" itemsPerPageWithPr"+"eview=\"10\"></div>\n\n<!-- The Footer (with the Navigation) ==========================================="+"= -->\n<table class=\"yourSearchFooter\" border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tbody"+">\n <tr>\n\t<td align=\"left\">\n\t\tResult page: <span class=\"yourSearchNaviBar\" macro=\"yourSearch naviBar"+"\"></span>\n\t</td>\n\t<td align=\"right\"><span macro=\"yourSearch version\"></span>, <span macro=\"yourSearc"+"h copyright\"></span>\n\t</td>\n </tr>\n</tbody></table>\n<!-- end of the 'tiddlers found' case ========="+"================================== -->\n</span>\n\n\n<!-- The \"No tiddlers found\" case ================="+"========================== -->\n<span macro=\"yourSearch if not found\">\n<table class=\"summary\" border="+"\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\"><tbody>\n <tr>\n\t<td align=\"left\">\n\t\tYourSearch Resu"+"lt: No tiddlers found for <span class=\"yourSearchQuery\" macro=\"yourSearch query\"></span>.\n\t</td>\n\t<t"+"d class=\"yourSearchButtons\" align=\"right\">\n\t\t<span macro=\"yourSearch newTiddlerButton\"></span>\n\t\t<span macro=\"yourSearch linkButton 'YourSearch Options'"+" options 'Configure YourSearch'\"></span>\n\t\t<span macro=\"yourSearch linkButton 'YourSearch Help' help"+" 'Get help how to use YourSearch'\"></span>\n\t\t<span macro=\"yourSearch closeButton\"></span>\n\t</td>\n <"+"/tr>\n</tbody></table>\n</span>\n\n\n<!--\n}}}\n-->\n";config.shadowTiddlers["YourSearchItemTemplate"]="<!--\n{{{\n-->\n<span class='yourSearchNumber' macro='foundTiddler number'></span>\n<span class='yourSea"+"rchTitle' macro='foundTiddler title'/></span> - \n<span class='yourSearchTags' macro='found"+"Tiddler field tags 50'/></span>\n<span macro=\"yourSearch if previewText\"><div class='yourSearchText' macro='fo"+"undTiddler field text 250'/></div></span>\n<!--\n}}}\n-->";config.shadowTiddlers["YourSearch"]="<<tiddler [[YourSearch Help]]>>";config.shadowTiddlers["YourSearch Result"]="The popup-like window displaying the result of a YourSearch query.";config.macros.search.handler=_157;var _20a=function(){if(config.macros.search.handler!=_157){alert("Message from YourSearchPlugin:\n\n\nAnother plugin has disabled the 'Your Search' features.\n\n\nYou may "+"disable the other plugin or change the load order of \nthe plugins (by changing the names of the tidd"+"lers)\nto enable the 'Your Search' features.");}};setTimeout(_20a,5000);abego.YourSearch.getStandardRankFunction=function(){return _ff;};abego.YourSearch.getRankFunction=function(){return abego.YourSearch.getStandardRankFunction();};abego.YourSearch.getCurrentTiddler=function(){return _13c;};abego.YourSearch.closeResult=function(){_12a();};abego.YourSearch.getFoundTiddlers=function(){return _f2;};abego.YourSearch.getQuery=function(){return _f3;};abego.YourSearch.onShowResult=function(_20b){highlightHack=_f3?_f3.getMarkRegExp():null;if(!_20b){_13d.setItems(_f6());}
if(!_124){_124=createTiddlyElement(document.body,"div",_121,"yourSearchResult");}else{if(_124.parentNode!=document.body){document.body.appendChild(_124);}}
_146();highlightHack=null;};})();}
//%/
//{{{
//For demonstration purposes only
// A port of a plugin by Simon Baird to use DatePicker library
//requires DatePicker: http://svn.tiddlywiki.org/Trunk/contributors/SaqImtiaz/libraries/DatePicker.js
// some additions by Simon Baird
if (DatePicker){
merge(config.macros, {
dateChooser: {
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var useTiddler = tiddler;
if (params[0])
useTiddler = store.fetchTiddler(params[0]);
var curVal = useTiddler.fields['mgtd_date'] || undefined;
var startDate = curVal ? Date.convertFromYYYYMMDDHHMM(curVal) : null;
var dateBox = createTiddlyElement(place,'input',null,'dateBox');
var dateFormat = config.mGTD.getOptTxt('ticklerdateformat');
var defaultDateFormat = 'ddd, DD-mmm-YY';
if (!dateFormat) {
// makes it nicer for upgraders who don't have a format set
dateFormat = defaultDateFormat;
config.mGTD.setOptTxt('ticklerdateformat', defaultDateFormat);
}
dateBox.value = startDate ? startDate.formatString(dateFormat) : '(set date)';
var callback = function(el,objDate){
el.value = objDate.formatString(dateFormat);
useTiddler.fields['mgtd_date'] = objDate.convertToYYYYMMDDHHMM();
useTiddler.touch(); // see MgtdDateUtils
}
DatePicker.create(dateBox,startDate,callback);
}
},
addDay: {
label: {addDay:"+d", addWeek:"+w", addMonth:"+m", addYear:"+y"},
tooltip: {addDay:"day",addWeek:"week",addMonth:"month",addYear:"year"},
handler: function(place,macroName,params,wikifier,paramString,tiddler) {
var useTiddler = tiddler;
if (params[0]) useTiddler = store.fetchTiddler(params[0]);
var curVal = useTiddler.fields['mgtd_date'] || undefined;
var curDate = curVal ? Date.convertFromYYYYMMDDHHMM(curVal) : new Date();
// call the suitable date method. happens to match the macroname. see MgtdDateUtils. sorry for confusing code.
curDate[macroName](1);
createTiddlyButton(place,config.macros.addDay.label[macroName],"add a "+config.macros.addDay.tooltip[macroName],function() {
useTiddler.fields['mgtd_date'] = curDate.convertToYYYYMMDDHHMM();
useTiddler.touch(); // see MgtdDateUtils
return false;
});
}
}
});
}
config.macros.addWeek = config.macros.addDay;
config.macros.addMonth = config.macros.addDay;
config.macros.addYear = config.macros.addDay;
//}}}