summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-08-21 07:41:28 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-08-21 07:41:28 +0200
commitdb0bdc2ac69c27728fa415dd452fc88bb9e92f0f (patch)
treec5ff585133bde66c7653b113bcce1d9abb0ea7fe /doc
parent8c554d88c93a48bec48317b15d1da61fa20d6cbb (diff)
downloadweechat-db0bdc2ac69c27728fa415dd452fc88bb9e92f0f.zip
core: add flag "input_get_empty" in buffer
The default value is 0 (legacy behavior). When it is set to 1, an empty input (just by pressing Return with nothing in input) is sent to the input callback, which receives an empty string.
Diffstat (limited to 'doc')
-rw-r--r--doc/de/autogen/plugin_api/hdata.adoc1
-rw-r--r--doc/en/autogen/plugin_api/hdata.adoc1
-rw-r--r--doc/en/weechat_plugin_api.en.adoc4
-rw-r--r--doc/fr/autogen/plugin_api/hdata.adoc1
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc6
-rw-r--r--doc/it/autogen/plugin_api/hdata.adoc1
-rw-r--r--doc/it/weechat_plugin_api.it.adoc6
-rw-r--r--doc/ja/autogen/plugin_api/hdata.adoc1
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc6
-rw-r--r--doc/pl/autogen/plugin_api/hdata.adoc1
10 files changed, 28 insertions, 0 deletions
diff --git a/doc/de/autogen/plugin_api/hdata.adoc b/doc/de/autogen/plugin_api/hdata.adoc
index 659f5d4f9..201b266bd 100644
--- a/doc/de/autogen/plugin_api/hdata.adoc
+++ b/doc/de/autogen/plugin_api/hdata.adoc
@@ -534,6 +534,7 @@ _input_callback_   (pointer) +
_input_callback_pointer_   (pointer) +
_input_callback_data_   (pointer) +
_input_get_unknown_commands_   (integer) +
+_input_get_empty_   (integer) +
_input_buffer_   (string) +
_input_buffer_alloc_   (integer) +
_input_buffer_size_   (integer) +
diff --git a/doc/en/autogen/plugin_api/hdata.adoc b/doc/en/autogen/plugin_api/hdata.adoc
index 06c8b0a31..c099e6d17 100644
--- a/doc/en/autogen/plugin_api/hdata.adoc
+++ b/doc/en/autogen/plugin_api/hdata.adoc
@@ -534,6 +534,7 @@ _input_callback_   (pointer) +
_input_callback_pointer_   (pointer) +
_input_callback_data_   (pointer) +
_input_get_unknown_commands_   (integer) +
+_input_get_empty_   (integer) +
_input_buffer_   (string) +
_input_buffer_alloc_   (integer) +
_input_buffer_size_   (integer) +
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 1ca491cce..eae04b024 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -11801,6 +11801,7 @@ Arguments:
** _input_: 1 if input is enabled, otherwise 0
** _input_get_unknown_commands_: 1 if unknown commands are sent to input
callback, otherwise 0
+** _input_get_empty_: 1 if empty input is sent to input callback, otherwise 0
** _input_size_: input size (in bytes)
** _input_length_: input length (number of chars)
** _input_pos_: cursor position in buffer input
@@ -12099,6 +12100,9 @@ Properties:
get unknown commands, for example if user type "/unknowncmd", buffer will
receive it (no error about unknown command).
+| input_get_empty | "0" or "1" |
+ "0" to disable empty input on this buffer (default behavior), "1" to get empty input.
+
| localvar_set_xxx | any string |
Set new value for local variable _xxx_ (variable is created if it does not
exist).
diff --git a/doc/fr/autogen/plugin_api/hdata.adoc b/doc/fr/autogen/plugin_api/hdata.adoc
index 88ee7a8e9..f81c96ccc 100644
--- a/doc/fr/autogen/plugin_api/hdata.adoc
+++ b/doc/fr/autogen/plugin_api/hdata.adoc
@@ -534,6 +534,7 @@ _input_callback_   (pointer) +
_input_callback_pointer_   (pointer) +
_input_callback_data_   (pointer) +
_input_get_unknown_commands_   (integer) +
+_input_get_empty_   (integer) +
_input_buffer_   (string) +
_input_buffer_alloc_   (integer) +
_input_buffer_size_   (integer) +
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc
index 384e6ecc6..6f3e2bb3c 100644
--- a/doc/fr/weechat_plugin_api.fr.adoc
+++ b/doc/fr/weechat_plugin_api.fr.adoc
@@ -12048,6 +12048,8 @@ Paramètres :
** _input_ : 1 si la zone de saisie est activée, sinon 0
** _input_get_unknown_commands_ : 1 si les commandes inconnues sont envoyées
à la fonction de rappel "input", sinon 0
+** _input_get_empty_ : 1 si une entrée vide est envoyée à la fonction de rappel
+ "input", sinon 0
** _input_size_ : taille de la zone de saisie (en octets)
** _input_length_ : longueur de la zone de saisie (nombre de caractères)
** _input_pos_ : position du curseur dans la zone de saisie
@@ -12359,6 +12361,10 @@ Propriétés :
l'utilisateur tape "/commandeinconnue", le tampon le recevra (pas d'erreur
sur la commande inconnue).
+| input_get_empty | "0" ou "1" |
+ "0" pour désactiver l'entrée vide sur ce tampon (comportement par défaut),
+ "1" pour recevoir l'entrée vide.
+
| localvar_set_xxx | toute chaîne |
Change la valeur de la variable locale _xxx_ (la variable est créée si elle
n'existe pas).
diff --git a/doc/it/autogen/plugin_api/hdata.adoc b/doc/it/autogen/plugin_api/hdata.adoc
index dc8e01fef..9f8b5ad64 100644
--- a/doc/it/autogen/plugin_api/hdata.adoc
+++ b/doc/it/autogen/plugin_api/hdata.adoc
@@ -534,6 +534,7 @@ _input_callback_   (pointer) +
_input_callback_pointer_   (pointer) +
_input_callback_data_   (pointer) +
_input_get_unknown_commands_   (integer) +
+_input_get_empty_   (integer) +
_input_buffer_   (string) +
_input_buffer_alloc_   (integer) +
_input_buffer_size_   (integer) +
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc
index aa43d38d9..cdbe1d94d 100644
--- a/doc/it/weechat_plugin_api.it.adoc
+++ b/doc/it/weechat_plugin_api.it.adoc
@@ -12260,6 +12260,8 @@ Argomenti:
** _input_: 1 se l'input è abilitato, altrimenti 0
** _input_get_unknown_commands_: 1 se i comandi sconosciuti vengono inviati
alla callback di input, altrimenti 0
+// TRANSLATION MISSING
+** _input_get_empty_: 1 if empty input is sent to input callback, otherwise 0
** _input_size_: dimensione per l'input (in byte)
** _input_length_: lunghezza dell'input (numero di caratteri)
** _input_pos_: posizione del cursore nell'input del buffer
@@ -12585,6 +12587,10 @@ Properties:
digita "/unknowncmd", verrà ricevuto dal buffer (nessun errore riguardo il
comando sconosciuto).
+// TRANSLATION MISSING
+| input_get_empty | "0" oppure "1" |
+ "0" to disable empty input on this buffer (default behavior), "1" to get empty input.
+
| localvar_set_xxx | qualsiasi stringa |
Imposta il nuovo valore per la variabile locale _xxx_ (la variabile verrà
creata se non esiste).
diff --git a/doc/ja/autogen/plugin_api/hdata.adoc b/doc/ja/autogen/plugin_api/hdata.adoc
index a0c88080d..565c381d1 100644
--- a/doc/ja/autogen/plugin_api/hdata.adoc
+++ b/doc/ja/autogen/plugin_api/hdata.adoc
@@ -534,6 +534,7 @@ _input_callback_   (pointer) +
_input_callback_pointer_   (pointer) +
_input_callback_data_   (pointer) +
_input_get_unknown_commands_   (integer) +
+_input_get_empty_   (integer) +
_input_buffer_   (string) +
_input_buffer_alloc_   (integer) +
_input_buffer_size_   (integer) +
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index 0a8455dab..544934b82 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -11805,6 +11805,8 @@ int weechat_buffer_get_integer (struct t_gui_buffer *buffer,
** _input_: 入力可能な場合は 1、そうでない場合は 0
** _input_get_unknown_commands_: 未定義のコマンドを入力コールバックに送信する場合は
1、そうでない場合は 0
+// TRANSLATION MISSING
+** _input_get_empty_: 1 if empty input is sent to input callback, otherwise 0
** _input_size_: 入力サイズ (バイト単位)
** _input_length_: 入力長 (文字数)
** _input_pos_: バッファ入力におけるカーソル位置
@@ -12101,6 +12103,10 @@ void weechat_buffer_set (struct t_gui_buffer *buffer, const char *property,
(デフォルト)、未定義のコマンドを受け入れる場合は "1"、例えばユーザが "/unknowncmd"
を入力した場合、バッファはこれを受け入れる (未定義のコマンドに対するエラーを出さない)
+// TRANSLATION MISSING
+| input_get_empty | "0" または "1" |
+ "0" to disable empty input on this buffer (default behavior), "1" to get empty input.
+
| localvar_set_xxx | 任意の文字列 |
ローカル変数 _xxx_ の新しい値を設定
(存在しない変数の場合は変数を作成する)
diff --git a/doc/pl/autogen/plugin_api/hdata.adoc b/doc/pl/autogen/plugin_api/hdata.adoc
index 4a2d1f150..9bdc26c4e 100644
--- a/doc/pl/autogen/plugin_api/hdata.adoc
+++ b/doc/pl/autogen/plugin_api/hdata.adoc
@@ -534,6 +534,7 @@ _input_callback_   (pointer) +
_input_callback_pointer_   (pointer) +
_input_callback_data_   (pointer) +
_input_get_unknown_commands_   (integer) +
+_input_get_empty_   (integer) +
_input_buffer_   (string) +
_input_buffer_alloc_   (integer) +
_input_buffer_size_   (integer) +