mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-08 05:35:46 +01:00
Improve :h 'autocomplete.
This commit is contained in:
@@ -364,24 +364,17 @@
|
|||||||
<default>.*</default>
|
<default>.*</default>
|
||||||
<description>
|
<description>
|
||||||
<p>
|
<p>
|
||||||
Enables automatic completion for completion groups matching the
|
Enables automatic completion for completion contexts (see
|
||||||
given regular expressions. When automatic completion is enabled,
|
<ex>:contexts</ex>) matching the given regular expressions. When
|
||||||
the completion list is automatically opened when the
|
automatic completion is enabled, the completion list is
|
||||||
&tag.command-line; is focused.
|
automatically opened when the &tag.command-line; is focused.
|
||||||
Thereafter, any key press triggers a completion update for the
|
Thereafter, any key press triggers a completion update for the
|
||||||
matching groups (hereafter ‘contexts’). Non-matching contexts will
|
matching contexts. Non-matching contexts will only be updated when
|
||||||
only be updated when the <k name="Tab" mode="c"/> key is pressed.
|
the <k name="Tab" mode="c"/> key is pressed. This option is useful
|
||||||
This option is useful for disabling auto-completion for
|
for disabling auto-completion for computationally intensive
|
||||||
computationally intensive contexts that don't perform well when
|
contexts that don't perform well when your system is under load.
|
||||||
your system is under load.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<example>
|
|
||||||
To enable auto-completion for everything but <ex>:history</ex> or
|
|
||||||
<ex>:bmarks</ex>, you would choose a value such as
|
|
||||||
<str delim="'">!/ex/bmarks,.?</str>
|
|
||||||
</example>
|
|
||||||
|
|
||||||
<note>
|
<note>
|
||||||
Completion contexts have names very much like Unix path names.
|
Completion contexts have names very much like Unix path names.
|
||||||
These denote the tree in which they're called. A completer will
|
These denote the tree in which they're called. A completer will
|
||||||
@@ -391,7 +384,20 @@
|
|||||||
so on.
|
so on.
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
<p>See also <ex>:contexts</ex></p>
|
<example>
|
||||||
|
<p>
|
||||||
|
To enable auto-completion for everything but <ex>:history</ex> or
|
||||||
|
<ex>:bmarks</ex>, you would choose a value such as
|
||||||
|
<str delim="">!/ex/(bmarks|history),.?</str>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
To go in the other direction, i.e. <em>only</em> enable
|
||||||
|
auto-completion for <ex>:bmarks</ex>, you have to jump through
|
||||||
|
some hoops, due to the way contexts work (see the note above):
|
||||||
|
<str delim="">/ex/(bmarks|history),^(/|/ex/?)$</str>
|
||||||
|
</p>
|
||||||
|
</example>
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user