Changeset 6450
- Timestamp:
- 08/21/08 14:15:36 (5 months ago)
- Location:
- Trunk/contributors/SimonBaird/mgtd3
- Files:
-
- 1 added
- 12 modified
-
build.rb (modified) (1 diff)
-
framework/MgtdDateUtils.js (modified) (1 diff)
-
framework/MgtdIndexedTags.js (modified) (1 diff)
-
framework/MgtdList.js (modified) (2 diffs)
-
framework/MgtdTagControls.js (modified) (1 diff)
-
globalviews/Completed Projects.tiddler (added)
-
globalviews/Tickler Dashboard.tiddler (modified) (1 diff)
-
globalviews/Ticklers Requiring Action.tiddler (modified) (1 diff)
-
menus/ReviewMenu.tiddler (modified) (1 diff)
-
supporting/dateChooserPlugin.js (modified) (2 diffs)
-
tiddlers/MgtdSettings.tiddler (modified) (1 diff)
-
views/MonkeyGTDHelp.tiddler (modified) (2 diffs)
-
views/TagDashboards.tiddler (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Trunk/contributors/SimonBaird/mgtd3/build.rb
r5879 r6450 193 193 get_tiddler('MgtdSettings').fields['ticklerdateformat'] = 'ddd, DD-mmm-YY'; # set default tickler date format. gotcha: use lowercase only for fields please. 194 194 get_tiddler('MgtdSettings').fields['newjournaldateformat'] = 'ddd DD-mmm-YY, 0hh:0mm'; # set default tickler date format. gotcha: use lowercase only for fields please. 195 get_tiddler('MgtdSettings').fields['tickleractivatehour'] = '5'; # set default tickler date format. gotcha: use lowercase only for fields please. 195 196 to_file "upload/empty3.html" unless ARGV[0] == 'fast' 196 197 -
Trunk/contributors/SimonBaird/mgtd3/framework/MgtdDateUtils.js
r5142 r6450 7 7 }); 8 8 9 // TODO. this doesn't really belong here10 merge(Tiddler.prototype,{11 touch: function() {12 this.changed();13 this.modified = new Date();14 store.setDirty(true);15 store.notify(this.title,true);16 }17 });18 9 -
Trunk/contributors/SimonBaird/mgtd3/framework/MgtdIndexedTags.js
r6102 r6450 63 63 if (oldTags) 64 64 oldTags.each(function(tagName) { 65 if (!config.indexedTags.tagLists[tagName]) 66 config.indexedTags.tagLists[tagName] = []; // fixes TiddlerEncryption/MTS, thanks Patrick Ohly. 65 67 config.indexedTags.tagLists[tagName].remove(title); 66 68 }); -
Trunk/contributors/SimonBaird/mgtd3/framework/MgtdList.js
r5623 r6450 1 1 2 merge(Tiddler.prototype,{ 3 // doesn't belong here.. 4 ticklerIsActive: function() { 5 var defaultHourToActivate = 5; // fixme put elsewhere 6 var hourToActivate = config.mGTD.getOptTxt('tickleractivatehour') || defaultHourToActivate; 7 var nowTime = new Date(); 8 nowTime.setHours(nowTime.getHours() - hourToActivate); // i'm confused because of UTC versus local. I think mgtd_date is UTC. But has hh:mm:ss is 00:00:00 in local time 9 return (this.fields.mgtd_date && nowTime.convertToYYYYMMDDHHMM() >= this.fields.mgtd_date ); 10 11 } 12 13 }); 2 14 merge(config.macros,{ 3 15 … … 9 21 var theList = fastTagged('Tickler'). 10 22 filterByTagExpr('!Actioned'). 11 filterByEval('tiddler. fields.mgtd_date <= (new Date()).convertToYYYYMMDDHHMM()'+realmFilter);23 filterByEval('tiddler.ticklerIsActive()'+realmFilter); 12 24 if (theList.length > 0) { 13 25 var blinker = createTiddlyElement(place,'blink'); -
Trunk/contributors/SimonBaird/mgtd3/framework/MgtdTagControls.js
r5879 r6450 255 255 }); 256 256 257 258 // a few automagic filters should make life easier 259 260 var thisRealm = tiddler.getParent('Realm')[0]; 261 var thisProject = tiddler.getParent('Project')[0]; 262 263 var filterRealm = ""; 264 var filterComplete = ""; 265 266 if (thisRealm && tag != "Realm") { 267 // only want to see things in my realm 268 filterRealm += "[("+thisRealm+")]"; 269 } 270 271 if (tag == "Project") { 272 // only want to see active projects 273 filterComplete += "!Complete"; 274 } 275 276 var filterTagExpr = ""; 277 278 if (filterRealm != "" && filterComplete != "") { 279 filterTagExpr = filterRealm + " && " + filterComplete; 280 } 281 else if (filterRealm != "") { 282 filterTagExpr = filterRealm; 283 } 284 else if (filterComplete != "") { 285 filterTagExpr = filterComplete; 286 } 287 // ...yuck 288 289 filterExpr = filterTagExpr.parseTagExpr(); 290 291 if (thisProject) { 292 // prevent weirdness if the current value isn't in the list 293 // eg an action in a completed project 294 filterExpr = "(" + filterExpr + ") || tiddler.title == '" + thisProject + "'"; // i'm confused now... 295 296 } 297 if (tag == "Project" && tiddler.hasTag('Project')) { 298 // don't let a project be a subproject of itself 299 filterExpr = "(" + filterExpr + ") && tiddler.title != '" + tiddler.title + "'"; 300 } 301 302 getValues = getValues.filterByEval(filterExpr); 303 304 257 305 getValues.each(function(t) { 258 306 var useTitle = store.getTiddlerSlice(t.title,"button"); -
Trunk/contributors/SimonBaird/mgtd3/globalviews/Tickler Dashboard.tiddler
r5140 r6450 7 7 8 8 <<mgtdList title:'Upcoming Ticklers' startTag:Tickler tags:'!Actioned' view:Tickler mode:global newButtonTags:'Tickler Once' 9 where:'!tiddler.fields.mgtd_date || ((new Date()).convertToYYYYMMDDHHMM() < tiddler.fields.mgtd_date)'9 where:'!tiddler.fields.mgtd_date || !tiddler.ticklerIsActive()' 10 10 sort:'tickleDate' 11 11 >> -
Trunk/contributors/SimonBaird/mgtd3/globalviews/Ticklers Requiring Action.tiddler
r5451 r6450 6 6 mode:global 7 7 newButtonTags:'Tickler Enabled Once' 8 where:'tiddler. fields.mgtd_date && ((new Date()).convertToYYYYMMDDHHMM() >= tiddler.fields.mgtd_date)'8 where:'tiddler.ticklerIsActive()' 9 9 sort:'tickleDate' 10 10 dontShowEmpty:yes -
Trunk/contributors/SimonBaird/mgtd3/menus/ReviewMenu.tiddler
r5879 r6450 3 3 [[Action Dashboard by Project]] 4 4 [[Active Projects With No Next Action]] 5 [[Completed Projects]] 6 [[Done Actions]] 5 7 [[SomedayMaybe and Future]] 6 8 [[Delegated Tasks Dashboard]] -
Trunk/contributors/SimonBaird/mgtd3/supporting/dateChooserPlugin.js
r5142 r6450 31 31 var callback = function(el,objDate){ 32 32 el.value = objDate.formatString(dateFormat); 33 useTiddler.fields['mgtd_date'] = objDate.convertToYYYYMMDDHHMM(); 34 useTiddler.touch(); // see MgtdDateUtils 33 store.setValue(useTiddler, 'mgtd_date',objDate.convertToYYYYMMDDHHMM()); 35 34 } 36 35 DatePicker.create(dateBox,startDate,callback); … … 53 52 curDate[macroName](1); 54 53 createTiddlyButton(place,config.macros.addDay.label[macroName],"add a "+config.macros.addDay.tooltip[macroName],function() { 55 useTiddler.fields['mgtd_date'] = curDate.convertToYYYYMMDDHHMM(); 56 useTiddler.touch(); // see MgtdDateUtils 54 store.setValue(useTiddler, 'mgtd_date',objDate.convertToYYYYMMDDHHMM()); 57 55 return false; 58 56 }); -
Trunk/contributors/SimonBaird/mgtd3/tiddlers/MgtdSettings.tiddler
r5451 r6450 21 21 (see [[Date Formats|http://tiddlywiki.org/wiki/Date_Formats]]) 22 22 23 Hour that ticklers should become active on their tickler date. (0 = Midnight, 12 = Midday) 24 Tickler activate hour:<<mgtdEditField tickleractivatehour MgtdSettings>> -
Trunk/contributors/SimonBaird/mgtd3/views/MonkeyGTDHelp.tiddler
r4545 r6450 4 4 5 5 !Project 6 No help yet for Project 6 A [[Project|Projects Dashboard]] is made up of sub-projects, [[Action|Next and Waiting Actions]] items, and [[Reference Items]]. A project should have a defined set of tasks or actions (that may change) and when these tasks are done the project is done. If a project has no defined finish, consider calling it an [[Area]], and then make terminable projects in the area. 7 7 8 8 !Action 9 No help yet for Action 9 An [[Action|Next and Waiting Actions]] is a single task that can be completed at one point in time. If an action is more complex than this, considering making it a [[subproject|Subprojects]], or storing information in the action notes area. Using the [[CheckboxPlugin| http://www.tiddlytools.com/#CheckboxPlugin]] you can hid sub-actions inside an action. 10 10 11 11 !Tickler 12 No help yet for Tickler 12 A [[tickler|Tickler Dashboard]] is an [[Action|Next and Waiting Actions]] with a date attached. For example, if you need to call someone as part of a [[Project|Projects Dashboard]], that should be an action. But if you need to call someone on a specific day, then make it a [[tickler|Tickler Dashboard]] and MonkeyGTD will remind you on the day that you need to call them. 13 14 Example: The Health area contains a Dentist project with Actions Schedule Dentist, Go To Dentist and File Reimbursement. The latter two are Waiting while Schedule Dentist is Next. Once you call and schedule it, select the Go To Dentist Action, set it to Next, and then choose Make Tickler and set a date for the day of (or the day before) your appointment. 13 15 14 16 !View … … 19 21 20 22 !Area 21 No help yet for Area 23 An [[Area]] is similar to a project, but it has no possible completion. Areas contain projects. 24 25 Example: The Health area might contain the project ''Run Marathon'', and the ''Household'' area might contain projects like ''Sell House'' and ''Buy House'' and ''Plant Garden'', each of which might have sub-projects. 22 26 23 27 !Realm 24 No help yet for Realm 28 Realms are the top of the MonkeyGTD hierarchy. Realms contain Areas. Areas contain Projects. A Realm is a large-scale division of all the Areas, Projects, and Actions that might be placed into a GTD context. 25 29 26 30 !Reference -
Trunk/contributors/SimonBaird/mgtd3/views/TagDashboards.tiddler
r5451 r6450 189 189 ignoreRealm:yes 190 190 dontShowEmpty:yes 191 where:'tiddler. fields.mgtd_date && ((new Date()).convertToYYYYMMDDHHMM() >= tiddler.fields.mgtd_date )'191 where:'tiddler.ticklerIsActive()' 192 192 sort:tickleDate 193 193 "></div> … … 200 200 <div macro="mgtdList title:'Upcoming Ticklers' tags:'Tickler && !Actioned' view:Tickler newButtonTags:'Tickler Once' 201 201 ignoreRealm:yes 202 where:'!tiddler. fields.mgtd_date || ((new Date()).convertToYYYYMMDDHHMM() < tiddler.fields.mgtd_date )'202 where:'!tiddler.ticklerIsActive()' 203 203 sort:tickleDate 204 204 "></div>
