[TxMt] New project from list of files?

Sven Axelsson sven.axelsson at gmail.com
Wed Jan 30 17:22:38 UTC 2008


On 30/01/2008, Steve King <sking at arbor.net> wrote:
>
>  Is there a way to create a new project from a list of files, such that the
> files are automatically grouped by directory?
>
>  Since this is all in SVN I can easily get a list of true source files via
> the 'svn ls -R' command.  But how do I get that list into TextMate?  I've
> tried 'mate `svn ls -R`', and it *almost* does what I want.  Unfortunately
> the files aren't grouped by directory. Even more unfortunately, since the
> svn command lists directories under its control as well as files , I get two
> copies of each file in the project list

Well, you can get rid of the directory entries with

mate `svn lis -R | egrep -v '/$'`

But having the files grouped by directory is harder. If you really
must do it like this, then I think you'll have to generate the
Textmate project file yourself. But is it really such a big deal to
have some extra files in the project? Assuming you have a reasonable
project layout, you can also filter by folders so you can get rid of
things like "bin", "obj", or whatnot in one go.

-- 
Sven Axelsson
++++++++++[>++++++++++>+++++++++++>++++++++++>++++++
>++++<<<<<-]>++++.+.++++.>+++++.>+.<<-.>>+.>++++.<<.
+++.>-.<<++.>>----.<++.>>>++++++.<<<<.>>++++.<----.



More information about the textmate mailing list