mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 07:57:59 +01:00
Move the standard type completers to appropriate modules.
This commit is contained in:
@@ -161,13 +161,26 @@ function AutoCommands() //{{{
|
||||
);
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
////////////////////// PUBLIC SECTION //////////////////////////////////////////
|
||||
////////////////////// COMPLETIONS /////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////{{{
|
||||
|
||||
liberator.registerObserver("load_completion", function () {
|
||||
completion.setFunctionCompleter(autocommands.get, [function () config.autocommands]);
|
||||
|
||||
completion.autocmdEvent = function autocmdEvent(context) {
|
||||
context.completions = config.autocommands;
|
||||
};
|
||||
|
||||
completion.macro = function macro(context) {
|
||||
context.title = ["Macro", "Keys"];
|
||||
context.completions = [item for (item in events.getMacros())];
|
||||
};
|
||||
});
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
////////////////////// PUBLIC SECTION //////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////{{{
|
||||
|
||||
return {
|
||||
|
||||
__iterator__: function () util.Array.itervalues(store),
|
||||
|
||||
Reference in New Issue
Block a user