Add filtering out version control files with Extra options info to

Find in Files section.


git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1437 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2007-04-05 11:27:44 +00:00
parent 3bdadf9727
commit 4baeb619ac
2 changed files with 32 additions and 1 deletions

View File

@ -3,6 +3,9 @@
* tagmanager/tm_workspace.c:
Write tm_tag_enumerator_t and tm_tag_macro_t (e.g. for GTK_STOCK_*)
tags when creating a global tags file, and store the pointerOrder.
* doc/geany.docbook:
Add filtering out version control files with Extra options info to
Find in Files section.
2007-04-03 Nick Treleaven <nick.treleaven@btinternet.com>

View File

@ -635,12 +635,13 @@
The search results are shown in the Messages window.
</para>
</section>
<section>
<section id="search_fif">
<title>Find in files</title>
<para>
Find in files is a more powerful version of Find usage that searches all files
in a certain directory using the Grep tool. The Grep tool must be correctly set
in Preferences to the path of the system's Grep utility.
GNU Grep is recommended.
</para>
<para>
<figure>
@ -648,6 +649,33 @@
<graphic fileref="images/find_in_files_dialog.png"></graphic>
</figure>
</para>
<para>
The <emphasis>Extra options</emphasis> field is used to pass any additional
arguments to the <literal>grep</literal> tool.
</para>
<section><title>Filtering out version control files</title>
<para>
When using the <emphasis>Recurse in subfolders</emphasis> option with a
directory that's under version control, you can set the
<emphasis>Extra options</emphasis> field to use <literal>grep</literal>'s
<literal>--exclude</literal> flag to filter out filenames.
</para>
<para>
SVN Example: <literal>--exclude=*.svn-base</literal>
</para>
<note>
<para>
The GNU Grep project added support for excluding directories,
using the <literal>--exclude-dir</literal> flag.
At the time of writing (April 2007) this is unreleased outside
of version control.
Check your Grep manual to see if your version supports it.
</para>
<para>
Example: <literal>--exclude-dir=.* --exclude-dir=CVS</literal>
</para>
</note>
</section>
</section>
<section>
<title>Replace</title>