Hi,
If I save a project then move it around the disk and open it again, it's unable to find its folders. My impression is that it's because the references are being saved as relative paths.
Is this somehow intentional or a bug?
On 6 Sep 2005, at 3:34 am, Caio Chassot wrote:
If I save a project then move it around the disk and open it again, it's unable to find its folders. My impression is that it's because the references are being saved as relative paths.
I think it does. This makes sense for me, because I usually set up my projects like:
NameOfProject/ | +--TextMate project file | +--AllTheCode/ | +--MiscFolders/ |
Since the paths are saved relatively, I can grab the entire NameOfProject folder, dump it somewhere else, and everything still works.
Maybe TextMate project files should store the paths in both relative *and* absolute forms?
Chris
On Sep 06, 2005, at 05:36, Chris Mear wrote:
On 6 Sep 2005, at 3:34 am, Caio Chassot wrote:
If I save a project then move it around the disk and open it again, it's unable to find its folders. My impression is that it's because the references are being saved as relative paths.
Maybe TextMate project files should store the paths in both relative *and* absolute forms?
AFAICT, files in OS X have some sort of unique ID you can refer to, that's how aliases still work even after you move a file. Maybe projects should store that, and use the full path as a fallback.
On 06/09/2005, at 11.09, Caio Chassot wrote:
If I save a project then move it around the disk and open it again, it's unable to find its folders. My impression is that it's because the references are being saved as relative paths.
Maybe TextMate project files should store the paths in both relative *and* absolute forms?
AFAICT, files in OS X have some sort of unique ID you can refer to, that's how aliases still work even after you move a file. Maybe projects should store that, and use the full path as a fallback.
Yes, Carbon has file aliases which I can store -- I'm switching most parts of the app to use aliases for 1.2, though I also plan to make the project file redundant (so a project is just a folder).
And yes, currently files are saved in the project file as relative paths, since I always intended for the structure that Chris outlined -- it is possible to change on an item-by-item basis, but it's probably easier just to recreate the project.