<chapter id="advanced-editing-tools">
<chapterinfo>
<authorgroup>
<author
>&Anders.Lund; &Anders.Lund.mail;</author>
<othercredit role="translator"
><firstname
>Lisiane</firstname
><surname
>Sztoltz</surname
><affiliation
><address
><email
>lisiane@conectiva.com.br</email
></address
></affiliation
><contrib
>Tradução</contrib
></othercredit
> 
</authorgroup>
</chapterinfo>
<title
>Ferramentas Avançadas de Edição</title>

<sect1 id="advanced-editing-tools-comment">

<title
>Comentar/Descomentar</title>

<para
>The Comment and Uncomment commands, available from the <guimenu
>Tools</guimenu
> menu allow you to add or remove comment markers to the selection, or the current line if no text is selected, if comments are supported by the format of the text you are editing.</para>

<para
>As regras de como o comentário é feito são feitas nas definições de sintaxe; assim, se o realce de sintaxe não é usado, as ações de comentar/descomentar não são possíveis.</para>

<para
>Some formats define single line comment markers, some multiline markers and some both. If multiline markers are not available, commenting out a selection that does not fully include its last line is not possible.</para>

<para
>Se um marcador de linha única estiver disponível, é preferível comentar linhas simples onde for aplicável, pois isto ajuda a evitar problemas com comentários aninhados.</para>

<para
>Ao remover marcadores de comentários, textos sem comentários devem ser selecionados; ao remover marcadores de comentários de múltiplas linhas de uma seleção, qualquer espaço em branco fora do marcador é ignorado.</para>

<para
><indexterm
><primary
>comment</primary
></indexterm
> To place comment markers, use the <menuchoice
><guimenu
>Tools</guimenu
><guimenuitem
>Comment</guimenuitem
></menuchoice
> menu item or the related keyboard shortcut sequence, default is <keycombo action="simul"
>&Ctrl;<keycap
>D</keycap
></keycombo
>.</para>

<para
><indexterm
><primary
>uncomment</primary
></indexterm
> To remove comment markers, use the <menuchoice
><guimenu
>Tools</guimenu
><guimenuitem
>Uncomment</guimenuitem
></menuchoice
> menu item or the related keyboard shortcut, default is <keycombo action="simul"
>&Ctrl;&Shift;<keycap
>D</keycap
></keycombo
>.</para>

</sect1>

<sect1 id="advanced-editing-tools-commandline">
<title
>The Editor Component Command Line</title>

<para
>Kates editor component has an internal command line, allowing you to perform various actions from a minimal GUI. The command line is a text entry in the bottom of the editor area, to show it select <menuchoice
><guimenu
>View</guimenu
><guimenuitem
>Switch to Command Line</guimenuitem
></menuchoice
> or use the shortcut (default is <keycombo action="simul"
><keycap
>F7</keycap
></keycombo
>). The editor provides a set of commands as documented below, and additional commands can be provided by plugins.</para>

<para
>To execute a command, press the return key. The command line will indicate wether it succeded and possibly display a message. If you entered the command line by pressing <keycap
>F7</keycap
> it will automatically hide after a few seconds. To clear the message and enter a new command, press <keycap
>F7</keycap
> again.</para>

<para
>The command line has a built-in help system, issue the command <command
>help</command
> to get started. To see a list of all available commands issue <command
>help list</command
>, to view help for a specific command, do <command
>help <replaceable
>command</replaceable
></command
>.</para>

<para
>The command line has a built in history, so you can reuse commands already typed. To navigate the history, use the <keycap
>Up</keycap
> and <keycap
>Down</keycap
> keys. When showing historical commands, the argument part of the command will be selected, allowing you to easily overwrite the arguments.</para>

<sect2 id="advanced-editing-tools-commandline-commands">
<title
>Standard Command Line Commands</title>

<sect3 id="advanced-editing-tools-commandline-commands-configure">
<title
>Commands for Configuring the Editor</title>

<para
>These command are provided by the editor component, and allows you to configure the active document and view only. This is handy if you want to use a setting different from the default settings, for example for indentation. </para>

<variablelist>
<title
>Argument types</title>

<varlistentry>
<term
>BOOLEAN</term>
<listitem
><para
>This is used with commands that turns things on or off. Legal values are <userinput
>on</userinput
>, <userinput
>off</userinput
>, <userinput
>true</userinput
>, <userinput
>false</userinput
>, <userinput
>1</userinput
> or <userinput
>0</userinput
></para
></listitem>
</varlistentry>

<varlistentry>
<term
>INTEGER</term>
<listitem
><para
>An integer number</para
></listitem>
</varlistentry>

