Finally, I may be reinventing the wheel. Is there a GTD implementation based on TW5? Even if there is, I, probably, would want to customize a few things. So, I still would like to know the answers.
Thanks again to all Tidlywiki developers. It's an awesome tool for many things. I have not seen so much functionality packed in ~600K of code.
I'm currently using mGSD to manage my tasks. Recently tried TW5. I think, it's awesome. Wanted to thank Jeremy for Tiddlywiki. <$list> and <$checkbox> widgets available at TW5 are very handy to create task lists by project/context/contact. The TW5 ability to manipulate and customize tiddler fields is a great addition. I was able to create <$list> of tasks sorted by custom fields such as "start", "due", or "priority". I also love the minimalism of the interface.
Couple of questions about TW5 features for which I could not find documentation. I'm thinking of implementing recurring tasks in TW5. I envision using tags "recurring" and "weekly"/"daily"/"monthly", etc. and use fields such as "start", "modified", etc. So, my questions are:
- Is it possible to set <$list> filter to select tiddlers using comparisons? E.g. select tiddlers with "start" date before "now" to make tasks appear on the list at certain date/time? Perhaps, it's possible to do it in a similar fashion as mGSD handles ticklers, but I thought, <$list> widget might offer a much simpler way.
- Is it possible to set <$list> filter to select tiddlers with tags/titles matching a regular expression?
- Is it possible to have <$checkbox> widget do more than assign a tag to a tiddler? E.g. Can it increment the "start" date field by 7 days?
- Are tiddler fields always treated as text or is it possible to set a field type (e.g. date, integer, etc.).
- Is it possible to create contextual tiddler templates? E.g.
- when a tiddler is tagged as "project", the tiddler view would automatically show lists of tasks or
- when a tiddler is tagged as "context", the tiddler view would automatically show a list of tasks orgainzed differently, etc.
(similar behavior as in mGSD, only I would expect a more transparent and customizeable syntax with <$list> and <$view>. In mGSD, it's done through macros which are hard to find and difficult to customize.)
- Would be nice to have an easy way to create a tiddler with a certain template (e.g. create buttons with custom functionality). I have a feeling that buttons are already implemented, but not documented. Is it true?
Finally, I may be reinventing the wheel. Is there a GTD implementation based on TW5? Even if there is, I, probably, would want to customize a few things. So, I still would like to know the answers.
Thanks again to all Tidlywiki developers. It's an awesome tool for many things. I have not seen so much functionality packed in ~600K of code.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.
- Are tiddler fields always treated as text or is it possible to set a field type (e.g. date, integer, etc.).
Tiddler fields are strings by default, but can be typed through the use of "tiddlerfield" modules. The core tiddlerfields are in boot.js:
A newbie question.
I was able to chage my custom "start" field type to "date" by adding this to boot.js:$tw.modules.define("$:/boot/modules/tiddlerfields/start","tiddlerfield",{
name: "start",
parse: $tw.utils.parseDate,
stringify: $tw.utils.stringifyDate
});
After that I was able to use
I guess, it's not a good idea to mess with boot.js. So, I tried to create a tiddler called "$:/boot/modules/tiddlerfields/start" and set its type to "application/javascript", "module-type: tiddlerfield". But I could not get it to register. It seems, I'm missing how to get the .js tiddler code registered as a module.
I also tried naming the tiddler "$:/core/modules/tiddlerfields/start" thinking that boot somehow loads all "$:/core/modules" tiddlers, but it did not work. What am I missing?
Thanks.
--
Arkady
I have noticed, the date field is set to time in UTC. When the field is set to "20120101", then <$view field="start" format="date"/> renders it as December 31, 2011. Is there a way to interpret dates in local time?
<empty.html>
// Convert a date into UTC YYYYMMDDHHMMSSmmm format $tw.utils.stringifyDate = function(value) {value=$tw.utils.parseDate(value);return value.getUTCFullYear() + $tw.utils.pad(value.getUTCMonth() + 1) + $tw.utils.pad(value.getUTCDate()) + $tw.utils.pad(value.getUTCHours()) + $tw.utils.pad(value.getUTCMinutes()) + $tw.utils.pad(value.getUTCSeconds()) + $tw.utils.pad(value.getUTCMilliseconds(),3); }; // Parse a date from a UTC YYYYMMDDHHMMSSmmm format string $tw.utils.parseDate = function(value) { if(typeof value === "string") { return new Date(Date.UTC(parseInt(value.substr(0,4),10), parseInt(value.substr(4,2),10)-1, parseInt(value.substr(6,2),10), parseInt(value.substr(8,2)||"00",10), parseInt(value.substr(10,2)||"00",10), parseInt(value.substr(12,2)||"00",10), parseInt(value.substr(14,3)||"000",10))); } else if($tw.utils.isDate(value)) { return value; } else { return null; } };