doc: update Polish auto-generated files
This commit is contained in:
parent
e9be61b133
commit
4939e9659f
@ -51,7 +51,7 @@
|
||||
** domyślna wartość: `+red+`
|
||||
|
||||
* [[option_irc.color.mirc_remap]] *irc.color.mirc_remap*
|
||||
** opis: pass:none[remap mirc colors in messages using a hashtable: keys are "fg,bg" as integers between -1 (not specified) and 15, values are WeeChat color names or numbers (format is: "1,-1:color1;2,7:color2"), example: "1,-1:darkgray;1,2:white,blue" to remap black to "darkgray" and black on blue to "white,blue"; default WeeChat colors for IRC codes: 0=white, 1=black, 2=blue, 3=green, 4=lightred, 5=red, 6=magenta, 7=brown, 8=yellow, 9=lightgreen, 10=cyan, 11=lightcyan, 12=lightblue, 13=lightmagenta, 14=darkgray, 15=gray]
|
||||
** opis: pass:none[zamień kolory mirca w wiadomościach używając tablicy hashy: klucze to "fg,bg" przyjmują one wartości pomiędzy -1 (nie określono) a 15, wartości to nazwy lub numery kolorów WeeChat (format: "1,-1:kolor1;2,7:kolor2"), przykład: "1,-1:darkgray;1,2:white,blue" w celu przemapowania czarnego na "darkgray" oraz czarnego na niebieskim tle na "white,blue"; domyślne kolory WeeChat dla kodów IRC: 0=white, 1=black, 2=blue, 3=green, 4=lightred, 5=red, 6=magenta, 7=brown, 8=yellow, 9=lightgreen, 10=cyan, 11=lightcyan, 12=lightblue, 13=lightmagenta, 14=darkgray, 15=gray]
|
||||
** typ: ciąg
|
||||
** wartości: dowolny ciąg
|
||||
** domyślna wartość: `+"1,-1:darkgray"+`
|
||||
|
@ -11,30 +11,30 @@
|
||||
flush
|
||||
disable
|
||||
|
||||
list: show logging status for opened buffers
|
||||
set: set logging level on current buffer
|
||||
level: level for messages to be logged (0 = logging disabled, 1 = a few messages (most important) .. 9 = all messages)
|
||||
flush: write all log files now
|
||||
disable: disable logging on current buffer (set level to 0)
|
||||
list: pokazuje status logów dla otwartych buforów
|
||||
set: ustawia poziom logowania dla obecnego bufora
|
||||
poziom: poziom logowanych wiadomości (0 = wyłączone, 1 = kilka wiadomości (najważniejsze) .. 9 = wszystkie wiadomości)
|
||||
flush: zapisuje natychmiast wszystkie pliki z logami
|
||||
disable: wyłącza logowanie dla obecnego bufora (ustawia poziom na 0)
|
||||
|
||||
Options "logger.level.*" and "logger.mask.*" can be used to set level or mask for a buffer, or buffers beginning with name.
|
||||
Opcje "logger.level.*" oraz "logger.mask.*" mogą być użyte do ustawienia poziomu lub maski dla bufora lub buforów zaczynających się od nazwy.
|
||||
|
||||
Log levels used by IRC plugin:
|
||||
1: user message (channel and private), notice (server and channel)
|
||||
2: nick change
|
||||
3: server message
|
||||
4: join/part/quit
|
||||
9: all other messages
|
||||
Poziomy logowania używane przez wtyczkę IRC:
|
||||
1: wiadomości użytkowników (z kanałów i prywatne), powiadomienia (od serwerów i kanałów)
|
||||
2: zmiany nicków
|
||||
3: wiadomości serwera
|
||||
4: wejścia/opuszczenia/wyjścia
|
||||
9: wszystkie pozostałe wiadomości
|
||||
|
||||
Examples:
|
||||
set level to 5 for current buffer:
|
||||
Przykłady:
|
||||
ustawia poziom na 5 dla obecnego bufora:
|
||||
/logger set 5
|
||||
disable logging for current buffer:
|
||||
wyłącza logowanie w obecnym buforze:
|
||||
/logger disable
|
||||
set level to 3 for all IRC buffers:
|
||||
ustawia poziom na 3 dla wszystkich buforów IRC:
|
||||
/set logger.level.irc 3
|
||||
disable logging for main WeeChat buffer:
|
||||
wyłącza logowanie głównego bufora WeeChat:
|
||||
/set logger.level.core.weechat 0
|
||||
use a directory per IRC server and a file per channel inside:
|
||||
użyj oddzielnych katalogów dla serwerów IRC, oraz oddzielnych plików dla kanałów:
|
||||
/set logger.mask.irc "$server/$channel.weechatlog"
|
||||
----
|
||||
|
@ -20,67 +20,67 @@
|
||||
default -yes
|
||||
monitor [<filtr>]
|
||||
|
||||
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: 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
|
||||
hook: signal, hsignal, modifier, line, 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)
|
||||
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
|
||||
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)
|
||||
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
|
||||
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)
|
||||
line: typ bufora("formatted", "free" lub "*"), lista mask buforów, tagów
|
||||
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)
|
||||
post_action: akcja do wykonania po zakończeniu (none (domyślne), disable, delete)
|
||||
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
|
||||
|
||||
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 and focus)
|
||||
5. perform post action
|
||||
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)
|
||||
5. wykonanie akcji kończącej
|
||||
|
||||
Examples (you can also look at default triggers with /trigger listdefault):
|
||||
add text attributes *bold*, _underline_ and /italic/ (only in user messages):
|
||||
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}${re:1}${color:-bold}*== ==_(\S+)_==_${color:underline}${re:1}${color:-underline}_== ==/(\S+)/==/${color:italic}${re:1}${color:-italic}/"
|
||||
hide nicklist bar on small terminals:
|
||||
ukrywa pasek z nickami na małych terminalach:
|
||||
/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:
|
||||
cichy zapis plików konfiguracyjnych co każdą godzinę:
|
||||
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
|
||||
open trigger monitor and show only modifiers and triggers whose name starts with "resize":
|
||||
otwiera monitor triggerów i pokazuje tylko modifiers i triggery, których nazwa zaczyna się od "resize":
|
||||
/trigger monitor @modifier,resize*
|
||||
----
|
||||
|
@ -69,79 +69,79 @@ Przykłady:
|
||||
|
||||
----
|
||||
/buffer list
|
||||
add [-free] [-switch] <name>
|
||||
clear [<number>|<name>|-merged|-all [<number>|<name>...]]
|
||||
move <number>|-|+
|
||||
swap <number1>|<name1> [<number2>|<name2>]
|
||||
cycle <number>|<name> [<number>|<name>...]
|
||||
merge <number>|<name>
|
||||
unmerge [<number>|-all]
|
||||
hide [<number>|<name>|-all [<number>|<name>...]]
|
||||
unhide [<number>|<name>|-all [<number>|<name>...]]
|
||||
renumber [<number1> [<number2> [<start>]]]
|
||||
close [<n1>[-<n2>]|<name>...]
|
||||
notify <level>
|
||||
localvar [<number>|<name>]
|
||||
set <property> [<value>]
|
||||
get <property>
|
||||
<number>|-|+|<name>
|
||||
add [-free] [-switch] <nazwa>
|
||||
clear [<numer>|<nazwa>|-merged|-all [<numer>|<nazwa>...]]
|
||||
move <numer>|-|+
|
||||
swap <numer1>|<nazwa1> [<numer2>|<nazwa2>]
|
||||
cycle <numer>|<nazwa> [<numer>|<nazwa>...]
|
||||
merge <numer>|<nazwa>
|
||||
unmerge [<numer>|-all]
|
||||
hide [<numer>|<nazwa>|-all [<numer>|<nazwa>...]]
|
||||
unhide [<numer>|<nazwa>|-all [<numer>|<nazwa>...]]
|
||||
renumber [<numer1> [<numer2> [<start>]]]
|
||||
close [<n1>[-<n2>]|<nazwa>...]
|
||||
notify <poziom>
|
||||
localvar
|
||||
set <opcja> [<value>]
|
||||
get <opcja>
|
||||
<numer>|-|+|<nazwa>
|
||||
|
||||
list: list buffers (without argument, this list is displayed)
|
||||
add: add a new buffer (it can be closed with "/buffer close" or input "q")
|
||||
clear: clear buffer content (number for a buffer, -merged for merged buffers, -all for all buffers, or nothing for current buffer)
|
||||
move: move buffer in the list (may be relative, for example -1); "-" = move to first buffer number, "+" = move to last buffer number + 1
|
||||
swap: swap two buffers (swap with current buffer if only one number/name given)
|
||||
cycle: jump loop between a list of buffers
|
||||
merge: merge current buffer to another buffer (chat area will be mix of both buffers)
|
||||
(by default ctrl-x switches between merged buffers)
|
||||
unmerge: unmerge buffer from other buffers which have same number
|
||||
hide: hide the buffer
|
||||
unhide: unhide the buffer
|
||||
renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumber is off)
|
||||
close: close buffer (number/range or name is optional)
|
||||
notify: set notify level for current buffer: this level determines whether buffer will be added to hotlist or not:
|
||||
none: never
|
||||
highlight: for highlights only
|
||||
message: for messages from users + highlights
|
||||
all: all messages
|
||||
reset: reset to default value (all)
|
||||
localvar: display local variables for the buffer
|
||||
set: set a property for current buffer
|
||||
get: display a property of current buffer
|
||||
number: jump to buffer by number, possible prefix:
|
||||
'+': relative jump, add number to current
|
||||
'-': relative jump, sub number to current
|
||||
'*': jump to number, using option "weechat.look.jump_current_to_previous_buffer"
|
||||
-: jump to first buffer number
|
||||
+: jump to last buffer number
|
||||
name: jump to buffer by (partial) name
|
||||
list: wyświetla listę buforów (bez podania argumenty wyświetlana jest ta lista)
|
||||
add: dodaje nowy bufor (może zostać zamknięty komendą "/buffer close" albo "q")
|
||||
clear: czyści zawartość bufora (numer bufora, -merged dla połączonych buforów, -all dla wszystkich buforów, lub nic dla obecnego bufora)
|
||||
move: przesuwa bufor na liście (może być względne, np -1); "-" = przesuwa na pierwszy numer, "+" = przesuwa na ostatni numer bufora +1
|
||||
swap: zamienia miejscami dwa bufory (zamienia z obecnym buforem, jeśli podano tylko jeden numer/nazwę)
|
||||
cycle: przełącza w pętli między listą buforów
|
||||
merge: łączy obecny bufor z innym (obszar rozmowy zostanie pomieszany między oba bufory)
|
||||
(domyślnie ctrl-x przełącza pomiędzy połączonymi buforami)
|
||||
unmerge: odłącza bufor od innych mających taki sam numer
|
||||
hide: ukrywa bufor
|
||||
unhide: przywraca ukryty bufor
|
||||
renumber: zmienia numer bufora (działa tylko, jeśli opcja weechat.look.buffer_auto_renumber jest wyłączona)
|
||||
close: zamyka bufor (numer/przedział są opcjonalne)
|
||||
notify: ustawia poziom powiadomień dla obecnego bufora: ten poziom określa czy bufor zostanie dodany do hotlisty czy nie:
|
||||
none: nigdy
|
||||
highlight: tylko dla higlightów
|
||||
message: wiadomości od użytkowników + highlighty
|
||||
all: wszystkie wiadomości
|
||||
reset: przywraca wartości domyślne (all)
|
||||
localvar: wyświetla zmienne lokalne obecnego bufora
|
||||
set: ustawia właściwość obecnego bufora
|
||||
get: wyświetla właściwości obecnego bufora
|
||||
numer: przechodzi do bufora o numerze, dostępne prefiksy:
|
||||
'+': przejście względne, dodaje numer do obecnego
|
||||
'-': przejście względne, odejmuje numer od obecnego
|
||||
'*': przejście do numeru, używając opcji "weechat.look.jump_current_to_previous_buffer"
|
||||
-: przejście do pierwszego bufora
|
||||
+: przejście do ostatniego bufora
|
||||
nazwa: przejście do bufora o (częściowej) nazwie
|
||||
|
||||
Examples:
|
||||
clear current buffer:
|
||||
Przykłady:
|
||||
czyści zawartość obecnego bufora:
|
||||
/buffer clear
|
||||
move buffer to number 5:
|
||||
przenosi bufor na numer 5:
|
||||
/buffer move 5
|
||||
swap buffer 1 with 3:
|
||||
zamienia bufor 1 z 3:
|
||||
/buffer swap 1 3
|
||||
swap buffer #weechat with current buffer:
|
||||
zamienia bufor #weechat z obecnym buforem:
|
||||
/buffer swap #weechat
|
||||
jump on #chan1, #chan2, #chan3 and loop:
|
||||
przełącza w pętli między #chan1, #chan2, #chan3:
|
||||
/buffer cycle #chan1 #chan2 #chan3
|
||||
merge with core buffer:
|
||||
łączy z głównym buforem:
|
||||
/buffer merge 1
|
||||
merge with #weechat buffer:
|
||||
łączy z buforem #weechat:
|
||||
/buffer merge #weechat
|
||||
unmerge buffer:
|
||||
odłącza bufory:
|
||||
/buffer unmerge
|
||||
close current buffer:
|
||||
zamyka obecny bufor:
|
||||
/buffer close
|
||||
close buffers 5 to 7:
|
||||
zamyka bufory od 5 do 7:
|
||||
/buffer close 5-7
|
||||
jump to #weechat:
|
||||
przechodzi do #weechat:
|
||||
/buffer #weechat
|
||||
jump to next buffer:
|
||||
przechodzi do następnego bufora:
|
||||
/buffer +1
|
||||
jump to last buffer number:
|
||||
przechodzi do ostatniego bufora:
|
||||
/buffer +
|
||||
----
|
||||
|
||||
@ -261,65 +261,65 @@ infolists: wyświetla informacje o infolistach
|
||||
/eval [-n|-s] <wyrażenie>
|
||||
[-n] -c <wyrażenie1> <operator> <wyrażenie2>
|
||||
|
||||
-n: display result without sending it to buffer (debug mode)
|
||||
-s: split expression before evaluating it (many commands can be separated by semicolons)
|
||||
-c: evaluate as condition: use operators and parentheses, return a boolean value ("0" or "1")
|
||||
expression: expression to evaluate, variables with format ${variable} are replaced (see below); many commands can be separated by semicolons
|
||||
operator: a logical or comparison operator:
|
||||
- logical operators:
|
||||
&& boolean "and"
|
||||
|| boolean "or"
|
||||
- comparison operators:
|
||||
== equal
|
||||
!= not equal
|
||||
<= less or equal
|
||||
< less
|
||||
>= greater or equal
|
||||
> greater
|
||||
=~ is matching POSIX extended regex
|
||||
!~ is NOT matching POSIX extended regex
|
||||
=* is matching mask (wildcard "*" is allowed)
|
||||
!* is NOT matching mask (wildcard "*" is allowed)
|
||||
-n: wyświetla wynik bez wysyłania go do buforu (tryb debugowania)
|
||||
-s: podziel wyrażenie przed przetworzeniem go (wiele komend może być oddzielonych średnikami)
|
||||
-c: przetwarza jako warunek: użyj operatorów i nawiasów, zwraca wartość logiczną ("0" lub "1")
|
||||
wyrażenie: wyrażenie do przetworzenia, zmienne o formacie ${zmienna} są zastępowane (zobacz niżej); wiele komend można oddzielić średnikami
|
||||
operator: operator logiczny lub porównania:
|
||||
- operatory logiczne:
|
||||
&& logiczne "i"
|
||||
|| logiczne "lub"
|
||||
- operatory porównania:
|
||||
== równy
|
||||
!= różny
|
||||
<= mniejszy lub równy
|
||||
< mniejszy
|
||||
>= większy lub równy
|
||||
> większy
|
||||
=~ pasuje do rozszerzonego wyrażenia regularnego POSIX
|
||||
!~ NIE pasuje do rozszerzonego wyrażenia regularnego POSIX
|
||||
=* pasuje do maski (dzika karta "*" dozwolona)
|
||||
!* NIE pasuje do maski (dzika karta "*" dozwolona)
|
||||
|
||||
An expression is considered as "true" if it is not NULL, not empty, and different from "0".
|
||||
The comparison is made using floating point numbers if the two expressions are valid numbers, with one of the following formats:
|
||||
- integer (examples: 5, -7)
|
||||
- floating point number (examples: 5.2, -7.5, 2.83e-2)
|
||||
- hexadecimal number (examples: 0xA3, -0xA3)
|
||||
To force a string comparison, you can add double quotes around each expression, for example:
|
||||
Wyrażenie jest uznawane za „prawdziwe” jeśli nie jest NULL, nie jest puste, oraz różni się od "0".
|
||||
Porównania dokonuje się z użyciem liczb całkowitych jeśli oba wyrażenia są liczbami całkowitymi, w jednym z następujących formatów:
|
||||
- liczby całkowite (przykłady: 5, -7)
|
||||
- liczby zmiennoprzecinkowe (przykłady: 5.2, -7.5, 2.83e-2)
|
||||
- liczby szesnastkowe (przykłady: 0xA3, -0xA3)
|
||||
W celu wymuszenia porównywania ciągów, należy umieścić każde wyrażenie w cudzysłowie, na przykład:
|
||||
50 > 100 ==> 0
|
||||
"50" > "100" ==> 1
|
||||
|
||||
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority:
|
||||
1. an evaluated sub-string (format: "eval:xxx")
|
||||
2. a string with escaped chars (format: "esc:xxx" or "\xxx")
|
||||
3. a string with chars to hide (format: "hide:char,string")
|
||||
4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
|
||||
or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
|
||||
5. a reversed string (format: "rev:xxx")
|
||||
6. a repeated string (format: "repeat:count,string")
|
||||
7. a color (format: "color:xxx", see "Plugin API reference", function "color")
|
||||
8. an info (format: "info:name,arguments", arguments are optional)
|
||||
9. current date/time (format: "date" or "date:format")
|
||||
10. an environment variable (format: "env:XXX")
|
||||
11. a ternary operator (format: "if:condition?value_if_true:value_if_false")
|
||||
12. an option (format: "file.section.option")
|
||||
13. a local variable in buffer
|
||||
14. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
|
||||
Format for hdata can be one of following:
|
||||
hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed)
|
||||
hdata[list].var1.var2...: start with a hdata using a list, for example:
|
||||
${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers
|
||||
${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins
|
||||
hdata[pointer].var1.var2...: start with a hdata using a pointer, for example:
|
||||
${buffer[0x1234abcd].full_name}: full name of the buffer with this pointer (can be used in triggers)
|
||||
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
|
||||
Niektóre zmienne w wyrażeniach są zamieniane, poprzez zastosowanie formatu ${zmienna}, według priorytetu zmienną może być:
|
||||
1. przetworzony ciąg (format: "eval:xxx")
|
||||
2. ciąg z wyescapowanymi znakami (format: "esc:xxx" lub "\xxx")
|
||||
3. ciąg ze znakami do ukrycia (format: "hide:char,string")
|
||||
4. ciąg o maksymalnej długości (format: "cut:max,suffix,string" lub "cut:+max,suffix,string")
|
||||
lub maksymalna ilość znaków wyświetlanych na ekranie (format: "cutscr:max,suffix,string" lub "cutscr:+max,suffix,string")
|
||||
5. odwrócony ciąg (format: "rev:xxx")
|
||||
6. powtórzony ciąg (format: "repeat:ilość,ciąg")
|
||||
7. kolor (format "color:xxx", zobacz „Opis API wtyczek”, funkcja "color")
|
||||
8. informacja (format: "info:nazwa,argumenty", argumenty są opcjonalne)
|
||||
9. obecna data/czas (format: "date" lub "date:format")
|
||||
10. zmienna środowiskowa (format: "env:XXX")
|
||||
11. wyrażenie warunkowe (format: "if:condition?value_if_true:value_if_false")
|
||||
12. opcja (format: plik.sekcja.opcja)
|
||||
13. zmienna lokalna w buforze
|
||||
14. nazwa hdatay/zmiennej (wartość jest automatycznie konwertowana na ciąg znaków), domyślnie "window" i "buffer" wskazują na aktualne okno/bufor.
|
||||
Format dla hdata może być jednym z poniższych:
|
||||
hdata.zmienna1.zmienna2...: inicjuje hdata (wskaźnik musi być znany), następnie wypytuje zmienne jedna po drugiej (inne hdata mogą być następne)
|
||||
hdata[list].zmienna1.zmienna2...: inicjuje hdata z wykorzystaniem listy, na przykład:
|
||||
${buffer[gui_buffers].full_name}: pełna nazwa buforu w połączonej liście buforów
|
||||
${plugin[weechat_plugins].name}: nazwa pierwszej wtyczki w połączonej liście wtyczek
|
||||
hdata[wskaźnik].zmienna1.zmienna2...: zacznij z hdata używając wskaźnika, na przykład:
|
||||
${buffer[0x1234abcd].full_name}: pełna nazwa buforu z tym wskaźnikiem (może zostać użyte w triggerach)
|
||||
Nazwy hdata i zmiennych, można znaleźć w „Opisie API wtyczek”, funkcja "weechat_hdata_get".
|
||||
|
||||
Examples (simple strings):
|
||||
Przykłady (proste ciągi):
|
||||
/eval -n ${info:version} ==> 0.4.3
|
||||
/eval -n ${env:HOME} ==> /home/user
|
||||
/eval -n ${weechat.look.scroll_amount} ==> 3
|
||||
/eval -n ${sec.data.freenode_password} ==> secret
|
||||
/eval -n ${sec.data.freenode_password} ==> secret
|
||||
/eval -n ${window} ==> 0x2549aa0
|
||||
/eval -n ${window.buffer} ==> 0x2549320
|
||||
/eval -n ${window.buffer.full_name} ==> core.weechat
|
||||
@ -333,7 +333,7 @@ Examples (simple strings):
|
||||
/eval -n ${rev:Hello} ==> olleH
|
||||
/eval -n ${repeat:5,-} ==> -----
|
||||
|
||||
Examples (conditions):
|
||||
Przykłady (warunki):
|
||||
/eval -n -c ${window.buffer.number} > 2 ==> 0
|
||||
/eval -n -c ${window.win_width} > 100 ==> 1
|
||||
/eval -n -c (8 > 12) || (5 > 2) ==> 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user