File > Search > Subfolder filter : regex on full path

Suggestions and feature requests.
Post Reply
Message
Author
kino
Posts: 124
Joined: 01.04.2013, 23:24

File > Search > Subfolder filter : regex on full path

#1 Post by kino » 27.08.2014, 10:26

Hello,

It would be nice to provide a search upon the (optionnally) whole path string, including backslashes separators (escaped \\)

e.g. ~/\d{8}\\APP\d/ matching the following directories :
  • .\20140331\APP1\myfile.txt
    .\whatever\20140430\APP2\whatever\myfile.csv
    etc.
Thanks.
(FC is already cool without :D)

kino
Posts: 124
Joined: 01.04.2013, 23:24

Re: File > Search > Subfolder filter : regex on full path

#2 Post by kino » 06.10.2014, 17:26

It looks like I only had to wait until build 673 (thanks !)

However, It might be a little buggy because with my very same use case, only myfile.txt comes out of the search whereas myfile.csv should also be a candidate.

Even only with date filter \d{8} won't it work
(both 32/64 ; I also tried .*?\d{8}.* just in case)

So I just opened a beta bug report ticket :
viewtopic.php?f=7&t=6232&sid=978d989eee ... 826#p19706

kino
Posts: 124
Joined: 01.04.2013, 23:24

Re: File > Search > Subfolder filter : regex on full path

#3 Post by kino » 24.10.2014, 13:24

Fixed in build 674
THANK YOU !

afh
Posts: 106
Joined: 30.06.2014, 20:50
Location: Romania

Re: File > Search > Subfolder filter : regex on full path

#4 Post by afh » 24.10.2014, 22:40

Is there any help for this filter?
I don't understand how it works...

Let's say I want to find all pdf files in my D:\ drive that are in subfolders called "Original":
Image

it doesn't work...
I tried also:

Image

but the result is wrong... I tried also "\*Original\*.pdf" in filename inputbox (so without a space)... it doesn't work...
I don't get it :(

Timon
Posts: 729
Joined: 13.09.2012, 08:51

Re: File > Search > Subfolder filter : regex on full path

#5 Post by Timon » 26.10.2014, 09:34

Use in File Name: "\*Original; *.pdf" or "*.pdf; \*Original" (without quotes). Works fine for me.

afh
Posts: 106
Joined: 30.06.2014, 20:50
Location: Romania

Re: File > Search > Subfolder filter : regex on full path

#6 Post by afh » 26.10.2014, 16:08

Timon wrote:Use in File Name: "\*Original; *.pdf" or "*.pdf; \*Original" (without quotes). Works fine for me.
Thanks a lot, Timon.
I was missing ";" (multiple item divider).

Headless Monkeyman
Posts: 3
Joined: 19.01.2015, 21:22

Re: File > Search > Subfolder filter : regex on full path

#7 Post by Headless Monkeyman » 29.09.2015, 03:50

Thanks Timon! I ran across this and it solved something related that had been bugging me for years!

kino
Posts: 124
Joined: 01.04.2013, 23:24

Regression ? -> Search > Subfolder filter : regex on full pa

#8 Post by kino » 09.10.2016, 21:26

Hello,

It seems that "Subfolder filter" feature doesn't work (any longer) at all as of Build 729 32-bit.

I have a deep folder tree of documents where I drop files to be sorted in a bunch of "SORT" subfolders spread all around the hierarchy (to be sorted later).

I would like to find files that still are to be sorted, that is, files belonging to a "SORT" subfolder.

I should be able, putting "SORT" in the "Subfolder filter" field to bring at least files belonging so some sub-hierarchy of folders whose name contains "SORT".

Unfortunately, it yields the whole tree content.

I have tried about all the possible combination of "Use for" (this, this & subs, subs), Regex and "Use for full subfolder path" (for peace of mind I even adapted my regex to ".*?SORT.*") but the result is the same (no actual filter).

Can you reproduce this behavior ?

Thanks

Marek
Author
Author
Posts: 3976
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: File > Search > Subfolder filter : regex on full path

#9 Post by Marek » 09.10.2016, 22:47

Could you make small example, zip the folder structure with files and send me?
Describe what you want to search.

kino
Posts: 124
Joined: 01.04.2013, 23:24

Re: File > Search > Subfolder filter : regex on full path

#10 Post by kino » 05.11.2016, 19:12

Hi Marek,

I'm sorry (for myself ;)) I haven't seen your almost immediate reply.

Case is quite simple, two files in subdirs of MyDir (can't upload zip files in this forum apparently nor unknown extensions nor fake image) :

D:\Temp\Mydir\MySub\MyFile.txt
D:\Temp\Mydir\Another\MyOtherFile.txt

Image

(I used FC search at location D:\Temp\Mydir without parameters to get the above plus the two sub-folders) :

I would like to filter on path with substring "Sub" to find "MyFile.txt" or "Anot" to find "MyOtherFile.txt"

N.B. : I think there is some kind of persistance in the resultset because I have had unrepeatable results sometimes.


1/ filter "Sub" (without jockers)

Bring everything (doesn't filter anything) :
Image

So I guess jockers are needed but I would expect in this case that neither files nor directories would show up in the resultset


2/ filter "*Sub*"

Seems to bring the expected result :
Image

BUT weirdly, I have to click twice on Find from a restarted FC otherwise, I still had the previous result
Attachments
3_FC Search Filters tab (filter jockersSub).png
2_FC Search Filters tab (filter Sub).png
1_FC Search Location tab.png

kino
Posts: 124
Joined: 01.04.2013, 23:24

Re: File > Search > Subfolder filter : regex on full path

#11 Post by kino » 05.11.2016, 19:18

3/ filter "Anot"

Image

Persistence again : my resultset doesn't change rather than filtering like expected (or filtering out everything)

n.b. "Anot*" will filter as expected



4/ regex filter ".*?Sub.*" (ungreedy before Sub)

won't do either on folder name :

Image

or full path :

Image

"Sub" alone (which is an acceptable regex ?) won't filter any better



Besides, I do not fully understand the semantics of Subfolder filter "Use for: " this vs. this & subfolders vs. subfolders (?)
I haven't found any hints neither in the online documentation nor in the .chm help file (btw : it would be super nice if help files could be date-tagged as builds are)

fyi : I'm now using Build 730 32-bit

Thank you.
Attachments
6_FC Search Filters tab (filter regex Sub fullpath).png
5_FC Search Filters tab (filter regex Sub).png
4_FC Search Filters tab (filter Anot).png

kino
Posts: 124
Joined: 01.04.2013, 23:24

Re: File > Search > Subfolder filter : regex on full path

#12 Post by kino » 10.12.2016, 07:55

> Important changes and bug fixes in the release 731
> - Changed: Subfolder filter in search dialog simplified

Happy with that.
Thank you.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 28 guests