Next: , Previous: DefineDiff, Up: Alphabetical List


DefineGrep

Key: Shift+F12
Key: Ctrl+F12
Key: Shift+Alt+Q
Menu: File > Grep > File Find

Search a list of filenames and/or wildcards for a pattern. If RegX is checked, the pattern will be a regular expression; if unchecked, straight text. If Results is checked, all matching lines will be copied to a new window, prefixed with the filename, line number and column; otherwise it will load the first file that matches and position the cursor at the match. If Load all is checked, all matching files will be loaded into the editor, positioned either at the first match (Results unchecked), or at the beginning of the file (Results checked). If Binary is checked, files determined to be binary will autoload using the last value of -b (see Usage); otherwise binary files will be ignored.

This function will also define the search string (see RepeatFindForward, see RepeatRegXForward), but changing the search string will not affect the grep. See RepeatGrep.

See DirList, for a description of wildcards. Wildcards for this function can also be used for directories and the special path ... will traverse subdirectories. For example, `d*/.../*.c' will find all the .c files in all the directories starting with d and all their subdirectories. The files will be sorted according to the current directory list order.