aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-05-10 13:30:29 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-05-10 13:30:29 +0200
commit445be0fd79bee350449ee42e87251fd64cbdce48 (patch)
treefff1c20b1fd4e5f85992a1a2b456697354846ef4 /README.md
parent8d3cbb892c20dbd5a01cfafa590b1e8ff2d59d5a (diff)
downloadwee-slack-445be0fd79bee350449ee42e87251fd64cbdce48.tar.gz
Document all supported regex flags
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index d17753c..54017b0 100644
--- a/README.md
+++ b/README.md
@@ -156,9 +156,12 @@ Modify 3rd previous message using regex:
3s/old text/new text/
```
-Replace all instances of text in previous message using regex:
+The regex also supports the flags `g` for replacing all instances, `i` for
+ignoring case, `m` for making `^` and `$` match the start/end of each line and
+`s` for making `.` match a newline too. Use them by appending one or more of
+them to the regex:
```
-s/old text/new text/g
+s/old text/new text/gi
```
Delete previous message:
@@ -227,11 +230,11 @@ If mouse mode is enabled, the default behavior when right-clicking on a message
It can also be used as an argument to the `/slack linkarchive` command.
In cursor mode, the `M` key achieves the same result (memo: the default for weechat is to paste the message with `m`, `M` simply copies the id).
-In addition, `R` will prepare a `/reply id` and `D` will delete the message (provided it’s yours).
+In addition, `R` will prepare a `/reply id` and `D` will delete the message (provided it's yours).
`T` will open the thread associated to a message, equivalent to `/thread id`
`L` will call the `/slack linkarchive` command behind the hood and paste it to the current input.
-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.
+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 key bindings:
```