<varlistentry>
<term
>STRING</term>
<listitem
><para
>A string</para
></listitem>
</varlistentry>

</variablelist>

<variablelist>

<varlistentry>
<term
><cmdsynopsis
><command
>set-tab-width</command
><arg
>INTEGER width</arg
></cmdsynopsis
></term>
<listitem
><para
>Sets the tab width to the number <userinput
>width</userinput
></para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-indent-width</command
><arg
>INTEGER width</arg
></cmdsynopsis
></term>
<listitem
><para
>Sets the indentation width to the number <userinput
>width</userinput
>. Used only if you are indenting with spaces.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-word-wrap-column</command
><arg
>INTEGER width</arg
></cmdsynopsis
></term>
<listitem
><para
>Sets the line width for hard wrapping to <userinput
>width</userinput
>. This is used if you are having your text wrapped automatically.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-icon-border</command
><arg
>enable</arg
></cmdsynopsis
></term>
<listitem
><para
>Sets the visibility of the icon border.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-folding-markers</command
><arg
>BOOLEAN enable</arg
></cmdsynopsis
></term>
<listitem
><para
>Sets the visibility of the folding markers pane.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-line-numbers</command
><arg
>BOOLEAN enable</arg
></cmdsynopsis
></term>
<listitem
><para
>Sets the visibility of the line numbers pane.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-replace-tabs</command
><arg
>BOOLEAN enable</arg
></cmdsynopsis
></term>
<listitem
><para
>If enabled, tabs are replaced with spaces as you type. </para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-remove-trailing-space</command
><arg
>BOOLEAN enable</arg
></cmdsynopsis
></term>
<listitem
><para
>If enabled, trailing whitespace are removed whenever the cursor leaves a line.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-show-tabs</command
><arg
>BOOLEAN enable</arg
></cmdsynopsis
></term>
<listitem
><para
>If enabled, TAB characters and trailing whitespace will be visualized by a small dot.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-indent-spaces</command
><arg
>BOOLEAN enable</arg
></cmdsynopsis
></term>
<listitem
><para
>If enabled, the editor will indent with <option
>indent-width</option
> spaces for each indentation level, rather than with one TAB character.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-mixed-indent</command
><arg
>BOOLEAN enable</arg
></cmdsynopsis
></term>
<listitem
><para
>If enabled, kate will use a mix of TAB and spaces for indentation. Each indentation level will be <option
>indent-width</option
> wide, and more indentation levels will be optimized to use as many TAB characters as possible.</para>
<para
>When executed, this command will additionally set space indentation enabled, and if the indent width is unspecified it will be set to half of the <option
>tab-width</option
> for the document at the time of execution.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-word-wrap</command
><arg
>BOOLEAN enable</arg
></cmdsynopsis
></term>
<listitem
><para
>Enables dynamic word wrap according to <userinput
>enable</userinput
></para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-replace-tabs-save</command
><arg
>BOOLEAN enable</arg
></cmdsynopsis
></term>
<listitem
><para
>When enabled, tabs will be replaced with whitespace whenever the document is saved.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-remove-trailing-space-save</command
><arg
>BOOLEAN enable</arg
></cmdsynopsis
></term>
<listitem
><para
>When enabled, trailing space will be removed from each line whenever the document is saved.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-indent-mode</command
><arg
>name</arg
></cmdsynopsis
></term>
<listitem
><para
>Sets the autoindentation mode to <userinput
>name</userinput
>. If <userinput
>name</userinput
> is not known, the mode is set to 'none'. Valid modes are 'cstyle', 'csands', 'xml', 'python', 'varindent' and 'none'.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>set-highlight</command
><arg
>highlight</arg
></cmdsynopsis
></term>
<listitem
><para
>Sets the syntax highlighting system for the document. The argument must be a valid highlight name, as seen in the <menuchoice
><guimenu
>Tools</guimenu
><guisubmenu
>Highlighting</guisubmenu
></menuchoice
> menu. This command provides an autocompletion list for it's argument.</para
></listitem>
</varlistentry>

</variablelist>

</sect3>

<sect3 id="advanced-editing-tools-commandline-commands-edit">
<title
>Commands for editing</title>

<para
>These commands modifies the current document.</para>

