File > Search > Subfolder filter : regex on full path

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

File > Search > Subfolder filter : regex on full path

#1 Post by kino » 27.08.2014, 08: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: 61
Joined: 01.04.2013, 21:24

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

#2 Post by kino » 06.10.2014, 15: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: 61
Joined: 01.04.2013, 21:24

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

#3 Post by kino » 24.10.2014, 11:24

Fixed in build 674
THANK YOU !

afh
Posts: 101
Joined: 30.06.2014, 18:50
Location: Romania

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

#4 Post by afh » 24.10.2014, 20: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: 684
Joined: 13.09.2012, 06:51

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

#5 Post by Timon » 26.10.2014, 08:34

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

afh
Posts: 101
Joined: 30.06.2014, 18:50
Location: Romania

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

#6 Post by afh » 26.10.2014, 15: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, 20:22

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

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

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

kino
Posts: 61
Joined: 01.04.2013, 21:24

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

#8 Post by kino » 09.10.2016, 19: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: 2511
Joined: 10.04.2006, 07:48
Location: Germany
Contact:

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

#9 Post by Marek » 09.10.2016, 20:47

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

kino
Posts: 61
Joined: 01.04.2013, 21:24

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

#10 Post by kino » 05.11.2016, 18: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: 61
Joined: 01.04.2013, 21:24

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

#11 Post by kino » 05.11.2016, 18: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: 61
Joined: 01.04.2013, 21:24

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

#12 Post by kino » 10.12.2016, 06: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: No registered users and 13 guests