diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2019-10-01 18:40:35 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-10-01 18:40:35 +0200 |
commit | c104c8bf516ee650c3a009fff047d93b273f615a (patch) | |
tree | 6ecf79c08e60d4838d0e3dfe50462c0fa9aaba77 /README.md | |
parent | eb2d44760d4f2d4b12888bf98e6a73fc1486c919 (diff) | |
download | wee-slack-c104c8bf516ee650c3a009fff047d93b273f615a.tar.gz |
Add documentation for how to send multiple lines
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -269,6 +269,46 @@ Show channel name in hotlist after activity /set weechat.look.hotlist_names_level 14 ``` +FAQ +--- + +### How do I send messages with multiple lines? + +You have to install a script to be able to send multiple lines, e.g. the +`multiline.pl` script with: `/script install multiline.pl` + +By default it will wait for one second after you press enter, and if you type +another character in that period, it will insert the character on a newline, +and if you don't type anything it will send the message. If you rather want to +use a separate key to insert a newline, and have the enter key send the message +immediately, you can run these commands: + +``` +/set plugins.var.perl.multiline.magic_paste_only on +/key bind meta-ctrl-M /input insert \n +``` + +This will bind meta-enter (which is usually alt-enter) to insert the newline. +Replace `meta-ctrl-M` with something else if you want to use a different key +combination. + +The `multiline.pl` script will also let you edit pasted text which incudes +newlines before you send the message. If this is not working, you may try to +run the commands below. At least in the `kitty` terminal, it won't work by +default, but should work after running these commands: + +``` +/set plugins.var.perl.multiline.weechat_paste_fix "off" +/key bind ctrl-J /input magic_enter +``` + +You may also want to disable weechats paste prompt, since that is not necessary +when using `multiline.pl`: + +``` +/set weechat.look.paste_max_lines -1 +``` + Development ----------- |