On May 10, 2006, at 5:19 PM, textmate-request@lists.macromates.com wrote:
To: TextMate users textmate@lists.macromates.com Subject: Re: [TxMt] What is TODO? Reply-To: TextMate users textmate@lists.macromates.com
On May 10, 2006, at 3:43 PM, Niko Dittmann wrote:
"todo" searches project-wide for code-comments with the strings "todo", "fixme" and "changeme" and presents a list with the lines and links to the files. very convenient to keep track of... well... things you still have to do. try it!
There is another one called "RADAR". I assume that's some sort of bug-tracking tag. Does anyone have more details about it?
Trevor
I have been playing with TODO (actually, I'd like to build a GTD bundle based on it). For some reason, nothing I label as RADAR shows up in the TODO list.
Mike
Hi Mike, you wrote...
I have been playing with TODO (actually, I'd like to build a GTD bundle based on it). For some reason, nothing I label as RADAR shows up in the TODO list.
If you look at the command in the bundle editor you'll see
:regexp => /(.*<)ra?dar:/(?:/problem|)/([&0-9]+)(>.*)$/ },
in the "RADAR" slot. So it's going to be matching a line that looks something like
radar://3 or rdar://345 (or rdar://problem/3 )
rather than a raw "RADAR". I'm not sure what the pipe symbol's doing in there; it seems to be extraneous, but my regex fu is a bit "bah!" these days.
Cheers, Paul
On 11/5/2006, at 9:28, Paul McCann wrote:
I have been playing with TODO (actually, I'd like to build a GTD bundle based on it). For some reason, nothing I label as RADAR shows up in the TODO list.
The RADAR thing is an URL scheme which can be used to link to entries in Apple’s bug reporter [1].
Only Apple people can actually click these links, but it’s a good idea to use them when posting in public. Should someone from Apple stumble upon the post, he will be able to click the link, and may actually fix the problem :)
The WebKit and Darwin sources contain a lot of these links, and I think it’s a good idea to put them in your own source for workarounds caused by a bug which has been reported. This provides a somewhat easier way to checkup on it later, shows that the thing being worked around has been reported, and is a source for copy’n’paste when you want to mention the bug ID in a conversation where someone from Apple might be listening.
But for majority of TM users, this thing can probably just be ignored. I have considered making the TODO command only show sections which actually have entries. OTOH it might be nice to see that the FIXME is empty.
[...] :regexp => /(.*<)ra?dar:/(?:/problem|)/([&0-9]+)(>.*)$/ }, [...] I'm not sure what the pipe symbol's doing in there; it seems to be extraneous, but my regex fu is a bit "bah!" these days.
It makes the /problem part optional. So the regexp is functionally equivalent with:
/(.*<)ra?dar:/(?:/problem)?/([&0-9]+)(>.*)$/