📄 manual.xml.head
字号:
<para>In addition, <emphasis>key</emphasis> may consist of:</para><para><table><title>Symbolic key names</title><tgroup cols="2"><thead><row><entry>Symbolic name</entry><entry>Meaning</entry></row></thead><tbody><row><entry>\t</entry><entry>tab</entry></row><row><entry><tab></entry><entry>tab</entry></row><row><entry><backtab></entry><entry>backtab / shift-tab</entry></row><row><entry>\r</entry><entry>carriage return</entry></row><row><entry>\n</entry><entry>newline</entry></row><row><entry>\e</entry><entry>escape</entry></row><row><entry><esc></entry><entry>escape</entry></row><row><entry><up></entry><entry>up arrow</entry></row><row><entry><down></entry><entry>down arrow</entry></row><row><entry><left></entry><entry>left arrow</entry></row><row><entry><right></entry><entry>right arrow</entry></row><row><entry><pageup></entry><entry>Page Up</entry></row><row><entry><pagedown></entry><entry>Page Down</entry></row><row><entry><backspace></entry><entry>Backspace</entry></row><row><entry><delete></entry><entry>Delete</entry></row><row><entry><insert></entry><entry>Insert</entry></row><row><entry><enter></entry><entry>Enter</entry></row><row><entry><return></entry><entry>Return</entry></row><row><entry><home></entry><entry>Home</entry></row><row><entry><end></entry><entry>End</entry></row><row><entry><space></entry><entry>Space bar</entry></row><row><entry><f1></entry><entry>function key 1</entry></row><row><entry><f10></entry><entry>function key 10</entry></row></tbody></tgroup></table></para><para><emphasis>key</emphasis> does not need to be enclosed in quotes unless it contains aspace (`` '').</para><para><emphasis>function</emphasis> specifies which action to take when <emphasis>key</emphasis> is pressed.For a complete list of functions, see the <link linkend="functions">reference</link>. The special function <literal>noop</literal> unbinds the specified keysequence.</para></sect1><sect1 id="charset-hook"><title>Defining aliases for character sets </title><para><literallayout>Usage: <literal>charset-hook</literal> <emphasis>alias</emphasis> <emphasis>charset</emphasis>Usage: <literal>iconv-hook</literal> <emphasis>charset</emphasis> <emphasis>local-charset</emphasis></literallayout></para><para>The <literal>charset-hook</literal> command defines an alias for a character set.This is useful to properly display messages which are tagged with acharacter set name not known to mutt.</para><para>The <literal>iconv-hook</literal> command defines a system-specific name for acharacter set. This is helpful when your systems characterconversion library insists on using strange, system-specific namesfor character sets.</para></sect1><sect1 id="folder-hook"><title>Setting variables based upon mailbox</title><para>Usage: <literal>folder-hook</literal> [!]<emphasis>regexp</emphasis> <emphasis>command</emphasis></para><para>It is often desirable to change settings based on which mailbox you arereading. The folder-hook command provides a method by which you can executeany configuration command. <emphasis>regexp</emphasis> is a regular expression specifyingin which mailboxes to execute <emphasis>command</emphasis> before loading. If a mailboxmatches multiple folder-hook's, they are executed in the order given in themuttrc.</para><para><emphasis role="bold">Note:</emphasis> if you use the ``!'' shortcut for <link linkend="spoolfile">$spoolfile</link> at the beginning of the pattern, you must place itinside of double or single quotes in order to distinguish it from thelogical <emphasis>not</emphasis> operator for the expression.</para><para>Note that the settings are <emphasis>not</emphasis> restored when you leave the mailbox.For example, a command action to perform is to change the sorting methodbased upon the mailbox being read:</para><para><screen>folder-hook mutt set sort=threads</screen></para><para>However, the sorting method is not restored to its previous value whenreading a different mailbox. To specify a <emphasis>default</emphasis> command, use thepattern ``.'':</para><para><screen>folder-hook . set sort=date-sent</screen></para></sect1><sect1 id="macro"><title>Keyboard macros</title><para>Usage: <literal>macro</literal> <emphasis>menu</emphasis> <emphasis>key</emphasis> <emphasis>sequence</emphasis> [ <emphasis>description</emphasis> ]</para><para>Macros are useful when you would like a single key to perform a series ofactions. When you press <emphasis>key</emphasis> in menu <emphasis>menu</emphasis>, Mutt will behave as ifyou had typed <emphasis>sequence</emphasis>. So if you have a common sequence of commandsyou type, you can create a macro to execute those commands with a singlekey.</para><para><emphasis>menu</emphasis> is the <link linkend="maps">map</link> which the macro will be bound.Multiple maps may be specified by separating multiple menu arguments bycommas. Whitespace may not be used in between the menu arguments and thecommas separating them.</para><para><emphasis>key</emphasis> and <emphasis>sequence</emphasis> are expanded by the same rules as the <link linkend="bind">key bindings</link>. There are some additions however. Thefirst is that control characters in <emphasis>sequence</emphasis> can also be specifiedas <emphasis>ˆx</emphasis>. In order to get a caret (`ˆ'') you need to use<emphasis>ˆˆ</emphasis>. Secondly, to specify a certain key such as <emphasis>up</emphasis>or to invoke a function directly, you can use the format<emphasis><key name></emphasis> and <emphasis><function name></emphasis>. For a listing of keynames see the section on <link linkend="bind">key bindings</link>. Functionsare listed in the <link linkend="functions">reference</link>.</para><para>The advantage with using function names directly is that the macros willwork regardless of the current key bindings, so they are not dependent onthe user having particular key definitions. This makes them more robustand portable, and also facilitates defining of macros in files used by morethan one user (eg. the system Muttrc).</para><para>Optionally you can specify a descriptive text after <emphasis>sequence</emphasis>,which is shown in the help screens.</para><para><emphasis role="bold">Note:</emphasis> Macro definitions (if any) listed in the help screen(s), aresilently truncated at the screen width, and are not wrapped.</para></sect1><sect1 id="color"><title>Using color and mono video attributes</title><para><literallayout>Usage: <literal>color</literal> <emphasis>object</emphasis> <emphasis>foreground</emphasis> <emphasis>background</emphasis> [ <emphasis>regexp</emphasis> ]Usage: <literal>color</literal> index <emphasis>foreground</emphasis> <emphasis>background</emphasis> <emphasis>pattern</emphasis>Usage: <literal>uncolor</literal> index <emphasis>pattern</emphasis> [ <emphasis>pattern</emphasis> ... ]</literallayout></para><para>If your terminal supports color, you can spice up Mutt by creating your owncolor scheme. To define the color of an object (type of information), youmust specify both a foreground color <emphasis role="bold">and</emphasis> a background color (it is notpossible to only specify one or the other).</para><para><emphasis>object</emphasis> can be one of:</para><para><itemizedlist><listitem><para>attachment</para></listitem><listitem><para>body (match <emphasis>regexp</emphasis> in the body of messages)</para></listitem><listitem><para>bold (hiliting bold patterns in the body of messages)</para></listitem><listitem><para>error (error messages printed by Mutt)</para></listitem><listitem><para>header (match <emphasis>regexp</emphasis> in the message header)</para></listitem><listitem><para>hdrdefault (default color of the message header in the pager)</para></listitem><listitem><para>index (match <emphasis>pattern</emphasis> in the message index)</para></listitem><listitem><para>indicator (arrow or bar used to indicate the current item in a menu)</para></listitem><listitem><para>markers (the ``+'' markers at the beginning of wrapped lines in the pager)</para></listitem><listitem><para>message (informational messages)</para></listitem><listitem><para>normal</para></listitem><listitem><para>quoted (text matching <link linkend="quote-regexp">$quote_regexp</link> in the body of a message)</para></listitem><listitem><para>quoted1, quoted2, ..., quoted<emphasis role="bold">N</emphasis> (higher levels of quoting)</para></listitem><listitem><para>search (hiliting of words in the pager)</para></listitem><listitem><para>signature</para></listitem><listitem><para>status (mode lines used to display info about the mailbox or message)</para></listitem><listitem><para>tilde (the ``˜'' used to pad blank lines in the pager)</para></listitem><listitem><para>tree (thread tree drawn in the message index and attachment menu)</para></listitem><listitem><para>underline (hiliting underlined patterns in the body of messages)</para></listitem></itemizedlist></para><para><emphasis>foreground</emphasis> and <emphasis>background</emphasis> can be one of the following:</para><para><itemizedlist><listitem><para>white</para></listitem><listitem><para>black</para></listitem><listitem><para>green</para></listitem><listitem><para>magenta</para></listitem><listitem><para>blue</para></listitem><listitem><para>cyan</para></listitem><listitem><para>yellow</para></listitem><listitem><para>red</para></listitem><listitem><para>default</para></listitem><listitem><para>color<emphasis>x</emphasis></para></listitem></itemizedlist></para><para><emphasis>foreground</emphasis> can optionally be prefixed with the keyword <literal>bright</literal> to makethe foreground color boldfaced (e.g., <literal>brightred</literal>).</para><para>If your terminal supports it, the special keyword <emphasis>default</emphasis> can beused as a transparent color. The value <emphasis>brightdefault</emphasis> is al
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -