1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

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;
});
}
};