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

trigger: add variable ${tg_hook_type} (closes #1765)

This commit is contained in:
Sébastien Helleu
2022-09-30 21:32:27 +02:00
parent 6bb4bed8bb
commit ae61137216
9 changed files with 16 additions and 0 deletions
+1
View File
@@ -36,6 +36,7 @@ New features::
* logger: add options to rotate and compress log files: logger.file.rotation_compression_level, logger.file.rotation_compression_type and logger.file.rotation_size_max (issue #314)
* spell: allow special dict value "-" to disable spell checking on a specific buffer (issue #1699)
* trigger: add elapsed time for trigger execution on monitor buffer when trigger debug is set, add option trigger.color.identifier (issue #1806)
* trigger: add variable `${tg_hook_type}` (issue #1765)
Bug fixes::
+2
View File
@@ -5060,6 +5060,8 @@ Alle Callbacks setzen folgende Variablen in das hashtable:
|===
| Variable | Typ | Beschreibung
| tg_trigger_name | string | Name des Trigger.
// TRANSLATION MISSING
| tg_hook_type | string | Hook type: "signal", "command", etc.
|===
[[trigger_data_signal]]
+1
View File
@@ -4941,6 +4941,7 @@ All callbacks set following variables in hashtable:
|===
| Variable | Type | Description
| tg_trigger_name | string | Name of trigger.
| tg_hook_type | string | Hook type: "signal", "command", etc.
|===
[[trigger_data_signal]]
+1
View File
@@ -5104,6 +5104,7 @@ de hachage :
|===
| Variable | Type | Description
| tg_trigger_name | chaîne | Nom du trigger.
| tg_hook_type | chaîne | Type de hook : "signal", "command", etc.
|===
[[trigger_data_signal]]
+1
View File
@@ -5286,6 +5286,7 @@ All callbacks set following variables in hashtable:
|===
| Variable | Type | Description
| tg_trigger_name | string | Name of trigger.
| tg_hook_type | string | Hook type: "signal", "command", etc.
|===
[[trigger_data_signal]]
+2
View File
@@ -5099,6 +5099,8 @@ All callbacks set following variables in hashtable:
| 変数 | 型 | 説明
// TRANSLATION MISSING
| tg_trigger_name | string | Name of trigger.
// TRANSLATION MISSING
| tg_hook_type | string | Hook type: "signal", "command", etc.
|===
[[trigger_data_signal]]
+2
View File
@@ -5014,6 +5014,8 @@ Wszystkie callbacki ustawiają następujące zmienne w tablicy hashy:
|===
| Zmienna | Typ | Opis
| tg_trigger_name | ciąg | Nazwa triggera.
// TRANSLATION MISSING
| tg_hook_type | ciąg | Hook type: "signal", "command", etc.
|===
[[trigger_data_signal]]
+2
View File
@@ -4655,6 +4655,8 @@ ${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})
|===
| Променљива | Тип | Опис
| tg_trigger_name | стринг | Име окидача.
// TRANSLATION MISSING
| tg_hook_type | стринг | Hook type: "signal", "command", etc.
|===
[[trigger_data_signal]]
+4
View File
@@ -144,6 +144,10 @@ trigger_callback_set_common_vars (struct t_trigger *trigger,
return;
weechat_hashtable_set (hashtable, "tg_trigger_name", trigger->name);
weechat_hashtable_set (
hashtable, "tg_hook_type",
trigger_hook_type_string[
weechat_config_integer (trigger->options[TRIGGER_OPTION_HOOK])]);
}
/*