Search: Allow file name to contain path

Suggestions and feature requests.
Post Reply
Message
Author
larsen
Posts: 160
Joined: 12.01.2013, 15:12

Search: Allow file name to contain path

#1 Post by larsen » 29.10.2015, 09:36

I would like to be able to search for files by specifying part of the complete path of that file.

Reason is, I have several files "init.pp" in different sub-directories and I want to get the one that is inside a specific directory like this: "unknown_path\directory_I_know_already\init.pp".

I would then enter "directory_I_know_already\init.pp" into the "File name:" textbox.
I cannot put it into the "Folders" textbox because of the "unknown_path" component.

Timon
Posts: 729
Joined: 13.09.2012, 08:51

Re: Search: Allow file name to contain path

#2 Post by Timon » 29.10.2015, 11:15

It is already implemented long time ago. You can make such searches in current FC XE version
In "File name:" just type:
init.pp;\*directory_I_know_already

See Wildcard Search: (there is a hint in search dialog)
; multiple item divider
-*.txt exclude all *.txt files
--*.* include files with '-' at the beginning
\*docs include *docs folders
-\*temp exclude *temp folders
Only one type is possible (include or exclude)

It works fine for me.

larsen
Posts: 160
Joined: 12.01.2013, 15:12

Re: Search: Allow file name to contain path

#3 Post by larsen » 29.10.2015, 12:08

No, this doesn't work as you are searching for every "init.pp" in every directory plus the directory "directory_I_know_already" itself.
As a result, you get all the 100+ files named "init.pp" that are in the directories parallel to "directory_I_know_already".

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

Re: Search: Allow file name to contain path

#4 Post by afh » 29.10.2015, 14:58

try to remove "*" from Timon example, like this: "init.pp;\directory_I_know_already"

larsen
Posts: 160
Joined: 12.01.2013, 15:12

Re: Search: Allow file name to contain path

#5 Post by larsen » 29.10.2015, 16:02

yes, this indeed does work.
though, it's really not very intuitive compared to "directory_I_know_already\init.pp", so it would still be good if this was possible.

Timon
Posts: 729
Joined: 13.09.2012, 08:51

Re: Search: Allow file name to contain path

#6 Post by Timon » 29.10.2015, 21:04

Simply change the order to: "\directory_I_know_already;init.pp"
It would be more intuitive.

Post Reply

Who is online

Users browsing this forum: No registered users and 30 guests