Wee-slack: Feature request: tab completion of slack emoji

Created on 12 Mar 2016  路  10Comments  路  Source: wee-slack/wee-slack

Hitting tab after a ":" or ":partialword" should cycle through emoji from the supported list.

Most helpful comment

Just for others who may run into this - a /python reload was necessary for me after following instructions in the README to get weechat to pick up on the tab completions.

All 10 comments

I started on this in weemoji but didn't have any success with getting tab completion working for some reason. It could use a second set of eyes if it makes sense there, or I wouldn't mind moving it to here.

:eyes:

It would be nice if this feature took the way you can add reactions into account as well, so it works when you start to type a reaction, not only when you type a standalone emoji.

Examples of typing a reaction:

+:smile:
2+:smile:
-:smile:
2-:smile

This script does emoji completition, but not all slack aliases are supported I suspect, but I guess could be added: https://weechat.org/files/scripts/pending/emoji.lua

This has been mostly added in 1.0-RC1. One needs to symlink/copy weemoji.json into ~/.weechat, and append |%(emoji) to weechat.completion.default_template, I believe.

I can confirm that the above instructions worked for me.

Instructions for enabling this has now been added in the readme with PR #437, so I'm closing this. My request for it to work for reactions still stands though, but I think that's more difficult to solve.

Just for others who may run into this - a /python reload was necessary for me after following instructions in the README to get weechat to pick up on the tab completions.

@trygveaa I think that /python reload line that @wohali suggested should go in the docs, to avoid confusion on why isn't it working when following the docs

@skrat: Done.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SevereOverfl0w picture SevereOverfl0w  路  3Comments

tuananh picture tuananh  路  9Comments

simonsmith picture simonsmith  路  5Comments

tedwardd picture tedwardd  路  7Comments

JanKoppe picture JanKoppe  路  6Comments