1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

trigger: check that buffer notify is not "none" to run command of default trigger beep

This commit is contained in:
Sébastien Helleu
2022-04-23 14:15:41 +02:00
parent 51ed9ec93e
commit 2a2428902b
3 changed files with 22 additions and 2 deletions
+1
View File
@@ -28,6 +28,7 @@ Bug fixes::
* core: fix bad window size on startup with some terminals like https://github.com/kovidgoyal/kitty[kitty] (issue #1769)
* buflist: fix memory leak when reading config and changing option buflist.look.sort
* relay: fix save of channels in autojoin option when JOIN and PART commands are received from an IRC relay client (issue #1771)
* trigger: add `${buffer.notify} > 0` in conditions of default trigger "beep"
[[v3.5]]
== Version 3.5 (2022-03-27)
+15
View File
@@ -17,6 +17,21 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
(file _ChangeLog.adoc_ in sources).
[[v3.6]]
== Version 3.6 (under dev)
[[v3.6_trigger_beep]]
=== Default trigger "beep"
The command of "beep" trigger is now executed only if the buffer notify is NOT
set to `none` (in addition to existing conditions).
You can restore the default trigger "beep" with the following command:
----
/trigger restore beep
----
[[v3.5]]
== Version 3.5 (2022-03-27)
+6 -2
View File
@@ -59,12 +59,16 @@ char *trigger_config_default_list[][1 + TRIGGER_NUM_OPTIONS] =
* - message is a highlight
* OR:
* - message is a message in a private buffer
* AND:
* - buffer notify is NOT "none"
*/
{ "beep", "on",
"print",
"",
"${tg_displayed} && ${tg_tags} !!- ,notify_none, "
"&& (${tg_highlight} || ${tg_msg_pv})",
"${tg_displayed} "
"&& ${tg_tags} !!- ,notify_none, "
"&& (${tg_highlight} || ${tg_msg_pv}) "
"&& ${buffer.notify} > 0",
"",
"/print -beep",
"ok",