[SVN] Revision 1128 (Subversion)

Allan Odgaard allan at macromates.com
Tue May 31 01:47:40 UTC 2005


On May 31, 2005, at 0:50, Jeroen van der Ham wrote:

> Commit and Status will no longer complain about things that are not  
> in the repository AND match this ruby regexp: /(\/.*)*(\/\..*|\. 
> (tmproj|o|pyc)|Icon)/
>
> I tried to do this based on the default TM preference string (so  
> that once that is available as a variable, it's a drop-in  
> replacement), but I just don't know enough of Ruby to do that.  
> Maybe someone else can do that.

Actually, if the user hasn't changed his patterns, they are not in  
the preferences file, and so there's no way to actually read them :/

If they are in the file, you can get them using (shell):
    defaults read com.macromates.textmate OakFolderReferenceFilePattern

Unfortunately defaults returns an “escaped” string. So \ will be \\.  
It can also use \nnn or \Unnnn, but that's for >7 bit characters.




More information about the textmate-dev mailing list