Add more infobar autocomplete

This commit is contained in:
Zachary Yedidia
2019-01-20 19:38:23 -05:00
parent fc7058d47c
commit bc1d6b6f94
3 changed files with 55 additions and 41 deletions

View File

@@ -29,9 +29,9 @@ var commands map[string]Command
func InitCommands() {
commands = map[string]Command{
"set": Command{(*BufPane).SetCmd, nil},
"setlocal": Command{(*BufPane).SetLocalCmd, nil},
"show": Command{(*BufPane).ShowCmd, nil},
"set": Command{(*BufPane).SetCmd, OptionValueComplete},
"setlocal": Command{(*BufPane).SetLocalCmd, OptionValueComplete},
"show": Command{(*BufPane).ShowCmd, OptionComplete},
"showkey": Command{(*BufPane).ShowKeyCmd, nil},
"run": Command{(*BufPane).RunCmd, nil},
"bind": Command{(*BufPane).BindCmd, nil},
@@ -43,7 +43,7 @@ func InitCommands() {
"vsplit": Command{(*BufPane).VSplitCmd, buffer.FileComplete},
"hsplit": Command{(*BufPane).HSplitCmd, buffer.FileComplete},
"tab": Command{(*BufPane).NewTabCmd, buffer.FileComplete},
"help": Command{(*BufPane).HelpCmd, nil},
"help": Command{(*BufPane).HelpCmd, HelpComplete},
"eval": Command{(*BufPane).EvalCmd, nil},
"togglelog": Command{(*BufPane).ToggleLogCmd, nil},
"plugin": Command{(*BufPane).PluginCmd, nil},