weechat-matrix-protocol-script
weechat-matrix-protocol-script copied to clipboard
Prefix buffer names with "matrix."
I'm using buffers.pl which supports indentation to show hierarchy:
1:weechat
2:freenode
3: #python
4: #weechat
5:matrix
6:#tmtest
However, as you can see this doesn't happen for Matrix channel. I think this is because there is no matrix.
prefix in the buffer name:
[1] core.weechat (notify: all)
[2] irc.server.freenode (notify: all)
[3] irc.freenode.#python (notify: all)
[4] irc.freenode.#weechat (notify: all)
[5] lua.matrix (notify: all)
[6] lua.#tmtest (notify: all)
I currently set the server parameter on the buffer to matrix. This works fine for glowing bear I think, which also has hierarchy for buffers. I think maybe buffers.pl has made some assumptions for buffers based on how IRC plugin does it. Maybe putting a matrix in there would help. I don't personally use buffers.pl so I'm not confident on how it works, but I believe it already has all the information it needs.
Although I don't see the harm in putting matrix between lua and buffername, so I will consider adding that soon-ish and see if it helps.