aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
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 /README.md
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 'README.md')
-rw-r--r--README.md17
1 files changed, 10 insertions, 7 deletions
diff --git a/README.md b/README.md
index bae0de6..205f280 100644
--- a/README.md
+++ b/README.md
@@ -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