Is there a way to look at all upcoming ticklers within the next week?
I like to have a bit of heads up on my ToDo list about ticklers that are going to fire soon, not standard I know but it means I don't need a tickler for today to tell me to be in the office early tomorrow and another for tomorrow to tell me that I've got a meeting @ 9.00, if my upcoming ticklers show a meeting for tomorrow then it's nice and obvious. Anyway, I found how to list all upcoming ticklers, but this gets big so I managed to restrict it using the scrolling feature. This gives me what I need but isn't as elegant as if I could just select fewer ticklers, I'm guessing there must be a way of using the tickleDate + 7 days (for example) to limit the selection. Any ideas? The list script I've got is currently: {{scroll10{ <> }}} Thanks, Gary -- You received this message because you are subscribed to the Google Groups "GTD TiddlyWiki" group. To post to this group, send email to gtd-tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to gtd-tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/gtd-tiddlywiki?hl=en.
Re: Is there a way to look at all upcoming ticklers within the next week?
I wrote a function that can be used instead of tiddler.tiddlerisActive(). Create a new tiddler named 'TicklerWillBeActiveWithin' with the two tags 'systemConfig' and 'exludeSearch' (all without quotes, of course). Copy all the text between the BEGIN and END lines into the content field: //BEGIN merge(Tiddler.prototype,{ ticklerWillBeActiveWithin: function(numDays) { // Ignore ticklers without date if (!this.fields.mgtd_date) return false; var nowTime = new Date(); // Respect user settings (see ticker.isActive()) var defaultHourToActivate = 5; // fixme put elsewhere var hourToActivate = config.mGTD.getOptTxt('tickleractivatehour') || defaultHourToActivate; if (nowTime.getHours() < hourToActivate) { // Too early in the morning, go back one day. nowTime.setDate(nowTime.getDate() - 1); } // Start tomorrow startTime = new Date(nowTime.getFullYear(), nowTime.getMonth(), nowTime.getDate() + 1); // End in numDays days endTime = new Date(nowTime.getFullYear(), nowTime.getMonth(), nowTime.getDate() + 1 + numDays); return (startTime.convertToMMDDHHMM() <= this.fields.mgtd_date && endTime.convertToMMDDHHMM() >= this.fields.mgtd_date); } }); //END Save your wiki and reload it. Now, you can use the function in your mgtdList as follows: (Note the changed 'where' clause) //BEGIN <> //END This will show all future ticklers for the next 7 days. Of course, by replacing the '7' in the list's where clause with another number, you can define any other period. HTH, Michael -- You received this message because you are subscribed to the Google Groups "GTD TiddlyWiki" group. To post to this group, send email to gtd-tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to gtd-tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/gtd-tiddlywiki?hl=en.
Re: Is there a way to look at all upcoming ticklers within the next week?
Worked like a charm, thanks. It was interesting to see the method for adding function calls into the system too. Cheers, Gary On 6 Aug, 15:42, Michael Scherer wrote: > I wrote a function that can be used instead of > tiddler.tiddlerisActive(). > > Create a new tiddler named 'TicklerWillBeActiveWithin' with the two > tags 'systemConfig' and 'exludeSearch' (all without quotes, of > course). Copy all the text between the BEGIN and END lines into the > content field: > > //BEGIN > merge(Tiddler.prototype,{ > ticklerWillBeActiveWithin: function(numDays) { > // Ignore ticklers without date > if (!this.fields.mgtd_date) > return false; > > var nowTime = new Date(); > > // Respect user settings (see ticker.isActive()) > var defaultHourToActivate = 5; // fixme put elsewhere > var hourToActivate = > config.mGTD.getOptTxt('tickleractivatehour') || > defaultHourToActivate; > if (nowTime.getHours() < hourToActivate) { > // Too early in the morning, go back one day. > nowTime.setDate(nowTime.getDate() - 1); > } > > // Start tomorrow > startTime = new Date(nowTime.getFullYear(), > nowTime.getMonth(), > nowTime.getDate() + 1); > // End in numDays days > endTime = new Date(nowTime.getFullYear(), nowTime.getMonth(), > nowTime.getDate() + 1 + numDays); > > return (startTime.convertToMMDDHHMM() <= > this.fields.mgtd_date > && endTime.convertToMMDDHHMM() >= this.fields.mgtd_date); > } > > }); > > //END > > Save your wiki and reload it. Now, you can use the function in your > mgtdList as follows: (Note the changed 'where' clause) > > //BEGIN > < startTag:Tickler > tags:'!Actioned' > view:Tickler > mode:global > newButtonTags:'Tickler Once' > where:'tiddler.ticklerWillBeActiveWithin(7)' > sort:'tickleDate' > ignoreRealm: > {{config.mGTD.getOptChk('AlertsIgnoreRealm')?'yes':''}} > > > > //END > > This will show all future ticklers for the next 7 days. Of course, by > replacing the '7' in the list's where clause with another number, you > can define any other period. > > HTH, > Michael -- You received this message because you are subscribed to the Google Groups "GTD TiddlyWiki" group. To post to this group, send email to gtd-tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to gtd-tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/gtd-tiddlywiki?hl=en.
Re: Is there a way to look at all upcoming ticklers within the next week?
Glad to hear it's working for you. BTW, i found a little bug causing the list to show one day more than specified. In the following lines, the comparator '>=' should be a '>': //BEGIN return (startTime.convertToMMDDHHMM() <= this.fields.mgtd_date && endTime.convertToMMDDHHMM() >= this.fields.mgtd_date); //END The correct version is (Note the modified second comparison): //BEGIN return (startTime.convertToMMDDHHMM() <= this.fields.mgtd_date && endTime.convertToMMDDHHMM() > this.fields.mgtd_date); //END Bye, Michael Am 09.08.2010 05:44, schrieb Gary Buckley: Worked like a charm, thanks. It was interesting to see the method for adding function calls into the system too. Cheers, Gary On 6 Aug, 15:42, Michael Scherer wrote: I wrote a function that can be used instead of tiddler.tiddlerisActive(). Create a new tiddler named 'TicklerWillBeActiveWithin' with the two tags 'systemConfig' and 'exludeSearch' (all without quotes, of course). Copy all the text between the BEGIN and END lines into the content field: //BEGIN merge(Tiddler.prototype,{ ticklerWillBeActiveWithin: function(numDays) { // Ignore ticklers without date if (!this.fields.mgtd_date) return false; var nowTime = new Date(); // Respect user settings (see ticker.isActive()) var defaultHourToActivate = 5; // fixme put elsewhere var hourToActivate = config.mGTD.getOptTxt('tickleractivatehour') || defaultHourToActivate; if (nowTime.getHours()< hourToActivate) { // Too early in the morning, go back one day. nowTime.setDate(nowTime.getDate() - 1); } // Start tomorrow startTime = new Date(nowTime.getFullYear(), nowTime.getMonth(), nowTime.getDate() + 1); // End in numDays days endTime = new Date(nowTime.getFullYear(), nowTime.getMonth(), nowTime.getDate() + 1 + numDays); return (startTime.convertToMMDDHHMM()<= this.fields.mgtd_date && endTime.convertToMMDDHHMM()>= this.fields.mgtd_date); } }); //END Save your wiki and reload it. Now, you can use the function in your mgtdList as follows: (Note the changed 'where' clause) //BEGIN < -- You received this message because you are subscribed to the Google Groups "GTD TiddlyWiki" group. To post to this group, send email to gtd-tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to gtd-tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/gtd-tiddlywiki?hl=en.
Re: Is there a way to look at all upcoming ticklers within the next week?
> Save your wiki and reload it. Now, you can use the function in your > mgtdList as follows: (Note the changed 'where' clause) > Thanks for putting this up, it's a great addition to be able to see ticklers firing in the next however long. I was able to create a new tickler with the tags and the content no problems. However, being very new to mGSD, I'm not sure what steps to take to make the function work. How exactly do I use the function in the mgtdList? I searched for 'mgtdList' within mGSD itself, but it didn't find anything. Cheers, Dan -- You received this message because you are subscribed to the Google Groups "GTD TiddlyWiki" group. To post to this group, send email to gtd-tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to gtd-tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/gtd-tiddlywiki?hl=en.
Re: Is there a way to look at all upcoming ticklers within the next week?
Sorry - have worked it out now. For those who might ask the same question: (I use the action dashboard by context as my permaview, so this is a description of how to add the 'upcoming ticklers' to that, although it could be easily added to any dashboard.) - Follow Michael's instructions about creating the new tiddler. - Once you have the new tiddler saved, open the action dashboard by context and click edit. - Insert the second section of code into the content box. Make sure you add '>>' (withouth the quotes) to the end of the inserted code. Where you place it in the code will determine its position on the dashboard. I placed it between the next actions and the waiting actions. You place it where you'd like :) - Click done, and enjoy the knowledge of the ticklers coming up in the next 7 days (or more or less if you change the numbers in the original tiddle)r. dmic On Aug 10, 12:28 pm, dmic wrote: > > Save your wiki and reload it. Now, you can use the function in your > > mgtdList as follows: (Note the changed 'where' clause) > > Thanks for putting this up, it's a great addition to be able to see > ticklers firing in the next however long. I was able to create a new > tickler with the tags and the content no problems. However, being > very new to mGSD, I'm not sure what steps to take to make the function > work. How exactly do I use the function in the mgtdList? I searched > for 'mgtdList' within mGSD itself, but it didn't find anything. > > Cheers, > Dan -- You received this message because you are subscribed to the Google Groups "GTD TiddlyWiki" group. To post to this group, send email to gtd-tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to gtd-tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/gtd-tiddlywiki?hl=en.
Re: Is there a way to look at all upcoming ticklers within the next week?
For all, who have trouble with all this: I've uploaded two text files to the group's files section. So, there shouldn't be any problems with purged characters etc. The files section can be found here: http://groups.google.com/group/gtd-tiddlywiki/files The first file, "TicklerWillBeActiveWithin.txt", contains the new function. 1. Download and open the file. 2. Create a new tiddler with the title "TicklerWillBeActiveWithin". 3. Copy the contents of the file into the tiddler's "Content" field. 4. Write "systemConfig excludeSearch" (without the quotes) into the "Tags" line. 5. Click on "Done" and save your changes. Now, you have to reload the file to activate the new function. The second file, "TicklerWillBeActiveWithin-Sample.txt", shows how to use the new function. It will display active ticklers, ticklers upcoming within 3 days, next actions, waiting actions, projects without any next action. I'm using it as my main tiddler. Of course, you can skip the sample. 1. Download and open the file. 2. Create a new tiddler. I named it "Dashboard". 3. Copy the contents of the file into the tiddler's "Content" field. 4. Write "View excludeSearch" (without the quotes) into the "Tags" line. 5. Click on "Done" and save your changes. The one really interesting line in that tiddler is: where:'tiddler.ticklerWillBeActiveWithin(3)' It is part of the second "mgtdList" command and calls the new function with the parameter 3. By changing this number, you can define any period that should be shown. You could also copy only this list command (from "<>") and past it into any other tiddler. I hope, the instructions are clear enough. Otherwise, simply ask. Am 11.08.2010 03:01, schrieb dmic: - Insert the second section of code into the content box. Make sure you add '>>' (withouth the quotes) to the end of the inserted code. The '>>' are there, but have been purged by Google in the default view. The option "Show original" can be used to copy the correct contents. I searched for 'mgtdList' within mGSD itself, but it didn't find anything. All "system tiddlers" are excluded from search. But they show up in the list of all tiddlers. Bye, Michael -- You received this message because you are subscribed to the Google Groups "GTD TiddlyWiki" group. To post to this group, send email to gtd-tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to gtd-tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/gtd-tiddlywiki?hl=en.
Re: Is there a way to look at all upcoming ticklers within the next week?
On Sat, Aug 7, 2010 at 12:42 AM, Michael Scherer wrote: > I wrote a function that can be used instead of > tiddler.tiddlerisActive(). > >ticklerWillBeActiveWithin: function(numDays) { > That's nice. I've added it to mGSD. There is a release 3.1.8 out now that includes this. Am still showing all ticklers in Tickler Dashboard though, so if you have hundreds of them then you might want to use the scroll technique. Or make another briefer dashboard that doesn't show the long list of upcoming ticklers. -- simon.ba...@gmail.com -- You received this message because you are subscribed to the Google Groups "GTD TiddlyWiki" group. To post to this group, send email to gtd-tiddlyw...@googlegroups.com. To unsubscribe from this group, send email to gtd-tiddlywiki+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/gtd-tiddlywiki?hl=en.