1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 00:14:11 +01:00

add new :mkvimperatorrc command

This commit is contained in:
Doug Kearns
2007-10-20 12:40:01 +00:00
parent eb26b06883
commit 1533d3889d
3 changed files with 63 additions and 4 deletions

View File

@@ -160,9 +160,9 @@ function Mappings() //{{{
}
}
function mappingsIterator(mode)
function mappingsIterator(mode, stack)
{
var mappings = main[mode];
var mappings = stack[mode];
//// FIXME: do we want to document user commands by default?
//mappings = user[mode].concat(main[mode]);
@@ -186,12 +186,19 @@ function Mappings() //{{{
// NOTE: just normal mode for now
this.__iterator__ = function()
{
return mappingsIterator(vimperator.modes.NORMAL);
return mappingsIterator(vimperator.modes.NORMAL, main);
}
// FIXME
this.getIterator = function(mode)
{
return mappingsIterator(mode);
return mappingsIterator(mode, main);
}
// FIXME
this.getUserIterator = function(mode)
{
return mappingsIterator(mode, user);
}
this.hasMap = function(mode, cmd)