mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-17 22:03:34 +02:00
Officially deprecateify :noremap and kin.
This commit is contained in:
@@ -756,8 +756,7 @@ var CommandLine = Module("commandline", {
|
|||||||
data = message.message;
|
data = message.message;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((flags & this.ACTIVE_WINDOW) &&
|
if ((flags & this.ACTIVE_WINDOW) && window != overlay.activeWindow)
|
||||||
window != overlay.activeWindow)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if ((flags & this.DISALLOW_MULTILINE) && !this.widgets.mowContainer.collapsed)
|
if ((flags & this.DISALLOW_MULTILINE) && !this.widgets.mowContainer.collapsed)
|
||||||
|
|||||||
@@ -657,7 +657,7 @@ var Mappings = Module("mappings", {
|
|||||||
commands.add([ch + "no[remap]"],
|
commands.add([ch + "no[remap]"],
|
||||||
"Map a key sequence without remapping keys" + modeDescription,
|
"Map a key sequence without remapping keys" + modeDescription,
|
||||||
function (args) { map(args, true); },
|
function (args) { map(args, true); },
|
||||||
update({}, opts));
|
update({ deprecated: ":" + ch + "map -builtin" }, opts));
|
||||||
|
|
||||||
commands.add([ch + "unm[ap]"],
|
commands.add([ch + "unm[ap]"],
|
||||||
"Remove a mapping" + modeDescription,
|
"Remove a mapping" + modeDescription,
|
||||||
|
|||||||
@@ -66,13 +66,12 @@
|
|||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
The ordinary <ex>:map</ex> and <ex>:noremap</ex> commands
|
The ordinary <ex>:map</ex> command adds mappings for Normal and Visual
|
||||||
add mappings for Normal and Visual mode. In order to map key
|
mode. In order to map key bindings in a different mode, any of the mapping
|
||||||
bindings in a different mode, any of the mapping commands may be
|
commands may be prefixed with one of the above letters. For instance,
|
||||||
prefixed with one of the above letters. For instance,
|
|
||||||
<ex>:imap</ex> creates a new key mapping in Insert mode, while
|
<ex>:imap</ex> creates a new key mapping in Insert mode, while
|
||||||
<ex>:cunmap</ex> removes a key mapping from Command Line mode.
|
<ex>:cunmap</ex> removes a key mapping from Command Line mode. Other modes
|
||||||
Other modes can be specified using the <em>-modes</em> option described below.
|
can be specified using the <em>-modes</em> option described below.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<warning>
|
<warning>
|
||||||
@@ -127,12 +126,12 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<dl dt="width: 20em;">
|
<dl dt="width: 20em;">
|
||||||
<dt>:map :noremap :unmap</dt> <dd>Normal and Visual modes</dd>
|
<dt>:map :unmap</dt> <dd>Normal and Visual modes</dd>
|
||||||
<dt>:nmap :nnoremap :nunmap</dt> <dd>Normal mode</dd>
|
<dt>:nmap :nunmap</dt> <dd>Normal mode</dd>
|
||||||
<dt>:vmap :vnoremap :vunmap</dt> <dd>Visual mode</dd>
|
<dt>:vmap :vunmap</dt> <dd>Visual mode</dd>
|
||||||
<dt>:imap :inoremap :iunmap</dt> <dd>Insert mode</dd>
|
<dt>:imap :iunmap</dt> <dd>Insert mode</dd>
|
||||||
<dt>:tmap :tnoremap :tunmap</dt> <dd>Text Edit mode</dd>
|
<dt>:tmap :tunmap</dt> <dd>Text Edit mode</dd>
|
||||||
<dt>:cmap :cnoremap :cunmap</dt> <dd>Command Line mode</dd>
|
<dt>:cmap :cunmap</dt> <dd>Command Line mode</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<note>
|
<note>
|
||||||
@@ -175,6 +174,8 @@
|
|||||||
<tags>:cno :cnoremap</tags>
|
<tags>:cno :cnoremap</tags>
|
||||||
<spec>:cno<oa>remap</oa> <a>lhs</a> <a>rhs</a></spec>
|
<spec>:cno<oa>remap</oa> <a>lhs</a> <a>rhs</a></spec>
|
||||||
<description>
|
<description>
|
||||||
|
<deprecated>These aliases are deprecated. The <em>-builtin</em> flag
|
||||||
|
should be used in their stead.</deprecated>
|
||||||
<p>
|
<p>
|
||||||
Map the <t>key-sequence</t> <a>lhs</a> to <a>rhs</a> for
|
Map the <t>key-sequence</t> <a>lhs</a> to <a>rhs</a> for
|
||||||
the applicable mode(s). The keys in <a>rhs</a> do not
|
the applicable mode(s). The keys in <a>rhs</a> do not
|
||||||
|
|||||||
Reference in New Issue
Block a user