diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 8 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.adoc | 8 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 10 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 11 | ||||
-rw-r--r-- | doc/sr/weechat_plugin_api.sr.adoc | 11 |
5 files changed, 33 insertions, 15 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 9a3b67636..847034a3d 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -14291,9 +14291,9 @@ weechat.prnt(weechat.current_buffer(), "Text on current buffer") ==== buffer_search -_Updated in 1.0._ +_Updated in 1.0, 4.3.0._ -Search a buffer by plugin and/or name. +Search a buffer by plugin/name, full name or unique identifier (`id`). Prototype: @@ -14305,10 +14305,11 @@ struct t_gui_buffer *weechat_buffer_search (const char *plugin, Arguments: -* _plugin_: name of plugin, following special value is allowed: +* _plugin_: name of plugin, following special values are allowed: ** `+==+`: the name used is the buffer full name (for example: `irc.libera.#weechat` instead of `libera.#weechat`) _(WeeChat ≥ 1.0)_ +** `+==id+`: the name used is the buffer unique identifier (`id`) _(WeeChat ≥ 4.3.0)_ * _name_: name of buffer, if it is NULL or empty string, the current buffer is returned (buffer displayed by current window); if the name starts with `(?i)`, the search is case insensitive _(WeeChat ≥ 1.0)_ @@ -14323,6 +14324,7 @@ C examples: ---- struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.libera.#test"); /* WeeChat ≥ 1.0 */ +struct t_gui_buffer *buffer3 = weechat_buffer_search ("==id", "1709797810942688"); /* WeeChat ≥ 4.3.0 */ ---- Script (Python): diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 18d18b049..fcb51f3d3 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -14607,9 +14607,9 @@ weechat.prnt(weechat.current_buffer(), "Texte sur le tampon courant") ==== buffer_search -_Mis à jour dans la 1.0._ +_Mis à jour dans la 1.0, 4.3.0._ -Rechercher un tampon par l'extension et/ou le nom. +Rechercher un tampon par l'extension/nom, nom complet ou identifiant unique (`id`). Prototype : @@ -14621,10 +14621,11 @@ struct t_gui_buffer *weechat_buffer_search (const char *plugin, Paramètres : -* _plugin_ : nom de l'extension, la valeur spéciale suivante est autorisée : +* _plugin_ : nom de l'extension, les valeurs spéciales suivantes sont autorisées : ** `+==+` : le nom utilisé est le nom complet du tampon (par exemple : `irc.libera.#weechat` au lieu de `libera.#weechat`) _(WeeChat ≥ 1.0)_ +** `+==id+` : le nom utilisé est l'identifiant unique du tampon (`id`) _(WeeChat ≥ 4.3.0)_ * _name_ : nom du tampon, si c'est NULL ou une chaîne vide, le tampon courant est retourné (tampon affiché par la fenêtre courante); si le nom commence par `(?i)`, la recherche est insensible à la casse _(WeeChat ≥ 1.0)_ @@ -14639,6 +14640,7 @@ Exemples en C : ---- struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.libera.#test"); /* WeeChat ≥ 1.0 */ +struct t_gui_buffer *buffer3 = weechat_buffer_search ("==id", "1709797810942688"); /* WeeChat ≥ 4.3.0 */ ---- Script (Python) : diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index ba611b731..ab928cc64 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -14948,9 +14948,10 @@ weechat.prnt(weechat.current_buffer(), "Testo sul buffer corrente") ==== buffer_search // TRANSLATION MISSING -_Updated in 1.0._ +_Updated in 1.0, 4.3.0._ -Cerca un buffer tramite plugin e/o nome. +// TRANSLATION MISSING +Search a buffer by plugin/name, full name or unique identifier (`id`). Prototipo: @@ -14963,11 +14964,13 @@ struct t_gui_buffer *weechat_buffer_search (const char *plugin, Argomenti: // TRANSLATION MISSING -* _plugin_: name of plugin, following special value is allowed: +* _plugin_: name of plugin, following special values are allowed: ** `+==+`: the name used is the buffer full name (for example: `irc.libera.#weechat` instead of `libera.#weechat`) _(WeeChat ≥ 1.0)_ // TRANSLATION MISSING +** `+==id+`: the name used is the buffer unique identifier (`id`) _(WeeChat ≥ 4.3.0)_ +// TRANSLATION MISSING * _name_: name of buffer, if it is NULL or empty string, the current buffer is returned (buffer displayed by current window); if the name starts with `(?i)`, the search is case insensitive _(WeeChat ≥ 1.0)_ @@ -14982,6 +14985,7 @@ Esempio in C: ---- struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.libera.#test"); /* WeeChat ≥ 1.0 */ +struct t_gui_buffer *buffer3 = weechat_buffer_search ("==id", "1709797810942688"); /* WeeChat ≥ 4.3.0 */ ---- Script (Python): diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index 6c6461782..e4e1677b1 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -14495,9 +14495,10 @@ weechat.prnt(weechat.current_buffer(), "Text on current buffer") ==== buffer_search -_WeeChat バージョン 1.0 で更新。_ +_WeeChat バージョン 1.0, 4.3.0 で更新。_ -プラグインおよび名前でバッファを検索。 +// TRANSLATION MISSING +Search a buffer by plugin/name, full name or unique identifier (`id`). プロトタイプ: @@ -14509,10 +14510,13 @@ struct t_gui_buffer *weechat_buffer_search (const char *plugin, 引数: -* _plugin_: プラグインの名前、以下の特殊値を使うことができます: +// TRANSLATION MISSING +* _plugin_: name of plugin, following special values are allowed: ** `+==+`: name 引数でバッファの完全な名前を使う (例: `libera.#weechat` ではなく `irc.libera.#weechat`) _(WeeChat バージョン 1.0 以上で利用可)_ +// TRANSLATION MISSING +** `+==id+`: the name used is the buffer unique identifier (`id`) _(WeeChat ≥ 4.3.0)_ * _name_: バッファの名前、NULL または空文字列の場合、現在のバッファ (現在のウィンドウに表示されているバッファ) を返す; 名前が `(?i)` で始まる場合、検索は大文字小文字を区別せずに検索 _(WeeChat バージョン 1.0 以上で利用可)_ @@ -14527,6 +14531,7 @@ C 言語での使用例: ---- struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.libera.#test"); /* WeeChat バージョン 1.0 以上で利用可 */ +struct t_gui_buffer *buffer3 = weechat_buffer_search ("==id", "1709797810942688"); /* WeeChat バージョン 4.3.0 以上で利用可 */ ---- スクリプト (Python) での使用例: diff --git a/doc/sr/weechat_plugin_api.sr.adoc b/doc/sr/weechat_plugin_api.sr.adoc index 10bf970a6..3aaecc754 100644 --- a/doc/sr/weechat_plugin_api.sr.adoc +++ b/doc/sr/weechat_plugin_api.sr.adoc @@ -13882,9 +13882,10 @@ weechat.prnt(weechat.current_buffer(), "Текст у текућем бафер ==== buffer_search -_Ажурирано у верзији 1.0._ +_Ажурирано у верзији 1.0, 4.3.0._ -Тражи бафер по додатку и/или имену. +// TRANSLATION MISSING +Search a buffer by plugin/name, full name or unique identifier (`id`). Прототип: @@ -13896,8 +13897,11 @@ struct t_gui_buffer *weechat_buffer_search (const char *plugin, Аргументи: -* _plugin_: име додатка, дозвољене су следеће специјалне вредности: +// TRANSLATION MISSING +* _plugin_: name of plugin, following special values are allowed: ** `+==+`: име које се користи је пуно име бафера (на пример: `irc.libera.#weechat` уместо `libera.#weechat`) _(WeeChat ≥ 1.0)_ +// TRANSLATION MISSING +** `+==id+`: the name used is the buffer unique identifier (`id`) _(WeeChat ≥ 4.3.0)_ * _name_: име бафера, ако је NULL или празан стринг, враћа се текући бафер (бафер који се приказује у текућем прозору); ако име почиње са `(?i)`, претрага не прави разлику у величини слова _(WeeChat ≥ 1.0)_ Повратна вредност: @@ -13910,6 +13914,7 @@ C примери: ---- struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "libera.#weechat"); struct t_gui_buffer *buffer2 = weechat_buffer_search ("==", "irc.libera.#test"); /* WeeChat ≥ 1.0 */ +struct t_gui_buffer *buffer3 = weechat_buffer_search ("==id", "1709797810942688"); /* WeeChat ≥ 4.3.0 */ ---- Скрипта (Python): |