doc: add more info about line, print and modifier functions for new lines (plugin API reference)

v2.8-utf8proc
Sébastien Helleu 2018-08-15 09:01:55 +02:00
parent 3bdab1c538
commit d8c7b3fd5e
4 changed files with 83 additions and 24 deletions

View File

@ -9114,13 +9114,20 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "",
_WeeChat ≥ 2.3._
Hook a line printed in a buffer.
Hook a line to be printed in a buffer.
When a line is printed in a buffer, hooks are called in this order:
* <<_hook_line,hook line>> (this hook)
* <<_hook_modifier,hook modifier>>: <<hook_modifier_weechat_print,weechat_print>>
* <<_hook_print,hook print>>
* <<_hook_line,hook line>> (this hook): it can change the buffer, prefix,
message, tags, notify level, … (see below)
* <<_hook_modifier,hook modifier>> "<<hook_modifier_weechat_print,weechat_print>>":
it can change the prefix and message on a buffer with formatted content
* <<_hook_print,hook print>>: called when the line has been added in a buffer
with formatted content (nothing can be changed directly with this hook).
[NOTE]
The "line" hook is the only one among these three hooks that can work on
buffers with free content.
Prototype:
@ -9379,7 +9386,11 @@ hook = weechat.hook_line("", "", "irc_join", "my_line_cb", "")
_Updated in 0.4.3, 1.0, 1.5._
Hook a message printed.
Hook a message printed. It is called when a line has been added in a buffer
with formatted content.
Fore more information on the hooks called when a line is printed, see
<<_hook_line,hook_line>>.
Prototype:
@ -11036,7 +11047,9 @@ List of modifiers used by WeeChat and plugins:
| [[hook_modifier_weechat_print]] weechat_print |
plugin + ";" + buffer_name + ";" + tags |
Message printed. |
New message printed.
New message printed. +
Fore more information on the hooks called when a line is printed, see
<<_hook_line,hook_line>>.
|===
[NOTE]

View File

@ -9290,14 +9290,22 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "",
_WeeChat ≥ 2.3._
Intercepter une ligne affichée dans un tampon.
Intercepter une ligne sur le point d'être affichée dans un tampon.
Lorsqu'une ligne est affichée dans un tampon, les "hooks" suivants sont
appelés dans cet ordre :
* <<_hook_line,hook line>> (ce "hook")
* <<_hook_modifier,hook modifier>>: <<hook_modifier_weechat_print,weechat_print>>
* <<_hook_print,hook print>>
* <<_hook_line,hook line>> (ce "hook") : il peut changer le tampon, préfixe,
message, étiquettes, niveau de notification, … (voir ci-dessous)
* <<_hook_modifier,hook modifier>> "<<hook_modifier_weechat_print,weechat_print>>" :
il peut changer le préfixe et le message sur un tampon avec contenu formaté
* <<_hook_print,hook print>> : appelé quand une ligne a été ajoutée dans un
tampon avec contenu formaté (rien ne peut être changé directement avec ce
"hook").
[NOTE]
The "line" hook is the only one among these three hooks that can work on
buffers with free content.
Prototype :
@ -9566,7 +9574,11 @@ hook = weechat.hook_line("", "", "irc_join", "my_line_cb", "")
_Mis à jour dans la 0.4.3, 1.0, 1.5._
Intercepter un message affiché.
Intercepter un message affiché. Il est appelée quand une ligne a été ajoutée
dans un tampon avec contenu formaté.
Pour plus d'informations sur les "hooks" appelés lorsqu'une ligne est affichée,
voir <<_hook_line,hook_line>>.
Prototype :
@ -11272,7 +11284,9 @@ Liste des modificateurs utilisés par WeeChat et les extensions :
| [[hook_modifier_weechat_print]] weechat_print |
extension + ";" + nom_tampon + ";" + étiquettes |
Message affiché. |
Nouveau message affiché.
Nouveau message affiché. +
Pour plus d'informations sur les "hooks" appelés lorsqu'une ligne est affichée,
voir <<_hook_line,hook_line>>.
|===
[NOTE]

View File

