mirror of https://github.com/bqv/weechat-xmpp
Add Completion module and emoji completion hook
Note: this doesn't enable emoji completion. Weechat seems to require hooking on the commands /input complete_* rather than just invoking hook_completion.v1
parent
48257b7cc1
commit
5217251e94
@ -0,0 +1,20 @@
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, version 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "weechat-plugin.h"
|
||||
#include "slack.h"
|
||||
#include "slack-emoji.h"
|
||||
#include "slack-workspace.h"
|
||||
#include "slack-channel.h"
|
||||
#include "slack-completion.h"
|
||||
|
||||
void slack_completion_init()
|
||||
{
|
||||
weechat_hook_completion("slack_emoji",
|
||||
N_("slack emoji"),
|
||||
&slack_emoji_complete_by_name_cb,
|
||||
NULL, NULL);
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
// License, version 2.0. If a copy of the MPL was not distributed with this
|
||||
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#ifndef _SLACK_COMPLETION_H_
|
||||
#define _SLACK_COMPLETION_H_
|
||||
|
||||
void slack_completion_init();
|
||||
|
||||
#endif /*SLACK_COMPLETION_H*/
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue