Thanks, Alan, but I guess I was a bit unclear. I was hoping it would look for the TODOs in just the files in the current project file, and not all the files in the TM_PROJECT_DIRECTORY and down.

For example, if I have a project /Users/uner/Development/exampleProj.tmproj with two files

/Users/uner/Development/vob/examples/example.cpp
/Users/uner/Development/vob/examples/tests/test.cpp

If I pick one of these files, type "echo $TM_PROJECT_DIRECTORY" and do a ^R, I get "/Users/uner/Development/vob/examples", and that's the folder the TODO bundle starts scanning from (i.e. it does /Users/uner/Development/vob/examples/ and all subdirectories). 

I'd really like it to just scan example.cpp and test.cpp.

Is there a way to do this, or do you have a suggestion for some code I can copy from another bundle to see if I can hack this together myself?

On Jul 8, 2007, at 7:00 AM, textmate-request@lists.macromates.com wrote:

From: Allan Odgaard <throw-away-1@macromates.com>

Date: July 8, 2007 1:24:51 AM CDT

To: TextMate users <textmate@lists.macromates.com>

Subject: Re: [TxMt] TODO Search Path/Recursion

Reply-To: TextMate users <textmate@lists.macromates.com>


On 8. Jul 2007, at 06:04, Eric Uner wrote:


[...]

1) Get the bundle to just show me the list it came up with last

time and only refresh when I need it to, or better yet,

Could be done, but I don’t think many would prefer this behavior.

2) Get it to only search the files in the current project?

That should be the default -- try check the value of the TM_PROJECT_DIRECTORY variable from within your project.

You can also set TM_TODO_IGNORE to exclude certain files/folders.

On 8. Jul 2007, at 06:04, Eric Uner wrote:

[...]

1) Get the bundle to just show me the list it came up with last

time and only refresh when I need it to, or better yet,

Could be done, but I don’t think many would prefer this behavior.

2) Get it to only search the files in the current project?

That should be the default -- try check the value of the TM_PROJECT_DIRECTORY variable from within your project.

You can also set TM_TODO_IGNORE to exclude certain files/folders.