<variablelist>
<varlistentry>
<term
><cmdsynopsis
><command
>indent</command
></cmdsynopsis
></term>
<listitem
><para
>Indents the selected lines or the current line.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>unindent</command
></cmdsynopsis
></term>
<listitem
><para
>Unindents the selected lines or current line.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>cleanindent</command
></cmdsynopsis
></term>
<listitem
><para
>Cleans up the indentation of the selected lines or current line according to the indentation settings in the document. </para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>comment</command
></cmdsynopsis
></term>
<listitem
><para
>Inserts comment markers to make the selection or selected lines or current line a comment according to the text format as defined by the syntax highlight definition for the document.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>uncomment</command
></cmdsynopsis
></term>
<listitem
><para
>Removes comment markers from the selection or selected lines or current line according to the text format as defined by the syntax highlight definition for the document.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>kill-line</command
></cmdsynopsis
></term>
<listitem
><para
>Deletes the current line.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>replace</command
><arg
>pattern</arg
><arg
>replacement</arg
></cmdsynopsis
></term>
<listitem
><para
>Replaces text matching <userinput
>pattern</userinput
> with <userinput
>replacement</userinput
>. If you want to include whitespace in the <userinput
>pattern</userinput
>, you must quote both the <userinput
>pattern</userinput
> and <userinput
>replacement</userinput
> with single or double quotes. If the arguments are unquoted, the first word is used as <userinput
>pattern</userinput
> and the rest for <userinput
>replacement</userinput
>. If <userinput
>replacement</userinput
> is empty, each occurrence of <userinput
>pattern</userinput
> is removed.</para>
<para
>You can set flags to configure the search by adding a colon, followed by one or more letters each representing a configuration, giving the form <userinput
>replace:options pattern replacement</userinput
>. Available options are: <variablelist>

<varlistentry>
<term
><userinput
>b</userinput
></term>
<listitem
><para
>Search backwards.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>c</userinput
></term>
<listitem
><para
>Search from cursor position.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>e</userinput
></term>
<listitem
><para
>Search in the selection only.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>r</userinput
></term>
<listitem
><para
>Do regular expression search. If set, you may use <userinput
>\N</userinput
> where N is a number to represent captures in the replacement string.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>s</userinput
></term>
<listitem
><para
>Do case sensitive search.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>p</userinput
></term>
<listitem
><para
>Prompt for permission to replace the next occurence.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>w</userinput
></term>
<listitem
><para
>Match whole words only.</para
></listitem>
</varlistentry>

</variablelist>

</para>
</listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>date</command
><arg
>format</arg
></cmdsynopsis
></term>
<listitem
><para
>Inserts a date/time string as defined by the specified <userinput
>format</userinput
>, or the format <quote
>yyyy-MM-dd hh:mm:ss</quote
> if none is specified. The following translations are done when interpreting <userinput
>format</userinput
>: <informaltable
> <tgroup cols="2"
> <tbody>
<row
><entry
><literal
>d</literal
></entry
><entry
>The day as number without a leading zero (1-31).</entry
></row>
<row
><entry
><literal
>dd</literal
></entry
><entry
>The day as number with a leading zero (01-31).</entry
></row>
<row
><entry
><literal
>ddd</literal
></entry
><entry
>The abbreviated localized day name (e.g. 'Mon'..'Sun').</entry
></row>
<row
><entry
><literal
>dddd</literal
></entry
><entry
>The long localized day name (e.g. 'Monday'..'Sunday').</entry
></row>
<row
><entry
><literal
>M</literal
></entry
><entry
>The month as number without a leading zero (1-12).</entry
></row>
<row
><entry
><literal
>MM</literal
></entry
><entry
>The month as number with a leading zero (01-12).</entry
></row>
<row
><entry
><literal
>MMM</literal
></entry
><entry
>The abbreviated localized month name (e.g. 'Jan'..'Dec').</entry
></row>
<row
><entry
><literal
>yy</literal
></entry
><entry
>the year as two digit number (00-99).</entry
></row>
<row
><entry
><literal
>yyyy</literal
></entry
><entry
>The year as four digit number (1752-8000).</entry
></row>
<row
><entry
><literal
>h</literal
></entry
><entry
>The hour without a leading zero (0..23 or 1..12 if AM/PM display).</entry
></row>
<row
><entry
><literal
>hh</literal
></entry
><entry
>The hour with a leading zero (00..23 or 01..12 if AM/PM display).</entry
></row>
<row
><entry
><literal
>m</literal
></entry
><entry
>The minute without a leading zero (0..59).</entry
></row>
<row
><entry
><literal
>mm</literal
></entry
><entry
>The minute with a leading zero (00..59).</entry
></row>
<row
><entry
><literal
>s</literal
></entry
><entry
>The second without a leading zero (0..59).</entry
></row>
<row
><entry
><literal
>ss</literal
></entry
><entry
>The second with a leading zero (00..59).</entry
></row>
<row
><entry
><literal
>z</literal
></entry
><entry
>The milliseconds without leading zeroes (0..999).</entry
></row>
<row
><entry
><literal
>zzz</literal
></entry
><entry
>The milliseconds with leading zeroes (000..999).</entry
></row>
<row
><entry
><literal
>AP</literal
></entry
><entry
>Use AM/PM display. AP will be replaced by either "AM" or "PM".</entry
></row>
<row
><entry
><literal
>ap</literal
></entry
><entry
>Use am/pm display. ap will be replaced by either "am" or "pm".</entry
></row>

