diff options
-rw-r--r-- | README.md | 17 | ||||
-rw-r--r-- | wee_slack.py | 12 |
2 files changed, 16 insertions, 13 deletions
@@ -286,15 +286,18 @@ In addition, `R` will prepare a `/reply id` and `D` will delete the message (pro Please see weechat’s documentation about [how to use the cursor mode](https://weechat.org/files/doc/stable/weechat_user.en.html#key_bindings_cursor_context) or [adapt the bindings](https://weechat.org/files/doc/stable/weechat_user.en.html#command_weechat_key) to your preference. -Default: +Default key bindings: ``` -/key bindctxt mouse @chat(python.*.slack.com.*):button2 hsignal:slack_mouse -/key bindctxt cursor @chat(python.*.slack.com.*):D hsignal:slack_cursor_delete -/key bindctxt cursor @chat(python.*.slack.com.*):L hsignal:slack_cursor_linkarchive -/key bindctxt cursor @chat(python.*.slack.com.*):M hsignal:slack_cursor_message -/key bindctxt cursor @chat(python.*.slack.com.*):R hsignal:slack_cursor_reply -/key bindctxt cursor @chat(python.*.slack.com.*):T hsignal:slack_cursor_thread +/key bindctxt mouse @chat(python.*):button2 hsignal:slack_mouse +/key bindctxt cursor @chat(python.*):D hsignal:slack_cursor_delete +/key bindctxt cursor @chat(python.*):L hsignal:slack_cursor_linkarchive +/key bindctxt cursor @chat(python.*):M hsignal:slack_cursor_message +/key bindctxt cursor @chat(python.*):R hsignal:slack_cursor_reply +/key bindctxt cursor @chat(python.*):T hsignal:slack_cursor_thread ``` + +Note that if these keys are already defined, they will not be overwritten by wee-slack. In that case, you will have to define your own key bindings by running the above commands modified to your liking. + hsignals `slack_mouse` and `slack_cursor_message` currently have the same meaning but may be subject to evolutions. Removing a team 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") |