1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

api: add property "type" in function buffer_get_string

This commit is contained in:
Sébastien Helleu
2023-12-24 16:53:16 +01:00
parent 28fc733aaf
commit 31881ebacf
7 changed files with 12 additions and 0 deletions
+1
View File
@@ -26,6 +26,7 @@ New features::
* core: display only version with command `/version`, add options `-o` and `-ol` in command `/upgrade`
* core: add number of processes in command `/sys waitpid`
* core, alias, trigger: allow wildcard in commands `/bar`, `/item`, `/proxy`, `/alias` and `/trigger` (issue #1956)
* api: add property "type" in function buffer_get_string
* api: add info "mouse"
* buflist: jump to previous/next buffer displayed in buflist item with ctrl+wheel up/down on a buflist item (issue #1473)
* irc: add option irc.look.display_host_wallops
+1
View File
@@ -14194,6 +14194,7 @@ Arguments:
** _short_name_: short name of buffer (note: used for display only and can be
changed by user, this must not be used to find name of buffer, use instead
_name_, _full_name_ or local variable _channel_)
** _type_: type of buffer: "formatted" or "free" _(WeeChat ≥ 4.2.0)_
** _title_: title of buffer
** _input_: input text
** _text_search_input_: input saved before text search
+2
View File
@@ -14503,6 +14503,8 @@ Paramètres :
seulement et peut être changé par l'utilisateur, il ne doit pas être utilisé
pour trouver le nom du tampon, utilisez à la place _name_, _full_name_ ou
bien la variable locale _channel_)
** _type_ : type de tampon : "formatted" (formaté) ou "free" (contenu libre)
_(WeeChat ≥ 4.2.0)_
** _title_ : titre du tampon
** _input_ : texte saisi
** _text_search_input_ : texte saisi sauvegardé avant la recherche de texte
+2
View File
@@ -14852,6 +14852,8 @@ Argomenti:
** _short_name_: nome breve del buffer (nota: usato solo per il display e può
essere cambiato dall'utente, questo nome non va usato per trovare il nome del
buffer, utilizzare invece _name_, _fullname_ o la variabile locale _channel_)
// TRANSLATION MISSING
** _type_: type of buffer: "formatted" or "free" _(WeeChat ≥ 4.2.0)_
** _title_: titolo del buffer
** _input_: testo in ingresso
** _text_search_input_: input salvato prima della ricerca nel testo
+2
View File
@@ -14381,6 +14381,8 @@ const char *weechat_buffer_get_string (struct t_gui_buffer *buffer,
** _short_name_: バッファの短縮名 (注意:
表示目的以外に使用するのは禁止、ユーザは書き換えることが可能、バッファを検索する際にこれを使ってはいけない、_name_、_full_name_、またはローカル変数
_channel_ を使うこと)
// TRANSLATION MISSING
** _type_: type of buffer: "formatted" or "free" _(WeeChat ≥ 4.2.0)_
** _title_: バッファのタイトル
** _input_: 入力テキスト
** _text_search_input_: テキスト検索前に保存した入力テキスト
+2
View File
@@ -13716,6 +13716,8 @@ const char *weechat_buffer_get_string (struct t_gui_buffer *buffer,
** _name_: име бафера
** _full_name_: пуно име бафера („додатак.име”) _(WeeChat ≥ 0.3.7)_
** _short_name_: кратко име бафера (напомена: користи се само за приказ и корисник може да га промени, ово не сме да се употребљава за проналажење имена бафера, уместо њега употребите _name_, _full_name_ или локалну променљиву _channel_)
// TRANSLATION MISSING
** _type_: type of buffer: "formatted" or "free" _(WeeChat ≥ 4.2.0)_
** _title_: наслов бафера
** _input_: текст уноса
** _text_search_input_: сачувани унос пре претраге текста
+2
View File
@@ -1432,6 +1432,8 @@ gui_buffer_get_string (struct t_gui_buffer *buffer, const char *property)
return buffer->old_full_name;
else if (strcmp (property, "short_name") == 0)
return gui_buffer_get_short_name (buffer);
else if (strcmp (property, "type") == 0)
return gui_buffer_type_string[buffer->type];
else if (strcmp (property, "title") == 0)
return buffer->title;
else if (strcmp (property, "input") == 0)