diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2019-06-12 00:54:38 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-08-25 19:45:18 +0200 |
commit | 3a44517b3d466e857910dbafe2b186c1edf8ca32 (patch) | |
tree | 654a1493b2b382e31172c703c4cd7105077cdb18 /wee_slack.py | |
parent | be1eb4c4d2f4cfe830deea216c8d99e805e59523 (diff) | |
download | wee-slack-3a44517b3d466e857910dbafe2b186c1edf8ca32.tar.gz |
Add nicks without @ prefix to nick completion
This allows you to complete nicks without a leading @ in buffers we
don't show the nicklist, i.e. the team buffer and thread buffers.
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py index b473149..5821b98 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -1000,6 +1000,7 @@ def nick_completion_cb(data, completion_item, current_buffer, completion): for member in members: user = current_channel.team.users.get(member) if user and not user.deleted: + w.hook_completion_list_add(completion, user.name, 1, w.WEECHAT_LIST_POS_SORT) w.hook_completion_list_add(completion, "@" + user.name, 1, w.WEECHAT_LIST_POS_SORT) return w.WEECHAT_RC_OK |