Skip to content

A weechat plugin to re-print a user's messages with corrections applied when they send a correction string (ex: s/typo/replacement).

Notifications You must be signed in to change notification settings

johnson-christopher/apply_corrections

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

apply_corrections

A weechat plugin to re-print a user's messages with corrections applied when they send a correction string (ex: s/typo/replacement).

options

check_every

Interval, in seconds, between each check for expired messages. If set to 0 no check will be performed and all messages will be saved indefinitely.

data_timeout

Time, in seconds, before a message is expired. If set to 0 messages will never expire.

message_limit

Number of messages to store per nick. If set to 0 all messages will be saved until they expire.

print_format

Format string for the printed corrections (Default: "[nick]: [corrected]"). Variables allowed:

  • [nick]: The nick of the person who sent the messages.
  • [corrected]: The corrected text of the previous message(s).
  • [correction]: The correction (format: s/typo/replacement).
  • [original]: The original message before correction.
  • [pattern]: The "typo" portion of the correction.
  • [replacement]: The "replacement" portion of the correction.
  • [timestamp]: The timestamp of the original message.

print_limit

Maximum number of lines to correct and print to the buffer. If set to 0 all lines that match the pattern will be printed.

Note: Setting check_every, data_timeout, message_limit, or some combination thereof to 0's will eat a lot of memory very quickly as it will drastically increase the size of the dictionary holding previous messages. Likewise, setting print_limit to 0 with a large number of saved messages will quickly fill your screen with a bunch of stuff should someone submit a generic enough correction string.

About

A weechat plugin to re-print a user's messages with corrections applied when they send a correction string (ex: s/typo/replacement).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages