Autocorrect

This plugin lets you perform simple replacements on the last message.

Usage

Note

the /, #, !, : and ; chars can be used as separators, even if the examples only use /

Regex replacement

Once the plugin is loaded, any message matching the following regex:

^s/(.+?)/(.*?)(/|/g)?$

will be interpreted as a regex replacement, and the substitution will be applied to the last sent message.

For example, if you sent the message:

This tab lists all public rooms on a MUC service. It is currently very limited but will be improved in the future. There currently is no way to search a room.

And you now want to replace “MUC” with “multi-user chat”, you input:

s/MUC/multi-user chat

And poezio will correct the message for you.

Raw string replacement

Once the plugin is loaded, any message matching the following regex:

^r/(.+?)/(.*?)(/|/g)?$

will be interpreted as a replacement, and the substitution will be applied to the last send message.

This variant is useful if you don’t want to care about regular expressions (and you do not want to have to escape stuff like space or backslashes).