Hello. I have folders throughout my project called /archive/, in which I put old versions of things. I would like the "Show TODO List" command to ignore everything in any folder named archive/. Any ideas on how to do that?
I looked at the Show TODO List Ruby script, but I don't know Ruby at all and it was not obvious to me how I would modify (a copy of) the script to ignore specific subfolders.
Thanks!
--Andreas
p.s. I use hard folders in my projects, and would like to continue to do so. Moving the /archive/ folders out of the actual folders on my HD is not an option. However, if there was some way to surpress those subfolders from appearing in the project at all (other than actually removing them), that would be fine. Unfortunately, deleting the references in the project is insufficient; the files in /archive/ nevertheless have their TODOs appear in the list.
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)
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
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@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@vinq.com