1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 21:54:13 +01:00

initial crack at :command -complete - YALNS

This commit is contained in:
Doug Kearns
2008-11-13 15:41:08 +00:00
parent 8b37c91b7b
commit 47fbbacf41
5 changed files with 80 additions and 11 deletions

View File

@@ -53,6 +53,7 @@ function AutoCommands() //{{{
{
let values = value.split(",");
let events = config.autocommands.map(function (event) event[0]);
events.push("all");
return values.every(function (event) events.indexOf(event) >= 0);
@@ -113,7 +114,7 @@ function AutoCommands() //{{{
{
argCount: "3",
bang: true,
completer: function (filter) completion.event(filter),
completer: function (filter) completion.autocmdEvent(filter),
literal: true
});
@@ -126,7 +127,7 @@ function AutoCommands() //{{{
},
{
argCount: "+",
completer: function (filter) completion.event(filter)
completer: function (filter) completion.autocmdEvent(filter)
}
);
@@ -163,7 +164,7 @@ function AutoCommands() //{{{
{
// TODO: Vim actually just displays "No matching autocommands" when no arg is specified
argCount: "+",
completer: function (filter) completion.event(filter)
completer: function (filter) completion.autocmdEvent(filter)
}
);