diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-02 19:12:44 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2024-04-07 13:18:13 +0200 |
commit | 4adb64284bf5d78c4ca4034b722b936d14ca9bca (patch) | |
tree | 55fc93fde25474076fe35a4be6a9beec7116667f /doc/en | |
parent | 3cce916035ed4a99c765aa885555a2cc96e95a92 (diff) | |
download | weechat-4adb64284bf5d78c4ca4034b722b936d14ca9bca.zip |
buffer: add property `input_get_any_user_data` in buffer (issue #2066)
This allows buffers to get any user input, including commands, that are sent to
the buffer callback instead of being executed on the buffer.
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 5 | ||||
-rw-r--r-- | doc/en/weechat_relay_protocol.en.adoc | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 80912d774..3c72ae974 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -14574,6 +14574,7 @@ Arguments: ** _nicklist_nicks_count_: number of nicks in nicklist ** _nicklist_nicks_visible_count_: number of nicks displayed ** _input_: 1 if input is enabled, otherwise 0 +** _input_get_any_user_data_: 1 if any user data, including commands, are sent to input callback, 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_multiline_: 1 if multiple lines are sent as one message to input callback, otherwise 0 @@ -14890,6 +14891,10 @@ Properties: | input_pos | | position | Set cursor position in buffer input. +| input_get_any_user_data | 4.3.0 | "0" or "1" +| "0" to get only user messages (default behavior), "1" to get everything, + including commands. + | input_get_unknown_commands | | "0" or "1" | "0" to disable unknown commands on this buffer (default behavior), "1" to get unknown commands, for example if user type "/unknowncmd", buffer will diff --git a/doc/en/weechat_relay_protocol.en.adoc b/doc/en/weechat_relay_protocol.en.adoc index 4a85c5517..b84cdbe92 100644 --- a/doc/en/weechat_relay_protocol.en.adoc +++ b/doc/en/weechat_relay_protocol.en.adoc @@ -707,6 +707,7 @@ inl: nicklist_visible_count: 0 title: 'WeeChat 2.9-dev (C) 2003-2020 - https://weechat.org/' input: 1 + input_get_any_user_data: 0 input_get_unknown_commands: 0 input_get_empty: 0 input_multiline: 0 |