diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-04-22 18:20:43 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-04-22 18:20:43 +0200 |
commit | 34d7316d3305f4204a0e0634478995d0cf9e340d (patch) | |
tree | b3138b8fad1bc962be41142520b97a1d69493ab5 /wee_slack.py | |
parent | 47af4ac2687967ceda1d4112536819275c4d5b1c (diff) | |
download | wee-slack-34d7316d3305f4204a0e0634478995d0cf9e340d.tar.gz |
Fix completion for /slack
Completion for our commands can't use || because they can be used as
subcommands for /slack and weechat doesn't support multiple templates
with the same subcommand. See https://github.com/weechat/weechat/issues/1481
This makes the completion for /reply slightly incorrect. It now allows
you to complete two thread arguments when not using -alsochannel. To fix
that, we would have to write a custom completion function. It's not
hard, but I'm not sure it's worth the effort for such a small detail.
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index a21e4bb..23330ca 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -4313,7 +4313,7 @@ def command_reply(data, current_buffer, args): channel.send_message(text, request_dict_ext={'thread_ts': parent_id, 'reply_broadcast': broadcast}) return w.WEECHAT_RC_OK_EAT -command_reply.completion = '-alsochannel %(threads) %-||%(threads) %-' +command_reply.completion = '%(threads)|-alsochannel %(threads) %-' @slack_buffer_required |