Skip to main content
Known Participant
November 9, 2009
Question

How to search folders like in Dreamweaver

  • November 9, 2009
  • 1 reply
  • 2796 views

Hello,

In Dreamweaver when you initiate a search you have the option to search the current doc, all open docs, all files in a folder. My question is how do you search all files in a folder when doing a search in CFBuilder?

Thanks.

Joe

This topic has been closed for replies.

1 reply

Charlie Arehart
Community Expert
Community Expert
November 9, 2009

It's an understandable challenge, Joe. The trick is that you need select the folder in the navigator, then choose Search>Search (or ctrl+h), You should find that the "selected resources" option should now be selected (or can be). The key is to select the folder in the navigator first. If you do not, then the "selected resources " option is not selectable at all.

Now, you also mention DW's being able to search all open docs. You don't ask about how to do that in CFB, but some have wondered it. I cannot find it. Anyone know?

/charlie

/Charlie (troubleshooter, carehart. org)
joled0Author
Known Participant
November 10, 2009

Thanks for the info Charlie. I tried selecting the folders first then ctrl+h. This did enable "selected resources". I searched for a term that I know is in some of the files under one of the folders I selected but it did not find it in any files. The term I searched for was "header", our files have "header.cfm" in them. The message at the top of the search results windows was "header - 0 matches in empty scope". The "Case sensitive" & "Regular Expression" check boxes were not checked. "Consider derived resources" was not checked. "Selected resources" was select.

It is version 1.0.0, Build 253229, Vista.

Joe

Charlie Arehart
Community Expert
Community Expert
November 10, 2009

Joe, I may have an answer for you.

While you listed all the settings you enabled, one you didn't mention was the value of the "file name patterns" field. Was set to (the default of) "*.cfm"? If not, I wonder if you made a simple (unintentional) mistake.

Did you by chance change the value (by hand, not with the "choose" button) to ".", meaning all filenames and filetypes? It's a reasonable thought, as it works that way in most any (Windows) search tool. Unfortunately, it doesn't work with Eclipse (and results in the very "0 matches for empty scope").

The problem is that Eclipse just wants "*". I agree, it's not obvious. I mean, sure, the screen shows that it regards * as the wildcard, but many (Windows) users are used to using /. So why does not work in Eclipse?

But this is not a CFBuilder bug, per se. This is an Eclipse (indeed, Linux/Unix) way of things working.

We could wonder if the Adobe team might modify Eclipse to accept . as an alternative. One may argue that changing cold confuse experienced Eclipse users, if . might mean something else to them. But given that many of us are moving to CFB from other editors, it is an interesting thought for Adobe to change this for us in CFB.

I have certainly added it to my list of gotchas that I'm keeping, for a CFB class I'm building (and some blog entries I will do).

Let us know if this was indeed the issue for you. (If not, I hope it may find others who may do searching of the forums and find this in the future.)

/charlie

/Charlie (troubleshooter, carehart. org)