diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2014-04-01 14:26:02 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2014-04-01 14:26:02 +0200 |
commit | 3b32d62fa61a6f4f052bbabd492dd06d4e68c066 (patch) | |
tree | 9d56e621232f5fb92f958cc2132b3f197ba58117 /doc | |
parent | e96639123b4e22c975a510d968d80c8258224adc (diff) | |
download | weechat-3b32d62fa61a6f4f052bbabd492dd06d4e68c066.zip |
trigger: add filter in trigger monitor buffer
The filter can be set with /trigger monitor <filter> or by entering data
in the trigger monitor input.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/de/autogen/plugin_api/completions.txt | 2 | ||||
-rw-r--r-- | doc/de/autogen/user/trigger_commands.txt | 101 | ||||
-rw-r--r-- | doc/en/autogen/plugin_api/completions.txt | 2 | ||||
-rw-r--r-- | doc/en/autogen/user/trigger_commands.txt | 7 | ||||
-rw-r--r-- | doc/fr/autogen/plugin_api/completions.txt | 2 | ||||
-rw-r--r-- | doc/fr/autogen/user/trigger_commands.txt | 5 | ||||
-rw-r--r-- | doc/it/autogen/plugin_api/completions.txt | 2 | ||||
-rw-r--r-- | doc/it/autogen/user/trigger_commands.txt | 7 | ||||
-rw-r--r-- | doc/ja/autogen/plugin_api/completions.txt | 2 | ||||
-rw-r--r-- | doc/ja/autogen/user/trigger_commands.txt | 105 | ||||
-rw-r--r-- | doc/pl/autogen/plugin_api/completions.txt | 2 | ||||
-rw-r--r-- | doc/pl/autogen/user/trigger_commands.txt | 7 |
12 files changed, 137 insertions, 107 deletions
diff --git a/doc/de/autogen/plugin_api/completions.txt b/doc/de/autogen/plugin_api/completions.txt index fe4c466cf..7a94ab788 100644 --- a/doc/de/autogen/plugin_api/completions.txt +++ b/doc/de/autogen/plugin_api/completions.txt @@ -82,6 +82,8 @@ | trigger | trigger_hooks | Hooks für Trigger +| trigger | trigger_hooks_filter | hooks for triggers (for filter in monitor buffer) + | trigger | trigger_names | trigger | trigger | trigger_option_value | Werte für Trigger-Option diff --git a/doc/de/autogen/user/trigger_commands.txt b/doc/de/autogen/user/trigger_commands.txt index 2d466dea8..deb9c30a1 100644 --- a/doc/de/autogen/user/trigger_commands.txt +++ b/doc/de/autogen/user/trigger_commands.txt @@ -13,63 +13,66 @@ show <name> del <name>|-all [<name>...] default -yes - monitor + monitor [<filter>] - list: zeigt eine Liste aller Trigger (ohne Angabe von Argumente wird diese Liste standardmäßig ausgegeben) - listfull: zeigt eine detaillierte Liste, mit zusätzlichen Informationen, aller Trigger an -listdefault: zeigt die standardmäßig genutzen Trigger an - add: fügt einen Trigger hinzu - addoff: fügt einen Trigger hinzu (deaktiviert) - addreplace: fügt oder ersetzt einen schon existierenden Trigger - name: Name des Trigger + list: list triggers (without argument, this list is displayed) + listfull: list triggers with detailed info for each trigger +listdefault: list default triggers + add: add a trigger + addoff: add a trigger (disabled) + addreplace: add or replace an existing trigger + name: name of trigger hook: signal, hsignal, modifier, print, command, command_run, timer, config, focus - arguments: Argumente für den Hook, abhängig vom genutzten Hook (getrennt durch Semikolon): - signal: Name(en) des signals (erforderlich) - hsignal: Name(en) des hsignal (erforderlich) - modifier: Name(en) des modifier (erforderlich) + arguments: arguments for the hook, depending on hook (separated by semicolons): + signal: name(s) of signal (required) + hsignal: name(s) of hsignal (required) + modifier: name(s) of modifier (required) print: buffer, tags, message, strip colors - command: Befehl (erforderlich), Beschreibung, Argumente, Beschreibung der Argumente, Vervollständigung - command_run: Befehl(e) (erforderlich) - timer: Intervall (erforderlich), Anpassung an Sekunden (erforderlich), maximale Anzahl an Aufrufen - config: Name der Option (erforderlich) - focus: Name(n) für sichtbaren Bereich (erforderlich) (z.B. "chat" für Chatbereich) - conditions: evaluierte Bedingungen für den Trigger - regex: einer oder mehrere reguläre Ausdrücke um Zeichenketten in Variablen zu ersetzen - command: Befehl welcher ausgeführt werden soll (mehrere Befehle müssen durch ";" voneinander getrennt werden -return_code: Rückgabewert für Callback (ok (standard), ok_eat, error) - addinput: erstellt einen Trigger mit einer standardmäßigen Mustervorlage - input: kopiert den kompletten Trigger-Befehl in die Eingabezeile - output: schickt den Trigger-Befehl als Text in den Buffer - recreate: wie "input", allerdings wird die Option "addreplace" anstelle von "add" genutzt - set: definiert, innerhalb eines Triggers, eine Option neu - option: Name einer Option: name, hook, arguments, conditions, regex, command, return_code - (um Hilfe über eine Option zu erhalten: /help trigger.trigger.<name>.<option>) - value: neuer Wert für Option - rename: benennt einen Trigger um - copy: kopiert einen Trigger - enable: aktiviert Trigger (ohne Angabe von Argumenten: aktiviert alle Trigger) - disable: deaktiviert Trigger (ohne Angabe von Argumenten: deaktiviert alle Trigger) - toggle: de-/aktiviert Trigger (ohne Angabe von Argumenten: de-/aktiviert alle Trigger) - restart: startet Trigger neu (Hook(s) werden neu erstellt) - show: zeigt detaillierte Informationen zu einem Trigger (inklusive einer kleinen Statistik) - del: entfernt einen Trigger - -all: führt eine Aktion aus, die alle Trigger beinhaltet - default: stellt die standardmäßigen Trigger wieder her - monitor: öffnet den Trigger-Monitor Buffer + command: command (required), description, arguments, description of arguments, completion + command_run: command(s) (required) + timer: interval (required), align on second, max calls + config: name(s) of option (required) + focus: name(s) of area (required) + conditions: evaluated conditions for the trigger + regex: one or more regular expressions to replace strings in variables + command: command to execute (many commands can be separated by ";" +return_code: return code in callback (ok (default), ok_eat, error) + addinput: set input with default arguments to create a trigger + input: set input with the command used to create the trigger + output: send the command to create the trigger on the buffer + recreate: same as "input", with option "addreplace" instead of "add" + set: set an option in a trigger + option: name of option: name, hook, arguments, conditions, regex, command, return_code + (for help on option, you can type: /help trigger.trigger.<name>.<option>) + value: new value for the option + rename: rename a trigger + copy: copy a trigger + enable: enable trigger(s) (without arguments: enable triggers globally) + disable: disable trigger(s) (without arguments: disable triggers globally) + toggle: toggle trigger(s) (without arguments: toggle triggers globally) + restart: restart trigger(s) (recreate the hooks) + show: show detailed info on a trigger (with some stats) + del: delete a trigger + -all: do action on all triggers + default: restore default triggers + monitor: open the trigger monitor buffer, with optional filter: + filter: filter hooks/triggers to display (a hook must start with "@", for example "@signal"), many filters can be separated by commas; each trigger name can start or end with "*" -Wenn ein Trigger-Callback aufgerufen wird, dann wird folgende Befehlskette ausgeführt: - 1. Überprüfung von Bedingungen; falls unwahr, beenden - 2. ersetze Text mittels erweitertem regulärer POSIX Ausdruck (sofern im Trigger definiert) - 3. ein oder mehrere Befehle werden ausgeführt (sofern im Trigger definiert) - 4. Beendigung mit einem Rückgabewert (ausgenommen sind modifiers und focus) +When a trigger callback is called, following actions are performed, in this order: + 1. check conditions; if false, exit + 2. replace text using POSIX extended regular expression(s) (if defined in trigger) + 3. execute command(s) (if defined in trigger) + 4. exit with a return code (except for modifiers and focus) -Beispiele (die standardmäßig, eingebauten Trigger kann man sich mit "/trigger listdefault" anzeigen lassen): - fügt einer Nachricht die Textattribute *fett*, _unterstrichen_ und /kursiv/ hinzu: +Examples (you can also look at default triggers with /trigger listdefault): + add text attributes *bold*, _underline_ and /italic/ (only in user messages): /trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*(\S+)\*==*${color:bold}$1${color:-bold}*== ==_(\S+)_==_${color:underline}$1${color:-underline}_== ==/(\S+)/==/${color:italic}$1${color:-italic}/" - verbirgt die Nicklist auf kleineren Terminals: + hide nicklist bar on small terminals: /trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist" /trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist" - speichert die Konfiguration jede Stunde ab: + silently save config each hour: /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" + open trigger monitor and show only modifiers and triggers whose name starts with "resize": + /trigger monitor @modifier,resize* ---- diff --git a/doc/en/autogen/plugin_api/completions.txt b/doc/en/autogen/plugin_api/completions.txt index 33680a6a1..f5edac824 100644 --- a/doc/en/autogen/plugin_api/completions.txt +++ b/doc/en/autogen/plugin_api/completions.txt @@ -82,6 +82,8 @@ | trigger | trigger_hooks | hooks for triggers +| trigger | trigger_hooks_filter | hooks for triggers (for filter in monitor buffer) + | trigger | trigger_names | triggers | trigger | trigger_option_value | value of a trigger option diff --git a/doc/en/autogen/user/trigger_commands.txt b/doc/en/autogen/user/trigger_commands.txt index 863e42cec..553056b7b 100644 --- a/doc/en/autogen/user/trigger_commands.txt +++ b/doc/en/autogen/user/trigger_commands.txt @@ -13,7 +13,7 @@ show <name> del <name>|-all [<name>...] default -yes - monitor + monitor [<filter>] list: list triggers (without argument, this list is displayed) listfull: list triggers with detailed info for each trigger @@ -55,7 +55,8 @@ return_code: return code in callback (ok (default), ok_eat, error) del: delete a trigger -all: do action on all triggers default: restore default triggers - monitor: open the trigger monitor buffer + monitor: open the trigger monitor buffer, with optional filter: + filter: filter hooks/triggers to display (a hook must start with "@", for example "@signal"), many filters can be separated by commas; each trigger name can start or end with "*" When a trigger callback is called, following actions are performed, in this order: 1. check conditions; if false, exit @@ -71,5 +72,7 @@ Examples (you can also look at default triggers with /trigger listdefault): /trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist" silently save config each hour: /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" + open trigger monitor and show only modifiers and triggers whose name starts with "resize": + /trigger monitor @modifier,resize* ---- diff --git a/doc/fr/autogen/plugin_api/completions.txt b/doc/fr/autogen/plugin_api/completions.txt index f99223a7a..18de880e3 100644 --- a/doc/fr/autogen/plugin_api/completions.txt +++ b/doc/fr/autogen/plugin_api/completions.txt @@ -82,6 +82,8 @@ | trigger | trigger_hooks | hooks pour les triggers +| trigger | trigger_hooks_filter | hooks pour les triggers (pour filtrer dans le tampon moniteur) + | trigger | trigger_names | triggers | trigger | trigger_option_value | valeur d'une option de trigger diff --git a/doc/fr/autogen/user/trigger_commands.txt b/doc/fr/autogen/user/trigger_commands.txt index 30fba517f..849b50b45 100644 --- a/doc/fr/autogen/user/trigger_commands.txt +++ b/doc/fr/autogen/user/trigger_commands.txt @@ -13,7 +13,7 @@ show <nom> del <nom>|-all [<nom>...] default -yes - monitor + monitor [<filtre>] list: lister les triggers (sans paramètre, cette liste est affichée) listfull: lister les triggers avec des informations détaillées pour chaque trigger @@ -56,6 +56,7 @@ code_retour: code retour dans le callback (ok (par défaut), ok_eat, error) -all: effectuer l'action sur tous les triggers default: restaurer les triggers par défaut monitor: ouvrir le tampon moniteur des triggers + filtre: filtrer les hooks/triggers à afficher (un hook doit commencer par "@", par exemple "@signal"), plusieurs filtres peuvent être séparés par des virgules; chaque nom de trigger peut commencer ou se terminer par "*" Lorsqu'un callback de trigger est appelé, les actions suivantes sont exécutées, dans cet ordre : 1. vérifier les conditions; si faux, sortir @@ -71,5 +72,7 @@ Exemples (vous pouvez aussi regarder les triggers par défaut avec /trigger list /trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist" sauver la configuration chaque heure (de manière silencieuse): /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" + ouvrir le tampon moniteur des triggers et afficher seulement les modificateurs et les triggers dont le nom commence par "resize": + /trigger monitor @modifier,resize* ---- diff --git a/doc/it/autogen/plugin_api/completions.txt b/doc/it/autogen/plugin_api/completions.txt index ef49257dd..4d8186a31 100644 --- a/doc/it/autogen/plugin_api/completions.txt +++ b/doc/it/autogen/plugin_api/completions.txt @@ -82,6 +82,8 @@ | trigger | trigger_hooks | hooks for triggers +| trigger | trigger_hooks_filter | hooks for triggers (for filter in monitor buffer) + | trigger | trigger_names | triggers | trigger | trigger_option_value | value of a trigger option diff --git a/doc/it/autogen/user/trigger_commands.txt b/doc/it/autogen/user/trigger_commands.txt index 863e42cec..553056b7b 100644 --- a/doc/it/autogen/user/trigger_commands.txt +++ b/doc/it/autogen/user/trigger_commands.txt @@ -13,7 +13,7 @@ show <name> del <name>|-all [<name>...] default -yes - monitor + monitor [<filter>] list: list triggers (without argument, this list is displayed) listfull: list triggers with detailed info for each trigger @@ -55,7 +55,8 @@ return_code: return code in callback (ok (default), ok_eat, error) del: delete a trigger -all: do action on all triggers default: restore default triggers - monitor: open the trigger monitor buffer + monitor: open the trigger monitor buffer, with optional filter: + filter: filter hooks/triggers to display (a hook must start with "@", for example "@signal"), many filters can be separated by commas; each trigger name can start or end with "*" When a trigger callback is called, following actions are performed, in this order: 1. check conditions; if false, exit @@ -71,5 +72,7 @@ Examples (you can also look at default triggers with /trigger listdefault): /trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist" silently save config each hour: /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" + open trigger monitor and show only modifiers and triggers whose name starts with "resize": + /trigger monitor @modifier,resize* ---- diff --git a/doc/ja/autogen/plugin_api/completions.txt b/doc/ja/autogen/plugin_api/completions.txt index 00283f4ac..cc982bc25 100644 --- a/doc/ja/autogen/plugin_api/completions.txt +++ b/doc/ja/autogen/plugin_api/completions.txt @@ -82,6 +82,8 @@ | trigger | trigger_hooks | トリガに対するフック +| trigger | trigger_hooks_filter | hooks for triggers (for filter in monitor buffer) + | trigger | trigger_names | トリガ | trigger | trigger_option_value | トリガオプションの値 diff --git a/doc/ja/autogen/user/trigger_commands.txt b/doc/ja/autogen/user/trigger_commands.txt index ee87eda65..81fb2a7f2 100644 --- a/doc/ja/autogen/user/trigger_commands.txt +++ b/doc/ja/autogen/user/trigger_commands.txt @@ -13,63 +13,66 @@ show <name> del <name>|-all [<name>...] default -yes - monitor + monitor [<filter>] - list: トリガをリストアップ (引数なしの場合、このリストを表示します) - listfull: 各トリガに関する詳細な情報を付けてトリガをリストアップ -listdefault: デフォルトトリガをリストアップ - add: トリガを追加 - addoff: トリガを追加 (無効状態で) - addreplace: 追加または存在するトリガを置換 - name: トリガの名前 - hook: signal、hsignal、modifier、print、command、command_run、timer、config、focus - arguments: フックの引数、フックの種類に依存 (セミコロンで区切る): - signal: シグナルの名前 (必須) - hsignal: hsignal の名前 (必須) - modifier: modifier の名前 (必須) - print: バッファ、タグ、メッセージ、色の削除 - command: コマンド (必須)、説明、引数、引数の説明、補完 - command_run: コマンド (必須) - timer: インターバル (必須)、秒の調節、最大呼び出し回数 - config: オプションの名前 (必須) - focus: エリアの名前 (必須) - conditions: トリガの実行条件 - regex: 変数内の文字列を置換する 1 つ以上の正規表現 - command: 実行するコマンド (複数のコマンドは ";" で区切ってください) -return_code: コールバック内のリターンコード (ok (デフォルト)、ok_eat、error) - addinput: 入力にトリガを作る際のデフォルト引数を設定 - input: 入力にトリガを作る際に使われるコマンドを設定 - output: バッファでトリガを作る際のコマンドを送信 - recreate: "add" の代わりに "addreplace" オプションを使うことを除いて "input" と同じ - set: トリガにオプションを設定 - option: オプションの名前: name、hook、arguments、conditions、regex、command、return_code - (オプションに関するヘルプを見るには: /help trigger.trigger.<name>.<option>) - value: オプションの新しい値 - rename: トリガの名前を変更 - copy: トリガをコピー - enable: トリガを有効化 (引数なしの場合: 大域的にトリガを有効化) - disable: トリガを無効化 (引数なしの場合: 大域的にトリガを無効化) - toggle: トリガの有効無効を切り替え (引数なしの場合: 大域的にトリガの有効無効を切り替え) - restart: トリガの再開 (フックを再作成) - show: トリガに関する情報を表示 (状態を含めて) - del: トリガを削除 - -all: 全てのトリガに関するアクションを実行 - default: デフォルトトリガを復元 - monitor: トリガ監視バッファを開く + list: list triggers (without argument, this list is displayed) + listfull: list triggers with detailed info for each trigger +listdefault: list default triggers + add: add a trigger + addoff: add a trigger (disabled) + addreplace: add or replace an existing trigger + name: name of trigger + hook: signal, hsignal, modifier, print, command, command_run, timer, config, focus + arguments: arguments for the hook, depending on hook (separated by semicolons): + signal: name(s) of signal (required) + hsignal: name(s) of hsignal (required) + modifier: name(s) of modifier (required) + print: buffer, tags, message, strip colors + command: command (required), description, arguments, description of arguments, completion + command_run: command(s) (required) + timer: interval (required), align on second, max calls + config: name(s) of option (required) + focus: name(s) of area (required) + conditions: evaluated conditions for the trigger + regex: one or more regular expressions to replace strings in variables + command: command to execute (many commands can be separated by ";" +return_code: return code in callback (ok (default), ok_eat, error) + addinput: set input with default arguments to create a trigger + input: set input with the command used to create the trigger + output: send the command to create the trigger on the buffer + recreate: same as "input", with option "addreplace" instead of "add" + set: set an option in a trigger + option: name of option: name, hook, arguments, conditions, regex, command, return_code + (for help on option, you can type: /help trigger.trigger.<name>.<option>) + value: new value for the option + rename: rename a trigger + copy: copy a trigger + enable: enable trigger(s) (without arguments: enable triggers globally) + disable: disable trigger(s) (without arguments: disable triggers globally) + toggle: toggle trigger(s) (without arguments: toggle triggers globally) + restart: restart trigger(s) (recreate the hooks) + show: show detailed info on a trigger (with some stats) + del: delete a trigger + -all: do action on all triggers + default: restore default triggers + monitor: open the trigger monitor buffer, with optional filter: + filter: filter hooks/triggers to display (a hook must start with "@", for example "@signal"), many filters can be separated by commas; each trigger name can start or end with "*" -トリガコールバックを呼び出す際には、以下の順番通りにアクションを実行します: - 1. 条件を確認; 偽の場合、終了 - 2. POSIX 拡張正規表現を使ってテキストを置換 (トリガに定義されている場合) - 3. コマンドを実行 (トリガに定義されている場合) - 4. リターンコードを返して終了 (modifier と focus を除く) +When a trigger callback is called, following actions are performed, in this order: + 1. check conditions; if false, exit + 2. replace text using POSIX extended regular expression(s) (if defined in trigger) + 3. execute command(s) (if defined in trigger) + 4. exit with a return code (except for modifiers and focus) -例 (/trigger listdefault でデフォルトトリガを見ることができます): - テキスト属性 *太字*、_下線_、/イタリック/ を追加 (ユーザメッセージのみ): +Examples (you can also look at default triggers with /trigger listdefault): + add text attributes *bold*, _underline_ and /italic/ (only in user messages): /trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*(\S+)\*==*${color:bold}$1${color:-bold}*== ==_(\S+)_==_${color:underline}$1${color:-underline}_== ==/(\S+)/==/${color:italic}$1${color:-italic}/" - 狭い端末ではニックネームリストバーを隠す: + hide nicklist bar on small terminals: /trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist" /trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist" - 設定を 1 時間毎に黙々と保存: + silently save config each hour: /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" + open trigger monitor and show only modifiers and triggers whose name starts with "resize": + /trigger monitor @modifier,resize* ---- diff --git a/doc/pl/autogen/plugin_api/completions.txt b/doc/pl/autogen/plugin_api/completions.txt index 53e55a9a8..a2d197699 100644 --- a/doc/pl/autogen/plugin_api/completions.txt +++ b/doc/pl/autogen/plugin_api/completions.txt @@ -82,6 +82,8 @@ | trigger | trigger_hooks | hooks for triggers +| trigger | trigger_hooks_filter | hooks for triggers (for filter in monitor buffer) + | trigger | trigger_names | triggers | trigger | trigger_option_value | value of a trigger option diff --git a/doc/pl/autogen/user/trigger_commands.txt b/doc/pl/autogen/user/trigger_commands.txt index 863e42cec..553056b7b 100644 --- a/doc/pl/autogen/user/trigger_commands.txt +++ b/doc/pl/autogen/user/trigger_commands.txt @@ -13,7 +13,7 @@ show <name> del <name>|-all [<name>...] default -yes - monitor + monitor [<filter>] list: list triggers (without argument, this list is displayed) listfull: list triggers with detailed info for each trigger @@ -55,7 +55,8 @@ return_code: return code in callback (ok (default), ok_eat, error) del: delete a trigger -all: do action on all triggers default: restore default triggers - monitor: open the trigger monitor buffer + monitor: open the trigger monitor buffer, with optional filter: + filter: filter hooks/triggers to display (a hook must start with "@", for example "@signal"), many filters can be separated by commas; each trigger name can start or end with "*" When a trigger callback is called, following actions are performed, in this order: 1. check conditions; if false, exit @@ -71,5 +72,7 @@ Examples (you can also look at default triggers with /trigger listdefault): /trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist" silently save config each hour: /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" + open trigger monitor and show only modifiers and triggers whose name starts with "resize": + /trigger monitor @modifier,resize* ---- |