Skip to main content
Participant
July 15, 2020
Question

Search in file pattern

  • July 15, 2020
  • 3 replies
  • 717 views

Hi all,

I am looking to find a solution to search in a certain type of file (extension)

The problem is that, using coldfusion, I know that what I search for is in a .cfm OR .cfc file.

As they are a lot of other files in my site (.htm .css .js .jpg .gif ...) I need to be able to find only in those files.

Best would be to have a box "file name pattern (separated by coma)" where I can insert

"*.cfm , *.cfc "  OR "*.cf?"

Here a print screen of what is existing in Eclipse

Hope you will help,

JPE

This topic has been closed for replies.

3 replies

WolfShade
Legend
July 16, 2020

Actually, I did just now think of something that might be useful.

 

1 - If you are using Windows, open File Explorer (Win Key + E) and navigate to the root folder of the project you are working on.

 

2 - In the search bar, type (without the quotes) "*.cfm" and hit enter.  Make sure it is set to recursively search.

 

3 - Once all files are displayed in the main area, highlight all of them, grab one and drag them all into the menu bar at the top of DreamWeaver.

 

4 - Repeat steps 2 & 3 for each file extension.

 

5 - In DreamWeaver, set search for only currently opened files.  Voila.

 

Hope this helps,

 

^ _ ^

jpe1965Author
Participant
July 18, 2020

Nice again, it would be a good solution IF in my application there was only some .cf* files.

The complete application is more than 3000 files and, among them +or- 720 cf* fle

So, I will have  700 files opened and will also have to close them all after the search.

That is the reason why it is usefull to only search in those files(only 1/4 of the total files.)

 

Thanks,

 

JPE

WolfShade
Legend
July 16, 2020

As far as I know, there is no way to search only certain file types.  It has been the bane of my dev career, as well.

 

The only suggestion I can think of, and it doesn't help you right away, is to click on Help and choose "Submit a bug/feature request".  If you do, and provide a link, I'll certainly vote for it!

 

V/r,

 

^ _ ^

Nancy OShea
Community Expert
Community Expert
July 15, 2020

In your Files panel (F8) Ctrl + click on all .cfc and .cfm files to highlight.

Ctrl + Shift + F to open F&R panel.

Search in:  Selected Files in Site.

 

I'm sure there is also a way to filter file types with Regular Expressions but I'm RegEx challenged. 

 

Nancy O'Shea— Product User & Community Expert
jpe1965Author
Participant
July 15, 2020

Nice first solution !

In my site there is at least 20 folders and probably 4 sub-folders in each..

It would take me a lot of time to select all of them.

I have not seen a way to filter the file types.

JPE

Nancy OShea
Community Expert
Community Expert
July 15, 2020

Learn to write RegEx.

 

^.*\.(cfm|CFM|cfc|CFC)$

 

 

Nancy O'Shea— Product User & Community Expert