diff options
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | doc/en/weechat_plugin_api.en.adoc | 10 | ||||
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.adoc | 10 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 12 | ||||
-rw-r--r-- | doc/ja/weechat_plugin_api.ja.adoc | 12 | ||||
-rw-r--r-- | src/core/wee-command.c | 10 |
6 files changed, 55 insertions, 0 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 27f501069..e31e9106f 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes] New features:: + * core: add signals "buffer_filters_enabled" and "buffer_filters_disabled" * core: support loading of plugins from path in environment variable "WEECHAT_EXTRA_LIBDIR" (issue #971, issue #979) * alias: add infolist "alias_default" (list of default aliases) * buflist: add option buflist.look.add_newline (issue #1027) diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc index 00cc4738a..a54f445be 100644 --- a/doc/en/weechat_plugin_api.en.adoc +++ b/doc/en/weechat_plugin_api.en.adoc @@ -9454,6 +9454,16 @@ List of signals sent by WeeChat and plugins: Pointer: buffer. | Buffer cleared. +| weechat | buffer_filters_enabled + + _(WeeChat ≥ 2.0)_ | + Pointer: buffer. | + Filters enabled in buffer. + +| weechat | buffer_filters_disabled + + _(WeeChat ≥ 2.0)_ | + Pointer: buffer. | + Filters disabled in buffer. + | weechat | buffer_hidden | Pointer: buffer. | Buffer hidden. diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc index 2d1e5572b..805dce951 100644 --- a/doc/fr/weechat_plugin_api.fr.adoc +++ b/doc/fr/weechat_plugin_api.fr.adoc @@ -9638,6 +9638,16 @@ Liste des signaux envoyés par WeeChat et les extensions : Pointeur : tampon. | Tampon vidé. +| weechat | buffer_filters_enabled + + _(WeeChat ≥ 2.0)_ | + Pointeur : tampon. | + Filtres activés dans le tampon. + +| weechat | buffer_filters_disabled + + _(WeeChat ≥ 2.0)_ | + Pointeur : tampon. | + Filtres désactivés dans le tampon. + | weechat | buffer_hidden | Pointeur : tampon. | Tampon masqué. diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index de6a7d4a2..bcd56b319 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -9782,6 +9782,18 @@ List of signals sent by WeeChat and plugins: Buffer cleared. // TRANSLATION MISSING +| weechat | buffer_filters_enabled + + _(WeeChat ≥ 2.0)_ | + Pointer: buffer. | + Filters enabled in buffer. + +// TRANSLATION MISSING +| weechat | buffer_filters_disabled + + _(WeeChat ≥ 2.0)_ | + Pointer: buffer. | + Filters disabled in buffer. + +// TRANSLATION MISSING | weechat | buffer_hidden | Pointer: buffer. | Buffer hidden. diff --git a/doc/ja/weechat_plugin_api.ja.adoc b/doc/ja/weechat_plugin_api.ja.adoc index 70034ed5d..855133d44 100644 --- a/doc/ja/weechat_plugin_api.ja.adoc +++ b/doc/ja/weechat_plugin_api.ja.adoc @@ -9468,6 +9468,18 @@ WeeChat とプラグインが送信するシグナルのリスト: Pointer: バッファ | バッファをクリア +// TRANSLATION MISSING +| weechat | buffer_filters_enabled + + _(WeeChat バージョン 2.0 以上で利用可)_ | + Pointer: バッファ | + Filters enabled in buffer. + +// TRANSLATION MISSING +| weechat | buffer_filters_disabled + + _(WeeChat バージョン 2.0 以上で利用可)_ | + Pointer: バッファ | + Filters disabled in buffer. + | weechat | buffer_hidden | Pointer: バッファ | バッファを隠す diff --git a/src/core/wee-command.c b/src/core/wee-command.c index 8378a022e..b9f5c0f0c 100644 --- a/src/core/wee-command.c +++ b/src/core/wee-command.c @@ -2110,6 +2110,9 @@ COMMAND_CALLBACK(filter) { buffer->filter = 1; gui_filter_buffer (buffer, NULL); + (void) hook_signal_send ( + "buffer_filters_enabled", + WEECHAT_HOOK_SIGNAL_POINTER, buffer); } } else @@ -2165,6 +2168,9 @@ COMMAND_CALLBACK(filter) { buffer->filter = 0; gui_filter_buffer (buffer, NULL); + (void) hook_signal_send ( + "buffer_filters_disabled", + WEECHAT_HOOK_SIGNAL_POINTER, buffer); } } else @@ -2218,6 +2224,10 @@ COMMAND_CALLBACK(filter) /* toggle filters in buffer */ buffer->filter ^= 1; gui_filter_buffer (buffer, NULL); + (void) hook_signal_send ( + (buffer->filter) ? + "buffer_filters_enabled" : "buffer_filters_disabled", + WEECHAT_HOOK_SIGNAL_POINTER, buffer); } else { |