1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 15:48:00 +01:00

add new :mkvimperatorrc command

This commit is contained in:
Doug Kearns
2007-10-22 03:13:33 +00:00
parent 05ab034753
commit 16614c637b
3 changed files with 64 additions and 5 deletions

View File

@@ -156,9 +156,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]);
@@ -182,12 +182,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)