Skip to content

Instantly share code, notes, and snippets.

@endreszabo
Created April 22, 2022 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save endreszabo/5cc5972a1820786557af95b870feb36b to your computer and use it in GitHub Desktop.
Save endreszabo/5cc5972a1820786557af95b870feb36b to your computer and use it in GitHub Desktop.
Automatikus targyeset mutato script
weechat::register(
"targyeset",
"Automatikus targyeset",
"1.0",
"GPL2",
"Script ami segit latszatni az automatikus targyeset",
"", ""
);
sub sendtext_data {
my ($data, $modifier, $modifier_data, $text) = @_;
return $text if weechat::string_is_command_char($text) == 1;
$text =~ s/(t[aoeui]t([ \.,]|$))/sprintf("%s%s%s", weechat::color('100'), $1, weechat::color('reset'))/ge;
return "$text";
}
weechat::hook_modifier('input_text_display', 'sendtext_data', '');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment