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:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user