</tbody>
</tgroup>
</informaltable>

</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>char</command
><arg
>identifier</arg
></cmdsynopsis
></term>
<listitem>
<para
>Este comando permite que você insira caracteres literais através de suas identificações numéricas, em decimal, octal ou hexadecimal. Para usá-lo, abra o diálogo de Edição de Comando e digite <userinput
>char: [número]</userinput
> na caixa de entrada e clique em </para>

<example>
<title
>exemplos do comando <command
>char</command
></title>

<para
>Entrada: <userinput
>char:234</userinput
></para>
<para
>Output: <computeroutput
>&#234;</computeroutput
></para>
<para
>Entrada: <userinput
>char:0x1234</userinput
></para>
<para
>Output: <computeroutput
>&#x1234;</computeroutput
></para>
</example>

</listitem>
</varlistentry>

<varlistentry>
<term>
<indexterm
><primary
>substituir no estilo sed</primary>
<secondary
>procurar no estilo sed</secondary
></indexterm>
<command
>s///[ig]</command
> <command
>%s///[ig]</command
></term>

<listitem>
<para
>Este comando faz um sed como operação de procura/substituição na linha atual, ou em um arquivo inteiro (<command
>%s///</command
>).</para>

<para
>Em resumo, é procurado o texto que combine com o <emphasis
>padrão de busca </emphasis
>,  a expressão regular entre a primeira e a segunda barra, e quando é encontrado, a parte que combina com o texto é substituída pela expressão entre a metade e a última parte da string. Os parênteses no padrão de busca criam <emphasis
>referências anteriores</emphasis
>, isto é, o comando lembra qual parte procurada combinou no parênteses; estas strings podem ser reutilizadas no padrão de substituição, referidas como  <userinput
>\1</userinput
> para o primeiro conjunto de parênteses, <userinput
>\2</userinput
> para o segundo e assim por diante.</para>

<para
>Para procurar por um caractere literal <literal
>(</literal
> ou <literal
>)</literal
>, você  precisa usar o caractere de <emphasis
>escape</emphasis
>, que é o caractere de barra invertida: <userinput
>\(\)</userinput
></para>

<para
>If you put an <userinput
>i</userinput
> at the end of the expression, the matching will be case insensitive. If you put a <userinput
>g</userinput
> at the end, all occurrences of the pattern will be replaced, otherwise only the first occurrence is replaced.</para>

<example>

<title
>Substituindo texto na linha atual</title>

<para
>Seu compilador parou, dizendo a você que a classe <classname
> minhaClasse</classname
>, mencionada na linha 3902 do seu arquivo fonte, não está definida.</para>

<para
>&quot;Droga!&quot; você pensa, é claro que é <classname
>MinhaClasse</classname
>. Você vai para a linha 3902, e em vez de tentar encontrar a palavra no texto, você lança o Diálogo de Edição de Comando, digita <userinput
>s/minhaclasse/MinhaClasse/i</userinput
>, clica no botão <guibutton
>OK</guibutton
>, salva o arquivo e compila &ndash; com sucesso, sem erros.</para>

</example>

<example>
<title
>Substituindo texto no arquivo inteiro</title>

<para
>Imagine que você tem um arquivo, onde está mencionado a string  <quote
>Senhorita  Jensen</quote
> várias vezes, quando alguém vem e lhe diz que ela casou com o <quote
>Senhor Jones</quote
>. Você quer, é claro, substituir toda ocorrência de <quote
>Senhorita Jensen</quote
> por <quote
>Senhora Jones</quote
>.</para>

<para
>Enter the command line and issue the command <userinput
>%s/Miss Jensen/Ms Jones/</userinput
> and hit return, you are done.</para>

</example>

<example>
<title
>Um Exemplo Mais Avançado</title>

<para
>This example makes use of <emphasis
>back references</emphasis
> as well as a <emphasis
>character class</emphasis
> (if you do not know what that is, please refer to the related documentation mentioned below).</para>

