OSDN Git Service

PATCH: [ 1867212 ] Manual: clarify file filter's folder name matching
authorKimmo Varis <kimmov@gmail.com>
Wed, 9 Jan 2008 15:42:23 +0000 (15:42 +0000)
committerKimmo Varis <kimmov@gmail.com>
Wed, 9 Jan 2008 15:42:23 +0000 (15:42 +0000)
Docs/Users/ChangeLog.txt
Docs/Users/Manual/Filters.xml

index 35a7916..f169ddf 100644 (file)
@@ -11,6 +11,7 @@ WinMerge 2.7.7.2
     TortoiseSVN x64 (#1865168)
   Close compare tab with middle mouse button (#1865220)
   Add index.html for documentation folders (#1866183)
+  Manual: Clarify file filters folder name matching (#1867212)
   BugFix: Crash when using TrackPoint middle-button scrolling (#1864040)
   BugFix: WinMerge didn't show the contents of the symbolic link target (#1864978)
   BugFix: Unused registry key HKCU\Thingamahoochie\WinMerge was created 
index 9771c0e..085206a 100644 (file)
       class="extension">.flt</filename>. Files have defined format which is
       explained later in this chapter. Filters-dialog allows creating new
       filter files based on template file. Filter files can be created from
-      the scrach but using template file is the recommended way to create a
+      the scratch but using template file is the recommended way to create a
       new filter. The template file is named
       <filename>FileFilter.tmpl</filename> and can be modified if needed. The
       template file is located in <filename
       <important>
         <para>With WinMerge 2.6.0 and later filter files are not anymore
         loaded from profile folder like with earlier versions. Using
-        user-defined folder for filter files provices more flexibility and
+        user-defined folder for filter files provides more flexibility and
         easier access to filter files.</para>
       </important>
 
@@ -175,12 +175,11 @@ def: include</screen>where <constant>def</constant>: is:<itemizedlist>
       <para>Rule begins with "<constant>f:</constant>" if it matches for
       filenames and "<constant>d:</constant>" if it matches for folder names.
       (d comes from "folder".) Filenames are given to filter as is, there are
-      no special characters added. But for folder names there must be
-      "<constant>\\</constant>" in begin of folder name. The resulting "\"
-      char is a part of the folder name. This is done clearly to separate
-      folder names and filenames. "<constant>##</constant>" is a comment
-      separator, all characters in line after that are ignored by
-      WinMerge.</para>
+      no special characters added. Folder names have preceding backslash
+      before them (e.g. "\Folder name"). So if folder names are matched by the
+      beginning of the name, the filter must start with "\\" to match the
+      first backslash. "<constant>##</constant>" is a comment separator, all
+      characters in line after that are ignored by WinMerge.</para>
 
       <para><note>
           <para>File filter rules are case-insensitive. Rule
@@ -199,7 +198,9 @@ f: \.h$ ## Match *.h files
 f: ^My ## Match My*.* files
 f: Dlg\. ## Match *Dlg.* files
 d: \\test$ ## Match 'test' folders
-d: ^\\Build$ ## Match 'Build' folders</screen>
+d: ^\\Build$ ## Match 'Build' folders
+d: Temp$ ## Match *Temp folders (e.g. FirstTemp)
+d: Src ## Match *Src* folders</screen>
       </example>
 
       <para>Line begin or -end marker (<constant>"^"</constant> or