mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:02:27 +01:00
Document . mapping
This commit is contained in:
1
NEWS
1
NEWS
@@ -7,6 +7,7 @@
|
|||||||
special versions for the old behavior
|
special versions for the old behavior
|
||||||
* IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and
|
* IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and
|
||||||
VimperatorLeave respectively
|
VimperatorLeave respectively
|
||||||
|
* add . mapping
|
||||||
* add N% normal mode command
|
* add N% normal mode command
|
||||||
* add interpolation for items such as <url> to autocommands
|
* add interpolation for items such as <url> to autocommands
|
||||||
* add -nargs, -bang, and -count attribute support to :command
|
* add -nargs, -bang, and -count attribute support to :command
|
||||||
|
|||||||
@@ -469,11 +469,15 @@ liberator.Buffer = function () //{{{
|
|||||||
|
|
||||||
liberator.mappings.add(modes, ["."],
|
liberator.mappings.add(modes, ["."],
|
||||||
"Repeat the last key event",
|
"Repeat the last key event",
|
||||||
function ()
|
function (count)
|
||||||
{
|
{
|
||||||
if (liberator.mappings.repeat)
|
if (liberator.mappings.repeat)
|
||||||
|
{
|
||||||
|
for (let i in liberator.util.range(0, count || 1))
|
||||||
liberator.mappings.repeat();
|
liberator.mappings.repeat();
|
||||||
});
|
}
|
||||||
|
},
|
||||||
|
{ flags: liberator.Mappings.flags.COUNT });
|
||||||
|
|
||||||
liberator.mappings.add(modes, ["i", "<Insert>"],
|
liberator.mappings.add(modes, ["i", "<Insert>"],
|
||||||
"Start caret mode",
|
"Start caret mode",
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ liberator.Completion = function () //{{{
|
|||||||
{
|
{
|
||||||
case "(":
|
case "(":
|
||||||
/* Function call, or if/while/for/... */
|
/* Function call, or if/while/for/... */
|
||||||
if (/\w$/.test(lastNonwhite))
|
if (/\w\d$/.test(lastNonwhite))
|
||||||
{
|
{
|
||||||
top[FUNCTIONS].push(i);
|
top[FUNCTIONS].push(i);
|
||||||
top[STATEMENTS].pop();
|
top[STATEMENTS].pop();
|
||||||
|
|||||||
@@ -48,6 +48,15 @@ Replay the last executed macro [count] times.
|
|||||||
____________________________________________________________________________
|
____________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
|
|.|
|
||||||
|
||[count].|
|
||||||
|
____________________________________________________________________________
|
||||||
|
Repeat the last keyboard mapping [count] times. Note that, unlike in vim, this
|
||||||
|
does not apply solely to editing commands, mainly because Vimperator doesn't
|
||||||
|
have them.
|
||||||
|
____________________________________________________________________________
|
||||||
|
|
||||||
|
|
||||||
section:Using{nbsp}scripts[using-scripts]
|
section:Using{nbsp}scripts[using-scripts]
|
||||||
|
|
||||||
|:so| |:source|
|
|:so| |:source|
|
||||||
|
|||||||
Reference in New Issue
Block a user