diff options
Diffstat (limited to 'doc/ja')
-rw-r--r-- | doc/ja/autogen/plugin_api/hdata.adoc | 9 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 125 | ||||
-rw-r--r-- | doc/ja/weechat_scripting.ja.adoc | 6 |
3 files changed, 138 insertions, 2 deletions
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 |