mirror of
https://github.com/weechat/weechat.git
synced 2026-06-28 05:46:38 +02:00
trigger: fix trigger example "effects" in /help trigger (update regex to new format)
This commit is contained in:
@@ -16,65 +16,65 @@
|
||||
default -yes
|
||||
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
|
||||
restore: stellt Trigger mit Standardwerten wieder her (funktioniert nur bei vorgegebenen Triggern)
|
||||
default: stellt die standardmäßigen Trigger wieder her
|
||||
monitor: öffnet den Trigger Monitor-Buffer, mit optionaler Filterfunktion:
|
||||
Filter: zeigt Hooks/Trigger an (ein Hook muss mit "@" beginnen, zum Beispiel "@signal"), mehrere Filter können durch Kommata voneinander getrennt werden; Platzhalter "*" kann im Namen des Trigger verwendet werden
|
||||
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
|
||||
restore: restore trigger(s) with the default values (works only for default triggers)
|
||||
default: delete all triggers and restore default ones
|
||||
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; wildcard "*" is allowed in each trigger name
|
||||
|
||||
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:
|
||||
/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:
|
||||
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}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re: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"
|
||||
speichert die Konfiguration jede Stunde ab:
|
||||
silently save config each hour:
|
||||
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
|
||||
öffnet den Trigger Monitor und zeigt ausschließlich modifier und Trigger an, die mit "resize" im Namen beginnen:
|
||||
open trigger monitor and show only modifiers and triggers whose name starts with "resize":
|
||||
/trigger monitor @modifier,resize*
|
||||
----
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ When a trigger callback is called, following actions are performed, in this orde
|
||||
|
||||
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}/"
|
||||
/trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*(\S+)\*==*${color:bold}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re: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"
|
||||
|
||||
@@ -68,7 +68,7 @@ Lorsqu'un callback de trigger est appelé, les actions suivantes sont exécutée
|
||||
|
||||
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}/"
|
||||
/trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*(\S+)\*==*${color:bold}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re: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"
|
||||
|
||||
@@ -68,7 +68,7 @@ When a trigger callback is called, following actions are performed, in this orde
|
||||
|
||||
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}/"
|
||||
/trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*(\S+)\*==*${color:bold}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re: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"
|
||||
|
||||
@@ -16,65 +16,65 @@
|
||||
default -yes
|
||||
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: 全てのトリガに関するアクションを実行
|
||||
restore: デフォルトの値でトリガを復元 (これができるのはデフォルトトリガに限ります)
|
||||
default: 全てのトリガを削除してデフォルトのトリガを復元
|
||||
monitor: 任意でフィルタを付けてトリガ監視バッファを開く:
|
||||
filter: フックおよびトリガをフィルタして表示 (フックは必ず "@" で始めてください、たとえば "@signal")、複数のフィルタをかける場合はそれぞれをコンマで区切ってください; 各トリガ名にワイルドカード "*" を使うことができます。
|
||||
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
|
||||
restore: restore trigger(s) with the default values (works only for default triggers)
|
||||
default: delete all triggers and restore default ones
|
||||
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; wildcard "*" is allowed in each trigger name
|
||||
|
||||
トリガコールバックを呼び出す際には、以下の順番通りにアクションを実行します:
|
||||
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 でデフォルトトリガを見ることができます):
|
||||
テキスト属性 *太字*、_下線_、/イタリック/ を追加 (ユーザメッセージのみ):
|
||||
/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}/"
|
||||
狭い端末ではニックネームリストバーを隠す:
|
||||
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}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re: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"
|
||||
トリガモニタを開き、修飾子と名前が "resize" から始まるトリガだけを表示:
|
||||
open trigger monitor and show only modifiers and triggers whose name starts with "resize":
|
||||
/trigger monitor @modifier,resize*
|
||||
----
|
||||
|
||||
|
||||
@@ -16,65 +16,65 @@
|
||||
default -yes
|
||||
monitor [<filtr>]
|
||||
|
||||
list: lista triggerów (jeśli nie podano argumentu, wyświetli się ta lista)
|
||||
listfull: lista triggerów ze szczegółowymi informacjami
|
||||
listdefault: lista domyślnych triggerów
|
||||
add: dodaje trigger
|
||||
addoff: dodaje trigger (wyłączony)
|
||||
addreplace: dodaje lub zastępuje istniejący trigger
|
||||
nazwa: nazwa triggera
|
||||
uchwyt: signal, hsignal, modifier, print, command, command_run, timer, config, focus
|
||||
argumenty: argumenty dla uchwytu, w zależności od jego typu (oddzielone średnikami):
|
||||
signal: nazwa(-y) signal (wymagane)
|
||||
hsignal: nazwa(-y) hsignal (wymagane)
|
||||
modifier: nazwa(-y) modifier (wymagane)
|
||||
print: bufor, tagi, wiadomość, pomiń kolory
|
||||
command: komenda (wymagane), opis, argumenty, opis argumentów, dopełnienie
|
||||
command_run: komenda(-y) (wymagane)
|
||||
timer: interwał (wymagane), wyrównanie sekund, ilość wywołań
|
||||
config: nazwa(-y) opcji (wymagane)
|
||||
focus: nazwa(-y) obszarów (wymagane)
|
||||
warunki: przetwarzane warunki dla triggera
|
||||
regex: jedno lub więcej wyrażeń regularnych do zastępowania ciągów w zmiennych
|
||||
komenda: komenda do wykonania (wiele komend można oddzielić ";"
|
||||
zwracany_kod: kod zwracany w callbacku (ok (domyślne), ok_eat, error)
|
||||
addinput: ustawia wejście z domyślnymi argumentami do stworzenia triggera
|
||||
input: ustawia wejście z komendą użytą do stworzenia triggera
|
||||
output: wysyła komendę do stworzenia triggera do buforu
|
||||
recreate: tak samo jak "input", z opcją "addreplace" zamiast "add"
|
||||
set: ustawia opcje triggera
|
||||
opcja: nazwa opcji: name, hook, arguments, conditions, regex, command, return_code
|
||||
(aby uzyskać pomoc na temat opcji możesz wpisać: /help trigger.trigger.<nazwa>.<opcja>)
|
||||
wartość: nowa wartość dla opcji
|
||||
rename: zmienia nazwę triggera
|
||||
copy: kopiuje trigger
|
||||
enable: włącza trigger(y) (bez argumentów: włącza triggery globalnie)
|
||||
disable: wyłącza trigger(y) (bez argumentów: wyłącza triggery globalnie)
|
||||
toggle: zmienia stan triggera(-ów) (bez argumentów: zmienia stan triggerów globalnie)
|
||||
restart: restartuje trigger(y) (tworzy na nowo uchwyty)
|
||||
show: pokazuje szczegółowe informacje o triggerze (z niektórymi statystykami)
|
||||
del: usuwa trigger
|
||||
-all: wykonaj akcję na wszystkich triggerach
|
||||
restore: przywraca trigger(y) z domyślnymi wartościami (działa tylko dla domyślnych triggerów)
|
||||
default: przywraca domyślne triggery
|
||||
monitor: otwiera bufor monitorowania triggerów, z opcjonalnym filtrem:
|
||||
filtr: filtruje uchwyty/triggery do wyświetlenia (uchwyt musi się zaczynać od "@", na przykład "@signal"), wiele filtrów może być oddzielonych przecinkiem; dzika karta "*" jest dozwolona w nazwie każdego triggera
|
||||
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
|
||||
restore: restore trigger(s) with the default values (works only for default triggers)
|
||||
default: delete all triggers and restore default ones
|
||||
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; wildcard "*" is allowed in each trigger name
|
||||
|
||||
Kiedy callback triggera jest wywoływany, wykonywane są następujące akcje, w kolejności:
|
||||
1. sprawdzenie warunków; jeśli nie są spełnione, wyjście
|
||||
2. zastąpienie tekstu za pomocą rozszerzonych wyrażeń regularnych POSIX (jeśli zdefiniowane)
|
||||
3. wykonanie komend(y) (jeśli zdefiniowane)
|
||||
4. wyjście z kodem wyjścia (poza modifiers i 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)
|
||||
|
||||
Przykłady (możesz też spojrzeć na domyślne triggery za pomocą /trigger listdefault):
|
||||
dodaje atrybuty tekstu *bold*, _underline_ i /italic/ (tylko w wiadomościach użytkowników):
|
||||
/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}/"
|
||||
ukrywa pasek z nickami na małych terminalach:
|
||||
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}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re: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"
|
||||
cichy zapis plików konfiguracyjnych co każdą godzinę:
|
||||
silently save config each hour:
|
||||
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
|
||||
otwiera monitor triggerów i pokazuje tylko modifiers i triggery, których nazwa zaczyna się od "resize":
|
||||
open trigger monitor and show only modifiers and triggers whose name starts with "resize":
|
||||
/trigger monitor @modifier,resize*
|
||||
----
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-11-01 15:11+0100\n"
|
||||
"POT-Creation-Date: 2014-11-01 20:32+0100\n"
|
||||
"PO-Revision-Date: 2014-11-01 11:58+0100\n"
|
||||
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -10239,9 +10239,9 @@ msgid ""
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in user "
|
||||
"messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-11-01 15:11+0100\n"
|
||||
"POT-Creation-Date: 2014-11-01 20:32+0100\n"
|
||||
"PO-Revision-Date: 2014-11-01 11:58+0100\n"
|
||||
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -10518,9 +10518,9 @@ msgid ""
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in user "
|
||||
"messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
@@ -21,8 +21,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-11-01 15:11+0100\n"
|
||||
"PO-Revision-Date: 2014-11-01 15:12+0100\n"
|
||||
"POT-Creation-Date: 2014-11-01 20:32+0100\n"
|
||||
"PO-Revision-Date: 2014-11-01 20:33+0100\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: fr\n"
|
||||
@@ -11261,9 +11261,9 @@ msgid ""
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in user "
|
||||
"messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
@@ -11353,9 +11353,9 @@ msgstr ""
|
||||
" ajouter des attributs *gras*, _souligné_ et /italique/ (seulement dans les "
|
||||
"messages d'utilisateurs) :\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" cacher la barre de pseudos sur les petits terminaux :\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-11-01 15:11+0100\n"
|
||||
"POT-Creation-Date: 2014-11-01 20:32+0100\n"
|
||||
"PO-Revision-Date: 2014-11-01 11:58+0100\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -9608,9 +9608,9 @@ msgid ""
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in user "
|
||||
"messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-11-01 15:11+0100\n"
|
||||
"POT-Creation-Date: 2014-11-01 20:32+0100\n"
|
||||
"PO-Revision-Date: 2014-11-01 11:58+0100\n"
|
||||
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -10696,9 +10696,9 @@ msgid ""
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in user "
|
||||
"messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-11-01 15:11+0100\n"
|
||||
"POT-Creation-Date: 2014-11-01 20:32+0100\n"
|
||||
"PO-Revision-Date: 2014-11-01 11:58+0100\n"
|
||||
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
|
||||
"Language-Team: Japanese <https://github.com/l/weechat/tree/translation_ja>\n"
|
||||
@@ -10776,6 +10776,7 @@ msgstr ""
|
||||
"[<name>...] || show <name> || del <name>|-all [<name>...] || restore <name> "
|
||||
"[<name>...] || default -yes || monitor [<filter>]"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list triggers (without argument, this list is displayed)\n"
|
||||
" listfull: list triggers with detailed info for each trigger\n"
|
||||
@@ -10846,9 +10847,9 @@ msgid ""
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in user "
|
||||
"messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-11-01 15:11+0100\n"
|
||||
"POT-Creation-Date: 2014-11-01 20:32+0100\n"
|
||||
"PO-Revision-Date: 2014-11-01 11:58+0100\n"
|
||||
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -10971,6 +10971,7 @@ msgstr ""
|
||||
"[<nazwa>...] || show <nazwa> || del <nazwa>|-all [<nazwa>...] || restore "
|
||||
"<nazwa> [<nazwa>...] || default -yes || monitor [<filtr>]"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list triggers (without argument, this list is displayed)\n"
|
||||
" listfull: list triggers with detailed info for each trigger\n"
|
||||
@@ -11041,9 +11042,9 @@ msgid ""
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in user "
|
||||
"messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
+4
-4
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-11-01 15:11+0100\n"
|
||||
"POT-Creation-Date: 2014-11-01 20:32+0100\n"
|
||||
"PO-Revision-Date: 2014-11-01 11:59+0100\n"
|
||||
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -9887,9 +9887,9 @@ msgid ""
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in user "
|
||||
"messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-11-01 15:11+0100\n"
|
||||
"POT-Creation-Date: 2014-11-01 20:32+0100\n"
|
||||
"PO-Revision-Date: 2014-11-01 11:59+0100\n"
|
||||
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -9633,9 +9633,9 @@ msgid ""
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in user "
|
||||
"messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-11-01 15:11+0100\n"
|
||||
"POT-Creation-Date: 2014-11-01 20:32+0100\n"
|
||||
"PO-Revision-Date: 2014-07-25 07:50+0200\n"
|
||||
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -8698,9 +8698,9 @@ msgid ""
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in user "
|
||||
"messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
+4
-4
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2014-11-01 15:11+0100\n"
|
||||
"POT-Creation-Date: 2014-11-01 20:32+0100\n"
|
||||
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
|
||||
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -8628,9 +8628,9 @@ msgid ""
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in user "
|
||||
"messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== ==_(\\S+)_==_${color:"
|
||||
"underline}${re:1}${color:-underline}_== ==/(\\S+)/==/${color:"
|
||||
"italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch \"${info:term_width} < "
|
||||
"100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
@@ -1148,9 +1148,9 @@ trigger_command_init ()
|
||||
" add text attributes *bold*, _underline_ and /italic/ (only in "
|
||||
"user messages):\n"
|
||||
" /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}/\"\n"
|
||||
"\"==\\*(\\S+)\\*==*${color:bold}${re:1}${color:-bold}*== "
|
||||
"==_(\\S+)_==_${color:underline}${re:1}${color:-underline}_== "
|
||||
"==/(\\S+)/==/${color:italic}${re:1}${color:-italic}/\"\n"
|
||||
" hide nicklist bar on small terminals:\n"
|
||||
" /trigger add resize_small signal signal_sigwinch "
|
||||
"\"${info:term_width} < 100\" \"\" \"/bar hide nicklist\"\n"
|
||||
|
||||
Reference in New Issue
Block a user