880
<sect1 id="kate-application-plugin-searchinfiles">
882
<authorgroup><author>
883
<firstname>T.C.</firstname>
884
<surname>Hollingsworth</surname>
885
<affiliation><address><email>tchollingsworth@gmail.com</email></address></affiliation>
886
</author></authorgroup>
888
<title>Search in Files</title>
890
<sect2 id="searchinfiles-intro">
891
<title>Introduction</title>
892
<para>&kappname;'s Search in Files plugin allows you to search for text or
893
<link linkend="regular-expressions">regular expressions</link> in many different
894
files at once. You can search all open files, or all the files in one directory,
895
and optionally its subdirectories. You can even filter by filename, for instance
896
searching only files that end with a particular file extension.</para>
898
<para>The Search in Files plugin is not enabled by default, as it is new in &kappname;
899
3.7. Enable it in the <link linkend="config-dialog-plugins">Plugins</link> panel
900
of &kappname;'s settings. It will replace the old
901
<link linkend="kate-application-plugin-findinfiles">Find in Files plugin</link>
902
in the next version of &kappname;.</para>
906
<sect2 id="searchinfiles-ui">
907
<title>Interface</title>
909
<sect3 id="searchinfiles-ui-query">
910
<title>Search Query</title>
912
<para>The following options are always displayed at the top of the Search in
913
Files tool view:</para>
918
<term><guiicon>New Tab</guiicon></term>
920
You can have as many searches as you want open at the same time. Simply click
921
the <guibutton>New Tab</guibutton> button at the top-left corner of the Search
922
tool view and a new results tab will open permitting you to perform another
930
The long text box at the top is where you type in what you want to find. You may
931
enter standard text, or a regular expression if enabled.
936
<term><guibutton>Search</guibutton></term>
938
When you've finished configuring everything, just press the
939
<guibutton>Search</guibutton> button to perform your search. You may also press
940
&Enter; in the Query text box to do the same.
945
<term><guimenu>Location</guimenu></term>
947
This has two options. Select <guilabel>in Open Files</guilabel> to search all
948
files currently open in &kappname;. Select <guilabel>in Folder</guilabel> to
949
search inside a folder and optionally its subfolders.
954
<term><guimenu>Options</guimenu></term>
956
There are two available options. If enabled, <guilabel>Match case</guilabel>
957
will restrict search results to only those that have the exact same combination
958
of upper and lower-case letters as your search query. <guilabel>Regular
959
expressions</guilabel> permits you to use
960
<link linkend="regular-expressions">regular expressions</link> instead of simple
961
text as your search query.
966
<term><guiicon>Toggle Results</guiicon></term>
968
The down arrow in the top right-corner of the Search in Files tool view will
969
toggle the bottom half of the tool view between displaying additional options
970
for the Search in Folder mode and the results of your search.
977
<sect3 id="searchinfiles-ui-folder">
978
<title>Search in Folder Options</title>
980
<para>These options are displayed below the aforementioned query options. If search
981
results are being displayed instead, press the <guiicon>Toggle Results</guiicon>
982
button to display them. These options apply only when Search in Folder mode is
983
enabled. If Search in Open Files is selected, they will be disabled.</para>
988
<term><guilabel>Folder</guilabel></term>
990
You may enter the path of the folder you wish to search. For instance, you might
991
enter <userinput>~/development/kde/kate/</userinput> if you wished to search the
997
<term><guiicon>Open file dialog</guiicon></term>
999
Press this button to locate for the folder in your desktop's folder browser.
1004
<term><guiicon>Up</guiicon></term>
1006
Press this button to change <guilabel>Folder</guilabel> to the parent of the
1007
currently selected folder.
1012
<term><guiicon>Restore Current Folder</guiicon></term>
1014
This button will set the <guilabel>Folder</guilabel> entry to the folder in which
1015
the currently open document is located.
1020
<term><guilabel>Filter</guilabel></term>
1022
This permits you to only search filenames that match a particular pattern. For
1023
instance, to only search files written in C++, change it to
1024
<userinput>*.cpp</userinput>. To search only files beginning with
1025
<literal>kate</literal>, change it to <userinput>kate*</userinput>.
1030
<term><guilabel>Recursive</guilabel></term>
1032
If this option is enabled, &kappname; will also search in all subfolders of the
1038
<term><guilabel>Include hidden</guilabel></term>
1040
If this option is enabled, &kappname; will also search in files or folders that
1041
are typically hidden by your &OS;.
1046
<term><guilabel>Follow symbolic links</guilabel></term>
1048
The Search in Files plugin typically doesn't follow
1049
<ulink url="http://en.wikipedia.org/wiki/Symbolic_link">symbolic links</ulink>.
1050
When this option is enabled, the plugin will follow them instead and search inside
1051
the files or folders they reference.
1053
<warning><para>It's possible for symbolic links to reference a folder that is the
1054
parent of the folder currently being searched, or other folders that contain
1055
symbolic links to their parent. If there is such a link in the folder being
1056
searched and this option is enabled, &kappname; will repeatedly follow the link
1057
and search the folder, and the search will never complete.</para></warning>
1064
<sect3 id="searchinfiles-ui-results">
1065
<title>Search Results</title>
1067
<para>The results of your search are displayed below the query options. If
1068
options for Search in Folder mode are displayed, simply press the
1069
<guiicon>Toggle Results</guiicon> button to display them. They will also
1070
automatically be displayed as soon as a search is performed.</para>
1072
<para>The search results displays three columns providing information about each
1073
result of your search query. The <guilabel>File</guilabel> column shows the name
1074
of the file. The <guilabel>Line</guilabel> column displays the line number the
1075
contents of your query were found in. The <guilabel>Text</guilabel> column displays
1076
the full text of that line.</para>
1078
<para>To open the file your result was found in, simply double-click it. &kappname;
1079
will open the file if needed, and place the cursor at the beginning of the text
1080
entered as your query as found in the file.</para>
1085
<sect2 id="searchinfiles-menu">
1086
<title>Menu Structure</title>
1092
<guimenu>Edit</guimenu>
1093
<guimenuitem>Find in Files...</guimenuitem>
1097
<para>Launch the <guilabel>Find in Files</guilabel> dialog to allow you to
1098
search for text in the files of a folder.</para>
1105
<guimenu>View</guimenu><guisubmenu>Tool Views</guisubmenu>
1106
<guimenuitem>Show Search in Files</guimenuitem>
1110
<para>Toggle the display of &kappname;'s <guilabel>Search in Files</guilabel> tool.
880
1119
<sect1 id="kate-application-plugin-mail">
882
1121
<authorgroup><author>