1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 20:02:25 +01:00

merged the new mappings code, all glory goes to Doug!

This commit is contained in:
Martin Stubenschrott
2007-05-31 09:11:24 +00:00
parent 4406c23944
commit b51357109d
6 changed files with 98 additions and 610 deletions

View File

@@ -270,9 +270,8 @@ function get_help_completions(filter)/*{{{*/
$_[1]
];
}));
help_array = help_array.concat(g_mappings.map(function($_) {
return [ $_[COMMANDS], $_[SHORTHELP] ];
}));
for (map in vimperator.mappings)
help_array.push([map.commands, map.short_help])
if (!filter) return help_array.map(function($_) {
return [$_[COMMANDS][0], $_[1]]; // unfiltered, use the first command