<para
>Suponha que você possui a seguinte linha: <programlisting
>void MinhaClasse::DoStringOps( String      &amp;foo, String &amp;bar String *p, int  &amp;a, int &amp;b )</programlisting>
</para>
<para
>Agora, você pode perceber que este não é um código bom, e decidir que deseja usar a palavra-chave <constant
>const</constant
> para todos os argumentos  <quote
>address of</quote
>, aqueles caracterizados pelo operador  &amp; em frente ao nome do argumento. Você poderia também simplificar o espaço em branco, pois assim existiria somente um caractere de espaço em branco entre cada palavra.</para>

<para
>Abra o Diálogo de Edição de Comando, e digite <userinput
>s/\s+(\w+)\s+(&amp;)/ const \1 \2/g</userinput
> e clique no botão  <guibutton
>OK</guibutton
>. O caractere <userinput
>g</userinput
> no final da expressão faz com que a expressão regular recompile cada combinação, para recuperar as <emphasis
>referências de volta</emphasis
>.</para>

<para
>Saída  <computeroutput
>void MinhaClasse::DoStringOps( const String &amp;foo, const String &amp;bar String *p, const int &amp;a, const int &amp;b )</computeroutput
></para>

<para
>Missão completa! Agora, o que aconteceu? Bem, procuramos por espaços em branco (<literal
>\s+</literal
>) seguidos por um ou mais caracteres alfabéticos(<literal
>\w+</literal
>) seguidos por mais espaços em branco (<literal
>\s+</literal
>) seguidos por um E comercial, e no processo é salvo o pedaço alfabético e o E comercial para reutilização na operação de substituição. Quando substituímos a parte  relacionada da nossa linha, com um espaço em branco, seguido por <quote
>const</quote
>, seguido por um espaço em branco, seguido por nosso pedaço alfabético (<literal
>\1</literal
>) seguido por um espaço em branco, em por fim, seguido por nosso E comercial salvo (<literal
>\2</literal
>)</para>

<para
>Em alguns casos, a parte alfabética foi <quote
>String</quote
>, em alguns <quote
>int</quote
>, assim, usar a classe de caractere <literal
>\w</literal
> e o quantificador <literal
>+</literal
> provê uma vantagem considerável.</para>

</example>

</listitem>

</varlistentry>

</variablelist>

</sect3>

<sect3 id="advanced-editing-tools-commandline-commands-navigation">
<title
>Commands for navigation</title>

<variablelist>

<varlistentry>
<term
><cmdsynopsis
><command
>goto</command
><arg
>INT line</arg
></cmdsynopsis
></term>
<listitem
><para
>This command navigates to the specified line.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>find</command
><arg
>pattern</arg
></cmdsynopsis
></term>
<listitem
><para
>This command navigates to the first occurrence of <userinput
>pattern</userinput
> according to the configuration. Following occurrences can be found using <menuchoice
><guimenu
>Edit</guimenu
><guimenuitem
>Find Next</guimenuitem
></menuchoice
> (the default shortcut is <keycap
>F3</keycap
>).</para>
<para
>The find command can be configured by appending a colon followed by one or more options, the form is <userinput
>find:options pattern</userinput
>. The following options are supported: <variablelist>

<varlistentry>
<term
><userinput
>b</userinput
></term>
<listitem
><para
>Search backwards.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>c</userinput
></term>
<listitem
><para
>Search from cursor position.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>e</userinput
></term>
<listitem
><para
>Search in the selection only.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>r</userinput
></term>
<listitem
><para
>Do regular expression search. If set, you may use <userinput
>\N</userinput
> where N is a number to represent captures in the replacement string.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>s</userinput
></term>
<listitem
><para
>Do case sensitive search.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>w</userinput
></term>
<listitem
><para
>Match whole words only.</para
></listitem>
</varlistentry>

</variablelist>

</para>

</listitem>

</varlistentry>

<varlistentry>
<term
><cmdsynopsis
><command
>ifind</command
><arg
>pattern</arg
></cmdsynopsis
></term>
<listitem
><para
>This command provides <quote
>as-you-type</quote
> searching. You can configure the behavior or the search by appending a colon followed by one or more options, like this: <userinput
>ifind:options pattern</userinput
>. Allowed options are <variablelist>
<varlistentry>
<term
><userinput
>b</userinput
></term>
<listitem
><para
>Search backwards.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>r</userinput
></term>
<listitem
><para
>Do regular expression search.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>s</userinput
></term>
<listitem
><para
>Do case sensitive search.</para
></listitem>
</varlistentry>

<varlistentry>
<term
><userinput
>c</userinput
></term>
<listitem
><para
>Search from cursor position.</para
></listitem>
</varlistentry>

</variablelist>
</para
></listitem>
</varlistentry>

</variablelist>

</sect3>

</sect2>

</sect1>

</chapter>
