From 223859a33b07070d4aa1851d1caa8f344bd079c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20N=C4=9Bmec?= Date: Sat, 25 Sep 2010 02:18:17 +0200 Subject: [PATCH] Make the tag mode-aware. Previously there was no way to produce links to the appropriate mode-specific binding of a key using the tag (e.g., in the documentation always linked to the Normal-mode command, although its command-line functionality is different). This commit introduces a `mode' attribute to the tag, making the distinction possible. --- common/content/help.xsl | 14 ++++++++++++++ common/locale/en-US/cmdline.xml | 23 +++++++++++++++++++++++ common/locale/en-US/developer.xml | 7 ++++++- common/locale/en-US/index.xml | 19 +++++++++++-------- common/locale/en-US/options.xml | 2 +- 5 files changed, 55 insertions(+), 10 deletions(-) diff --git a/common/content/help.xsl b/common/content/help.xsl index 6f97fa5f..77d9c2e9 100644 --- a/common/content/help.xsl +++ b/common/content/help.xsl @@ -328,6 +328,20 @@ + + + + + + + + + + + + + + diff --git a/common/locale/en-US/cmdline.xml b/common/locale/en-US/cmdline.xml index 7be3bfc4..d8d502c5 100644 --- a/common/locale/en-US/cmdline.xml +++ b/common/locale/en-US/cmdline.xml @@ -140,6 +140,29 @@ + + ]]> + + <A-Tab> + +

+ Similar to , but the completion behavior is + specified by the altwildmode option. +

+
+
+ + + + ]]> + + <A-S-Tab> + +

The equivalent for altwildmode.

+
+
+ + diff --git a/common/locale/en-US/developer.xml b/common/locale/en-US/developer.xml index 522cfbf4..08cfec47 100644 --- a/common/locale/en-US/developer.xml +++ b/common/locale/en-US/developer.xml @@ -96,7 +96,12 @@
ex
Link to an ex command. (HelpEx)
k
Link to a key. (HelpKey)
&tab;@name
The name attribute to <k>. When provided, <value> is prepended to - the element's contents, i.e., <k name="lt"/> becomes . + the element's contents, i.e., <k name="Tab"/> becomes . +
+
&tab;@mode
The mode attribute to <k>. Some keys have different functions in different modes. + You can use this attribute to specify which of the modes (other than Normal) a key pertains to. + The <value> is prepended to the element's contents, i.e., <k name="C-i" mode="i"/> + becomes , and <k mode="i">i</k> becomes i.
t
Links to an arbitrary help topic. (HelpTopic)
diff --git a/common/locale/en-US/index.xml b/common/locale/en-US/index.xml index 4deb8613..8053e627 100644 --- a/common/locale/en-US/index.xml +++ b/common/locale/en-US/index.xml @@ -16,8 +16,9 @@ This file contains a list of all available commands, mappings and options.

Insert mode

-
Launch the external editor
-
Expand an Insert-mode abbreviation
+
i
Start Insert mode in text areas when insertmode is not set
+
Launch the external editor
+
Expand an Insert-mode abbreviation
@@ -199,24 +200,26 @@ This file contains a list of all available commands, mappings and options.

Command-line editing

-
Quit Command-line mode without executing
+
Quit Command-line mode without executing
-
Expand a command-line abbreviation
+
Expand a command-line abbreviation
-
Recall the previous command line from the history list which matches the current command line
-
Recall the next command line from the history list which matches the current command line
+
Recall the previous command line from the history list which matches the current command line
+
Recall the next command line from the history list which matches the current command line
-
Complete the word in front of the cursor according to the behavior specified in wildmode
-
Complete the previous full match when wildmode contains "full"
+
Complete the word in front of the cursor according to the behavior specified in wildmode
+
Complete the previous full match when wildmode contains "full"
+
Complete the word in front of the cursor according to the behavior specified in altwildmode
+
Complete the previous full match when altwildmode contains "full"
diff --git a/common/locale/en-US/options.xml b/common/locale/en-US/options.xml index 9e7b6b56..7afbf935 100644 --- a/common/locale/en-US/options.xml +++ b/common/locale/en-US/options.xml @@ -335,7 +335,7 @@ list:full

- Like wildmode, but when the key is pressed. + Like wildmode, but when the key is pressed.