Is there a way to ignore certain folders in ALL searches?
Moderators: Hacker, petermad, Stefan2, white
-
- Junior Member
- Posts: 79
- Joined: 2003-10-27, 16:49 UTC
- Contact:
Is there a way to ignore certain folders in ALL searches?
As a developer I have quite a few .git (or .svn) folders with lots of stuff in there - lots of stuff that I NEVER want to search (with all the small files it takes ages to search, especially when searching file contents and if it's on a network drive). Is there any way to make TC ignore that folder in all searches without specifying it manually all the time?
-
- Junior Member
- Posts: 79
- Joined: 2003-10-27, 16:49 UTC
- Contact:
-
- Junior Member
- Posts: 79
- Joined: 2003-10-27, 16:49 UTC
- Contact:
Re: Is there a way to ignore certain folders in ALL searches
Store your search parameters and load that search with a button.ThiefMaster wrote:As a developer I have quite a few .git (or .svn) folders with lots of stuff in there - lots of stuff that I NEVER want to search (with all the small files it takes ages to search, especially when searching file contents and if it's on a network drive). Is there any way to make TC ignore that folder in all searches without specifying it manually all the time?
this is what I am doing to avoid search through .svn
1. In Alt-F7 search: going to the 3rd line (1st is .., 2nd .svn) and press Ctrl+Shift+End - it will select everything except .svn and then press Alt-F7 - it will search only selected dirs/files. Of course - it works, because SVN I am using has one .svn dir only - in the root of the project (previous version have it in each subdir) and my default sorting puts .svn to that 2nd row
2. "Synchronize dirs" - I have filter that I am always using from history - something like *.*|*.class .svn\ tmp\ ......
If you are "keyboard guy", you can create simple macro using AHK that will append that "|.svn\" into your search expression. It would require you to use keyboard to execute search instead of that button
ado
1. In Alt-F7 search: going to the 3rd line (1st is .., 2nd .svn) and press Ctrl+Shift+End - it will select everything except .svn and then press Alt-F7 - it will search only selected dirs/files. Of course - it works, because SVN I am using has one .svn dir only - in the root of the project (previous version have it in each subdir) and my default sorting puts .svn to that 2nd row
2. "Synchronize dirs" - I have filter that I am always using from history - something like *.*|*.class .svn\ tmp\ ......
If you are "keyboard guy", you can create simple macro using AHK that will append that "|.svn\" into your search expression. It would require you to use keyboard to execute search instead of that button
ado
1. Alt+F7 Search...
2. Search for: (enter the search mask for the files you want to find)
3. Switch to Plugins tab, and make sure [V]Search in plugins
4. Plugin: select "tc" (default)
5. Property: select "path"
6. OP: select "!contains"
7. Value: enter .git (you can also add More rules for .svn)
8. Start search
2. Search for: (enter the search mask for the files you want to find)
3. Switch to Plugins tab, and make sure [V]Search in plugins
4. Plugin: select "tc" (default)
5. Property: select "path"
6. OP: select "!contains"
7. Value: enter .git (you can also add More rules for .svn)
8. Start search
-
- Junior Member
- Posts: 79
- Joined: 2003-10-27, 16:49 UTC
- Contact:
You can always enter such folder using cd .git in TC command line (I doubt that you need it every day).
Also, don't you know all your repositories' folders on your PC? If you have TortoiseGit/TortoiseSVN installed, you see overlay icon over folder icon and inside so it is obvious that it is a repository and you don't need any .git/.svn folders.
Also, don't you know all your repositories' folders on your PC? If you have TortoiseGit/TortoiseSVN installed, you see overlay icon over folder icon and inside so it is obvious that it is a repository and you don't need any .git/.svn folders.
-
- Junior Member
- Posts: 79
- Joined: 2003-10-27, 16:49 UTC
- Contact: