summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/de/autogen/plugin_api/hdata.adoc9
-rw-r--r--doc/de/weechat_scripting.de.adoc6
-rw-r--r--doc/en/autogen/plugin_api/hdata.adoc9
-rw-r--r--doc/en/weechat_plugin_api.en.adoc121
-rw-r--r--doc/en/weechat_scripting.en.adoc5
-rw-r--r--doc/fr/autogen/plugin_api/hdata.adoc9
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc121
-rw-r--r--doc/fr/weechat_scripting.fr.adoc5
-rw-r--r--doc/it/autogen/plugin_api/hdata.adoc9
-rw-r--r--doc/it/weechat_plugin_api.it.adoc125
-rw-r--r--doc/it/weechat_scripting.it.adoc6
-rw-r--r--doc/ja/autogen/plugin_api/hdata.adoc9
-rw-r--r--doc/ja/weechat_plugin_api.ja.adoc125
-rw-r--r--doc/ja/weechat_scripting.ja.adoc6
-rw-r--r--doc/pl/autogen/plugin_api/hdata.adoc9
-rw-r--r--doc/pl/weechat_scripting.pl.adoc6
16 files changed, 568 insertions, 12 deletions
diff --git a/doc/de/autogen/plugin_api/hdata.adoc b/doc/de/autogen/plugin_api/hdata.adoc
index 5d315765e..cfb992f04 100644
--- a/doc/de/autogen/plugin_api/hdata.adoc
+++ b/doc/de/autogen/plugin_api/hdata.adoc
@@ -643,8 +643,11 @@ _next_buffer_   (pointer, hdata: "buffer_visited") +
| weechat
| [[hdata_completion]]<<hdata_completion,completion>>
| Struktur mit Vervollständigung
-| -
-| _buffer_   (pointer, hdata: "buffer") +
+| _weechat_completions_ +
+_last_weechat_completion_ +
+
+| _plugin_   (pointer, hdata: "plugin") +
+_buffer_   (pointer, hdata: "buffer") +
_context_   (integer) +
_base_command_   (string) +
_base_command_arg_index_   (integer) +
@@ -663,6 +666,8 @@ _position_replace_   (integer) +
_diff_size_   (integer) +
_diff_length_   (integer) +
_partial_list_   (pointer) +
+_prev_completion_   (pointer, hdata: "completion") +
+_next_completion_   (pointer, hdata: "completion") +
| weechat
diff --git a/doc/de/weechat_scripting.de.adoc b/doc/de/weechat_scripting.de.adoc
index 3e26996de..3fbeced3c 100644
--- a/doc/de/weechat_scripting.de.adoc
+++ b/doc/de/weechat_scripting.de.adoc
@@ -714,6 +714,12 @@ Liste der Skript API Funktionen:
command +
command_options
+// TRANSLATION MISSING
+| completion |
+ completion_new +
+ completion_search +
+ completion_free
+
| Informationen |
info_get +
info_get_hashtable
diff --git a/doc/en/autogen/plugin_api/hdata.adoc b/doc/en/autogen/plugin_api/hdata.adoc
index 12fe97861..f3b9338e5 100644
--- a/doc/en/autogen/plugin_api/hdata.adoc
+++ b/doc/en/autogen/plugin_api/hdata.adoc
@@ -643,8 +643,11 @@ _next_buffer_   (pointer, hdata: "buffer_visited") +
| weechat
| [[hdata_completion]]<<hdata_completion,completion>>
| structure with completion
-| -
-| _buffer_   (pointer, hdata: "buffer") +
+| _weechat_completions_ +
+_last_weechat_completion_ +
+
+| _plugin_   (pointer, hdata: "plugin") +
+_buffer_   (pointer, hdata: "buffer") +
_context_   (integer) +
_base_command_   (string) +
_base_command_arg_index_   (integer) +
@@ -663,6 +666,8 @@ _position_replace_   (integer) +
_diff_size_   (integer) +
_diff_length_   (integer) +
_partial_list_   (pointer) +
+_prev_completion_   (pointer, hdata: "completion") +
+_next_completion_   (pointer, hdata: "completion") +
| weechat
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 4f2703a66..17c73d182 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -14938,6 +14938,127 @@ weechat.command_options(buffer, command, options)
rc = weechat.command("", "/some_command arguments", {"commands": "*,!exec"})
----
+[[completion]]
+=== Completion
+
+Functions to complete a command line.
+
+==== completion_new
+
+_WeeChat ≥ 2.9._
+
+Create a new completion.
+
+Prototype:
+
+[source,C]
+----
+struct t_gui_completion *weechat_completion_new (struct t_gui_buffer *buffer);
+----
+
+Arguments:
+
+* _buffer_: buffer pointer
+
+Return value:
+
+* pointer to new completion
+
+C example:
+
+[source,C]
+----
+struct t_gui_completion *completion = weechat_completion_new (weechat_buffer_search_main ());
+----
+
+Script (Python):
+
+[source,python]
+----
+# prototype
+completion = weechat.completion_new(buffer)
+
+# example
+completion = weechat.completion_new(weechat.buffer_search_main())
+----
+
+==== completion_search
+
+_WeeChat ≥ 2.9._
+
+Search possible words at a given position of a string, in the completion
+context.
+
+Prototype:
+
+[source,C]
+----
+void weechat_completion_search (struct t_gui_completion *completion, const char *data,
+ int position, int direction);
+----
+
+Arguments:
+
+* _completion_: completion pointer
+* _data_: the string to complete
+* _position_: index of the char in string to complete (starts to 0)
+* _direction_: 1 for next completion, -1 for previous completion
+
+C example:
+
+[source,C]
+----
+struct t_gui_completion *completion = weechat_completion_new (weechat_buffer_search_main ());
+weechat_completion_search (completion, "/help filt", 10, 1);
+----
+
+Script (Python):
+
+[source,python]
+----
+# prototype
+weechat.completion_search(completion, data, position, direction)
+
+# example
+completion = weechat.completion_new(weechat.buffer_search_main())
+weechat.completion_search(completion, "/help filt", 10, 1);
+----
+
+==== completion_free
+
+_WeeChat ≥ 2.9._
+
+Free a completion.
+
+Prototype:
+
+[source,C]
+----
+void weechat_completion_free (struct t_gui_completion *completion);
+----
+
+Arguments:
+
+* _completion_: completion pointer
+
+C example:
+
+[source,C]
+----
+weechat_completion_free (completion);
+----
+
+Script (Python):
+
+[source,python]
+----
+# prototype
+weechat.completion_free(completion)
+
+# example
+weechat.completion_free(completion)
+----
+
[[network]]
=== Network
diff --git a/doc/en/weechat_scripting.en.adoc b/doc/en/weechat_scripting.en.adoc
index 35469e21f..23170fbdb 100644
--- a/doc/en/weechat_scripting.en.adoc
+++ b/doc/en/weechat_scripting.en.adoc
@@ -697,6 +697,11 @@ List of functions in script API:
command +
command_options
+| completion |
+ completion_new +
+ completion_search +
+ completion_free
+
| infos |
info_get +
info_get_hashtable
diff --git a/doc/fr/autogen/plugin_api/hdata.adoc b/doc/fr/autogen/plugin_api/hdata.adoc
index d78b8f9c1..38839bff2 100644
--- a/doc/fr/autogen/plugin_api/hdata.adoc
+++ b/doc/fr/autogen/plugin_api/hdata.adoc
@@ -643,8 +643,11 @@ _next_buffer_   (pointer, hdata: "buffer_visited") +
| weechat
| [[hdata_completion]]<<hdata_completion,completion>>
| structure avec une complétion
-| -
-| _buffer_   (pointer, hdata: "buffer") +
+| _weechat_completions_ +
+_last_weechat_completion_ +
+
+| _plugin_   (pointer, hdata: "plugin") +
+_buffer_   (pointer, hdata: "buffer") +
_context_   (integer) +
_base_command_   (string) +
_base_command_arg_index_   (integer) +
@@ -663,6 +666,8 @@ _position_replace_   (integer) +
_diff_size_   (integer) +
_diff_length_   (integer) +
_partial_list_   (pointer) +
+_prev_completion_   (pointer, hdata: "completion") +
+_next_completion_   (pointer, hdata: "completion") +
| weechat
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc
index 3e9ba2012..a4f482d34 100644
--- a/doc/fr/weechat_plugin_api.fr.adoc
+++ b/doc/fr/weechat_plugin_api.fr.adoc
@@ -15257,6 +15257,127 @@ weechat.command_options(buffer, command, options)
rc = weechat.command("", "/une_commande paramètres", {"commands": "*,!exec"})
----
+[[completion]]
+=== Completion
+
+Fonctions pour compléter une ligne de commande.
+
+==== completion_new
+
+_WeeChat ≥ 2.9._
+
+Créer une complétion.
+
+Prototype :
+
+[source,C]
+----
+struct t_gui_completion *weechat_completion_new (struct t_gui_buffer *buffer);
+----
+
+Paramètres :
+
+* _buffer_ : pointeur vers le tampon
+
+Valeur de retour :
+
+* pointer to new completion
+
+Exemple en C :
+
+[source,C]
+----
+struct t_gui_completion *completion = weechat_completion_new (weechat_buffer_search_main ());
+----
+
+Script (Python) :
+
+[source,python]
+----
+# prototype
+completion = weechat.completion_new(buffer)
+
+# exemple
+completion = weechat.completion_new(weechat.buffer_search_main())
+----
+
+==== completion_search
+
+_WeeChat ≥ 2.9._
+
+Chercher les mots possibles à une position donnée d'une chaîne, dans le contexte
+de la complétion.
+
+Prototype :
+
+[source,C]
+----
+void weechat_completion_search (struct t_gui_completion *completion, const char *data,
+ int position, int direction);
+----
+
+Paramètres :
+
+* _completion_ : pointeur vers la complétion
+* _data_ : la chaîne à compléter
+* _position_ : index du caractère dans la chaîne à compléter (commence à 0)
+* _direction_ : 1 pour la complétion suivante, -1 pour la complétion précédente
+
+Exemple en C :
+
+[source,C]
+----
+struct t_gui_completion *completion = weechat_completion_new (weechat_buffer_search_main ());
+weechat_completion_search (completion, "/help filt", 10, 1);
+----
+
+Script (Python) :
+
+[source,python]
+----
+# prototype
+weechat.completion_search(completion, data, position, direction)
+
+# exemple
+completion = weechat.completion_new(weechat.buffer_search_main())
+weechat.completion_search(completion, "/help filt", 10, 1);
+----
+
+==== completion_free
+
+_WeeChat ≥ 2.9._
+
+Supprimer une complétion.
+
+Prototype :
+
+[source,C]
+----
+void weechat_completion_free (struct t_gui_completion *completion);
+----
+
+Paramètres :
+
+* _completion_ : pointeur vers la complétion
+
+Exemple en C :
+
+[source,C]
+----
+weechat_completion_free (completion);
+----
+
+Script (Python) :
+
+[source,python]
+----
+# prototype
+weechat.completion_free(completion)
+
+# exemple
+weechat.completion_free(completion)
+----
+
[[network]]
=== Réseau
diff --git a/doc/fr/weechat_scripting.fr.adoc b/doc/fr/weechat_scripting.fr.adoc
index 53273dcad..cc749d9ee 100644
--- a/doc/fr/weechat_scripting.fr.adoc
+++ b/doc/fr/weechat_scripting.fr.adoc
@@ -716,6 +716,11 @@ Liste des fonctions de l'API script :
command +
command_options
+| complétion |
+ completion_new +
+ completion_search +
+ completion_free
+
| infos |
info_get +
info_get_hashtable
diff --git a/doc/it/autogen/plugin_api/hdata.adoc b/doc/it/autogen/plugin_api/hdata.adoc
index e8d5d0228..feab3455d 100644
--- a/doc/it/autogen/plugin_api/hdata.adoc
+++ b/doc/it/autogen/plugin_api/hdata.adoc
@@ -643,8 +643,11 @@ _next_buffer_   (pointer, hdata: "buffer_visited") +
| weechat
| [[hdata_completion]]<<hdata_completion,completion>>
| struttura con completamento
-| -
-| _buffer_   (pointer, hdata: "buffer") +
+| _weechat_completions_ +
+_last_weechat_completion_ +
+
+| _plugin_   (pointer, hdata: "plugin") +
+_buffer_   (pointer, hdata: "buffer") +
_context_   (integer) +
_base_command_   (string) +
_base_command_arg_index_   (integer) +
@@ -663,6 +666,8 @@ _position_replace_   (integer) +
_diff_size_   (integer) +
_diff_length_   (integer) +
_partial_list_   (pointer) +
+_prev_completion_   (pointer, hdata: "completion") +
+_next_completion_   (pointer, hdata: "completion") +
| weechat
diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc
index 135370c92..6494b5c75 100644
--- a/doc/it/weechat_plugin_api.it.adoc
+++ b/doc/it/weechat_plugin_api.it.adoc
@@ -15535,6 +15535,131 @@ weechat.command_options(buffer, command, options)
rc = weechat.command("", "/some_command arguments", {"commands": "*,!exec"})
----
+// TRANSLATION MISSING
+[[completion]]
+=== Completion
+
+Functions to complete a command line.
+
+// TRANSLATION MISSING
+==== completion_new
+
+_WeeChat ≥ 2.9._
+
+Create a new completion.
+
+Prototipo:
+
+[source,C]
+----
+struct t_gui_completion *weechat_completion_new (struct t_gui_buffer *buffer);
+----
+
+Argomenti:
+
+* _buffer_: buffer pointer
+
+Valori restituiti:
+
+* pointer to new completion
+
+Esempio in C:
+
+[source,C]
+----
+struct t_gui_completion *completion = weechat_completion_new (weechat_buffer_search_main ());
+----
+
+Script (Python):
+
+[source,python]
+----
+# prototipo
+completion = weechat.completion_new(buffer)
+
+# esempio
+completion = weechat.completion_new(weechat.buffer_search_main())
+----
+
+// TRANSLATION MISSING
+==== completion_search
+
+_WeeChat ≥ 2.9._
+
+Search possible words at a given position of a string, in the completion
+context.
+
+Prototipo:
+
+[source,C]
+----
+void weechat_completion_search (struct t_gui_completion *completion, const char *data,
+ int position, int direction);
+----
+
+Argomenti:
+
+* _completion_: completion pointer
+* _data_: the string to complete
+* _position_: index of the char in string to complete (starts to 0)
+* _direction_: 1 for next completion, -1 for previous completion
+
+Esempio in C:
+
+[source,C]
+----
+struct t_gui_completion *completion = weechat_completion_new (weechat_buffer_search_main ());
+weechat_completion_search (completion, "/help filt", 10, 1);
+----
+
+Script (Python):
+
+[source,python]
+----
+# prototipo
+weechat.completion_search(completion, data, position, direction)
+
+# esempio
+completion = weechat.completion_new(weechat.buffer_search_main())
+weechat.completion_search(completion, "/help filt", 10, 1);
+----
+
+// TRANSLATION MISSING
+==== completion_free
+
+_WeeChat ≥ 2.9._
+
+Free a completion.
+
+Prototipo:
+
+[source,C]
+----
+void weechat_completion_free (struct t_gui_completion *completion);
+----
+
+Argomenti:
+
+* _completion_: completion pointer
+
+Esempio in C:
+
+[source,C]
+----
+weechat_completion_free (completion);
+----
+
+Script (Python):
+
+[source,python]
+----
+# prototipo
+weechat.completion_free(completion)
+
+# esempio
+weechat.completion_free(completion)
+----
+
[[network]]
=== Network
diff --git a/doc/it/weechat_scripting.it.adoc b/doc/it/weechat_scripting.it.adoc
index 6fad5a37b..5e9864087 100644
--- a/doc/it/weechat_scripting.it.adoc
+++ b/doc/it/weechat_scripting.it.adoc
@@ -728,6 +728,12 @@ Elenco di funzioni nelle API per gli script:
command +
command_options
+// TRANSLATION MISSING
+| completion |
+ completion_new +
+ completion_search +
+ completion_free
+
| info |
info_get +
info_get_hashtable
diff --git a/doc/ja/autogen/plugin_api/hdata.adoc b/doc/ja/autogen/plugin_api/hdata.adoc
index 2a076d869..4dce7fd19 100644
--- a/doc/ja/autogen/plugin_api/hdata.adoc
+++ b/doc/ja/autogen/plugin_api/hdata.adoc
@@ -643,8 +643,11 @@ _next_buffer_   (pointer, hdata: "buffer_visited") +
| weechat
| [[hdata_completion]]<<hdata_completion,completion>>
| 補完する構造
-| -
-| _buffer_   (pointer, hdata: "buffer") +
+| _weechat_completions_ +
+_last_weechat_completion_ +
+
+| _plugin_   (pointer, hdata: "plugin") +
+_buffer_   (pointer, hdata: "buffer") +
_context_   (integer) +
_base_command_   (string) +
_base_command_arg_index_   (integer) +
@@ -663,6 +666,8 @@ _position_replace_   (integer) +
_diff_size_   (integer) +
_diff_length_   (integer) +
_partial_list_   (pointer) +
+_prev_completion_   (pointer, hdata: "completion") +
+_next_completion_   (pointer, hdata: "completion") +
| weechat
diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc
index 376c3106c..90bc27d07 100644
--- a/doc/ja/weechat_plugin_api.ja.adoc
+++ b/doc/ja/weechat_plugin_api.ja.adoc
@@ -14920,6 +14920,131 @@ weechat.command_options(buffer, command, options)
rc = weechat.command("", "/some_command arguments", {"commands": "*,!exec"})
----
+// TRANSLATION MISSING
+[[completion]]
+=== Completion
+
+Functions to complete a command line.
+
+// TRANSLATION MISSING
+==== completion_new
+
+_WeeChat ≥ 2.9._
+
+Create a new completion.
+
+プロトタイプ:
+
+[source,C]
+----
+struct t_gui_completion *weechat_completion_new (struct t_gui_buffer *buffer);
+----
+
+引数:
+
+* _buffer_: buffer pointer
+
+Return value:
+
+* pointer to new completion
+
+C 言語での使用例:
+
+[source,C]
+----
+struct t_gui_completion *completion = weechat_completion_new (weechat_buffer_search_main ());
+----
+
+スクリプト (Python) での使用例:
+
+[source,python]
+----
+# prototype
+completion = weechat.completion_new(buffer)
+
+# example
+completion = weechat.completion_new(weechat.buffer_search_main())
+----
+
+// TRANSLATION MISSING
+==== completion_search
+
+_WeeChat ≥ 2.9._
+
+Search possible words at a given position of a string, in the completion
+context.
+
+プロトタイプ:
+
+[source,C]
+----
+void weechat_completion_search (struct t_gui_completion *completion, const char *data,
+ int position, int direction);
+----
+
+引数:
+
+* _completion_: completion pointer
+* _data_: the string to complete
+* _position_: index of the char in string to complete (starts to 0)
+* _direction_: 1 for next completion, -1 for previous completion
+
+C 言語での使用例:
+
+[source,C]
+----
+struct t_gui_completion *completion = weechat_completion_new (weechat_buffer_search_main ());
+weechat_completion_search (completion, "/help filt", 10, 1);
+----
+
+スクリプト (Python) での使用例:
+
+[source,python]
+----
+# prototype
+weechat.completion_search(completion, data, position, direction)
+
+# example
+completion = weechat.completion_new(weechat.buffer_search_main())
+weechat.completion_search(completion, "/help filt", 10, 1);
+----
+
+// TRANSLATION MISSING
+==== completion_free
+
+_WeeChat ≥ 2.9._
+
+Free a completion.
+
+プロトタイプ:
+
+[source,C]
+----
+void weechat_completion_free (struct t_gui_completion *completion);
+----
+
+引数:
+
+* _completion_: completion pointer
+
+C 言語での使用例:
+
+[source,C]
+----
+weechat_completion_free (completion);
+----
+
+スクリプト (Python) での使用例:
+
+[source,python]
+----
+# prototype
+weechat.completion_free(completion)
+
+# example
+weechat.completion_free(completion)
+----
+
[[network]]
=== ネットワーク
diff --git a/doc/ja/weechat_scripting.ja.adoc b/doc/ja/weechat_scripting.ja.adoc
index a4027d979..07c9949bf 100644
--- a/doc/ja/weechat_scripting.ja.adoc
+++ b/doc/ja/weechat_scripting.ja.adoc
@@ -716,6 +716,12 @@ link:weechat_plugin_api.ja.html[WeeChat プラグイン API リファレンス]
command +
command_options
+// TRANSLATION MISSING
+| completion |
+ completion_new +
+ completion_search +
+ completion_free
+
| インフォ |
info_get +
info_get_hashtable
diff --git a/doc/pl/autogen/plugin_api/hdata.adoc b/doc/pl/autogen/plugin_api/hdata.adoc
index 107430bd2..14dc7f1ca 100644
--- a/doc/pl/autogen/plugin_api/hdata.adoc
+++ b/doc/pl/autogen/plugin_api/hdata.adoc
@@ -643,8 +643,11 @@ _next_buffer_   (pointer, hdata: "buffer_visited") +
| weechat
| [[hdata_completion]]<<hdata_completion,completion>>
| struktura z uzupełnianiem
-| -
-| _buffer_   (pointer, hdata: "buffer") +
+| _weechat_completions_ +
+_last_weechat_completion_ +
+
+| _plugin_   (pointer, hdata: "plugin") +
+_buffer_   (pointer, hdata: "buffer") +
_context_   (integer) +
_base_command_   (string) +
_base_command_arg_index_   (integer) +
@@ -663,6 +666,8 @@ _position_replace_   (integer) +
_diff_size_   (integer) +
_diff_length_   (integer) +
_partial_list_   (pointer) +
+_prev_completion_   (pointer, hdata: "completion") +
+_next_completion_   (pointer, hdata: "completion") +
| weechat
diff --git a/doc/pl/weechat_scripting.pl.adoc b/doc/pl/weechat_scripting.pl.adoc
index 54a9341a6..e4da12878 100644
--- a/doc/pl/weechat_scripting.pl.adoc
+++ b/doc/pl/weechat_scripting.pl.adoc
@@ -702,6 +702,12 @@ Lista funkcji w API skryptów:
command +
command_options
+// TRANSLATION MISSING
+| completion |
+ completion_new +
+ completion_search +
+ completion_free
+
| informacje |
info_get +
info_get_hashtable