Added C and Python autocompletion examples

This commit is contained in:
James Booth
2014-06-12 00:05:21 +01:00
parent 751c59e8b3
commit 2aa4a5922d
2 changed files with 20 additions and 0 deletions

View File

@@ -38,8 +38,19 @@ def _handle_upper(win, line):
def prof_init(version, status):
prof.cons_show("python-test: init, " + version + ", " + status)
prof.register_command("/python", 0, 1, "/python", "python-test", "python-test", _cmd_python)
prof.register_command("/upper", 0, 1, "/upper", "Uppercase input string", "Uppercase input string", _cmd_upper)
arg_ac = [ "aah", "baa", "bee" ]
prof.register_ac("/pcomplete", arg_ac);
arg_one_ac = [ "one", "two", "three", "nan" ]
prof.register_ac("/pcomplete aah", arg_one_ac);
arg_two_ac = [ "james", "jim", "jane", "bob" ]
prof.register_ac("/pcomplete baa", arg_two_ac);
prof.register_command("/pcomplete", 0, 2, "/pcomplete", "Python completion", "Python completion", _cmd_upper)
prof.register_timed(_timer_test, 10)
def prof_on_start():