Set the completion order for a specific mode.
Example usage:
var context = new Skk.Context(dictionaries);
CompletionSource[] sources = {
new DictCompletionSource(user_dict, 20),
new DictCompletionSource(system_dict, 10)
};
context.set_completion_order("normal", sources);
context.set_completion_order("abbrev", sources);
In this example, user_dict completions (priority 20) will be shown before system_dict completions (priority 10).
| mode |
The mode to set the completion order for ("normal" or "abbrev") |
| sources |
An array of CompletionSource objects |