Implement tab-complete for slash commands

This needed a new interface function `getOverrideSuffix()` so we didn't suffix
commands at the start with ": ". All seems to work.
This commit is contained in:
Kegan Dougal 2016-01-13 17:46:36 +00:00
parent 11025e2ba9
commit 53f31e49da
4 changed files with 59 additions and 15 deletions

View file

@ -322,5 +322,11 @@ module.exports = {
}
}
return null; // not a command
},
getCommandList: function() {
return Object.keys(commands).map(function(cmd) {
return "/" + cmd;
});
}
};