I had to delete and re-post this because I wasn't subscribed to the list when I originally posted this. Sorry for any confusion.
***
Hey, I'm new to textmate (neatbeans borked itself on me), and am hoping someone can help me. I'm working on a very large codebase, but only a small portion of it is relevant to my project. So I have opened the root folder of the codebase, and then highlighted files I *don't* need and then used right-click->"Remove Selected Files"->"Delete References". By doing this, I can limit the list of files to only the ones relevant to me, making it a ton easier to navigate from file to file.
The problem is, even if I use the File->"Save Project" command, this filtering of files seems to be temporary. The next time I open that project, all of the files I filtered out are visible again in the file-view. I have the ProjectPlus plugin installed.
Is this expected behavior? Or is there a setting I'm missing or different workflow I should follow in order to get textmate to remember what should be visible in my project?
Thanks!
Sounds to me like you have a folder reference in your project (possibly you dragged the folder right onto the TM icon and created the project that way). This is normal behavior for folder references, since they are simply an alternate view into the filesystem. That is, you have your project folder, and TM has a reference to that, and any children of that folder are displayed based wholly on whether or not they exist on the filesystem, or if possibly they match the name pattern for hidden files. In your case, you may be deleting the files from the project, but since all that is really saved with the project file is the top folder reference, those files will reappear next time as long as they exist on the filesystem.
Don't worry, you have a few options.
If you work primarily in just a few sub-folders of the project, you can drag just those folders into TM, and you'll get folder references for those folders.
If you really need to pick and choose your files, you can create a new project, then drag the files you need into the project drawer. If you would like to still organize them into folders, you can create groups in the project that act like folders, but are merely for the organization of your project. You can tell the difference between folder references and groups by their color: folders are blue, groups are yellow.
To make a group, right click in the drawer, in an empty space, and you should see "New Group" in the menu. If you right click on a file or folder, you'll see "New Folder" instead, so click in an empty space. It might be a bit tedious to get the project set up, but you should then be able to save the project and not have the issues you are currently having.
Hope that helps. Welcome to the world of TextMate! You'll like it here. I find you need to spend at least a month with it (as in, 40 hours a week of coding) before you'll really start to enjoy it, and then another 2-6 months with it before you really start to understand the power and flexibility of the bundle system, at which point you become inseparably joined to TM. So, get past these initial road bumps, and then you'll be in love.
+dru
On Sep 12, 2011, at 9:07 AM, rralian wrote:
I had to delete and re-post this because I wasn't subscribed to the list when I originally posted this. Sorry for any confusion.
Hey, I'm new to textmate (neatbeans borked itself on me), and am hoping someone can help me. I'm working on a very large codebase, but only a small portion of it is relevant to my project. So I have opened the root folder of the codebase, and then highlighted files I *don't* need and then used right-click->"Remove Selected Files"->"Delete References". By doing this, I can limit the list of files to only the ones relevant to me, making it a ton easier to navigate from file to file.
The problem is, even if I use the File->"Save Project" command, this filtering of files seems to be temporary. The next time I open that project, all of the files I filtered out are visible again in the file-view. I have the ProjectPlus plugin installed.
Is this expected behavior? Or is there a setting I'm missing or different workflow I should follow in order to get textmate to remember what should be visible in my project?
Thanks!
View this message in context: http://old.nabble.com/remembering-files-in-projects-tp32449259p32449259.html Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
Thank you so much. That was incredibly helpful and solves my issue exactly. I hadn't found this level of detail in the documentation... maybe it was staring me the face (that happens). But your instructions were super-helpful. Thanks!
drukepple wrote:
Sounds to me like you have a folder reference in your project (possibly you dragged the folder right onto the TM icon and created the project that way). This is normal behavior for folder references, since they are simply an alternate view into the filesystem. That is, you have your project folder, and TM has a reference to that, and any children of that folder are displayed based wholly on whether or not they exist on the filesystem, or if possibly they match the name pattern for hidden files. In your case, you may be deleting the files from the project, but since all that is really saved with the project file is the top folder reference, those files will reappear next time as long as they exist on the filesystem.
Don't worry, you have a few options.
If you work primarily in just a few sub-folders of the project, you can drag just those folders into TM, and you'll get folder references for those folders.
If you really need to pick and choose your files, you can create a new project, then drag the files you need into the project drawer. If you would like to still organize them into folders, you can create groups in the project that act like folders, but are merely for the organization of your project. You can tell the difference between folder references and groups by their color: folders are blue, groups are yellow.
To make a group, right click in the drawer, in an empty space, and you should see "New Group" in the menu. If you right click on a file or folder, you'll see "New Folder" instead, so click in an empty space. It might be a bit tedious to get the project set up, but you should then be able to save the project and not have the issues you are currently having.
Hope that helps. Welcome to the world of TextMate! You'll like it here. I find you need to spend at least a month with it (as in, 40 hours a week of coding) before you'll really start to enjoy it, and then another 2-6 months with it before you really start to understand the power and flexibility of the bundle system, at which point you become inseparably joined to TM. So, get past these initial road bumps, and then you'll be in love.
+dru
On Sep 12, 2011, at 9:07 AM, rralian wrote:
I had to delete and re-post this because I wasn't subscribed to the list when I originally posted this. Sorry for any confusion.
Hey, I'm new to textmate (neatbeans borked itself on me), and am hoping someone can help me. I'm working on a very large codebase, but only a small portion of it is relevant to my project. So I have opened the root folder of the codebase, and then highlighted files I *don't* need and then used right-click->"Remove Selected Files"->"Delete References". By doing this, I can limit the list of files to only the ones relevant to me, making it a ton easier to navigate from file to file.
The problem is, even if I use the File->"Save Project" command, this filtering of files seems to be temporary. The next time I open that project, all of the files I filtered out are visible again in the file-view. I have the ProjectPlus plugin installed.
Is this expected behavior? Or is there a setting I'm missing or different workflow I should follow in order to get textmate to remember what should be visible in my project?
Thanks!
View this message in context: http://old.nabble.com/remembering-files-in-projects-tp32449259p32449259.html Sent from the textmate users mailing list archive at Nabble.com.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate