doc: add column for min WeeChat version in function hook_modifier (plugin API reference)

This commit is contained in:
Sébastien Helleu 2021-07-03 21:42:45 +02:00
parent ab916d3d90
commit 134f4374f8
5 changed files with 68 additions and 85 deletions

View File

@ -11461,11 +11461,11 @@ Return value:
List of modifiers used by WeeChat and plugins:
[width="100%",cols="^2,3,4,4",options="header"]
[width="100%",cols="^2,^1,3,4,4",options="header"]
|===
| Modifier | Modifier data | String | Output
| Modifier | Min WeeChat | Modifier data | String | Output
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ | |
Server name |
Content of message received from IRC server (before charset decoding). +
*Warning:* the string may contain invalid UTF-8 data; use only for raw
@ -11473,58 +11473,54 @@ List of modifiers used by WeeChat and plugins:
Modifier <<hook_modifier_irc_in2_xxx,irc_in2_xxx>> is recommended instead. |
New content of message.
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ +
_(WeeChat ≥ 0.3.5)_ |
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5 |
Server name |
Content of message received from IRC server (after charset decoding). |
New content of message.
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ +
_(WeeChat ≥ 0.3.7)_ |
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7 |
Server name |
Content of message about to be sent to IRC server before automatic split
(to fit in 512 bytes by default). |
New content of message.
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ | |
Server name |
Content of message about to be sent to IRC server after automatic split
(to fit in 512 bytes by default). |
New content of message.
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ | |
String with window pointer (eg: "0x1234abcd") |
Empty string. |
"1" to display bar, "0" to hide it.
| [[hook_modifier_history_add]] history_add +
_(WeeChat ≥ 0.3.2)_ |
| [[hook_modifier_history_add]] history_add | 0.3.2 |
String with buffer pointer (eg: "0x1234abcd") |
Content of command line to add in command history (buffer and global). |
String added to command history.
| [[hook_modifier_input_text_content]] input_text_content |
| [[hook_modifier_input_text_content]] input_text_content | |
String with buffer pointer (eg: "0x1234abcd") |
Content of command line. |
New content of command line.
| [[hook_modifier_input_text_display]] input_text_display |
| [[hook_modifier_input_text_display]] input_text_display | |
String with buffer pointer (eg: "0x1234abcd") |
Content of command line, without cursor tag. |
New string, for display only (command line is not changed).
| [[hook_modifier_input_text_display_with_cursor]] input_text_display_with_cursor |
| [[hook_modifier_input_text_display_with_cursor]] input_text_display_with_cursor | |
String with buffer pointer (eg: "0x1234abcd") |
Content of command line, with cursor tag. |
New string, for display only (command line is not changed).
| [[hook_modifier_input_text_for_buffer]] input_text_for_buffer +
_(WeeChat ≥ 0.3.7)_ |
| [[hook_modifier_input_text_for_buffer]] input_text_for_buffer | 0.3.7 |
String with buffer pointer (eg: "0x1234abcd") |
Content of command line sent to buffer (text or command). |
New content of command line sent to buffer.
| [[hook_modifier_weechat_print]] weechat_print |
| [[hook_modifier_weechat_print]] weechat_print | |
buffer pointer (eg: "0x1234abcd") + ";" + tags ^(3)^ |
Message printed. |
New message printed. +

View File

@ -11704,11 +11704,11 @@ Valeur de retour :
Liste des modificateurs utilisés par WeeChat et les extensions :
[width="100%",cols="^2,3,4,4",options="header"]
[width="100%",cols="^2,^1,3,4,4",options="header"]
|===
| Modificateur | Données du modificateur | Chaîne | Sortie
| Modificateur | WeeChat mini | Données du modificateur | Chaîne | Sortie
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ | |
Nom de serveur |
Contenu du message reçu du serveur IRC (avant décodage du jeu de caractères). +
*Attention :* la chaîne peut contenir des données invalides UTF-8 ; à utiliser
@ -11717,61 +11717,57 @@ Liste des modificateurs utilisés par WeeChat et les extensions :
place de celui-ci. |
Nouveau contenu du message.
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ +
_(WeeChat ≥ 0.3.5)_ |
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5 |
Nom de serveur |
Contenu du message reçu du serveur IRC (après décodage du jeu de caractères). |
Nouveau contenu du message.
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ +
_(WeeChat ≥ 0.3.7)_ |
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7 |
Nom de serveur |
Contenu du message qui va être envoyé au serveur IRC avant découpage automatique
(pour tenir dans les 512 octets par défaut). |
Nouveau contenu du message.
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ | |
Nom de serveur |
Contenu du message qui va être envoyé au serveur IRC après découpage automatique
(pour tenir dans les 512 octets par défaut). |
Nouveau contenu du message.
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ | |
Chaîne avec un pointeur vers la fenêtre (par exemple : "0x1234abcd") |
Chaîne vide. |
"1" pour afficher la barre, "0" pour la cacher.
| [[hook_modifier_history_add]] history_add +
_(WeeChat ≥ 0.3.2)_ |
| [[hook_modifier_history_add]] history_add | 0.3.2 |
Chaîne avec un pointeur vers le tampon (par exemple : "0x1234abcd") |
Contenu de la ligne de commande à ajouter à l'historique des commandes
(tampon et global). |
Chaîne ajoutée à l'historique des commandes.
| [[hook_modifier_input_text_content]] input_text_content |
| [[hook_modifier_input_text_content]] input_text_content | |
Chaîne avec un pointeur vers le tampon (par exemple : "0x1234abcd") |
Contenu de la ligne de commande. |
Nouvelle chaîne pour la ligne de commande.
| [[hook_modifier_input_text_display]] input_text_display |
| [[hook_modifier_input_text_display]] input_text_display | |
Chaîne avec un pointeur vers le tampon (par exemple : "0x1234abcd") |
Contenu de la ligne de commande, sans le code du curseur dedans. |
Nouvelle chaîne, pour affichage seulement (la ligne de commande n'est pas
modifiée).
| [[hook_modifier_input_text_display_with_cursor]] input_text_display_with_cursor |
| [[hook_modifier_input_text_display_with_cursor]] input_text_display_with_cursor | |
Chaîne avec un pointeur vers le tampon (par exemple : "0x1234abcd") |
Contenu de la ligne de commande, avec le code du curseur dedans. |
Nouvelle chaîne, pour affichage seulement (la ligne de commande n'est pas
modifiée).
| [[hook_modifier_input_text_for_buffer]] input_text_for_buffer +
_(WeeChat ≥ 0.3.7)_ |
| [[hook_modifier_input_text_for_buffer]] input_text_for_buffer | 0.3.7 |
Chaîne avec un pointeur vers le tampon (par exemple : "0x1234abcd") |
Contenu de la ligne de commande envoyée au tampon (texte ou commande). |
Nouveau contenu de la ligne de commande envoyée au tampon.
| [[hook_modifier_weechat_print]] weechat_print |
| [[hook_modifier_weechat_print]] weechat_print | |
pointeur vers le tampon (par exemple : "0x1234abcd") + ";" + étiquettes ^(3)^ |
Message affiché. |
Nouveau message affiché. +

View File

@ -11922,12 +11922,13 @@ Valore restituito:
List of modifiers used by WeeChat and plugins:
[width="100%",cols="^2,3,4,4",options="header"]
[width="100%",cols="^2,^1,3,4,4",options="header"]
|===
| Modificatore | Dati modificatore | Stringa | Output
// TRANSLATION MISSING
| Modificatore | Min WeeChat | Dati modificatore | Stringa | Output
// TRANSLATION MISSING
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ | |
Nome server |
Contenuto del messaggio ricevuto dal server IRC (prima della codifica del set caratteri). +
*Warning:* the string may contain invalid UTF-8 data; use only for raw
@ -11935,67 +11936,63 @@ List of modifiers used by WeeChat and plugins:
Modifier <<hook_modifier_irc_in2_xxx,irc_in2_xxx>> is recommended instead. |
Nuovo contenuto del messaggio.
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ +
_(WeeChat ≥ 0.3.5)_ |
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5 |
Nome server |
Contenuto del messaggio ricevuto dal server IRC (dopo la codifica del set caratteri). |
Nuovo contenuto del messaggio.
// TRANSLATION MISSING
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ +
_(WeeChat ≥ 0.3.7)_ |
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7 |
Nome server |
Content of message about to be sent to IRC server before automatic split
(to fit in 512 bytes by default). |
Nuovo contenuto del messaggio.
// TRANSLATION MISSING
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ | |
Nome server |
Content of message about to be sent to IRC server after automatic split
(to fit in 512 bytes by default). |
Nuovo contenuto del messaggio.
// TRANSLATION MISSING
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ | |
Stringa con puntatore alla finestra (eg: "0x1234abcd") |
Stringa vuota. |
"1" per visualizzare la barra, "0" per nasconderla.
// TRANSLATION MISSING
| [[hook_modifier_history_add]] history_add +
_(WeeChat ≥ 0.3.2)_ |
| [[hook_modifier_history_add]] history_add | 0.3.2 |
Stringa con puntatore al buffer (eg: "0x1234abcd") |
Contenuto della riga di comando da aggiungere nella cronologia comandi (buffer e globale). |
Stringa aggiunta alla cronologia comandi.
// TRANSLATION MISSING
| [[hook_modifier_input_text_content]] input_text_content |
| [[hook_modifier_input_text_content]] input_text_content | |
Stringa con puntatore al buffer (eg: "0x1234abcd") |
Contenuto della riga di comando. |
Nuovo contenuto della riga di comando.
// TRANSLATION MISSING
| [[hook_modifier_input_text_display]] input_text_display |
| [[hook_modifier_input_text_display]] input_text_display | |
Stringa con puntatore al buffer (eg: "0x1234abcd") |
Contenuto della riga di comando, senza tag al cursore. |
Nuova stringa, solo da mostrare (la riga di comando non viene modificata).
// TRANSLATION MISSING
| [[hook_modifier_input_text_display_with_cursor]] input_text_display_with_cursor |
| [[hook_modifier_input_text_display_with_cursor]] input_text_display_with_cursor | |
Stringa con puntatore al buffer (eg: "0x1234abcd") |
Contenuto della riga di comando, con tag al cursore. |
Nuova stringa, solo da mostrare (la riga di comando non viene modificata).
// TRANSLATION MISSING
| [[hook_modifier_input_text_for_buffer]] input_text_for_buffer +
_(WeeChat ≥ 0.3.7)_ |
| [[hook_modifier_input_text_for_buffer]] input_text_for_buffer | 0.3.7 |
Stringa con puntatore al buffer (eg: "0x1234abcd") |
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 |
| [[hook_modifier_weechat_print]] weechat_print | |
buffer pointer (eg: "0x1234abcd") + ";" + tags ^(3)^ |
Messaggio stampato. |
Nuovo messaggio stampato. +

View File

@ -11489,12 +11489,13 @@ struct t_hook *weechat_hook_modifier (const char *modifier,
WeeChat とプラグインが使う修飾子のリスト:
[width="100%",cols="^2,3,4,4",options="header"]
[width="100%",cols="^2,^1,3,4,4",options="header"]
|===
| 修飾子 | 修飾子データ | 文字列 | 出力
// TRANSLATION MISSING
| 修飾子 | Min WeeChat | 修飾子データ | 文字列 | 出力
// TRANSLATION MISSING
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ | |
サーバ名 |
IRC サーバから受信したメッセージの内容 (文字セットをデコードする前) +
*Warning:* the string may contain invalid UTF-8 data; use only for raw
@ -11502,65 +11503,61 @@ WeeChat とプラグインが使う修飾子のリスト:
Modifier <<hook_modifier_irc_in2_xxx,irc_in2_xxx>> is recommended instead. |
メッセージの新しい内容
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ +
_(WeeChat バージョン 0.3.5 以上で利用可)_ |
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5 |
サーバ名 |
IRC サーバから受信したメッセージの内容 (文字セットをデコードした後) |
メッセージの新しい内容
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ +
_(WeeChat バージョン 0.3.7 以上で利用可)_ |
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7 |
サーバ名 |
IRC サーバに送信するメッセージの内容
(自動分割前、自動分割はデフォルトでメッセージを 512 バイト内に収まるように分割します)。|
メッセージの新しい内容
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ | |
サーバ名 |
IRC サーバに送信するメッセージの内容
(自動分割後、自動分割はデフォルトでメッセージを 512 バイト内に収まるように分割します)。|
メッセージの新しい内容
// TRANSLATION MISSING
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ | |
ウィンドウへのポインタの文字列 (eg: "0x1234abcd") |
空文字列 |
バーを表示する場合は "1"、隠す場合は "0"
// TRANSLATION MISSING
| [[hook_modifier_history_add]] history_add +
_(WeeChat バージョン 0.3.2 以上で利用可)_ |
| [[hook_modifier_history_add]] history_add | 0.3.2 |
バッファへのポインタの文字列 (eg: "0x1234abcd") |
コマンド履歴に追加するコマンドラインの内容 (バッファとグローバル履歴) |
コマンド履歴に追加した文字列
// TRANSLATION MISSING
| [[hook_modifier_input_text_content]] input_text_content |
| [[hook_modifier_input_text_content]] input_text_content | |
バッファへのポインタの文字列 (eg: "0x1234abcd") |
コマンドラインの内容 |
コマンドラインの新しい内容
// TRANSLATION MISSING
| [[hook_modifier_input_text_display]] input_text_display |
| [[hook_modifier_input_text_display]] input_text_display | |
バッファへのポインタの文字列 (eg: "0x1234abcd") |
カーソルタグを含まないコマンドラインの内容 |
新しい文字列、表示のみ (コマンドラインは変化しない)
// TRANSLATION MISSING
| [[hook_modifier_input_text_display_with_cursor]] input_text_display_with_cursor |
| [[hook_modifier_input_text_display_with_cursor]] input_text_display_with_cursor | |
バッファへのポインタの文字列 (eg: "0x1234abcd") |
カーソルタグを含むコマンドラインの内容 |
新しい文字列、表示のみ (コマンドラインは変化しない)
// TRANSLATION MISSING
| [[hook_modifier_input_text_for_buffer]] input_text_for_buffer +
_(WeeChat バージョン 0.3.7 以上で利用可)_ |
| [[hook_modifier_input_text_for_buffer]] input_text_for_buffer | 0.3.7 |
バッファへのポインタの文字列 (eg: "0x1234abcd") |
バッファに送信するコマンドラインの内容 (テキストまたはコマンド) |
バッファに送信するコマンドラインの新しい内容
// TRANSLATION MISSING
| [[hook_modifier_weechat_print]] weechat_print |
| [[hook_modifier_weechat_print]] weechat_print | |
buffer pointer (eg: "0x1234abcd") + ";" + tags ^(3)^ |
表示されたメッセージ |
表示される新しいメッセージ +

View File

@ -11062,11 +11062,12 @@ struct t_hook *weechat_hook_modifier (const char *modifier,
Листа модификатора које користе програм WeeChat и додаци:
[width="100%", cols="^2,3,4,4", options="header"]
[width="100%", cols="^2,^1,3,4,4", options="header"]
|===
| Модификатор | Подаци модификатора | Стринг | Излаз
// TRANSLATION MISSING
| Модификатор | Min WeeChat | Подаци модификатора | Стринг | Излаз
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ |
| [[hook_modifier_irc_in_xxx]] irc_in_xxx ^(1)^ | |
Име сервера |
Садржај поруке примљене са IRC сервера (пре декодирања скупа карактера). +
*Упозорење:* стринг може да садржи неважеће UTF-8 податке; користите га само
@ -11074,58 +11075,54 @@ struct t_hook *weechat_hook_modifier (const char *modifier,
Уместо њега се препоручује употреба <<hook_modifier_irc_in2_xxx,irc_in2_xxx>>. |
Нови садржај поруке.
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ +
_(WeeChat ≥ 0.3.5)_ |
| [[hook_modifier_irc_in2_xxx]] irc_in2_xxx ^(1)^ | 0.3.5 |
Име сервера |
Садржај поруке примљене са IRC сервера (након декодирања скупа карактера). |
Нови садржај поруке.
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ +
_(WeeChat ≥ 0.3.7)_ |
| [[hook_modifier_irc_out1_xxx]] irc_out1_xxx ^(1)^ | 0.3.7 |
Име сервера |
Садржај поруке које треба да се пошаље IRC серверу пре аутоматске поделе
(да стане у 512 подразумевано). |
Нови садржај поруке.
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ |
| [[hook_modifier_irc_out_xxx]] irc_out_xxx ^(1)^ | |
Име сервера |
Садржај поруке које треба да се пошаље IRC серверу након аутоматске поделе
(да стане у 512 подразумевано). |
Нови садржај поруке.
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ |
| [[hook_modifier_bar_condition_yyy]] bar_condition_yyy ^(2)^ | |
Стринг са показивачем на прозор (нпр: "0x1234abcd") |
Празан стринг. |
"1" да се прикаже трака, "0" да се сакрије.
| [[hook_modifier_history_add]] history_add +
_(WeeChat ≥ 0.3.2)_ |
| [[hook_modifier_history_add]] history_add | 0.3.2 |
Стринг са показивачем на бафер (нпр: "0x1234abcd") |
Садржај командне линије која треба да се дода у историју команди (бафера и глобалну). |
Стринг који се додаје у историју команди.
| [[hook_modifier_input_text_content]] input_text_content |
| [[hook_modifier_input_text_content]] input_text_content | |
Стринг са показивачем на бафер (нпр: "0x1234abcd") |
Садржај командне линије. |
Нови садржај командне линије.
| [[hook_modifier_input_text_display]] input_text_display |
| [[hook_modifier_input_text_display]] input_text_display | |
Стринг са показивачем на бафер (нпр: "0x1234abcd") |
Садржај командне линије, без ознаке курсора. |
Нови стринг, само за приказ (командна линија се не мења).
| [[hook_modifier_input_text_display_with_cursor]] input_text_display_with_cursor |
| [[hook_modifier_input_text_display_with_cursor]] input_text_display_with_cursor | |
Стринг са показивачем на бафер (нпр: "0x1234abcd") |
Садржај командне линије, са ознаком курсора. |
Нови стринг, само за приказ (командна линија се не мења).
| [[hook_modifier_input_text_for_buffer]] input_text_for_buffer +
_(WeeChat ≥ 0.3.7)_ |
| [[hook_modifier_input_text_for_buffer]] input_text_for_buffer | 0.3.7 |
Стринг са показивачем на бафер (нпр: "0x1234abcd") |
Садржај командне линије која се шаље у бафер (текст или команда). |
Нови садржај командне линије који се шаље у бафер.
| [[hook_modifier_weechat_print]] weechat_print |
| [[hook_modifier_weechat_print]] weechat_print | |
показивач на бафер (нпр: "0x1234abcd") + ";" + ознаке ^(3)^ |
Порука која се исписује. |
Нова порука која се исписује. +