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

doc: update auto-generated files

This commit is contained in:
Sébastien Helleu
2022-09-11 16:30:55 +02:00
parent 731f7e4243
commit 82f59d2a98
5 changed files with 207 additions and 207 deletions
+58 -58
View File
@@ -3137,72 +3137,72 @@ Ohne Angabe eines Argumentes listet dieser Befehl alle geladenen Skripten auf.
default -yes
monitor [<filter>]
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
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 genutzten Trigger an
add: fügt einen Trigger hinzu
addoff: fügt einen Trigger hinzu (deaktiviert)
addreplace: erzeugt neuen Trigger oder ersetzt einen schon existierenden Trigger
name: Name des Trigger
hook: signal, hsignal, modifier, line, print, command, command_run, timer, config, focus, info, info_hashtable
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)
line: buffer type ("formatted", "free" or "*"), list of buffer masks, tags
print: buffer, tags, message, strip colors
command: command (required), description, arguments, description of arguments, completion (all arguments except command are evaluated, "${tg_trigger_name}" is replaced by the trigger name, see /help eval)
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)
info: name(s) of info (required)
info_hashtable: name(s) of info (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)
post_action: action to take after execution (none (default), disable, delete)
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
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)
line: Buffertyp ("formatted", "free" oder "*"), Liste von Buffermasken, Tags
print: Buffer, Tags, Nachricht, Farben entfernen
command: Befehl (erforderlich), Beschreibung, Argumente, Beschreibung der Argumente, Vervollständigung (alle Argumente, außer dem Befehl werden ausgewertet, "${tg_trigger_name}" wird durch den Triggernamen ersetzt, siehe /help eval)
command_run: Befehl(e) (erforderlich)
timer: Intervall (erforderlich), Anpassung an Sekunden (erforderlich), maximale Anzahl an Aufrufen
config: Name der Einstellung (erforderlich)
focus: Name(n) für sichtbaren Bereich (erforderlich) (z.B. "chat" für Chatbereich)
info: Name(n) der Information (erforderlich)
info_hashtable: Name(n) der Information (erforderlich)
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)
post_action: Aktion welche nach der Abarbeitung des Triggers ausgeführt werden soll (none (Standardwert), disable, delete)
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 Einstellung "addreplace" anstelle von "add" genutzt
set: definiert, innerhalb eines Triggers, eine Einstellung neu
option: Name einer Einstellung: name, hook, arguments, conditions, regex, command, return_code
(um Hilfe über eine Einstellung zu erhalten: /help trigger.trigger.<name>.<option>)
value: neuer Wert für Einstellung
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 betrifft
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: filtert Hooks/Trigger zum Anzeigen (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
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 modifier, line, focus, info and info_hashtable)
5. perform post action
Wenn ein Trigger-Callback aufgerufen wird, dann wird folgende Befehlskette ausgeführt:
1. Überprüfung von Bedingungen; falls unwahr, beenden
2. ersetze Text mittels einem oder mehreren erweiterten regulären POSIX Ausdrücken (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, line, focus, info und info_hashtable)
5. Aktion welche nach der Abarbeitung des Triggers ausgeführt werden soll
Examples (you can also look at default triggers with /trigger listdefault):
add text attributes *bold*, _underline_ and /italic/ (only in user messages):
Beispiele (die standardmäßig verfügbaren Trigger kann man sich mit "/trigger listdefault" anzeigen lassen):
fügt einer Nachricht die Textattribute *fett*, _unterstrichen_ und /kursiv/ hinzu (nur in User-Nachrichten):
/trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*([^ ]+)\*==*${color:bold}${re:1}${color:-bold}*== ==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== ==/([^ ]+)/==/${color:italic}${re:1}${color:-italic}/"
hide nicklist bar on small terminals:
verbirgt die Nicklist auf kleineren 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:
speichert die Konfiguration jede Stunde ab:
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
silently save WeeChat session at midnight (see /help upgrade):
speichert, ohne Ausgabe von Text, eine Weechat-Sitzung um Mitternach (siehe /help upgrade):
/trigger add session_save signal day_changed "" "" "/mute /upgrade -save"
open trigger monitor and show only modifiers and triggers whose name starts with "resize":
öffnet den Trigger Monitor und zeigt ausschließlich modifier und Trigger an, die mit "resize" im Namen beginnen:
/trigger monitor @modifier,resize*
----
// end::trigger_commands[]
+6 -6
View File
@@ -1403,7 +1403,7 @@
** Standardwert: `+default+`
* [[option_logger.file.auto_log]] *logger.file.auto_log*
** Beschreibung: pass:none[automatically save content of buffers to files (unless a buffer disables log); if disabled, logging is disabled on all buffers]
** Beschreibung: pass:none[speichert automatisch den Inhalt eines Buffers in eine Datei (sofern das Protokollieren für den Buffer nicht deaktiviert sein sollte); Falls deaktiviert, wird die Protokollierung für alle Buffer deaktiviert]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
@@ -1551,7 +1551,7 @@
** Standardwert: `+lightmagenta+`
* [[option_trigger.color.identifier]] *trigger.color.identifier*
** Beschreibung: pass:none[text color for trigger context identifier in monitor buffer]
** Beschreibung: pass:none[Textfarbe für Trigger-Kontextkennung im Monitorbuffer]
** 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+`
@@ -1783,7 +1783,7 @@
** Standardwert: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.enabled]] *buflist.look.enabled*
** Beschreibung: pass:none[enable buflist; it is recommended to use this option instead of just hiding the bar because it also removes some internal hooks that are not needed any more when the bar is hidden; you can also use the command "/buflist toggle" or use the default key alt+shift+b]
** Beschreibung: pass:none[Buflist aktivieren; Es wird empfohlen, diese Option zu verwenden, anstatt nur die Bar zu verstecken, da hiermit auch interne Hooks entfernt werden, die nicht benötigt werden, falls die Leiste ausgeblendet wird; Sie können auch den Befehl "/buflist toggle" verwenden oder die Standardtastenbelegung alt+shift+b]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
@@ -2139,7 +2139,7 @@
** Standardwert: `+cyan+`
* [[option_irc.color.message_chghost]] *irc.color.message_chghost*
** Beschreibung: pass:none[color for text in "chghost" messages]
** Beschreibung: pass:none[Textfarbe in der "chghost" Nachrichten dargestellt werden]
** 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: `+brown+`
@@ -2163,7 +2163,7 @@
** Standardwert: `+red+`
* [[option_irc.color.message_setname]] *irc.color.message_setname*
** Beschreibung: pass:none[color for text in "setname" messages]
** Beschreibung: pass:none[Textfarbe in der "setname" Nachrichten dargestellt werden]
** 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: `+brown+`
@@ -2565,7 +2565,7 @@
** Standardwert: `+on+`
* [[option_irc.look.smart_filter_setname]] *irc.look.smart_filter_setname*
** Beschreibung: pass:none[enable smart filter for "setname" messages]
** Beschreibung: pass:none[aktiviert einen intelligenten Filter für "setname" Nachrichten]
** Typ: boolesch
** Werte: on, off
** Standardwert: `+on+`
+1 -1
View File
@@ -128,7 +128,7 @@
| weechat | uptime | WeeChat време извршавања (формат: „дана:чч:мм:сс”) | „days” (број дана) или „seconds” (број секунди) (није обавезно)
| weechat | uptime_current | WeeChat uptime for the current process only (upgrades with /upgrade command are ignored) (format: "days:hh:mm:ss") | „days” (број дана) или „seconds” (број секунди) (није обавезно)
| weechat | uptime_current | WeeChat време извршавања само за текући процес (ажурирања помоћу команде /upgrade се игноришу) (формат: „дана:чч:мм:сс”) | „days” (број дана) или „seconds” (број секунди) (није обавезно)
| weechat | version | верзија програма WeeChat | -
+135 -135
View File
@@ -174,26 +174,26 @@ Examples:
req|ack [<могућност> [<могућност>...]]
end
ls: list the capabilities supported by the server
list: list the capabilities currently enabled
req: request a new capability or remove a capability (if starting with "-", for example: "-multi-prefix")
ack: acknowledge capabilities which require client-side acknowledgement
end: end the capability negotiation
ls: исписује могућности које подржава сервер
list: исписује могућности које су тренутно укључене
req: захтева нову могућност или уклања могућност (ако почиње са „-”, на пример: -multi-prefix)
ack: прихвата могућности које захтевају потврду са клијентске стране
end: завршава преговарање о могућностима
Without argument, "ls" and "list" are sent.
Без аргумента се шаљу „ls” и „list”.
Capabilities supported by WeeChat are: account-notify, away-notify, cap-notify, chghost, extended-join, invite-notify, message-tags, multi-prefix, server-time, setname, userhost-in-names.
Програм WeeChat подржава следеће могућности: account-notify, away-notify, cap-notify, chghost, extended-join, invite-notify, multi-prefix, server-time, setname, userhost-in-names.
The capabilities to automatically enable on servers can be set in option irc.server_default.capabilities (or by server in option irc.server.xxx.capabilities).
Могућности које се аутоматски укључују на серверима могу да се поставе у опцији irc.server_default.capabilities (или посебно за сваки сервер у опцији irc.server.xxx.capabilities).
Examples:
display supported and enabled capabilities:
/cap
request capabilities multi-prefix and away-notify:
Примери:
приказ подржаних и укључених могућности:
/cap
захтев за могућности multi-prefix и away-notify:
/cap req multi-prefix away-notify
request capability extended-join, remove capability multi-prefix:
захтев за могућност extended-join, улањање могућности multi-prefix:
/cap req extended-join -multi-prefix
remove capability away-notify:
уклањање могућности away-notify:
/cap req -away-notify
----
@@ -2122,42 +2122,42 @@ passphrase: измена тајне реченице (без passphrase, под
----
[[command_weechat_upgrade]]
* `+upgrade+`: save WeeChat session and reload the WeeChat binary without disconnecting from servers
* `+upgrade+`: чува WeeChat сесију и поновно учитава WeeChat бинарни фајл без прекидања прекидања конекције са серверима
----
/upgrade [-yes] [<path_to_binary>|-save|-quit]
/upgrade [-yes] [<путања_до_бинарног>|-save|-quit]
-yes: required if option "weechat.look.confirm_upgrade" is enabled
path_to_binary: path to WeeChat binary (default is current binary)
-dummy: do nothing (option used to prevent accidental completion with "-quit")
-save: only save the session, do not quit nor reload WeeChat; the configuration files are not saved (if needed you can use /save before this command)
-quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)
-yes: обавезно ако је укључена опција „weechat.look.confirm_upgrade
путања_до_бинарног: путања до WeeChat бинарног фајла (подразумевано је текући бинарни фајл)
-dummy: не ради ништа (опција која се користи за спречавање нехотичног довршавања са „-quit)
-quit: затвара *СВЕ* конекције, чува сесију и напушта програм WeeChat, чиме се омогућава закашњена рестаурација (погледајте испод)
-save: only save the session, do not quit nor reload WeeChat; фајлови конфигурације се не чувају (ако је потребно, пре ове команде можете да употребите команду /save)
This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.
Ова команда ажурира и поновно учитава WeeChat сесију која се извршава. Нови WeeChat бинарни фајл мора бити компајлиран или инсталиран менаџером пакета пре покретања ове команде.
Note: SSL connections are lost during upgrade (except with -save), because the reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
Напомена: SSL конекције се губе током ажурирања (осим када се употреби -save), јер тренутно са GnuTLS није могуће поновно учитавање SSL сесија. Постоји аутоматско поновно успостављање конекције након ажурирања.
Important: use of option -save can be dangerous, it is recommended to use only /upgrade (or with -quit) for a standard upgrade and a restart; the option -save can be used to save the session regularly and restore it in case of after abnormal exit (power outage, crash, etc.)
Важно: употреба опције -save може бити опасна, препоручује се да за стандардно ажурирање и рестарт користите само /upgrade (или са -quit); опција -save може да се користи за редовно чување сесије и опоравак у случају да је дошло до неуобичајеног завршетка рада програма (нестанак напајања, крах програма, итд.)
Upgrade process has 4 steps:
1. save session into files for core and plugins (buffers, history, ..)
2. unload all plugins (configuration files (*.conf) are written on disk)
3. save WeeChat configuration (weechat.conf)
4. execute new WeeChat binary and reload session.
Процес ажурирања има 4 корака:
1. чување сесије у фајлове за језгро и додатке (бафери, историја, ..)
2. уклањање свих додатака из меморије (конфигурациони фајлови (*.conf) се уписују на диск)
3. чување WeeChat конфигурације (weechat.conf)
4. извршавање новог WeeChat бинарног фајла и поновно учитавање сесије.
With option "-quit", the process is:
1. close *ALL* connections (irc, xfer, relay, ...)
2. save session into files (*.upgrade)
3. unload all plugins
4. save WeeChat configuration
5. quit WeeChat
Процес са опцијом „-quit” је следећи:
1. затварање *СВИХ* конекција (irc, xfer, relay, ...)
2. чување сесије у фајлове (*.upgrade)
3. уклањање свих додатака из меморије
4. чување WeeChat конфигурације
5. напуштање програма WeeChat
With option "-save", the process is:
1. save session into files (*.upgrade) with a disconnected state for IRC servers and Relay clients (but no disconnection is made)
За опцију „-save” процес је следећи:
1. чување сесије у фајлове (*.upgrade) у стању прекинуте везе за IRC сервере и Релеј клијенте (али се не прекида ниједна веза)
With -quit or -save, you can restore the session later with this command: weechat --upgrade
IMPORTANT: you must restore the session with exactly same configuration (files *.conf) and if possible the same WeeChat version (or a more recent one).
It is possible to restore WeeChat session on another machine if you copy the content of WeeChat home directories (see /debug dirs).
У случају -quit или -save, сесију касније можете опоравити следећом командом: weechat --upgrade
ВАЖНО: сесију морате да обновите са потпуно истом конфигурацијом (фајлови *.conf) и ако је то могуће, са истом (или новијом) верзијом програма WeeChat.
WeeChat сесија може да се обнови на другој машини ако копирате садржај WeeChat почетних директоријума (погледајте /debug dirs).
----
[[command_weechat_uptime]]
@@ -2298,52 +2298,52 @@ scroll_unread: скролује на непрочитани маркер
bar
refresh
enable: enable buflist
disable: disable buflist
toggle: toggle buflist
bar: add the "buflist" bar
refresh: force the refresh of the bar items (buflist, buflist2 and buflist3)
enable: укључује buflist
disable: искључује buflist
toggle: пребацује buflist
bar: додаје „buflist” траку
refresh: форсира освежавање ставки траке (buflist, buflist2 и buflist3)
The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options:
- buflist.look.display_conditions: conditions to display a buffer in the list
- buflist.format.buffer: format for a buffer which is not current buffer
- buflist.format.buffer_current: format for the current buffer
Линије са баферима се приказују употребом израчунавања стринга (погледајте /help eval за формат), са следећим опцијама:
- buflist.look.display_conditions: услови под којима се бафер приказује у листи
- buflist.format.buffer: формат за бафер који није текући бафер
- buflist.format.buffer_current: формат за текући бафер
The following variables can be used in these options:
- bar item data (see hdata "bar_item" in API doc for a complete list), for example:
У овим опцијама је могуће коришћење следећих променљивих:
- подаци ставке траке (погледајте hdata bar_item” у документацији API за комплетну листу), на пример:
- ${bar_item.name}
- window data, where the bar item is displayed (there's no window in root bars, see hdata "window" in API doc for a complete list), for example:
- подаци о прозору, у коме се трака приказује (не постоји прозор у кореним тракама, погледајте hdata window” у документацији API за комплетну листу), на пример:
- ${window.number}
- ${window.buffer.full_name}
- buffer data (see hdata "buffer" in API doc for a complete list), for example:
- подаци о баферу (погледајте hdata bufferу API доку за комплетну листу), на пример:
- ${buffer.number}
- ${buffer.name}
- ${buffer.full_name}
- ${buffer.short_name}
- ${buffer.nicklist_nicks_count}
- irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc)
- irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc)
- extra variables added by buflist for convenience:
- ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
- ${current_buffer}: a boolean ("0" or "1"), "1" if this is the current buffer; it can be used in a condition: ${if:${current_buffer}?...:...}
- ${merged}: a boolean ("0" or "1"), "1" if the buffer is merged with at least another buffer; it can be used in a condition: ${if:${merged}?...:...}
- ${format_number}: indented number with separator (evaluation of option buflist.format.number)
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers; for merged buffers, this variable is set with number for the first buffer and spaces for the next buffers with same number
- ${number2}: indented number, for example " 1" if there are between 10 and 99 buffers
- ${number_displayed}: "1" if the number is displayed, otherwise "0"
- ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent)
- ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix)
- ${color_nick_prefix}: color of nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
- ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
- ${format_name}: formatted name (evaluation of option buflist.format.name)
- ${name}: the short name (if set), with a fallback on the name
- ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level)
- ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist)
- ${hotlist}: the raw hotlist
- ${hotlist_priority}: "none", "low", "message", "private" or "highlight"
- irc_server: подаци о IRC серверу, дефинисани су само за IRC бафер (погледајте hdata irc_server” у документацији API)
- irc_channel: подаци о IRC каналу, дефинисани су само за бафер IRC канала (погледајте hdata irc_channel” у документацији API)
- buflist додаје још неке променљиве како би се олакшала употреба:
- ${format_buffer}: израчуната вредност опције buflist.format.buffer; ово може да се користи у опцији buflist.format.buffer_current да би се, на пример, променила само боја позадине
- ${current_buffer}: логичка вредност („0” или „1”), „1” ако је ово текући бафер; може да се користи у услову: ${if:${current_buffer}?...:...}
- ${merged}: логичка вредност („0” или „1”), „1” ако је бафер спојен са барем још једним другим бафером; може да се користи у услову: ${if:${merged}?...:...}
- ${format_number}: увучени број са граничником (израчуната вредност опције buflist.format.number)
- ${number}: увучени број, на пример „1” ако постоји између 10 и 99 бафера; заспојене бафере, ова променљива се поставља на број првог бафера и размаке за наредне бафере са под истим бројем
- ${number2}: увучени број, на пример „ 1” ако постоји између 10 и 99 бафера
- ${number_displayed}: „1” ако се број приказује, у супротном „0”
- ${indent}: увлачење за име (бафери канала и приватни бафери се увлаче) (израчуната вредност опције buflist.format.indent)
- ${format_nick_prefix}: обојени префикс надимка за канал (израчуната вредност опције buflist.format.nick_prefix)
- ${color_nick_prefix}: боја префикса надимка за канал (постављена је само ако је опција buflist.look.nick_prefix укључена)
- ${nick_prefix}: префикс надимка за канал (постављена је само ако је опција buflist.look.nick_prefix укључена)
- ${format_name}: форматирано име (израчуната вредност опције buflist.format.name)
- ${name}: кратко име (ако је постављено), има вредност имена ако није постављено
- ${color_hotlist}: боја која зависи ид највишег нивоа бафера у врућој листи (израчуната вредност опције buflist.format.hotlist_xxx где је xxx ниво)
- ${format_hotlist}: форматирана врућа листа (израчуната вредност опције buflist.format.hotlist)
- ${hotlist}: сирова врућа листа
- ${hotlist_priority}: none, low, message, private” или „highlight
- ${hotlist_priority_number}: -1 = none, 0 = low, 1 = message, 2 = private, 3 = highlight
- ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag)
- ${format_tls_version}: indicator of TLS version for a server buffer, empty for channels (evaluation of option buflist.format.tls_version)
- ${format_lag}: кашњење за бафер IRC сервера, празна у случају да нема кашњења (израчуната вредност опције buflist.format.lag)
- ${format_tls_version}: индикатор TLS верзије за серверски бафер, празно за канале (резултат израчунавања опције buflist.format.tls_version)
----
// end::buflist_commands[]
@@ -3137,72 +3137,72 @@ autoload: учитавање свих скрипти из „autoload” дир
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, line, print, command, command_run, timer, config, focus, info, info_hashtable
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)
line: buffer type ("formatted", "free" or "*"), list of buffer masks, tags
print: buffer, tags, message, strip colors
command: command (required), description, arguments, description of arguments, completion (all arguments except command are evaluated, "${tg_trigger_name}" is replaced by the trigger name, see /help eval)
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)
info: name(s) of info (required)
info_hashtable: name(s) of info (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)
post_action: action to take after execution (none (default), disable, delete)
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
list: листа окидача (без аргумента се приказује ова листа)
listfull: листа окидача са детаљним инфо о сваком окидачу
listdefault: листа подразумеваних окидача
add: додавање окидача
addoff: додавање окидача (искљученог)
addreplace: додавање или замена постојећег окидача
име: име окидача
кука: signal, hsignal, modifier, line, print, command, command_run, timer, config, focus, info, info_hashtable
аргументи: аргументи за куку, у зависности од куке (раздвојени тачка запетама):
signal: име(на) signal-а (обавезно)
hsignal: име(на) hsignal-а (обавезно)
modifier: име(на) modifier-а (обавезно)
line: тип бафера (formatted, free” или „*”), листа маски бафера, ознака
print: бафер, ознаке, порука, уклањање боја
command: команда (обавезна), опис, аргументи, опис аргумената, довршавање (сви аргументи осим command се израчунавају, ${tg_trigger_name}” се замењује именом окидача, погледајте /help eval)
command_run: команд(а/е) (обавезно)
timer: интервал (обавезан), поравнање на секунди, макс позива
config: име(на) опције (обавезно)
focus: име(на) површине (обавезно)
info: име(на) информације (обавезно)
info_hashtable: име(на) информације (обавезно)
услови: израчунати услови за окидач
регизраз: један или више регуларних израза за замену стрингова у променљивама
команда: команда која треба да се изврши (више команди може да се раздвоји са „;”)
повр_кôд: повратни кôд у функцији повратног позива (ok (подраз), ok_eat, error)
пост_акција: акција која се покреће након извршавања (none (подраз), disable, delete)
addinput: постављање улаза на подразумеване аргументе да се креира окидач
input: постављање улаза на команду која је употребљена за креирање окидача
output: слање команде за креирање окидача у бафер
recreate: исто као „input, са опцијом „addreplace” уместо „add
set: постављање опције у окидачу
опција: име опције: name, hook, arguments, conditions, regex, command, return_code
(за помоћ у вези опције, можете да откуцате: /help trigger.trigger.<име>.<опција>)
вредност: нова вредност опције
rename: промена имена окидача
copy: копирање окидача
enable: укључивање окидача (без аргумената: окидачи се укључују глобално)
disable: искључивање окидача (без аргумената: окидачи се искључују глобално)
toggle: пребацивање окидача (без аргумената: окидачи се пребацују глобално)
restart: поновно покретање окидача (куке се поново креирају)
show: приказ детаљних информација о окидачу (са мало статистике)
del: брисање окидача
-all: извршавање акције над свим окидачима
restore: обнављање окидача са подразумеваним вредностима (функционише само за подразумеване окидаче)
default: брисање свих окидача и обнављање подразумеваних
monitor: отварање бафера за праћење окидача, са необавезним филтером:
филтер: филтрирање кука/окидача који се приказују (кука мора да почиње са „@”, на пример „@signal), више филтера може да се раздвоји запетама; дозвољен је џокер „*” у сваком имену окидача
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 modifier, line, focus, info and info_hashtable)
5. perform post action
Када се позове функција повратног позива окидача, извршавају се следеће акције, у наведеном редоследу:
1. провера услова; ако је нетачно, напушта се
2. замена текста употребом POSIX проширених регуларних израза (ако су дефинисани у окидачу)
3. извршавање команд(е/и) (ако су дефинисане у окидачу)
4. излазак са повратним кодом (осим за modifier, line, focus, info и info_hashtable)
5. извршавање пост акције
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}" "==\*([^ ]+)\*==*${color:bold}${re:1}${color:-bold}*== ==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== ==/([^ ]+)/==/${color:italic}${re:1}${color:-italic}/"
hide nicklist bar on small terminals:
Примери (такође можете да погледате садржај подразумеваних окидача са /trigger listdefault):
додавање текст атрибута *подебљано*, _подвучено и /курзив/ (само у корисничким порукама):
/trigger add effects modifier weechat_print ${tg_tag_nick} "==\*([^ ]+)\*==*${color:bold}${re:1}${color:-bold}*== ==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== ==/([^ ]+)/==/${color:italic}${re:1}${color:-italic}/"
сакривање траке листе надимака на малим терминалима:
/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"
silently save WeeChat session at midnight (see /help upgrade):
у тишини чува WeeChat сесију у поноћ (погледајте /help upgrade):
/trigger add session_save signal day_changed "" "" "/mute /upgrade -save"
open trigger monitor and show only modifiers and triggers whose name starts with "resize":
отварање монитора окидача и приказ само модификатора и окидача чије име почиње са „resize:
/trigger monitor @modifier,resize*
----
// end::trigger_commands[]
+7 -7
View File
@@ -751,7 +751,7 @@
** подразумевана вредност: `+""+`
* [[option_weechat.look.highlight_disable_regex]] *weechat.look.highlight_disable_regex*
** опис: pass:none[POSIX extended regular expression used to prevent any highlight from a message: this option has higher priority over other highlight options (if the string is found in the message, the highlight is disabled and the other options are ignored), regular expression is case insensitive (use "(?-i)" at beginning to make it case sensitive), examples: "<flash.*>", "(?-i)<Flash.*>"]
** опис: pass:none[POSIX проширени регуларни израз који се користи за спречавање било каквог истицања у поруци: ова опција има виши приоритет у односу на све осталеопције истицања (ако се стринг пронађе у поруци, истицање се исључује и све остале опције се игноришу), регуларни израз не прави разлику у величини слова (употребите „(?-i)” на почетку да се величина слова не узима у обзир), примери: <flash.*>, (?-i)<Flash.*>]
** тип: стринг
** вредности: било који стринг
** подразумевана вредност: `+""+`
@@ -1403,7 +1403,7 @@
** подразумевана вредност: `+default+`
* [[option_logger.file.auto_log]] *logger.file.auto_log*
** опис: pass:none[automatically save content of buffers to files (unless a buffer disables log); if disabled, logging is disabled on all buffers]
** опис: pass:none[аутоматско чување садржаја бафера у фајлове (осим у случају да бафер искључује логовање); ако је искључена, логовање се искључује у свим баферима]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
@@ -1551,7 +1551,7 @@
** подразумевана вредност: `+lightmagenta+`
* [[option_trigger.color.identifier]] *trigger.color.identifier*
** опис: pass:none[text color for trigger context identifier in monitor buffer]
** опис: pass:none[боја текста за идентификатор контекста окидача у монитор баферу]
** тип: боја
** вредности: име WeeChat боје (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), број terminal боје или алијас; испред боје су дозвољени атрибути (само за боју текста, не и за позадину): „*” за подебљано, „!” за обрнуто, „/” за курзив, „_” за подвучено
** подразумевана вредност: `+cyan+`
@@ -1783,7 +1783,7 @@
** подразумевана вредност: `+"${buffer.hidden}==0"+`
* [[option_buflist.look.enabled]] *buflist.look.enabled*
** опис: pass:none[enable buflist; it is recommended to use this option instead of just hiding the bar because it also removes some internal hooks that are not needed any more when the bar is hidden; you can also use the command "/buflist toggle" or use the default key alt+shift+b]
** опис: pass:none[enable buflist; препроручује се да се уместо простог скривања траке употреби ова опција јер она уклања и неке интерне куке које више нису потребне када трака сакрије; такође можете да употребите и команду „/buflist toggle” или подразумевани тастер alt+shift+b]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`
@@ -2139,7 +2139,7 @@
** подразумевана вредност: `+cyan+`
* [[option_irc.color.message_chghost]] *irc.color.message_chghost*
** опис: pass:none[color for text in "chghost" messages]
** опис: pass:none[боја за текст у „chghost” порукама]
** тип: боја
** вредности: име WeeChat боје (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), број terminal боје или алијас; испред боје су дозвољени атрибути (само за боју текста, не и за позадину): „*” за подебљано, „!” за обрнуто, „/” за курзив, „_” за подвучено
** подразумевана вредност: `+brown+`
@@ -2163,7 +2163,7 @@
** подразумевана вредност: `+red+`
* [[option_irc.color.message_setname]] *irc.color.message_setname*
** опис: pass:none[color for text in "setname" messages]
** опис: pass:none[боја за текст у „setname” порукама]
** тип: боја
** вредности: име WeeChat боје (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), број terminal боје или алијас; испред боје су дозвољени атрибути (само за боју текста, не и за позадину): „*” за подебљано, „!” за обрнуто, „/” за курзив, „_” за подвучено
** подразумевана вредност: `+brown+`
@@ -2565,7 +2565,7 @@
** подразумевана вредност: `+on+`
* [[option_irc.look.smart_filter_setname]] *irc.look.smart_filter_setname*
** опис: pass:none[enable smart filter for "setname" messages]
** опис: pass:none[укључивање паметног филтера за „setname” поруке]
** тип: логичка
** вредности: on, off
** подразумевана вредност: `+on+`