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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user