I'm curious about the reiationship between textmate projects and the subversion bundle.
I've had occasion to commit changes in a Textmate project, then go to the terminal in the working directory and svn info shows me at a previous revision, but doing svn up just reports that I'm now at the latest revision.
Is this an artifact of the way I set the project up?
I have to admit that I'm still a bit confused by JEG IIs description of two types of text mate projects in the book. I never managed to understand what he was saying about the difference.
I think now that it's not really that there are two types of projects, but two types of relationship between items in the project and the filesystem.
When I first set up my first existing rails project as a textmate project, I picked File>New Project and then dragged the individual top level items from the finder to the textmate project pane, so the top level of the project has the standard rails folders: app, components, config, db ...; and two files README and Rakefile.
I think this means that the directories are folder references and I'm not sure what the difference, if any there is for the two top level files. I just changed README in textmate and saved it and it certainly seems to be directly changing the file in the rails project directory. So just what is the difference? I think that the real difference is between a folder reference and a group inside a textmate project, Yes?
And I guess that I really want to restructure the project so that it has one toplevel folder reference which is the rails project directory.
Rick DeNatale wrote:
I think now that it's not really that there are two types of projects, but two types of relationship between items in the project and the filesystem.
There actually are two types of projects, and the distinction between them is the way they relate to the filesystem. :)
The "File->New Project" kind of project is a kind of document with links to files and folders that you have added to that project. If on the other hand you drag a folder to TextMate, then you create a project directly related to that folder, with all the contents readily available.
In the first kind of project you have *references* to files and folders, and you can rearrange those to your liking, including adding groups (which have no counterpart in the filesystem), in the latter kind of project you are working directly on the filesystem, and rearranging files means that they are moved.
I think the behavior you see in subversion is a result of the way you use your project: the update action updates the selected item in the drawer. And if that is not the base of your checkout, then not all files will be updated.
My advice would be to create a new project by opening the containing file of your rails project. And select that folder if you want to do svn updates.
Jeroen.
On 10/16/07, Jeroen van der Ham jeroen@je-ju.net wrote:
Rick DeNatale wrote:
I think now that it's not really that there are two types of projects, but two types of relationship between items in the project and the filesystem.
There actually are two types of projects, and the distinction between them is the way they relate to the filesystem. :)
The "File->New Project" kind of project is a kind of document with links to files and folders that you have added to that project. If on the other hand you drag a folder to TextMate, then you create a project directly related to that folder, with all the contents readily available.
In the first kind of project you have *references* to files and folders, and you can rearrange those to your liking, including adding groups (which have no counterpart in the filesystem), in the latter kind of project you are working directly on the filesystem, and rearranging files means that they are moved.
So is there a difference between:
1) In the finder, drag the icon of a folder to the textmate application icon and 2) In textmate File>New Project, then drag the icon of the same folder to the empty project drawer?
Rick DeNatale wrote:
So is there a difference between:
- In the finder, drag the icon of a folder to the textmate application icon
and 2) In textmate File>New Project, then drag the icon of the same folder to the empty project drawer?
Yes, there are two (small) differences: - The first one will not allow you to add more folders, whereas the second one will. - when closing the project, the second one will ask you to save, the first one will just close.
Jeroen.
Jeroen van der Ham wrote:
Rick DeNatale wrote:
So is there a difference between:
- In the finder, drag the icon of a folder to the textmate application icon
and 2) In textmate File>New Project, then drag the icon of the same folder to the empty project drawer?
Yes, there are two (small) differences:
- The first one will not allow you to add more folders, whereas the
second one will.
Either way is perfectly happy to let you add more folders
- when closing the project, the second one will ask you to save, the
first one will just close.
You're right… but this is a minor difference indeed. :)
Actually though, TM probably should prompt for saving projects created by dragging folders, if any project-specific shell variables have been added, etc.
-Jacob
On 10/16/07, Jacob Rus jacobolus@gmail.com wrote:
Jeroen van der Ham wrote:
Rick DeNatale wrote:
So is there a difference between:
- In the finder, drag the icon of a folder to the textmate application icon
and 2) In textmate File>New Project, then drag the icon of the same folder to the empty project drawer?
Yes, there are two (small) differences:
- The first one will not allow you to add more folders, whereas the
second one will.
Either way is perfectly happy to let you add more folders
- when closing the project, the second one will ask you to save, the
first one will just close.
You're right… but this is a minor difference indeed. :)
I'm becoming more convinced that my original model is correct. That there really aren't two kinds of PROJECTS, but that there are three different objects which can be in the project drawer:
1) File references 2) Folder references 3) Groups
1 and 2 are references to the corresponding things on the file system. 3 only exists inside TextMate.
In experimenting with a project which I created by dragging a rails app directory icon from the finder to a new TextMate project drawer, I've noticed that I can drag additional file and folder references to the top-level of the project drawer, but not to a folder reference.
I can also create groups in the top-level of the project drawer, and group file references in the top level, and put groups inside groups, but I can't put a file reference in a group, or a group in a folder reference.
On Oct 16, 2007, at 1:32 PM, Rick DeNatale wrote:
I'm becoming more convinced that my original model is correct. That there really aren't two kinds of PROJECTS, but that there are three different objects which can be in the project drawer:
- File references
- Folder references
- Groups
1 and 2 are references to the corresponding things on the file system. 3 only exists inside TextMate.
In experimenting with a project which I created by dragging a rails app directory icon from the finder to a new TextMate project drawer, I've noticed that I can drag additional file and folder references to the top-level of the project drawer, but not to a folder reference.
I can also create groups in the top-level of the project drawer, and group file references in the top level, and put groups inside groups, but I can't put a file reference in a group, or a group in a folder reference.
-- Rick DeNatale
My blog on Ruby http://talklikeaduck.denhaven2.com/
I think it might be rather telling that this isn't completely obvious at first glance. People shouldn't have to think about this stuff, it should "just work".
I'm not sure what exactly is going to be different in TM2 but I know Allan has mentioned that this whole thing is going to be drastically updated.
Maybe there will be a separation between groups, files and folders. I can see it being sort of like how iTunes separates things. LIBRARY would be your actual files & folders and then PLAYLISTS would be your groups or smart groups or whatever.
Meh, I'm sure Allan is up to something.
—Thomas Aylott – subtleGradient—
Jacob Rus wrote:
- In the finder, drag the icon of a folder to the textmate
application icon 2) In textmate File>New Project, then drag the icon of the same folder to the empty project drawer?
Yes, there are two (small) differences:
- The first one will not allow you to add more folders, whereas the
second one will.
Either way is perfectly happy to let you add more folders
No. A project I opened with "mate <dir>" or by dragging a folder to the TM icon will not let you add more folders later. You can however add folders at creation time by dragging multiple folders to it.
Jeroen.
On 10/17/07, Jeroen van der Ham jeroen@je-ju.net wrote:
Jacob Rus wrote:
- In the finder, drag the icon of a folder to the textmate
application icon 2) In textmate File>New Project, then drag the icon of the same folder to the empty project drawer?
Yes, there are two (small) differences:
- The first one will not allow you to add more folders, whereas the
second one will.
Either way is perfectly happy to let you add more folders
No. A project I opened with "mate <dir>" or by dragging a folder to the TM icon will not let you add more folders later.
I find that I can add folders or files NEXT to the original folder, but not in it.
You have to watch the mouse pointer feedback carefully, to see when you can release the button.