[TxMt] TODO to ignore archive folders?

Michael Reece mreece at vinq.com
Thu Aug 31 16:46:57 UTC 2006


looks to me like this pattern:

   .*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle|archive)

is matching folder names that have these extensions; anything (.*)  
followed by a dot (\.) followed by one of those patterns.

you should put archive outside that closing paren, or near the front:

.*/(\.[^/]*|CVS|_darcs|\{arch\}|blib|.*~\.nib|.*\.(framework|app| 
pbproj|pbxproj|xcode(proj)?|bundle)|archive)$

or

.*/(\.[^/]*|archive|CVS|_darcs|\{arch\}|blib|.*~\.nib|.*\.(framework| 
app|pbproj|pbxproj|xcode(proj)?|bundle))$


On Aug 31, 2006, at 8:34 AM, Andreas Duus Pape wrote:

> On Aug 29, 2006, at 11:29 AM, Allan Odgaard wrote:
>> On 29/8/2006, at 17:22, Andreas Duus Pape wrote:
>>
>>> [...] However, if there was some way to surpress those subfolders  
>>> from appearing in the project at all
>>
>> Go to Preferences → Advanced → Folder References. Add archive  
>> together with the current excluded folders.
>>
>> Then they will not show up in your scratch projects, and the TODO  
>> command should skip them as well (but the latter won’t get the  
>> updated patterns before they have been flushed to disk, which you  
>> can force by relaunching TextMate, e.g. using ⌃⌘Q)
>
> Thanks for the suggestion!  I seem to be doing this wrong.  This is  
> the "Folder Pattern" code:
>
> !.*/(\.[^/]*|CVS|_darcs|\{arch\}|blib|.*~\.nib|.*\.(framework|app| 
> pbproj|pbxproj|xcode(proj)?|bundle|archive))$
>
> I added |archive at the end, but apparently that didn't work.  I  
> don't understand this syntax, apparently.  Is this a regex of all  
> folders that are to be included?  where should I add "archive" to  
> make it ignore archive folders?
>
> Thanks for your help.
>
> 			--Andreas
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate

---
michael reece :: software engineer :: mreece at vinq.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20060831/641b1ee1/attachment.html>


More information about the textmate mailing list