Reputation: 3830
I created a textmate project for a django app I'm working on, and I want to permanently remove the reference to "venv" folder from the project, but everytime I remove the "venv" folder from the project (deleting the reference), everytime I open the project again, I have to repeat that process. How do I just permanently remove a file/folder reference?
Having this "venv" folder in the project makes my project-searching A LOT slower.
Upvotes: 2
Views: 675
Reputation: 34031
It sounds like your project has a reference to a folder that has the 'venv' folder in it. Textmate is going to refresh the contents of the referenced folder every time it gains focus, including the 'venv' folder. This is helpful when you want it to see newly added folders, not so helpful when you want to exclude things.
While not the most fine-grained fix, you can exclude folders as noted in the docs:
2.1.2 Filtering Unwanted Files
When using folder references, you may want to have certain files or folders excluded from the project. This can be done by changing the file and folder patterns found in Preferences → Advanced → Folder References.
These are regular expressions which are matched against the full path of each file and folder. If the pattern does match the item, it is included, otherwise it is excluded. To reverse that, so that items which match are excluded from the project, prefix the pattern with an exclamation point (!).
The patterns are only used when creating new folder references. For existing folder references one can select the folder reference in the project drawer and use the info button (a circled letter I) in the project drawer to edit the patterns.
The complexity of this system will be addressed in a future release.
Adding 'venv' to that regex should keep it from (ever) being included.
Upvotes: 1