Tab completition script for Take Command/TCC.
1 files changed, 19 insertions(+), 0 deletions(-) A => hgcomplete.lua
A => hgcomplete.lua +19 -0
@@ 0,0 1,19 @@ +-- TABCOMPLETIONRESULT + +require "winapi" + +command = arg[1] +if command ~= "hg" then + return 1 +end + +param = arg[2] +if param == nil or #arg == 3 then + winapi.setenv("TABCOMPLETIONRESULT", "add rm commit push pull revert init") + return 0 +elseif string.sub(param,1,1) == "c" then + winapi.setenv("TABCOMPLETIONRESULT", "commit") + return 0 +end + +return 1