simpler interface to exclude a path from searh
-
Leopoldus
- Posts: 237
- Joined: 24 Jun 2004 10:58
simpler interface to exclude a path from searh
Tab "Exclude Folders" is convenient enough to exclude permanently from searching those folders you do never search in. But what if you need to exclude several folders from the one current search only? You have to add all those folders from many different drives and paths to "Excluded Foders" list one by one, then after search is made you will have to remove then from this list one by one again... Not very easy task, is it?
Is it possible to include folders (paths) in "Name" dialog interface exactly the same way as files? E.g. if you need to search file ABC.doc everywhere in your sistem besides in those folders, which include a word image in their names, you could enter in "Name" dialog:
abc.doc & !image\.
I hope that it is not very difficult programming task. Regular expressions use this symbol \, but you can use double slash \\ in regular expressions.
Is it possible to include folders (paths) in "Name" dialog interface exactly the same way as files? E.g. if you need to search file ABC.doc everywhere in your sistem besides in those folders, which include a word image in their names, you could enter in "Name" dialog:
abc.doc & !image\.
I hope that it is not very difficult programming task. Regular expressions use this symbol \, but you can use double slash \\ in regular expressions.
-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: simpler interface to exclude a path from searh
Have you tried to use the Check Full Path option? That way you can achieve what you want in most cases (but not when searched file name and excluded folder name are the same). You don't have to add the backslash then.Leopoldus wrote:abc.doc & !image\.
-
Leopoldus
- Posts: 237
- Joined: 24 Jun 2004 10:58
Re: simpler interface to exclude a path from searh
Indeed that is the most common case for meadmin wrote: That way you can achieve what you want in most cases (but not when searched file name and excluded folder name are the same).
-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: simpler interface to exclude a path from searh
Ok, I added the possibility to have backslashes in the search terms (you must escape them by \). Your search term now should look like this:
+ Check Full Path
Code: Select all
!C:\\John Smith's poetry\\ & John Smith's poems.doc-
Leopoldus
- Posts: 237
- Joined: 24 Jun 2004 10:58
Re: simpler interface to exclude a path from searh
Thanks, Donald!admin wrote:Ok, I added the possibility to have backslashes in the search terms (you must escape them by \).
But I'm afraid I do not understand this interface.
1) Do you mean, that all slashes in the excluded pathes have to be replaced by double slashes or only some of them?
Code: Select all
!C:\Documents\Poems\\John Smith's poetry\\Code: Select all
!John Smith's poetry\\ = !C:\Documents\Poems\\John Smith's poetry\\Code: Select all
!John Smith's poetry\\ & !John Smith's prose\\ & .....Code: Select all
John Smith's poems.doc & !C:\\John Smith's poetry\\-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: simpler interface to exclude a path from searh
Well, all I did is: added the possibility to have backslashes in the search terms (escaped by \). Knowing this you should be able to answer all of your questions yourself. Here are my answers:
1) all slashes
2) whole path or only a part of it
3) more paths
4) order does NOT mean anything
1) all slashes
2) whole path or only a part of it
3) more paths
4) order does NOT mean anything
-
Leopoldus
- Posts: 237
- Joined: 24 Jun 2004 10:58
Re: simpler interface to exclude a path from searh
I was able to answer, but I whished to check myself. Thank you!admin wrote:Knowing this you should be able to answer all of your questions yourself.
BTW, once more question: how about regular expressions? Have they now as well this option to exclude paths?
-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: simpler interface to exclude a path from searh
No, unfortunately not, because the combination of RegExp and Boolean logic is not supported.Leopoldus wrote:BTW, once more question: how about regular expressions? Have they now as well this option to exclude paths?
-
Leopoldus
- Posts: 237
- Joined: 24 Jun 2004 10:58
Re: simpler interface to exclude a path from searh
OK, but what about "*cat*" or "cat*"? Is there any way to exclude those paths, which contain fragment cat in the beginning or in the middle of the folder name, but not end with it?admin wrote:cat & !cat\\
would find all files "*cat*" in the current search location but not the ones in the subfolder(s) "*cat".
-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: simpler interface to exclude a path from searh
beginning: *\\cat*\\*
middle: *\\*cat*\\*
middle: *\\*cat*\\*
-
Leopoldus
- Posts: 237
- Joined: 24 Jun 2004 10:58
Re: simpler interface to exclude a path from searh
Thanks! IMHO this interface is rather non-intuitive and a bit to compex for inputting, but is works!admin wrote:beginning: *\\cat*\\*
middle: *\\*cat*\\*
-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: simpler interface to exclude a path from searh
With the next BETA, it will be sufficient to enter:
beginning: \\cat*\\
middle: \\*cat*\\
beginning: \\cat*\\
middle: \\*cat*\\
-
Leopoldus
- Posts: 237
- Joined: 24 Jun 2004 10:58
Re: simpler interface to exclude a path from searh
Thanks again. But what do you think aboutadmin wrote:With the next BETA, it will be sufficient to enter:
beginning: \\cat*\\
middle: \\*cat*\\
beginning: cat*\\
middle: *cat*\\
I mean that you don't need the preceeding slashes to distinguish a folder from a file. TrackerV could know, that every sequence of letters and asterics is always a folder name, if it ends with double slash.
-
admin
- Site Admin
- Posts: 66249
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: simpler interface to exclude a path from searh
cat*\\ --> internally *cat*\*, finds beginning and middle (*)
*cat*\\ --> internally *cat*\, finds nothing
(*) that's from v3.60.0151 onwards!
*cat*\\ --> internally *cat*\, finds nothing
(*) that's from v3.60.0151 onwards!
XYplorer Beta Club