Find File

Post any comments, suggestions, annoyances or ideas for future releases here. Please do not post bug reports or questions here.
Post Reply
mgag
Posts: 70
Joined: Tue Jun 24, 2008 9:09 pm

Find File

Post by mgag »

I have a lot of directories and files and sometimes I would like to be able to find a file. What I do now is use the "Find in Files" dialog, and I search for " " (or anything that I know will be in the file) and I set the filter to the file name that I want to find. I also set the flag OnlyListFirstMatch.

Find in Files has dual role for me and I often have to switch back and forth setting the flags and filters. It may be nice to have a version of Find In Files that searches for a file using the same tool (xfgrep), just a tweak on the dialog box to get remove the unneccesary items.

The Directory field needs to be there, and perhaps it should default to the Workspace/Project directory, but also remember the last several settings. Also, some paths are long, this drop down box should be right justified instead of left justified.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

I have a lot of directories and files and sometimes I would like to be able to find a file.
I have to confess I don't use the Find in Files options since I usually run the xfgrep.exe directly from the Tools, Command Line menu ;)

I will try and make my self use the Find in Files just too see how it can be improved ;)
The Directory field needs to be there, and perhaps it should default to the Workspace/Project directory, but also remember the last several settings.
If you need to set the directory you can also use one of these macro tag shortcuts:
  • $WDD - Workspace drive and directory
  • $PDD - Currently active project drive an directory
FWIW you can also use the Tools, Command Line menu to search for files.

For example:
  • Tools, Command Line menu
  • Arguments: dir test*.cpp /s
  • Directory: c:\projects
  • Run button
From the output list produced you can also load the file as follows:

Case 1:
When the file is in the same directory as the initial directory provided in the run command, just click on the file line or alternatively highlight the file and use the View, Open File menu.

Case 2:
When the file is in a directory other than the initial directory provided in the run command, open the directory in another tool window by just click on the directory line shown in the output or alternatively highlight the directory line and use the View, Open File menu.

In the new output window produced just click on the file as per Case 1:.

NOTE: You can also open multiple files by selecting multiple lines from the output and then using the View, Open File menu.

NOTE: This behaviour is common to all output windows including compiler and project output windows

Cheers Jussi
Post Reply