Mercurial > hg
comparison mcabber/src/commands.c @ 750:938a8791658c
Add partial completion for the "/event" command
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Mon, 13 Mar 2006 19:25:55 +0100 |
parents | 53a000411587 |
children | b747f76e57ae |
comparison
equal
deleted
inserted
replaced
749:6c633adaae10 | 750:938a8791658c |
---|---|
92 COMPL_BUFFER, 0, &do_buffer); | 92 COMPL_BUFFER, 0, &do_buffer); |
93 cmd_add("clear", "Clear the dialog window", 0, 0, &do_clear); | 93 cmd_add("clear", "Clear the dialog window", 0, 0, &do_clear); |
94 cmd_add("connect", "Connect to the server", 0, 0, &do_connect); | 94 cmd_add("connect", "Connect to the server", 0, 0, &do_connect); |
95 cmd_add("del", "Delete the current buddy", 0, 0, &do_del); | 95 cmd_add("del", "Delete the current buddy", 0, 0, &do_del); |
96 cmd_add("disconnect", "Disconnect from server", 0, 0, &do_disconnect); | 96 cmd_add("disconnect", "Disconnect from server", 0, 0, &do_disconnect); |
97 cmd_add("event", "Process an event", 0, 0, &do_event); | 97 cmd_add("event", "Process an event", 0, COMPL_EVENTS, &do_event); |
98 cmd_add("group", "Change group display settings", COMPL_GROUP, 0, &do_group); | 98 cmd_add("group", "Change group display settings", COMPL_GROUP, 0, &do_group); |
99 //cmd_add("help", "Display some help", COMPL_CMD, 0, NULL); | 99 //cmd_add("help", "Display some help", COMPL_CMD, 0, NULL); |
100 cmd_add("info", "Show basic info on current buddy", 0, 0, &do_info); | 100 cmd_add("info", "Show basic info on current buddy", 0, 0, &do_info); |
101 cmd_add("move", "Move the current buddy to another group", COMPL_GROUPNAME, | 101 cmd_add("move", "Move the current buddy to another group", COMPL_GROUPNAME, |
102 0, &do_move); | 102 0, &do_move); |
191 compl_add_category_word(COMPL_AUTH, "request"); | 191 compl_add_category_word(COMPL_AUTH, "request"); |
192 | 192 |
193 // Request (query) category | 193 // Request (query) category |
194 compl_add_category_word(COMPL_REQUEST, "time"); | 194 compl_add_category_word(COMPL_REQUEST, "time"); |
195 compl_add_category_word(COMPL_REQUEST, "version"); | 195 compl_add_category_word(COMPL_REQUEST, "version"); |
196 | |
197 // Events category | |
198 compl_add_category_word(COMPL_EVENTS, "accept"); | |
199 compl_add_category_word(COMPL_EVENTS, "reject"); | |
196 } | 200 } |
197 | 201 |
198 // expandalias(line) | 202 // expandalias(line) |
199 // If there is one, expand the alias in line and returns a new allocated line | 203 // If there is one, expand the alias in line and returns a new allocated line |
200 // If no alias is found, returns line | 204 // If no alias is found, returns line |