diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-21 16:32:34 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2014-02-21 16:32:34 +0100 |
commit | 384731849702336b63fc3a3a456875bed4ea90f1 (patch) | |
tree | 7709ffda366a024c4c0005982cd12d77179be541 /doc | |
parent | f907ea17d51d0446987970ab42b225054c99b12c (diff) | |
download | weechat-384731849702336b63fc3a3a456875bed4ea90f1.zip |
core: update translations
Diffstat (limited to 'doc')
-rw-r--r-- | doc/de/autogen/plugin_api/completions.txt | 18 | ||||
-rw-r--r-- | doc/de/autogen/user/trigger_commands.txt | 75 | ||||
-rw-r--r-- | doc/de/autogen/user/trigger_options.txt | 50 | ||||
-rw-r--r-- | doc/docgen.py | 2 | ||||
-rw-r--r-- | doc/en/autogen/plugin_api/completions.txt | 18 | ||||
-rw-r--r-- | doc/en/autogen/user/trigger_commands.txt | 75 | ||||
-rw-r--r-- | doc/en/autogen/user/trigger_options.txt | 50 | ||||
-rw-r--r-- | doc/fr/autogen/plugin_api/completions.txt | 18 | ||||
-rw-r--r-- | doc/fr/autogen/user/trigger_commands.txt | 75 | ||||
-rw-r--r-- | doc/fr/autogen/user/trigger_options.txt | 50 | ||||
-rw-r--r-- | doc/it/autogen/plugin_api/completions.txt | 18 | ||||
-rw-r--r-- | doc/it/autogen/user/trigger_commands.txt | 75 | ||||
-rw-r--r-- | doc/it/autogen/user/trigger_options.txt | 50 | ||||
-rw-r--r-- | doc/ja/autogen/plugin_api/completions.txt | 18 | ||||
-rw-r--r-- | doc/ja/autogen/user/trigger_commands.txt | 75 | ||||
-rw-r--r-- | doc/ja/autogen/user/trigger_options.txt | 50 | ||||
-rw-r--r-- | doc/pl/autogen/plugin_api/completions.txt | 18 | ||||
-rw-r--r-- | doc/pl/autogen/user/trigger_commands.txt | 75 | ||||
-rw-r--r-- | doc/pl/autogen/user/trigger_options.txt | 50 |
19 files changed, 859 insertions, 1 deletions
diff --git a/doc/de/autogen/plugin_api/completions.txt b/doc/de/autogen/plugin_api/completions.txt index 9c9c96884..17e506fa3 100644 --- a/doc/de/autogen/plugin_api/completions.txt +++ b/doc/de/autogen/plugin_api/completions.txt @@ -70,6 +70,24 @@ | tcl | tcl_script | Liste der Skripten +| trigger | trigger_hook_arguments | default arguments for a hook + +| trigger | trigger_hook_command | default command for a hook + +| trigger | trigger_hook_conditions | default conditions for a hook + +| trigger | trigger_hook_rc | default return codes for hook callback + +| trigger | trigger_hook_regex | default regular expression for a hook + +| trigger | trigger_hooks | hooks for triggers + +| trigger | trigger_names | triggers + +| trigger | trigger_option_value | value of a trigger option + +| trigger | trigger_options | options for triggers + | weechat | bars_names | Namen der Infobars | weechat | bars_options | Optionen für Infobars diff --git a/doc/de/autogen/user/trigger_commands.txt b/doc/de/autogen/user/trigger_commands.txt new file mode 100644 index 000000000..6d8eeb3b5 --- /dev/null +++ b/doc/de/autogen/user/trigger_commands.txt @@ -0,0 +1,75 @@ +[[command_trigger_trigger]] +[command]*`trigger`* manage triggers, the Swiss Army knife for WeeChat:: + +---- +/trigger list|listfull|listdefault + add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>"]]]]] + addinput [<hook>] + input|output|recreate <name> + set <name> <option> <value> + rename|copy <name> <new_name> + enable|disable|toggle [<name>|-all [<name>...]] + restart <name>|-all [<name>...] + show <name> + del <name>|-all [<name>...] + default -yes + 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 (required) + timer: interval (required), align on second (required), max calls (required) + config: name 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 + +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) + +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" + silently save config each hour: + /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" +---- + diff --git a/doc/de/autogen/user/trigger_options.txt b/doc/de/autogen/user/trigger_options.txt new file mode 100644 index 000000000..d113d1d93 --- /dev/null +++ b/doc/de/autogen/user/trigger_options.txt @@ -0,0 +1,50 @@ +* [[option_trigger.color.flag_command]] *trigger.color.flag_command* +** Beschreibung: `text color for command flag (in /trigger list)` +** Typ: Farbe +** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `lightgreen`) + +* [[option_trigger.color.flag_conditions]] *trigger.color.flag_conditions* +** Beschreibung: `text color for conditions flag (in /trigger list)` +** Typ: Farbe +** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `yellow`) + +* [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* +** Beschreibung: `text color for regex flag (in /trigger list)` +** Typ: Farbe +** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `lightcyan`) + +* [[option_trigger.color.flag_return_code]] *trigger.color.flag_return_code* +** Beschreibung: `text color for return code flag (in /trigger list)` +** Typ: Farbe +** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `lightmagenta`) + +* [[option_trigger.color.regex]] *trigger.color.regex* +** Beschreibung: `text color for regular expressions` +** Typ: Farbe +** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `white`) + +* [[option_trigger.color.replace]] *trigger.color.replace* +** Beschreibung: `text color for replacement text (for regular expressions)` +** Typ: Farbe +** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `cyan`) + +* [[option_trigger.color.trigger]] *trigger.color.trigger* +** Beschreibung: `text color for trigger name` +** Typ: Farbe +** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `green`) + +* [[option_trigger.color.trigger_disabled]] *trigger.color.trigger_disabled* +** Beschreibung: `text color for disabled trigger name` +** Typ: Farbe +** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen (Standardwert: `red`) + +* [[option_trigger.look.enabled]] *trigger.look.enabled* +** Beschreibung: `enable trigger support` +** Typ: boolesch +** Werte: on, off (Standardwert: `on`) + +* [[option_trigger.look.monitor_strip_colors]] *trigger.look.monitor_strip_colors* +** Beschreibung: `strip colors in hashtable values displayed on monitor buffer` +** Typ: boolesch +** Werte: on, off (Standardwert: `off`) + diff --git a/doc/docgen.py b/doc/docgen.py index f671a4300..6184b9e3e 100644 --- a/doc/docgen.py +++ b/doc/docgen.py @@ -101,7 +101,7 @@ plugin_list = { 'tcl': '', 'guile': '', 'trigger': 'o', - 'xfer': 'o', + 'xfer': 'co', } # options to ignore diff --git a/doc/en/autogen/plugin_api/completions.txt b/doc/en/autogen/plugin_api/completions.txt index 88ca39815..6b1f37c45 100644 --- a/doc/en/autogen/plugin_api/completions.txt +++ b/doc/en/autogen/plugin_api/completions.txt @@ -70,6 +70,24 @@ | tcl | tcl_script | list of scripts +| trigger | trigger_hook_arguments | default arguments for a hook + +| trigger | trigger_hook_command | default command for a hook + +| trigger | trigger_hook_conditions | default conditions for a hook + +| trigger | trigger_hook_rc | default return codes for hook callback + +| trigger | trigger_hook_regex | default regular expression for a hook + +| trigger | trigger_hooks | hooks for triggers + +| trigger | trigger_names | triggers + +| trigger | trigger_option_value | value of a trigger option + +| trigger | trigger_options | options for triggers + | weechat | bars_names | names of bars | weechat | bars_options | options for bars diff --git a/doc/en/autogen/user/trigger_commands.txt b/doc/en/autogen/user/trigger_commands.txt new file mode 100644 index 000000000..6d8eeb3b5 --- /dev/null +++ b/doc/en/autogen/user/trigger_commands.txt @@ -0,0 +1,75 @@ +[[command_trigger_trigger]] +[command]*`trigger`* manage triggers, the Swiss Army knife for WeeChat:: + +---- +/trigger list|listfull|listdefault + add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>"]]]]] + addinput [<hook>] + input|output|recreate <name> + set <name> <option> <value> + rename|copy <name> <new_name> + enable|disable|toggle [<name>|-all [<name>...]] + restart <name>|-all [<name>...] + show <name> + del <name>|-all [<name>...] + default -yes + 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 (required) + timer: interval (required), align on second (required), max calls (required) + config: name 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 + +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) + +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" + silently save config each hour: + /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" +---- + diff --git a/doc/en/autogen/user/trigger_options.txt b/doc/en/autogen/user/trigger_options.txt new file mode 100644 index 000000000..04b32fc1e --- /dev/null +++ b/doc/en/autogen/user/trigger_options.txt @@ -0,0 +1,50 @@ +* [[option_trigger.color.flag_command]] *trigger.color.flag_command* +** description: `text color for command flag (in /trigger list)` +** type: color +** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `lightgreen`) + +* [[option_trigger.color.flag_conditions]] *trigger.color.flag_conditions* +** description: `text color for conditions flag (in /trigger list)` +** type: color +** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `yellow`) + +* [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* +** description: `text color for regex flag (in /trigger list)` +** type: color +** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `lightcyan`) + +* [[option_trigger.color.flag_return_code]] *trigger.color.flag_return_code* +** description: `text color for return code flag (in /trigger list)` +** type: color +** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `lightmagenta`) + +* [[option_trigger.color.regex]] *trigger.color.regex* +** description: `text color for regular expressions` +** type: color +** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `white`) + +* [[option_trigger.color.replace]] *trigger.color.replace* +** description: `text color for replacement text (for regular expressions)` +** type: color +** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `cyan`) + +* [[option_trigger.color.trigger]] *trigger.color.trigger* +** description: `text color for trigger name` +** type: color +** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `green`) + +* [[option_trigger.color.trigger_disabled]] *trigger.color.trigger_disabled* +** description: `text color for disabled trigger name` +** type: color +** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (default value: `red`) + +* [[option_trigger.look.enabled]] *trigger.look.enabled* +** description: `enable trigger support` +** type: boolean +** values: on, off (default value: `on`) + +* [[option_trigger.look.monitor_strip_colors]] *trigger.look.monitor_strip_colors* +** description: `strip colors in hashtable values displayed on monitor buffer` +** type: boolean +** values: on, off (default value: `off`) + diff --git a/doc/fr/autogen/plugin_api/completions.txt b/doc/fr/autogen/plugin_api/completions.txt index c7bee98fa..124462bb2 100644 --- a/doc/fr/autogen/plugin_api/completions.txt +++ b/doc/fr/autogen/plugin_api/completions.txt @@ -70,6 +70,24 @@ | tcl | tcl_script | liste des scripts +| trigger | trigger_hook_arguments | paramètres par défaut pour un hook + +| trigger | trigger_hook_command | commande par défaut pour un hook + +| trigger | trigger_hook_conditions | conditions par défaut pour un hook + +| trigger | trigger_hook_rc | code retour par défaut pour un callback de hook + +| trigger | trigger_hook_regex | expression régulière par défaut pour le hook + +| trigger | trigger_hooks | hooks pour les triggers + +| trigger | trigger_names | triggers + +| trigger | trigger_option_value | valeur d'une option de trigger + +| trigger | trigger_options | options pour les triggers + | weechat | bars_names | noms des barres | weechat | bars_options | options pour les barres diff --git a/doc/fr/autogen/user/trigger_commands.txt b/doc/fr/autogen/user/trigger_commands.txt new file mode 100644 index 000000000..e46d8915c --- /dev/null +++ b/doc/fr/autogen/user/trigger_commands.txt @@ -0,0 +1,75 @@ +[[command_trigger_trigger]] +[command]*`trigger`* gestion des triggers, le couteau Suisse pour WeeChat:: + +---- +/trigger list|listfull|listdefault + add|addoff|addreplace <nom> <hook> ["<paramètres>" ["<conditions>" ["<regex>" ["<commande>" ["<code_retour>"]]]]] + addinput [<hook>] + input|output|recreate <nom> + set <nom> <option> <valeur> + rename|copy <nom> <nouveau_nom> + enable|disable|toggle [<nom>|-all [<nom>...]] + restart <nom>|-all [<nom>...] + show <nom> + del <nom>|-all [<nom>...] + default -yes + monitor + + 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 +listdefault: lister les triggers par défaut + add: ajouter un trigger + addoff: ajouter un trigger (désactivé) + addreplace: ajouter ou remplacer un trigger existant + nom: nom du trigger + hook: signal, hsignal, modifier, print, command, command_run, timer, config, focus + paramètres: paramètres pour le hook, dépendant du hook (séparés par des points-virgules): + signal: nom(s) de signal (obligatoire) + hsignal: nom(s) de signal (obligatoire) + modifier: nom(s) de modificateur (obligatoire) + print: tampon, étiquettes, message, suppression des couleurs (0/1) + command: commande (obligatoire), description, paramètres, description des paramètres, complétion + command_run: commande (obligatoire) + timer: intervalle (obligatoire), alignement sur la seconde (obligatoire), nombre max d'appels (obligatoire) + config: nom de l'option (obligatoire) + focus: nom(s) de la zone (obligatoire) + conditions: conditions évaluées pour le trigger + regex: une ou plusieurs expressions régulières pour remplacer des chaînes dans les variables + commande: commande à exécuter (plusieurs commandes peuvent être séparées par ";") +code_retour: code retour dans le callback (ok (par défaut), ok_eat, error) + addinput: définir la ligne de commande avec les paramètres par défaut pour créer un trigger + input: définir la ligne de commande utilisée pour créer le trigger + output: envoyer la commande pour créer le trigger sur le tampon + recreate: comme "input", avec l'option "addreplace" au lieu de "add" + set: définir une option dans un trigger + option: nom de l'option: name, hook, arguments, conditions, regex, command, return_code + (pour l'aide sur l'option, vous pouvez taper: /help trigger.trigger.<nom>.<option>) + valeur: nouvelle valeur pour l'option + rename: renommer un trigger + copy: copier un trigger + enable: activer un/des trigger(s) (sans paramètre: activer les triggers globalement) + disable: désactiver un/des trigger(s) (sans paramètre: désactiver les triggers globalement) + toggle: activer/désactiver un/des trigger(s) (sans paramètres: activer/désactiver les triggers globalement) + restart: redémarrer un/des trigger(s) (recréer les hooks) + show: afficher des informations détaillées sur un trigger (avec quelques statistiques) + del: supprimer un trigger + -all: effectuer l'action sur tous les triggers + default: restaurer les triggers par défaut + monitor: ouvrir le tampon moniteur des triggers + +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 + 2. remplacer le texte en utilisant une/des expression(s)s régulière(s)s POSIX étendue(s)s (si définie(s) dans le trigger) + 3. exécuter le(s) commande(s) (si définie(s) dans le trigger) + 4. sortir avec le code retour (sauf pour les modificateurs et focus) + +Exemples (vous pouvez aussi regarder les triggers par défaut avec /trigger listdefault): + ajouter des attributs *gras*, _souligné_ et /italique/ (seulement dans les messages d'utilisateurs): + /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}/" + cacher la barre de pseudos sur les petits terminaux: + /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" + sauver la configuration chaque heure (de manière silencieuse): + /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" +---- + diff --git a/doc/fr/autogen/user/trigger_options.txt b/doc/fr/autogen/user/trigger_options.txt new file mode 100644 index 000000000..db470a5b8 --- /dev/null +++ b/doc/fr/autogen/user/trigger_options.txt @@ -0,0 +1,50 @@ +* [[option_trigger.color.flag_command]] *trigger.color.flag_command* +** description: `couleur du texte pour le drapeau de la commande (dans /trigger list)` +** type: couleur +** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `lightgreen`) + +* [[option_trigger.color.flag_conditions]] *trigger.color.flag_conditions* +** description: `couleur du texte pour le drapeau des conditions (dans /trigger list)` +** type: couleur +** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `yellow`) + +* [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* +** description: `couleur du texte pour le drapeaux de l'expression régulière (dans /trigger list)` +** type: couleur +** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `lightcyan`) + +* [[option_trigger.color.flag_return_code]] *trigger.color.flag_return_code* +** description: `couleur du texte pour le drapeau du code retour (dans /trigger list)` +** type: couleur +** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `lightmagenta`) + +* [[option_trigger.color.regex]] *trigger.color.regex* +** description: `couleur du texte pour les expressions régulières` +** type: couleur +** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `white`) + +* [[option_trigger.color.replace]] *trigger.color.replace* +** description: `couleur du texte pour le texte de remplacement (pour les expressions régulières)` +** type: couleur +** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `cyan`) + +* [[option_trigger.color.trigger]] *trigger.color.trigger* +** description: `couleur du texte pour le nom du trigger` +** type: couleur +** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `green`) + +* [[option_trigger.color.trigger_disabled]] *trigger.color.trigger_disabled* +** description: `couleur du texte pour le nom du trigger désactivé` +** type: couleur +** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné (valeur par défaut: `red`) + +* [[option_trigger.look.enabled]] *trigger.look.enabled* +** description: `activer le support des triggers` +** type: booléen +** valeurs: on, off (valeur par défaut: `on`) + +* [[option_trigger.look.monitor_strip_colors]] *trigger.look.monitor_strip_colors* +** description: `supprimer les couleurs dans la table de hachage affichée sur le tampon moniteur` +** type: booléen +** valeurs: on, off (valeur par défaut: `off`) + diff --git a/doc/it/autogen/plugin_api/completions.txt b/doc/it/autogen/plugin_api/completions.txt index 6fee632fd..ba2125657 100644 --- a/doc/it/autogen/plugin_api/completions.txt +++ b/doc/it/autogen/plugin_api/completions.txt @@ -70,6 +70,24 @@ | tcl | tcl_script | elenco degli script +| trigger | trigger_hook_arguments | default arguments for a hook + +| trigger | trigger_hook_command | default command for a hook + +| trigger | trigger_hook_conditions | default conditions for a hook + +| trigger | trigger_hook_rc | default return codes for hook callback + +| trigger | trigger_hook_regex | default regular expression for a hook + +| trigger | trigger_hooks | hooks for triggers + +| trigger | trigger_names | triggers + +| trigger | trigger_option_value | value of a trigger option + +| trigger | trigger_options | options for triggers + | weechat | bars_names | nomi delle barre | weechat | bars_options | opzioni per le barre diff --git a/doc/it/autogen/user/trigger_commands.txt b/doc/it/autogen/user/trigger_commands.txt new file mode 100644 index 000000000..6d8eeb3b5 --- /dev/null +++ b/doc/it/autogen/user/trigger_commands.txt @@ -0,0 +1,75 @@ +[[command_trigger_trigger]] +[command]*`trigger`* manage triggers, the Swiss Army knife for WeeChat:: + +---- +/trigger list|listfull|listdefault + add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>"]]]]] + addinput [<hook>] + input|output|recreate <name> + set <name> <option> <value> + rename|copy <name> <new_name> + enable|disable|toggle [<name>|-all [<name>...]] + restart <name>|-all [<name>...] + show <name> + del <name>|-all [<name>...] + default -yes + 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 (required) + timer: interval (required), align on second (required), max calls (required) + config: name 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 + +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) + +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" + silently save config each hour: + /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" +---- + diff --git a/doc/it/autogen/user/trigger_options.txt b/doc/it/autogen/user/trigger_options.txt new file mode 100644 index 000000000..1ddec3584 --- /dev/null +++ b/doc/it/autogen/user/trigger_options.txt @@ -0,0 +1,50 @@ +* [[option_trigger.color.flag_command]] *trigger.color.flag_command* +** descrizione: `text color for command flag (in /trigger list)` +** tipo: colore +** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `lightgreen`) + +* [[option_trigger.color.flag_conditions]] *trigger.color.flag_conditions* +** descrizione: `text color for conditions flag (in /trigger list)` +** tipo: colore +** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `yellow`) + +* [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* +** descrizione: `text color for regex flag (in /trigger list)` +** tipo: colore +** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `lightcyan`) + +* [[option_trigger.color.flag_return_code]] *trigger.color.flag_return_code* +** descrizione: `text color for return code flag (in /trigger list)` +** tipo: colore +** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `lightmagenta`) + +* [[option_trigger.color.regex]] *trigger.color.regex* +** descrizione: `text color for regular expressions` +** tipo: colore +** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `white`) + +* [[option_trigger.color.replace]] *trigger.color.replace* +** descrizione: `text color for replacement text (for regular expressions)` +** tipo: colore +** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `cyan`) + +* [[option_trigger.color.trigger]] *trigger.color.trigger* +** descrizione: `text color for trigger name` +** tipo: colore +** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `green`) + +* [[option_trigger.color.trigger_disabled]] *trigger.color.trigger_disabled* +** descrizione: `text color for disabled trigger name` +** tipo: colore +** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline (valore predefinito: `red`) + +* [[option_trigger.look.enabled]] *trigger.look.enabled* +** descrizione: `enable trigger support` +** tipo: bool +** valori: on, off (valore predefinito: `on`) + +* [[option_trigger.look.monitor_strip_colors]] *trigger.look.monitor_strip_colors* +** descrizione: `strip colors in hashtable values displayed on monitor buffer` +** tipo: bool +** valori: on, off (valore predefinito: `off`) + diff --git a/doc/ja/autogen/plugin_api/completions.txt b/doc/ja/autogen/plugin_api/completions.txt index e77a27d27..3890debae 100644 --- a/doc/ja/autogen/plugin_api/completions.txt +++ b/doc/ja/autogen/plugin_api/completions.txt @@ -70,6 +70,24 @@ | tcl | tcl_script | スクリプトのリスト +| trigger | trigger_hook_arguments | default arguments for a hook + +| trigger | trigger_hook_command | default command for a hook + +| trigger | trigger_hook_conditions | default conditions for a hook + +| trigger | trigger_hook_rc | default return codes for hook callback + +| trigger | trigger_hook_regex | default regular expression for a hook + +| trigger | trigger_hooks | hooks for triggers + +| trigger | trigger_names | triggers + +| trigger | trigger_option_value | value of a trigger option + +| trigger | trigger_options | options for triggers + | weechat | bars_names | バーの名前 | weechat | bars_options | バーのオプション diff --git a/doc/ja/autogen/user/trigger_commands.txt b/doc/ja/autogen/user/trigger_commands.txt new file mode 100644 index 000000000..6d8eeb3b5 --- /dev/null +++ b/doc/ja/autogen/user/trigger_commands.txt @@ -0,0 +1,75 @@ +[[command_trigger_trigger]] +[command]*`trigger`* manage triggers, the Swiss Army knife for WeeChat:: + +---- +/trigger list|listfull|listdefault + add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>"]]]]] + addinput [<hook>] + input|output|recreate <name> + set <name> <option> <value> + rename|copy <name> <new_name> + enable|disable|toggle [<name>|-all [<name>...]] + restart <name>|-all [<name>...] + show <name> + del <name>|-all [<name>...] + default -yes + 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 (required) + timer: interval (required), align on second (required), max calls (required) + config: name 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 + +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) + +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" + silently save config each hour: + /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" +---- + diff --git a/doc/ja/autogen/user/trigger_options.txt b/doc/ja/autogen/user/trigger_options.txt new file mode 100644 index 000000000..f6f735c75 --- /dev/null +++ b/doc/ja/autogen/user/trigger_options.txt @@ -0,0 +1,50 @@ +* [[option_trigger.color.flag_command]] *trigger.color.flag_command* +** 説明: `text color for command flag (in /trigger list)` +** タイプ: 色 +** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `lightgreen`) + +* [[option_trigger.color.flag_conditions]] *trigger.color.flag_conditions* +** 説明: `text color for conditions flag (in /trigger list)` +** タイプ: 色 +** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `yellow`) + +* [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* +** 説明: `text color for regex flag (in /trigger list)` +** タイプ: 色 +** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `lightcyan`) + +* [[option_trigger.color.flag_return_code]] *trigger.color.flag_return_code* +** 説明: `text color for return code flag (in /trigger list)` +** タイプ: 色 +** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `lightmagenta`) + +* [[option_trigger.color.regex]] *trigger.color.regex* +** 説明: `text color for regular expressions` +** タイプ: 色 +** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `white`) + +* [[option_trigger.color.replace]] *trigger.color.replace* +** 説明: `text color for replacement text (for regular expressions)` +** タイプ: 色 +** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `cyan`) + +* [[option_trigger.color.trigger]] *trigger.color.trigger* +** 説明: `text color for trigger name` +** タイプ: 色 +** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `green`) + +* [[option_trigger.color.trigger_disabled]] *trigger.color.trigger_disabled* +** 説明: `text color for disabled trigger name` +** タイプ: 色 +** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、ターミナル色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_" (デフォルト値: `red`) + +* [[option_trigger.look.enabled]] *trigger.look.enabled* +** 説明: `enable trigger support` +** タイプ: ブール +** 値: on, off (デフォルト値: `on`) + +* [[option_trigger.look.monitor_strip_colors]] *trigger.look.monitor_strip_colors* +** 説明: `strip colors in hashtable values displayed on monitor buffer` +** タイプ: ブール +** 値: on, off (デフォルト値: `off`) + diff --git a/doc/pl/autogen/plugin_api/completions.txt b/doc/pl/autogen/plugin_api/completions.txt index 9966a5a05..889dcc503 100644 --- a/doc/pl/autogen/plugin_api/completions.txt +++ b/doc/pl/autogen/plugin_api/completions.txt @@ -70,6 +70,24 @@ | tcl | tcl_script | lista skryptów +| trigger | trigger_hook_arguments | default arguments for a hook + +| trigger | trigger_hook_command | default command for a hook + +| trigger | trigger_hook_conditions | default conditions for a hook + +| trigger | trigger_hook_rc | default return codes for hook callback + +| trigger | trigger_hook_regex | default regular expression for a hook + +| trigger | trigger_hooks | hooks for triggers + +| trigger | trigger_names | triggers + +| trigger | trigger_option_value | value of a trigger option + +| trigger | trigger_options | options for triggers + | weechat | bars_names | nazwy pasków | weechat | bars_options | opcje pasków diff --git a/doc/pl/autogen/user/trigger_commands.txt b/doc/pl/autogen/user/trigger_commands.txt new file mode 100644 index 000000000..6d8eeb3b5 --- /dev/null +++ b/doc/pl/autogen/user/trigger_commands.txt @@ -0,0 +1,75 @@ +[[command_trigger_trigger]] +[command]*`trigger`* manage triggers, the Swiss Army knife for WeeChat:: + +---- +/trigger list|listfull|listdefault + add|addoff|addreplace <name> <hook> ["<arguments>" ["<conditions>" ["<regex>" ["<command>" ["<return_code>"]]]]] + addinput [<hook>] + input|output|recreate <name> + set <name> <option> <value> + rename|copy <name> <new_name> + enable|disable|toggle [<name>|-all [<name>...]] + restart <name>|-all [<name>...] + show <name> + del <name>|-all [<name>...] + default -yes + 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 (required) + timer: interval (required), align on second (required), max calls (required) + config: name 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 + +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) + +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" + silently save config each hour: + /trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save" +---- + diff --git a/doc/pl/autogen/user/trigger_options.txt b/doc/pl/autogen/user/trigger_options.txt new file mode 100644 index 000000000..7547f88d4 --- /dev/null +++ b/doc/pl/autogen/user/trigger_options.txt @@ -0,0 +1,50 @@ +* [[option_trigger.color.flag_command]] *trigger.color.flag_command* +** opis: `text color for command flag (in /trigger list)` +** typ: kolor +** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `lightgreen`) + +* [[option_trigger.color.flag_conditions]] *trigger.color.flag_conditions* +** opis: `text color for conditions flag (in /trigger list)` +** typ: kolor +** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `yellow`) + +* [[option_trigger.color.flag_regex]] *trigger.color.flag_regex* +** opis: `text color for regex flag (in /trigger list)` +** typ: kolor +** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `lightcyan`) + +* [[option_trigger.color.flag_return_code]] *trigger.color.flag_return_code* +** opis: `text color for return code flag (in /trigger list)` +** typ: kolor +** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `lightmagenta`) + +* [[option_trigger.color.regex]] *trigger.color.regex* +** opis: `text color for regular expressions` +** typ: kolor +** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `white`) + +* [[option_trigger.color.replace]] *trigger.color.replace* +** opis: `text color for replacement text (for regular expressions)` +** typ: kolor +** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `cyan`) + +* [[option_trigger.color.trigger]] *trigger.color.trigger* +** opis: `text color for trigger name` +** typ: kolor +** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `green`) + +* [[option_trigger.color.trigger_disabled]] *trigger.color.trigger_disabled* +** opis: `text color for disabled trigger name` +** typ: kolor +** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie (domyślna wartość: `red`) + +* [[option_trigger.look.enabled]] *trigger.look.enabled* +** opis: `enable trigger support` +** typ: bool +** wartości: on, off (domyślna wartość: `on`) + +* [[option_trigger.look.monitor_strip_colors]] *trigger.look.monitor_strip_colors* +** opis: `strip colors in hashtable values displayed on monitor buffer` +** typ: bool +** wartości: on, off (domyślna wartość: `off`) + |