Hello all,
Let me explain my use-case first. One of my projects uses code from an open source group, and I have this code in the same TM project as my group's own code. This works great, except when I run the TODO bundle. TODO picks up all the notes from the open source group, stuff really not relevant to my particular work - I just want to see notes for my group's code. You could use this to skip over log files/folders too, or whatever else you wanted in your TM project but not looked at by TODO.
To accomplish this goal I modified the TODO bundle to skip over files whose path matches a TODO_IGNORE_PATTERN grep.
The patch is attached, I hope this is useful to other people (and/or makes it into the todo bundle in subversion ;) )
Hope this helps, _Ryan Wilcox
On 12.12.2006, at 06:28, Ryan Wilcox wrote:
Hello all,
Let me explain my use-case first. One of my projects uses code from an open source group, and I have this code in the same TM project as my group's own code. This works great, except when I run the TODO bundle. TODO picks up all the notes from the open source group, stuff really not relevant to my particular work - I just want to see notes for my group's code. You could use this to skip over log files/folders too, or whatever else you wanted in your TM project but not looked at by TODO.
To accomplish this goal I modified the TODO bundle to skip over files whose path matches a TODO_IGNORE_PATTERN grep.
The patch is attached, I hope this is useful to other people (and/ or makes it into the todo bundle in subversion ;) )
Cool, I can look over it tonight. Another way suggested by some users was to parse the .tmproject file of the current project and respect the patterns defined there. Nobody has given this a shot, though.
Soryu.
On 12/12/06, at 10:37 AM, Soryu said:
On 12.12.2006, at 06:28, Ryan Wilcox wrote:
Hello all,
...
To accomplish this goal I modified the TODO bundle to skip over files whose path matches a TODO_IGNORE_PATTERN grep.
Another way suggested by some users was to parse the .tmproject file of the current project and respect the patterns defined there. Nobody has given this a shot, though.
I saw that in the archives. My way has the advantage of not having to save the project file :)
Also, in my case, I don't want to add (the open source group's) code to the folder references because I want to see that folder in the project list (I just don't want TODO parsing through it). I suspect people adding log folders to their .tmprojects would want like this behavior too).
Hope this helps, _Ryan Wilcox
On 12.12.2006, at 14:42, Ryan Wilcox wrote:
<snip />
I’ve committed it with the suggested variable naming from Haris. Thanks for contributing!
Soryu.
• It is now possible to set up an environment variable called `TM_TODO_IGNORE` (e.g. per project) which contains a regular expression that is matched against the individual filenames of your project files. If it matches, those files will be ignored and not scanned for TODO items. • Credits to Ryan Wilcox.
Changed: U trunk/Bundles/TODO.tmbundle/Commands/Help.tmCommand U trunk/Bundles/TODO.tmbundle/Commands/todo.plist
On Dec 12, 2006, at 12:28 AM, Ryan Wilcox wrote:
To accomplish this goal I modified the TODO bundle to skip over files whose path matches a TODO_IGNORE_PATTERN grep.
I like this idea, it will work well with project variables. In general though, we try to prepend TM specific variables with TM_, followed by the bundle name, like:
TM_TODO_IGNORE
Haris