@ -9406,13 +9406,20 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "",
_WeeChat ≥ 2.3._
Hook a line printed in a buffer.
Hook a line to be printed in a buffer.
When a line is printed in a buffer, hooks are called in this order:
* <<_hook_line,hook line>> (this hook)
* <<_hook_modifier,hook modifier>>: <<hook_modifier_weechat_print,weechat_print>>
* <<_hook_print,hook print>>
* <<_hook_line,hook line>> (this hook): it can change the buffer, prefix,
message, tags, notify level, … (see below)
* <<_hook_modifier,hook modifier>> "<<hook_modifier_weechat_print,weechat_print>>":
it can change the prefix and message on a buffer with formatted content
* <<_hook_print,hook print>>: called when the line has been added in a buffer
with formatted content (nothing can be changed directly with this hook).
[NOTE]
The "line" hook is the only one among these three hooks that can work on
buffers with free content.
Prototipo:
@ -9672,7 +9679,13 @@ hook = weechat.hook_line("", "", "irc_join", "my_line_cb", "")
// TRANSLATION MISSING
_Updated in 0.4.3, 1.0, 1.5._
Hook su un messaggio stampato.
// TRANSLATION MISSING
Hook su un messaggio stampato. It is called when a line has been added in
a buffer with formatted content.
// TRANSLATION MISSING
Fore more information on the hooks called when a line is printed, see
<<_hook_line,hook_line>>.
Prototipo:
@ -11472,10 +11485,13 @@ List of modifiers used by WeeChat and plugins:
Contenuto della riga di comando inviata al buffer (testo o comando). |
Nuovo contenuto della riga di comando inviata al buffer.
// TRANSLATION MISSING
| [[hook_modifier_weechat_print]] weechat_print |
plugin + ";" + buffer_name + ";" + tags |
Messaggio stampato. |
Nuovo messaggio stampato.
Nuovo messaggio stampato. +
Fore more information on the hooks called when a line is printed, see
<<_hook_line,hook_line>>.
|===
[NOTE]

View File

@ -9075,14 +9075,21 @@ hook = weechat.hook_connect("", "my.server.org", 1234, 1, 0, "",
_WeeChat ≥ 2.3._
// TRANSLATION MISSING
Hook a line printed in a buffer.
Hook a line to be printed in a buffer.
// TRANSLATION MISSING
When a line is printed in a buffer, hooks are called in this order:
* <<_hook_line,hook line>> (this hook)
* <<_hook_modifier,hook modifier>>: <<hook_modifier_weechat_print,weechat_print>>
* <<_hook_print,hook print>>
* <<_hook_line,hook line>> (this hook): it can change the buffer, prefix,
message, tags, notify level, … (see below)
* <<_hook_modifier,hook modifier>> "<<hook_modifier_weechat_print,weechat_print>>":
it can change the prefix and message on a buffer with formatted content
* <<_hook_print,hook print>>: called when the line has been added in a buffer
with formatted content (nothing can be changed directly with this hook).
[NOTE]
The "line" hook is the only one among these three hooks that can work on
buffers with free content.
プロトタイプ:
@ -9349,7 +9356,13 @@ hook = weechat.hook_line("", "", "irc_join", "my_line_cb", "")
_WeeChat バージョン 0.4.3、1.0、1.5 で更新。_
メッセージの表示をフックする。
// TRANSLATION MISSING
メッセージの表示をフックする。 It is called when a line has been added in
a buffer with formatted content.
// TRANSLATION MISSING
Fore more information on the hooks called when a line is printed, see
<<_hook_line,hook_line>>.
プロトタイプ:
@ -11003,10 +11016,13 @@ WeeChat とプラグインが使う修飾子のリスト:
バッファに送信するコマンドラインの内容 (テキストまたはコマンド) |
バッファに送信するコマンドラインの新しい内容
// TRANSLATION MISSING
| [[hook_modifier_weechat_print]] weechat_print |
plugin + ";" + buffer_name + ";" + tags |
表示されたメッセージ |
表示される新しいメッセージ
表示される新しいメッセージ +
Fore more information on the hooks called when a line is printed, see
<<_hook_line,hook_line>>.
|===
[NOTE]