Yesterday I wrote my first post about using Slack with WeeChat. If you
haven't gone and read that yet I encourage you to do so before reading
this. I may make references to some information in there. This post
will primarily talk about some of the settings I changed and
additional plugins I installed to improve the overall experience using
Slack inside of WeeChat.
The first thing that I wanted to fix after installing wee-slack.py was
emoji tab completion. We have a heavy emoji use culture in the office
and the ability to tab complete a visual expression behind the intent
of my words is of the utmost importance /s
The wee-slack project provides a very easy way to extend the tab
completion. Inside of the wee-slack project repository you'll find a
file called "weemoji.json". This file can be placed inside of your
$HOME/.weechat directory. After that, add "|%(emoji)" to the end of
weechat.completion.default_template in the weechat settings (you can
use the /set command inside of weechat or set this in the
weechat.conf manually).
Another thing that I wanted was for innactive private messages to
purge from the channel buffer after a period of innactivity. There is
a plugin for weechat called "buffer_autoclose.py" [1]. This plugin,
when enabled, will close any private message buffer that does not have
any unread messages in it that has been innactive for a specified
amount of time (default: 30m).
Lastely, I wanted a faster way to switch between buffers. /buffer was
too much for me to want to type so I found go.py [2]. Installing this
enable the /go command which pretty much behaves the same way as
/buffer but is easier to remember and faster to type.
If you're running an older version of WeeChat (earlier than 1.4 I
believe) you'll probably also want buffers.pl [3]. Buffers.pl provides
a list of all of your channel and private message buffers. In newer
version of WeeChat buflist is loaded and enabled by default so
buffers.pl is no longer necessary (but maybe more configurable, I
haven't checked).
That's all I've got for tonight. Today I found some caveats with the
wee-slack project and issues I encountered that you might want to know
about. I write up the details on that tomorrow. Until then, happy
hacking and good night.
HTML [1] buffer_autoclose.py
HTML [2] go.py
HTML [3] buffers.pl