Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Learn to write RegEx.
^.*\.(cfm|CFM|cfc|CFC)$
Copy link to clipboard
Copied
Nice again, it would be a good solution if I find a way to filter the files in which I want to search.
>Ctrl + Shift + F to open F&R panel.
>Search in: Selected Files in Site.
Mean that I first need to select them all.
The 'martini' icon allow regexp BUT only for the string searched(not the files searched)
JPE
Copy link to clipboard
Copied
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,
^ _ ^
Copy link to clipboard
Copied
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,
^ _ ^
Copy link to clipboard
Copied
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