aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2018-11-11 14:00:37 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2018-11-11 14:10:43 +0100
commit22b9dfabad8ac2871c032e50b9a0d22a92d185e1 (patch)
treef197f9ed72599d6069bae45ddff8ca3b1406e3b5 /wee_slack.py
parentff36ee82b8cb0fc6c6ac7294fcac0a5a487572d6 (diff)
downloadwee-slack-22b9dfabad8ac2871c032e50b9a0d22a92d185e1.tar.gz
Bind cursor/mouse commands to all python buffers
If `short_buffer_names` is set, the buffer names doesn't contain slack, so the bindings that was set didn't work. In order to make the bindings work for these users by default, bind to all python buffers instead, because we are not able to differantiate these buffers from other python buffers. wee-slack won't overwrite existing bindings so this won't break anyones setup. Users with these bindings already set will just have to set the bindings themselves. None of the registered weechat script uses these bindings, so this is most likely much fewer users than those that have `short_buffer_names` set.
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 85b9469..37de65e 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -3906,14 +3906,14 @@ def setup_hooks():
w.hook_completion("emoji", "complete :emoji: for slack", "emoji_completion_cb", "")
w.key_bind("mouse", {
- "@chat(python.*.slack.com.*):button2": "hsignal:slack_mouse",
+ "@chat(python.*):button2": "hsignal:slack_mouse",
})
w.key_bind("cursor", {
- "@chat(python.*.slack.com.*):D": "hsignal:slack_cursor_delete",
- "@chat(python.*.slack.com.*):L": "hsignal:slack_cursor_linkarchive",
- "@chat(python.*.slack.com.*):M": "hsignal:slack_cursor_message",
- "@chat(python.*.slack.com.*):R": "hsignal:slack_cursor_reply",
- "@chat(python.*.slack.com.*):T": "hsignal:slack_cursor_thread",
+ "@chat(python.*):D": "hsignal:slack_cursor_delete",
+ "@chat(python.*):L": "hsignal:slack_cursor_linkarchive",
+ "@chat(python.*):M": "hsignal:slack_cursor_message",
+ "@chat(python.*):R": "hsignal:slack_cursor_reply",
+ "@chat(python.*):T": "hsignal:slack_cursor_thread",
})
w.hook_hsignal("slack_mouse", "line_event_cb", "message")