mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-28 22:08:12 +09:00
autocomplete plugin commands
This commit is contained in:
@@ -87,7 +87,7 @@ func DefaultCommands() map[string]StrCommand {
|
||||
"help": {"Help", []Completion{HelpCompletion, NoCompletion}},
|
||||
"eval": {"Eval", []Completion{NoCompletion}},
|
||||
"log": {"ToggleLog", []Completion{NoCompletion}},
|
||||
"plugin": {"Plugin", []Completion{NoCompletion}},
|
||||
"plugin": {"Plugin", []Completion{PluginCmdCompletion, PluginNameCompletion}},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ func PluginCmd(args []string) {
|
||||
}
|
||||
}
|
||||
case "update":
|
||||
UpdatePlugins()
|
||||
UpdatePlugins(args[1:])
|
||||
case "search":
|
||||
searchText := strings.Join(args[1:], " ")
|
||||
plugins := SearchPlugin(searchText)
|
||||
|
||||
Reference in New Issue
Block a user