1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:47:59 +01:00

Document . mapping

This commit is contained in:
Kris Maglione
2008-10-11 14:41:09 +00:00
parent f95f1238b5
commit e0fd2718e8
4 changed files with 18 additions and 4 deletions

1
NEWS
View File

@@ -7,6 +7,7 @@
special versions for the old behavior
* IMPORTANT: renamed Startup and Quit autocmd events to VimperatorEnter and
VimperatorLeave respectively
* add . mapping
* add N% normal mode command
* add interpolation for items such as <url> to autocommands
* add -nargs, -bang, and -count attribute support to :command

View File

@@ -469,11 +469,15 @@ liberator.Buffer = function () //{{{
liberator.mappings.add(modes, ["."],
"Repeat the last key event",
function ()
function (count)
{
if (liberator.mappings.repeat)
{
for (let i in liberator.util.range(0, count || 1))
liberator.mappings.repeat();
});
}
},
{ flags: liberator.Mappings.flags.COUNT });
liberator.mappings.add(modes, ["i", "<Insert>"],
"Start caret mode",

View File

@@ -292,7 +292,7 @@ liberator.Completion = function () //{{{
{
case "(":
/* Function call, or if/while/for/... */
if (/\w$/.test(lastNonwhite))
if (/\w\d$/.test(lastNonwhite))
{
top[FUNCTIONS].push(i);
top[STATEMENTS].pop();

View File

@@ -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]
|:so| |:source|