sakura/en/Grep

Last-modified: 2008-03-29 (土) 17:44:29

Grep

The specified character string of two or more files on the disk can be retrieved.
All folders of the lower layer of the specified folder can be retrieved.

  • Another window is made, and the retrieval result is displayed there.
  • It is possible to jump directly from the retrieval result to a corresponding part to the condition (tag jump).
  • The common setting "Search" Property It jumps to the place that corresponds by doing the line from the GREP result in Enter double-clicking according to the setting of GREP.

[Condition] EditBox

The search condition is specified. The file name can be retrieved by executing it without specifying anything. However, the folder name cannot be retrieved.

[File] EditBox

The file specification to be retrieved is done. The wild-card can be used.
Two or more conditions can be specified when delimiting it by any of the comma, space, and the semicolon(", ;").
When the file name contains (", ;"), it is possible to treat by enclosing it with a double quotation as one file name.
If X is put on the head of the file pattern ( (^_- Example: "!*.obj"), the file that hits the pattern is removed from the Grep object.
The exclusion specification is given to priority more than the retrieval specification regardless of a specified position.
When nothing was specified, "*.*" was specified.

[Folder] EditBox

The folder with the file for the retrieval is specified. The drop of the folder such as Explorers is accepted.

[Current Folder] Button

When this button is pushed, the folder of the file that is opening now is specified.

[Looks for Wording] CheckBox (default: Non-Checked)

[Search from SubFolder] CheckBox (default: Checked)

Whether it retrieves it from a lower folder of a specified folder is specified.

[Search from Editing File] CheckBox (default: Non-Checked)

Only the file editing it now is specified for the retrieval object.
It retrieves from not the content under the edit but the content of the file preserved at the end and the list is made.

[Case Sensitive] CheckBox (default: Non-Checked)

It is specified whether to retrieve the capital letter and the small letter of the normal-width alphabet distinguishing.

[Regular Expression] CheckBox (default: Non-Checked)

It is specified whether to use the regular expression for the search condition.

[Character-Code Set] CheckBox (default: Non-Checked)

The character-code set of the file to be retrieved is selected.
It selects it from Auto Select, SJIS, JIS, and EUC, Unicode, UnicodeBE, UTF-8, and UTF-7.
After it converts it into SJIS when retrieving it even if which character-code is selected, it retrieves it.

Result Output

The method of outputting the part that agrees with the search condition is specified. The position of the first agreement part ..agreeing part.. is shown.

  • [Pertinent Line] RadioButton (default: Checked)
    The entire line with the agreeing part is displayed.
  • [Pertinent Part] Radio Button (default: Non-Checked)
    Only the first agreement part of lines with the agreeing part is displayed.

[hatena] Hint: When wording retrieving it, all the agreement parts are displayed.

Result Output Form

The output form of the result of the search condition can be chosen.

  • [Normal] RadioButton (default: Checked)
    It enumerates one by one and it outputs it.
  • [File] RadioButton (default: Non-Checked)
    It outputs it collectively at each file. It does in the form of a so-called WZ style.

[heart] Because the regular expression has been achieved by the free software named BREGEXP.DLL (Or, bregonig.dll), it is necessary to obtain it separately for the person who is not possession.

The file name can be retrieved by executing it without specifying "Condition" with Grep.
However, the folder name cannot be retrieved.

"Character-code set automatic operation distinction check button" was abolished.
Please choose Auto Select to be a replacement by "Character-code set".

Macro Syntax

  • Syntax
    Grep( str1 :String, str2 :String, str3 :String, int4 :Integer );
    • str1 : Search string
    • str2 : Retrieved file name
    • str3 : Retrieved folder name
    • int4 : Option (Optional)
  • Record
    Support
  • Remarks
    The combination of the following values can be specified for the option.
  • 0x01 : It retrieves it from the subfolder. (default)
  • 0x02 : It retrieves it from this text under the edit. (Not implemented)
  • 0x04 : Case sensitive. (default)
  • 0x08 : Regular expression.
  • 0x10 : Character-code automatic operation distinction.

Result Output:

  • 0x00 : Pertinent line
  • 0x20 : Pertinent part (default)

Output Type:

  • 0x00 : Normal (default)
  • 0x40 : File

Character Code Set:

  • 0x0000 : SJIS (default)
  • 0x0100 : JIS
  • 0x0200 : EUC
  • 0x0300 : UNICODE
  • 0x0400 : UTF-8
  • 0x0500 : UTF-7
  • 0x0600 : UNICODE(BigEndian)
  • 0x6300 : Auto detect

Operation when the character-code automatic operation distinction is set and when the character-code set is made Auto Select is the same.

[tip] Note: In key macro Only the constant mark of the decimal number is accepted.
Please mend and describe the option in the decimal number.

[tip] Note: The dialog of Grep cannot be put out by the macro.