mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
add: autocompletion plugins arguments
support for "update" and "uninstall" Signed-off-by: Viachaslau Khalikin <viachaslau.vinegret@outlook.com>
This commit is contained in:
parent
0ceb8c53c3
commit
d75e5c1c28
@ -961,6 +961,8 @@ cmd_ac_init(void)
|
||||
|
||||
plugins_ac = autocomplete_new();
|
||||
autocomplete_add(plugins_ac, "install");
|
||||
autocomplete_add(plugins_ac, "update");
|
||||
autocomplete_add(plugins_ac, "uninstall");
|
||||
autocomplete_add(plugins_ac, "load");
|
||||
autocomplete_add(plugins_ac, "unload");
|
||||
autocomplete_add(plugins_ac, "reload");
|
||||
@ -2754,6 +2756,10 @@ _plugins_autocomplete(ProfWin* window, const char* const input, gboolean previou
|
||||
return cmd_ac_complete_filepath(input, "/plugins install", previous);
|
||||
}
|
||||
|
||||
if (strncmp(input, "/plugins update ", 16) == 0) {
|
||||
return cmd_ac_complete_filepath(input, "/plugins update", previous);
|
||||
}
|
||||
|
||||
if (strncmp(input, "/plugins load ", 14) == 0) {
|
||||
if (plugins_load_ac == NULL) {
|
||||
plugins_load_ac = autocomplete_new();
|
||||
|
Loading…
Reference in New Issue
Block a user