basic shell completion for single match

This commit is contained in:
Gokcehan committed 2016-08-16 22:31:17 +03:00
1 parent 656a9c837a
commit 98839a42f2
3 files changed
+62 -1

No files matched your search

+5 -1
View File
@@ -446,7 +446,11 @@ func (ui *UI) prompt(pref string) string {
termbox.Flush()
return string(acc)
case termbox.KeyTab:
acc = compCmd(acc)
if pref == ":" {
acc = compCmd(acc)
} else {
acc = compShell(acc)
}
case termbox.KeyEsc:
return ""
}