doc: fix styles in docs
parent
2a53e1aea2
commit
b1d32b29f9
|
@ -182,7 +182,7 @@ Then add a secured data with your freenode password:
|
|||
----
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Then you can use `${sec.data.freenode_password}` instead of your password in
|
||||
Then you can use `+${sec.data.freenode_password}+` instead of your password in
|
||||
IRC options mentioned above, for example:
|
||||
|
||||
----
|
||||
|
|
|
@ -197,7 +197,7 @@ Dann kann man zum Beispiel für Freenode ein geheimes Passwort setzen:
|
|||
----
|
||||
|
||||
Um nun das geschützte Freenode-Passwort in einer Option zu nutzen setzt man eine
|
||||
Variable anstelle des Passworts, `${sec.data.freenode_password}`:
|
||||
Variable anstelle des Passworts, `+${sec.data.freenode_password}+`:
|
||||
|
||||
----
|
||||
/set irc.server.freenode.sasl_password "${sec.data.freenode_password}"
|
||||
|
|
|
@ -50,7 +50,7 @@ Allerdings ist die API für alle Skriptsprachen nahezu identisch.
|
|||
==== Python
|
||||
|
||||
* WeeChat muss als Modul eingebunden werden: `import weechat`
|
||||
* Um die WeeChat Funktion `print*` nutzen zu können muss `prnt*` genutzt
|
||||
* Um die WeeChat Funktion `+print*+` nutzen zu können muss `+prnt*+` genutzt
|
||||
werden (_print_ ist ein reservierter Befehl von Python!)
|
||||
* Funktionen werden im Format `weechat.xxx(arg1, arg2, ...)` ausgeführt
|
||||
|
||||
|
|
|
@ -888,14 +888,14 @@ Folgende Zeichenketten sind möglich:
|
|||
|
||||
Für den Ausdruck sind folgende Variablen verfügbar:
|
||||
|
||||
* `${active}` : wahr, wenn Fenster aktiv ist
|
||||
* `${inactive}`: wahr, wenn Fenster inaktiv ist
|
||||
* `${nicklist}`: wahr, wenn der Buffer im Fenster eine Nicklist anzeigt.
|
||||
* `+${active}+` : wahr, wenn Fenster aktiv ist
|
||||
* `+${inactive}+`: wahr, wenn Fenster inaktiv ist
|
||||
* `+${nicklist}+`: wahr, wenn der Buffer im Fenster eine Nicklist anzeigt.
|
||||
|
||||
Folgende Zeiger sind verfügbar:
|
||||
|
||||
* `${window}`: das Fenster in dem der Zustand ausgewertet wird
|
||||
* `${buffer}`: der Buffer eines Fensters in dem der Zustand ausgewertet wird
|
||||
* `+${window}+`: das Fenster in dem der Zustand ausgewertet wird
|
||||
* `+${buffer}+`: der Buffer eines Fensters in dem der Zustand ausgewertet wird
|
||||
|
||||
Beispiel wie man die Bar-Nicklist in allen Buffer, die eine Nicklist besitzen,
|
||||
darstellt, aber nur wenn das Fenster eine Mindestbreite von > 100 Pixeln aufweist:
|
||||
|
@ -3213,10 +3213,10 @@ oder mehrere identische Zeichen).
|
|||
|
||||
Matching groups können in "replace" genutzt werden:
|
||||
|
||||
* `${re:0}` bis `${re:99}`: `${re:0}` um alles zu matchen, `${re:1}` bis
|
||||
`${re:99}` um Gruppen zu fangen
|
||||
* `${re:+}`: der letzte match (mit der höchsten Nummer)
|
||||
* `${hide:c,${re:N}}`: match "N" mit allen Zeichen die durch "c" ersetzt wurden
|
||||
* `+${re:0}+` bis `+${re:99}+`: `+${re:0}+` um alles zu matchen, `+${re:1}+` bis
|
||||
`+${re:99}+` um Gruppen zu fangen
|
||||
* `+${re:+}+`: der letzte match (mit der höchsten Nummer)
|
||||
* `+${hide:c,${re:N}}+`: match "N" mit allen Zeichen die durch "c" ersetzt wurden
|
||||
(Beispiel: `+${hide:*,${re:2}}+` ist die group #2 mit allen Zeichen die durch
|
||||
`+*+` ersetzt wurden).
|
||||
|
||||
|
@ -3498,8 +3498,8 @@ sich die Größe des Terminalfensters verändert:
|
|||
Der Trigger nutzt das Signal "signal_sigwinch", welches durch WeeChat verschickt wird
|
||||
sobald das Signal SIGWINCH vom Terminal empfangen wird.
|
||||
|
||||
Die Bedingung `${info:term_width}` überprüft die Breite des Terminal (zusätzlich kann
|
||||
auch `${info:term_height}` genutzt werden).
|
||||
Die Bedingung `+${info:term_width}+` überprüft die Breite des Terminal (zusätzlich kann
|
||||
auch `+${info:term_height}+` genutzt werden).
|
||||
|
||||
In obigem Beispiel wird die Nicklist versteckt, sobald das Terminal verkleinert wird.
|
||||
Die Benutzerliste wird wieder angezeigt, sobald die Breite des Terminals größer oder
|
||||
|
@ -3508,7 +3508,7 @@ gleich 100 Zeichen ist.
|
|||
[[trigger_example_config_save]]
|
||||
===== automatisches speichern der Konfiguration
|
||||
|
||||
Die Konfigurationsdateien (`*.conf`), können automatisch jede Stunde
|
||||
Die Konfigurationsdateien (`+*.conf+`), können automatisch jede Stunde
|
||||
gespeichert werden:
|
||||
|
||||
----
|
||||
|
|
|
@ -417,7 +417,7 @@ Some basic rules you *must* follow when you write C code:
|
|||
* Use 4 spaces for indentation. Don't use tabs, they are evil.
|
||||
* Try to not exceed 80 chars by line, except if this is needed to increase
|
||||
readability.
|
||||
* Use comments `/* comment */` (not C99-style comments like `// comment`).
|
||||
* Use comments `+/* comment */+` (not C99-style comments like `+// comment+`).
|
||||
* Add a comment before any function, to explain what it does (always use a
|
||||
multi-line comment, even if description is very short).
|
||||
|
||||
|
@ -468,8 +468,8 @@ foo ()
|
|||
----
|
||||
|
||||
* Use parentheses to explicitly show how expression is evaluated, even if
|
||||
they are not required, for example: write `x + (y * z)` instead of `x + y * z`.
|
||||
* Place curly brackets `{ }` alone on lines, and indent them with number of
|
||||
they are not required, for example: write `+x + (y * z)+` instead of `+x + y * z+`.
|
||||
* Place curly brackets `+{ }+` alone on lines, and indent them with number of
|
||||
spaces used for line above opening curly bracket (the `if` in example):
|
||||
|
||||
[source,C]
|
||||
|
@ -781,46 +781,46 @@ Allowed attributes are (one or more chars):
|
|||
Possible colors are:
|
||||
|
||||
* standard color: optional attributes + number on 2 digits
|
||||
* extended color: `@` + optional attributes + number on 5 digits
|
||||
* extended color: `+@+` + optional attributes + number on 5 digits
|
||||
|
||||
In following table, these conventions are used:
|
||||
|
||||
* `STD`: standard color (2 digits)
|
||||
* `(A)STD`: standard color with optional attributes (attributes + 2 digits)
|
||||
* `EXT`: extended color (`@` + 5 digits)
|
||||
* `(A)EXT`: extended color with optional attributes (`@` + attributes + 5 digits)
|
||||
* `ATTR`: one attribute char (`*`, `!`, `/`, `_` or `|`)
|
||||
* `EXT`: extended color (`+@+` + 5 digits)
|
||||
* `(A)EXT`: extended color with optional attributes (`+@+` + attributes + 5 digits)
|
||||
* `ATTR`: one attribute char (`+*+`, `+!+`, `+/+`, `+_+` or `+|+`)
|
||||
|
||||
All combinations are summarized in this table:
|
||||
|
||||
[width="100%",cols="4,2,2,8",options="header"]
|
||||
|===
|
||||
| Code | Example | Areas | Description
|
||||
| [hex]#19# + STD | [hex]#19# `01` | chat + bars | Set attributes and color using option, see table below
|
||||
| [hex]#19# + EXT | [hex]#19# `@00001` | chat | Set color with a ncurses pair (used only on `/color` buffer)
|
||||
| [hex]#19# + "F" + (A)STD | [hex]#19# `F*05` | chat + bars | Set foreground (WeeChat color)
|
||||
| [hex]#19# + "F" + (A)EXT | [hex]#19# `F@00214` | chat + bars | Set foreground (extended color)
|
||||
| [hex]#19# + "B" + STD | [hex]#19# `B05` | chat + bars | Set background (WeeChat color)
|
||||
| [hex]#19# + "B" + EXT | [hex]#19# `B@00124` | chat + bars | Set background (extended color)
|
||||
| [hex]#19# + "*" + (A)STD | [hex]#19# `*05` | chat + bars | Set foreground (WeeChat color)
|
||||
| [hex]#19# + "*" + (A)EXT | [hex]#19# `*@00214` | chat + bars | Set foreground (extended color)
|
||||
| [hex]#19# + "*" + (A)STD + "," + STD | [hex]#19# `*08,05` | chat + bars | Set foreground/background (WeeChat colors)
|
||||
| [hex]#19# + "*" + (A)STD + "," + EXT | [hex]#19# `*01,@00214` | chat + bars | Set foreground (WeeChat color) and background (extended color)
|
||||
| [hex]#19# + "*" + (A)EXT + "," + STD | [hex]#19# `*@00214,05` | chat + bars | Set foreground (extended color) and background (WeeChat color)
|
||||
| [hex]#19# + "*" + (A)EXT + "," + EXT | [hex]#19# `*@00214,@00017` | chat + bars | Set foreground/background (extended colors)
|
||||
| [hex]#19# + "b" + "F" | [hex]#19# `bF` | bars | Set bar foreground color
|
||||
| [hex]#19# + "b" + "D" | [hex]#19# `bD` | bars | Set bar delimiter color
|
||||
| [hex]#19# + "b" + "B" | [hex]#19# `bB` | bars | Set bar background color
|
||||
| [hex]#19# + "b" + "_" | [hex]#19# `b_` | input bar | Start input char (used only in item "input_text")
|
||||
| [hex]#19# + "b" + "-" | [hex]#19# `b-` | input bar | Start input hidden char (used only in item "input_text")
|
||||
| [hex]#19# + "b" + "#" | [hex]#19# `b#` | input bar | Move cursor char (used only in item "input_text")
|
||||
| [hex]#19# + "b" + "i" | [hex]#19# `bi` | bars | Start item
|
||||
| [hex]#19# + "b" + "l" (lower L) | [hex]#19# `bl` | bars | Start line item
|
||||
| [hex]#19# + "E" | [hex]#19# `E` | chat + bars | Emphasize text _(WeeChat ≥ 0.4.2)_
|
||||
| [hex]#19# + [hex]#1C# | [hex]#19# [hex]#1C# | chat + bars | Reset color (keep attributes)
|
||||
| [hex]#1A# + ATTR | [hex]#1A# `*` | chat + bars | Set attribute
|
||||
| [hex]#1B# + ATTR | [hex]#1B# `*` | chat + bars | Remove attribute
|
||||
| [hex]#1C# | [hex]#1C# | chat + bars | Reset attributes and color
|
||||
| Code | Example | Areas | Description
|
||||
| [hex]#19# + STD | [hex]#19# `+01++` | chat + bars | Set attributes and color using option, see table below
|
||||
| [hex]#19# + EXT | [hex]#19# `+@00001+` | chat | Set color with a ncurses pair (used only on `/color` buffer)
|
||||
| [hex]#19# + "F" + (A)STD | [hex]#19# `+F*05+` | chat + bars | Set foreground (WeeChat color)
|
||||
| [hex]#19# + "F" + (A)EXT | [hex]#19# `+F@00214+` | chat + bars | Set foreground (extended color)
|
||||
| [hex]#19# + "B" + STD | [hex]#19# `+B05+` | chat + bars | Set background (WeeChat color)
|
||||
| [hex]#19# + "B" + EXT | [hex]#19# `+B@00124+` | chat + bars | Set background (extended color)
|
||||
| [hex]#19# + "*" + (A)STD | [hex]#19# `+*05+` | chat + bars | Set foreground (WeeChat color)
|
||||
| [hex]#19# + "*" + (A)EXT | [hex]#19# `+*@00214+` | chat + bars | Set foreground (extended color)
|
||||
| [hex]#19# + "*" + (A)STD + "," + STD | [hex]#19# `+*08,05+` | chat + bars | Set foreground/background (WeeChat colors)
|
||||
| [hex]#19# + "*" + (A)STD + "," + EXT | [hex]#19# `+*01,@00214+` | chat + bars | Set foreground (WeeChat color) and background (extended color)
|
||||
| [hex]#19# + "*" + (A)EXT + "," + STD | [hex]#19# `+*@00214,05+` | chat + bars | Set foreground (extended color) and background (WeeChat color)
|
||||
| [hex]#19# + "*" + (A)EXT + "," + EXT | [hex]#19# `+*@00214,@00017+` | chat + bars | Set foreground/background (extended colors)
|
||||
| [hex]#19# + "b" + "F" | [hex]#19# `+bF+` | bars | Set bar foreground color
|
||||
| [hex]#19# + "b" + "D" | [hex]#19# `+bD+` | bars | Set bar delimiter color
|
||||
| [hex]#19# + "b" + "B" | [hex]#19# `+bB+` | bars | Set bar background color
|
||||
| [hex]#19# + "b" + "_" | [hex]#19# `+b_+` | input bar | Start input char (used only in item "input_text")
|
||||
| [hex]#19# + "b" + "-" | [hex]#19# `+b-+` | input bar | Start input hidden char (used only in item "input_text")
|
||||
| [hex]#19# + "b" + "#" | [hex]#19# `+b#+` | input bar | Move cursor char (used only in item "input_text")
|
||||
| [hex]#19# + "b" + "i" | [hex]#19# `+bi+` | bars | Start item
|
||||
| [hex]#19# + "b" + "l" (lower L) | [hex]#19# `+bl+` | bars | Start line item
|
||||
| [hex]#19# + "E" | [hex]#19# `+E+` | chat + bars | Emphasize text _(WeeChat ≥ 0.4.2)_
|
||||
| [hex]#19# + [hex]#1C# | [hex]#19# [hex]#1C# | chat + bars | Reset color (keep attributes)
|
||||
| [hex]#1A# + ATTR | [hex]#1A# `+*+` | chat + bars | Set attribute
|
||||
| [hex]#1B# + ATTR | [hex]#1B# `+*+` | chat + bars | Remove attribute
|
||||
| [hex]#1C# | [hex]#1C# | chat + bars | Reset attributes and color
|
||||
|===
|
||||
|
||||
Color codes using options (see _t_gui_color_enum_, in file
|
||||
|
@ -904,14 +904,14 @@ Examples of color codes:
|
|||
|
||||
[width="70%",cols="1,2",options="header"]
|
||||
|===
|
||||
| Code | Description
|
||||
| [hex]#19# `01` | Color of option "01" (chat text)
|
||||
| [hex]#19# `*08,03` | Yellow on red
|
||||
| [hex]#19# `*@00214` | Orange (extended color 214)
|
||||
| [hex]#19# `*@*_00214,@00017` | Bold underlined orange (214) on dark blue (17)
|
||||
| [hex]#1A# `_` | Set underline
|
||||
| [hex]#1B# `_` | Remove underline
|
||||
| [hex]#1C# | Reset attributes and color
|
||||
| Code | Description
|
||||
| [hex]#19# `+01+` | Color of option "01" (chat text)
|
||||
| [hex]#19# `+*08,03+` | Yellow on red
|
||||
| [hex]#19# `+*@00214+` | Orange (extended color 214)
|
||||
| [hex]#19# `+*@*_00214,@00017+` | Bold underlined orange (214) on dark blue (17)
|
||||
| [hex]#1A# `+_+` | Set underline
|
||||
| [hex]#1B# `+_+` | Remove underline
|
||||
| [hex]#1C# | Reset attributes and color
|
||||
|===
|
||||
|
||||
[[plugin_internals]]
|
||||
|
|
|
@ -618,9 +618,9 @@ Arguments:
|
|||
* _string1_: first string for comparison
|
||||
* _string2_: second string for comparison
|
||||
* _range_: number of chars in case comparison, for example:
|
||||
** 26: `A-Z` are lowered to `a-z`
|
||||
** 29: `A-Z [ \ ]` are lowered to `a-z { | }`
|
||||
** 30: `A-Z [ \ ] ^` are lowered to `a-z { | } ~`
|
||||
** 26: `+A-Z+` are lowered to `+a-z+`
|
||||
** 29: `+A-Z [ \ ]+` are lowered to `+a-z { | }+`
|
||||
** 30: `+A-Z [ \ ] ^+` are lowered to `+a-z { | } ~+`
|
||||
|
||||
[NOTE]
|
||||
Values 29 and 30 are used by some protocols like IRC.
|
||||
|
@ -696,9 +696,9 @@ Arguments:
|
|||
* _string2_: second string for comparison
|
||||
* _max_: max chars to compare
|
||||
* _range_: number of chars in case comparison, for example:
|
||||
** 26: `A-Z` are lowered to `a-z`
|
||||
** 29: `A-Z [ \ ]` are lowered to `a-z { | }`
|
||||
** 30: `A-Z [ \ ] ^` are lowered to `a-z { | } ~`
|
||||
** 26: `+A-Z+` are lowered to `+a-z+`
|
||||
** 29: `+A-Z [ \ ]+` are lowered to `+a-z { | }+`
|
||||
** 30: `+A-Z [ \ ] ^+` are lowered to `+a-z { | } ~+`
|
||||
|
||||
[NOTE]
|
||||
Values 29 and 30 are used by some protocols like IRC.
|
||||
|
@ -1963,11 +1963,11 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
|
|||
_WeeChat ≥ 0.4.0, updated in 0.4.2, 1.0, 1.1, 1.2 and 1.3._
|
||||
|
||||
Evaluate an expression and return result as a string.
|
||||
Special variables with format `${variable}` are expanded (see table below).
|
||||
Special variables with format `+${variable}+` are expanded (see table below).
|
||||
|
||||
[NOTE]
|
||||
Since version 1.0, nested variables are supported, for example:
|
||||
`${color:${variable}}`.
|
||||
`+${color:${variable}}+`.
|
||||
|
||||
Prototype:
|
||||
|
||||
|
@ -2016,90 +2016,93 @@ expanded to last):
|
|||
|===
|
||||
| Format | Description | Examples | Results
|
||||
|
||||
| `${name}` | Variable `name` from hashtable _extra_vars_ |
|
||||
`${name}` | `value`
|
||||
| `+${name}+` |
|
||||
Variable `name` from hashtable _extra_vars_ |
|
||||
`+${name}+` |
|
||||
`+value+`
|
||||
|
||||
| `${eval:xxx}` +
|
||||
| `+${eval:xxx}+` +
|
||||
(_WeeChat ≥ 1.3_) |
|
||||
String to evaluate |
|
||||
`${eval:${date:${weechat.look.buffer_time_format}}}` |
|
||||
`19:02:45` (with colors if there are color codes in the option
|
||||
weechat.look.buffer_time_format)
|
||||
`+${eval:${date:${weechat.look.buffer_time_format}}}+` |
|
||||
`+19:02:45+` (with colors if there are color codes in the option
|
||||
weechat.look.buffer_time_format)
|
||||
|
||||
| `${esc:xxx}` +
|
||||
`${\xxx}` | String with escaped chars |
|
||||
`${esc:prefix\tmessage}` +
|
||||
`${\ua9}` |
|
||||
`prefix<TAB>message` +
|
||||
`©`
|
||||
| `+${esc:xxx}+` +
|
||||
`+${\xxx}+` |
|
||||
String with escaped chars |
|
||||
`+${esc:prefix\tmessage}+` +
|
||||
`+${\ua9}+` |
|
||||
`+prefix<TAB>message+` +
|
||||
`+©+`
|
||||
|
||||
| `${hide:x,value}` |
|
||||
| `+${hide:x,value}+` |
|
||||
String with hidden chars (all chars in `value` replaced by `x`) |
|
||||
`${hide:*,password}` |
|
||||
`********`
|
||||
`+${hide:*,password}+` |
|
||||
`+********+`
|
||||
|
||||
| `${re:N}` |
|
||||
| `+${re:N}+` |
|
||||
Regex captured group: `0` = whole string matching, `1` to `99` = group
|
||||
captured, `+++` = last group captured |
|
||||
`${re:1}` |
|
||||
`test`
|
||||
`+${re:1}+` |
|
||||
`+test+`
|
||||
|
||||
| `${color:name}` |
|
||||
| `+${color:name}+` |
|
||||
WeeChat color code (the name of color has optional attributes),
|
||||
see function <<_color,weechat_color>> for supported formats |
|
||||
`${color:red}red text` +
|
||||
`${color:*214}bold orange text` |
|
||||
`red text` (in red) +
|
||||
`bold orange text` (in bold orange)
|
||||
`+${color:red}red text+` +
|
||||
`+${color:*214}bold orange text+` |
|
||||
`+red text+` (in red) +
|
||||
`+bold orange text+` (in bold orange)
|
||||
|
||||
| `${info:name}` +
|
||||
`${info:name,arguments}` |
|
||||
| `+${info:name}+` +
|
||||
`+${info:name,arguments}+` |
|
||||
Info from WeeChat or a plugin, see function
|
||||
<<_info_get,weechat_info_get>> |
|
||||
`${info:version}` +
|
||||
`${info:irc_nick_color_name,foo}` |
|
||||
`1.0` +
|
||||
`lightblue`
|
||||
`+${info:version}+` +
|
||||
`+${info:irc_nick_color_name,foo}+` |
|
||||
`+1.0+` +
|
||||
`+lightblue+`
|
||||
|
||||
| `${date}` +
|
||||
`${date:xxx}` +
|
||||
| `+${date}+` +
|
||||
`+${date:xxx}+` +
|
||||
(_WeeChat ≥ 1.3_) |
|
||||
Current date/time, with custom format (see `man strftime`),
|
||||
default format is `%F %T` |
|
||||
`${date}` +
|
||||
`${date:%H:%M:%S}` |
|
||||
`2015-06-30 19:02:45` +
|
||||
`19:02:45`
|
||||
`+${date}+` +
|
||||
`+${date:%H:%M:%S}+` |
|
||||
`+2015-06-30 19:02:45+` +
|
||||
`+19:02:45+`
|
||||
|
||||
| `${env:NAME}` +
|
||||
| `+${env:NAME}+` +
|
||||
(_WeeChat ≥ 1.2_) |
|
||||
Value of the environment variable `NAME` |
|
||||
`${env:HOME}` |
|
||||
`/home/user`
|
||||
`+${env:HOME}+` |
|
||||
`+/home/user+`
|
||||
|
||||
| `${sec.data.name}` |
|
||||
| `+${sec.data.name}+` |
|
||||
Value of the secured data `name` |
|
||||
`${sec.data.freenode_pass}` |
|
||||
`my_password`
|
||||
`+${sec.data.freenode_pass}+` |
|
||||
`+my_password+`
|
||||
|
||||
| `${file.section.option}` |
|
||||
| `+${file.section.option}+` |
|
||||
Value of the option |
|
||||
`${weechat.look.buffer_time_format}` |
|
||||
`%H:%M:%S`
|
||||
`+${weechat.look.buffer_time_format}+` |
|
||||
`+%H:%M:%S+`
|
||||
|
||||
| `${name}` |
|
||||
| `+${name}+` |
|
||||
Value of local variable `name` in buffer |
|
||||
`${nick}` |
|
||||
`FlashCode`
|
||||
`+${nick}+` |
|
||||
`+FlashCode+`
|
||||
|
||||
| `${hdata.var1.var2...}` +
|
||||
`${hdata[list].var1.var2...}` |
|
||||
| `+${hdata.var1.var2...}+` +
|
||||
`+${hdata[list].var1.var2...}+` |
|
||||
Hdata value (pointers `window` and `buffer` are set by default with current
|
||||
window/buffer) |
|
||||
`${buffer[gui_buffers].full_name}` +
|
||||
`${window.buffer.number}` |
|
||||
`core.weechat` +
|
||||
`1`
|
||||
`+${buffer[gui_buffers].full_name}+` +
|
||||
`+${window.buffer.number}+` |
|
||||
`+core.weechat+` +
|
||||
`+1+`
|
||||
|===
|
||||
|
||||
C examples:
|
||||
|
@ -9834,8 +9837,8 @@ List of modifiers used by WeeChat and plugins:
|
|||
| irc_command_auth +
|
||||
_(WeeChat ≥ 0.4.1)_ |
|
||||
Server name |
|
||||
Authentication command (for example: `/msg nickserv identify password`) |
|
||||
command with hidden password (for example: `/msg nickserv identify ********`)
|
||||
Authentication command (for example: `+/msg nickserv identify password+`) |
|
||||
command with hidden password (for example: `+/msg nickserv identify ********+`)
|
||||
|
||||
| irc_message_auth +
|
||||
_(WeeChat ≥ 0.4.1)_ |
|
||||
|
|
|
@ -178,7 +178,7 @@ Then add a secured data with your freenode password:
|
|||
/secure set freenode_password xxxxxxx
|
||||
----
|
||||
|
||||
Then you can use `${sec.data.freenode_password}` instead of your password in
|
||||
Then you can use `+${sec.data.freenode_password}+` instead of your password in
|
||||
IRC options mentioned above, for example:
|
||||
|
||||
----
|
||||
|
|
|
@ -1205,11 +1205,11 @@ Data sent as hdata:
|
|||
|
||||
The value of __diff_ can be:
|
||||
|
||||
* `^`: the parent group: group(s) or nick(s) after this one are related to this
|
||||
* `+^+`: the parent group: group(s) or nick(s) after this one are related to this
|
||||
group
|
||||
* `+`: group/nick added in the parent group
|
||||
* `-`: group/nick removed from the parent group
|
||||
* `*`: group/nick updated in the parent group
|
||||
* `+++`: group/nick added in the parent group
|
||||
* `+-+`: group/nick removed from the parent group
|
||||
* `+*+`: group/nick updated in the parent group
|
||||
|
||||
Example: nick _master_ added in group _000|o_ (channel ops on an IRC channel),
|
||||
nicks _nick1_ and _nick2_ added in group _999|..._ (standard users on an IRC
|
||||
|
|
|
@ -44,7 +44,7 @@ other languages.
|
|||
==== Python
|
||||
|
||||
* You have to `import weechat`
|
||||
* Functions `print*` are called `prnt*` in python (because _print_ is reserved
|
||||
* Functions `+print*+` are called `+prnt*+` in python (because _print_ is reserved
|
||||
keyword)
|
||||
* Functions are called with `weechat.xxx(arg1, arg2, ...)`
|
||||
|
||||
|
|
|
@ -873,14 +873,14 @@ The string can be:
|
|||
|
||||
For the expression, following variables are available:
|
||||
|
||||
* `${active}`: true if window is active
|
||||
* `${inactive}`: true if window is inactive
|
||||
* `${nicklist}`: true if buffer displayed in window has a nicklist
|
||||
* `+${active}+`: true if window is active
|
||||
* `+${inactive}+`: true if window is inactive
|
||||
* `+${nicklist}+`: true if buffer displayed in window has a nicklist
|
||||
|
||||
Following pointers are available:
|
||||
|
||||
* `${window}`: the window where condition is evaluated
|
||||
* `${buffer}`: the buffer of window where condition is evaluated
|
||||
* `+${window}+`: the window where condition is evaluated
|
||||
* `+${buffer}+`: the buffer of window where condition is evaluated
|
||||
|
||||
Example to display nicklist bar in all buffers with a nicklist, and only if
|
||||
width of window is > 100 :
|
||||
|
@ -3130,10 +3130,10 @@ The char "/" can be replaced by any char (one or more identical chars).
|
|||
|
||||
Matching groups can be used in "replace":
|
||||
|
||||
* `${re:0}` to `${re:99}`: `${re:0}` is the whole match, `${re:1}` to
|
||||
`${re:99}` are groups captured
|
||||
* `${re:+}`: the last match (with highest number)
|
||||
* `${hide:c,${re:N}}`: match "N" with all chars replaced by "c"
|
||||
* `+${re:0}+` to `+${re:99}+`: `+${re:0}+` is the whole match, `+${re:1}+` to
|
||||
`+${re:99}+` are groups captured
|
||||
* `+${re:+}+`: the last match (with highest number)
|
||||
* `+${hide:c,${re:N}}+`: match "N" with all chars replaced by "c"
|
||||
(example: `+${hide:*,${re:2}}+` is the group #2 with all chars replaced by
|
||||
`+*+`).
|
||||
|
||||
|
@ -3413,8 +3413,8 @@ terminal is changed:
|
|||
The triggers catch the signal "signal_sigwinch", which is sent by WeeChat when
|
||||
signal SIGWINCH is received (when terminal size is changed).
|
||||
|
||||
The condition with `${info:term_width}` checks the width of terminal (you can
|
||||
also use `${info:term_height}` if needed).
|
||||
The condition with `+${info:term_width}+` checks the width of terminal (you can
|
||||
also use `+${info:term_height}+` if needed).
|
||||
|
||||
In the example, when the terminal becomes small, the nicklist is hidden. And the
|
||||
bar is restored when the width is greater or equal to 100 chars.
|
||||
|
@ -3422,7 +3422,7 @@ bar is restored when the width is greater or equal to 100 chars.
|
|||
[[trigger_example_config_save]]
|
||||
===== Automatic save of configuration
|
||||
|
||||
You can automatically save configuration files (`*.conf`), for example each
|
||||
You can automatically save configuration files (`+*.conf+`), for example each
|
||||
hour:
|
||||
|
||||
----
|
||||
|
|
|
@ -204,7 +204,7 @@ Then add a secured data with your freenode password:
|
|||
----
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Then you can use `${sec.data.freenode_password}` instead of your password in
|
||||
Then you can use `+${sec.data.freenode_password}+` instead of your password in
|
||||
IRC options mentioned above, for example:
|
||||
|
||||
----
|
||||
|
|
|
@ -420,8 +420,8 @@ Quelques règles basiques que vous *devez* suivre quand vous écrivez du code C
|
|||
mal.
|
||||
* Essayez de ne pas dépasser 80 caractères par ligne, sauf si cela est
|
||||
nécessaire pour améliorer la lisibilité.
|
||||
* Utilisez les commentaires `/* comment */` (pas de style C99 comme
|
||||
`// comment`).
|
||||
* Utilisez les commentaires `+/* comment */+` (pas de style C99 comme
|
||||
`+// comment+`).
|
||||
* Ajoutez un commentaire avant chaque fonction, pour expliquer ce qu'elle fait
|
||||
(utilisez toujours un commentaire multi-lignes, même si la description est
|
||||
très courte).
|
||||
|
@ -475,9 +475,9 @@ foo ()
|
|||
----
|
||||
|
||||
* Utilisez des parenthèses pour montrer explicitement comment l'expression est
|
||||
évaluée, même si cela n'est pas obligatoire, par exemple écrivez `x + (y * z)`
|
||||
au lieu de `x + y * z`.
|
||||
* Disposez les accolades `{ }` seules sur la ligne, et indentez les avec le
|
||||
évaluée, même si cela n'est pas obligatoire, par exemple écrivez `+x + (y * z)+`
|
||||
au lieu de `+x + y * z+`.
|
||||
* Disposez les accolades `+{ }+` seules sur la ligne, et indentez les avec le
|
||||
nombre d'espaces utilisés sur la ligne au dessus de l'accolade ouvrante (le
|
||||
`if` dans l'exemple) :
|
||||
|
||||
|
@ -795,48 +795,48 @@ Les attributs autorisés sont (un ou plusieurs caractères) :
|
|||
Les couleurs possibles sont :
|
||||
|
||||
* couleur standard : attributs facultatifs + nombre sur 2 digits
|
||||
* couleur étendue : `@` + attributs facultatifs + nombre sur 5 digits
|
||||
* couleur étendue : `+@+` + attributs facultatifs + nombre sur 5 digits
|
||||
|
||||
Dans le tableau qui suit, les conventions suivantes sont utilisées :
|
||||
|
||||
* `STD` : couleur standard (2 digits)
|
||||
* `(A)STD` : couleur standard avec des attributs facultatifs
|
||||
(attributs + 2 digits)
|
||||
* `EXT` : couleur étendue (`@` + 5 digits)
|
||||
* `EXT` : couleur étendue (`+@+` + 5 digits)
|
||||
* `(A)EXT` : couleur étendue avec des attributs facultatifs
|
||||
(`@` + attributs + 5 digits)
|
||||
* `ATTR` : un caractère d'attribut (`*`, `!`, `/`, `_` ou `|`)
|
||||
(`+@+` + attributs + 5 digits)
|
||||
* `ATTR` : un caractère d'attribut (`+*+`, `+!+`, `+/+`, `+_+` ou `+|+`)
|
||||
|
||||
Toutes les combinaisons sont résumées dans ce tableau :
|
||||
|
||||
[width="100%",cols="4,2,2,8",options="header"]
|
||||
|===
|
||||
| Code | Exemple | Aires | Description
|
||||
| [hex]#19# + STD | [hex]#19# `01` | chat + barres | Définir les attributs et la couleur en utilisant une option, voir le tableau ci-dessous
|
||||
| [hex]#19# + EXT | [hex]#19# `@00001` | chat | Définir une couleur avec la paire ncurses (utilisé seulement sur le tampon `/color`)
|
||||
| [hex]#19# + "F" + (A)STD | [hex]#19# `F*05` | chat + barres | Définir la couleur de texte (couleur WeeChat)
|
||||
| [hex]#19# + "F" + (A)EXT | [hex]#19# `F@00214` | chat + barres | Définir la couleur de texte (couleur étendue)
|
||||
| [hex]#19# + "B" + STD | [hex]#19# `B05` | chat + barres | Définir la couleur de fond (couleur WeeChat)
|
||||
| [hex]#19# + "B" + EXT | [hex]#19# `B@00124` | chat + barres | Définir le couleur de fond (couleur étendue)
|
||||
| [hex]#19# + "*" + (A)STD | [hex]#19# `*05` | chat + barres | Définir la couleur de texte (couleur WeeChat)
|
||||
| [hex]#19# + "*" + (A)EXT | [hex]#19# `*@00214` | chat + barres | Définir la couleur de texte (couleur étendue)
|
||||
| [hex]#19# + "*" + (A)STD + "," + STD | [hex]#19# `*08,05` | chat + barres | Définir la couleur de texte/fond (couleurs WeeChat)
|
||||
| [hex]#19# + "*" + (A)STD + "," + EXT | [hex]#19# `*01,@00214` | chat + barres | Définir la couleur de texte (couleur WeeChat) et de fond (couleur étendue)
|
||||
| [hex]#19# + "*" + (A)EXT + "," + STD | [hex]#19# `*@00214,05` | chat + barres | Définir la couleur de texte (couleur étendue) et de fond (couleur WeeChat)
|
||||
| [hex]#19# + "*" + (A)EXT + "," + EXT | [hex]#19# `*@00214,@00017` | chat + barres | Définir la couleur de texte/fond (couleurs étendues)
|
||||
| [hex]#19# + "b" + "F" | [hex]#19# `bF` | barres | Définir la couleur de texte de la barre
|
||||
| [hex]#19# + "b" + "D" | [hex]#19# `bD` | barres | Définir la couleur du délimiteur de la barre
|
||||
| [hex]#19# + "b" + "B" | [hex]#19# `bB` | barres | Définir la couleur de fond de la barre
|
||||
| [hex]#19# + "b" + "_" | [hex]#19# `b_` | barre input | Caractère de démarrage dans l'entrée (utilisé seulement dans l'objet "input_text")
|
||||
| [hex]#19# + "b" + "-" | [hex]#19# `b-` | barre input | Caractère de démarrage caché dans l'entrée (utilisé seulement dans l'objet "input_text")
|
||||
| [hex]#19# + "b" + "#" | [hex]#19# `b#` | barre input | Caractère de déplacement du curseur (utilisé seulement dans l'objet "input_text")
|
||||
| [hex]#19# + "b" + "i" | [hex]#19# `bi` | barres | Début d'objet
|
||||
| [hex]#19# + "b" + "l" (lower L) | [hex]#19# `bl` | barres | Ligne de démarrage d'objet
|
||||
| [hex]#19# + "E" | [hex]#19# `E` | chat + barres | Texte mis en valeur _(WeeChat ≥ 0.4.2)_
|
||||
| [hex]#19# + [hex]#1C# | [hex]#19# [hex]#1C# | chat + barres | Réinitialiser la couleur (garder les attributs)
|
||||
| [hex]#1A# + ATTR | [hex]#1A# `*` | chat + barres | Activer un attribut
|
||||
| [hex]#1B# + ATTR | [hex]#1B# `*` | chat + barres | Supprimer un attribut
|
||||
| [hex]#1C# | [hex]#1C# | chat + barres | Réinitialiser les attributs et la couleur
|
||||
| Code | Exemple | Aires | Description
|
||||
| [hex]#19# + STD | [hex]#19# `+01+` | chat + barres | Définir les attributs et la couleur en utilisant une option, voir le tableau ci-dessous
|
||||
| [hex]#19# + EXT | [hex]#19# `+@00001+` | chat | Définir une couleur avec la paire ncurses (utilisé seulement sur le tampon `/color`)
|
||||
| [hex]#19# + "F" + (A)STD | [hex]#19# `+F*05+` | chat + barres | Définir la couleur de texte (couleur WeeChat)
|
||||
| [hex]#19# + "F" + (A)EXT | [hex]#19# `+F@00214+` | chat + barres | Définir la couleur de texte (couleur étendue)
|
||||
| [hex]#19# + "B" + STD | [hex]#19# `+B05+` | chat + barres | Définir la couleur de fond (couleur WeeChat)
|
||||
| [hex]#19# + "B" + EXT | [hex]#19# `+B@00124+` | chat + barres | Définir le couleur de fond (couleur étendue)
|
||||
| [hex]#19# + "*" + (A)STD | [hex]#19# `+*05+` | chat + barres | Définir la couleur de texte (couleur WeeChat)
|
||||
| [hex]#19# + "*" + (A)EXT | [hex]#19# `+*@00214+` | chat + barres | Définir la couleur de texte (couleur étendue)
|
||||
| [hex]#19# + "*" + (A)STD + "," + STD | [hex]#19# `+*08,05+` | chat + barres | Définir la couleur de texte/fond (couleurs WeeChat)
|
||||
| [hex]#19# + "*" + (A)STD + "," + EXT | [hex]#19# `+*01,@00214+` | chat + barres | Définir la couleur de texte (couleur WeeChat) et de fond (couleur étendue)
|
||||
| [hex]#19# + "*" + (A)EXT + "," + STD | [hex]#19# `+*@00214,05+` | chat + barres | Définir la couleur de texte (couleur étendue) et de fond (couleur WeeChat)
|
||||
| [hex]#19# + "*" + (A)EXT + "," + EXT | [hex]#19# `+*@00214,@00017+` | chat + barres | Définir la couleur de texte/fond (couleurs étendues)
|
||||
| [hex]#19# + "b" + "F" | [hex]#19# `+bF+` | barres | Définir la couleur de texte de la barre
|
||||
| [hex]#19# + "b" + "D" | [hex]#19# `+bD+` | barres | Définir la couleur du délimiteur de la barre
|
||||
| [hex]#19# + "b" + "B" | [hex]#19# `+bB+` | barres | Définir la couleur de fond de la barre
|
||||
| [hex]#19# + "b" + "_" | [hex]#19# `+b_+` | barre input | Caractère de démarrage dans l'entrée (utilisé seulement dans l'objet "input_text")
|
||||
| [hex]#19# + "b" + "-" | [hex]#19# `+b-+` | barre input | Caractère de démarrage caché dans l'entrée (utilisé seulement dans l'objet "input_text")
|
||||
| [hex]#19# + "b" + "#" | [hex]#19# `+b#+` | barre input | Caractère de déplacement du curseur (utilisé seulement dans l'objet "input_text")
|
||||
| [hex]#19# + "b" + "i" | [hex]#19# `+bi+` | barres | Début d'objet
|
||||
| [hex]#19# + "b" + "l" (lower L) | [hex]#19# `+bl+` | barres | Ligne de démarrage d'objet
|
||||
| [hex]#19# + "E" | [hex]#19# `+E+` | chat + barres | Texte mis en valeur _(WeeChat ≥ 0.4.2)_
|
||||
| [hex]#19# + [hex]#1C# | [hex]#19# [hex]#1C# | chat + barres | Réinitialiser la couleur (garder les attributs)
|
||||
| [hex]#1A# + ATTR | [hex]#1A# `+*+` | chat + barres | Activer un attribut
|
||||
| [hex]#1B# + ATTR | [hex]#1B# `+*+` | chat + barres | Supprimer un attribut
|
||||
| [hex]#1C# | [hex]#1C# | chat + barres | Réinitialiser les attributs et la couleur
|
||||
|===
|
||||
|
||||
Les codes couleur utilisant des options (voir _t_gui_color_enum_, dans le
|
||||
|
@ -920,14 +920,14 @@ Exemples de codes couleur :
|
|||
|
||||
[width="70%",cols="1,2",options="header"]
|
||||
|===
|
||||
| Code | Description
|
||||
| [hex]#19# `01` | Couleur de l'option "01" (texte de discussion)
|
||||
| [hex]#19# `*08,03` | Jaune sur rouge
|
||||
| [hex]#19# `*@00214` | Orange (couleur étendue 214)
|
||||
| [hex]#19# `*@*_00214,@00017` | Orange (214) gras souligné sur bleu foncé (17)
|
||||
| [hex]#1A# `_` | Activer le souligné
|
||||
| [hex]#1B# `_` | Supprimer le souligné
|
||||
| [hex]#1C# | Réinitialiser les attributs et la couleur
|
||||
| Code | Description
|
||||
| [hex]#19# `+01+` | Couleur de l'option "01" (texte de discussion)
|
||||
| [hex]#19# `+*08,03+` | Jaune sur rouge
|
||||
| [hex]#19# `+*@00214+` | Orange (couleur étendue 214)
|
||||
| [hex]#19# `+*@*_00214,@00017+` | Orange (214) gras souligné sur bleu foncé (17)
|
||||
| [hex]#1A# `+_+` | Activer le souligné
|
||||
| [hex]#1B# `+_+` | Supprimer le souligné
|
||||
| [hex]#1C# | Réinitialiser les attributs et la couleur
|
||||
|===
|
||||
|
||||
[[plugin_internals]]
|
||||
|
|
|
@ -627,9 +627,9 @@ Paramètres :
|
|||
* _string1_ : première chaîne à comparer
|
||||
* _string2_ : seconde chaîne à comparer
|
||||
* _range_ : nombre de caractères pour la comparaison de casse, par exemple :
|
||||
** 26 : `A-Z` deviennent en minuscules `a-z`
|
||||
** 29 : `A-Z [ \ ]` deviennent minuscules `a-z { | }`
|
||||
** 30 : `A-Z [ \ ] ^` deviennent minuscules `a-z { | } ~`
|
||||
** 26 : `+A-Z+` deviennent en minuscules `a-z`
|
||||
** 29 : `+A-Z [ \ ]+` deviennent minuscules `+a-z { | }+`
|
||||
** 30 : `+A-Z [ \ ] ^+` deviennent minuscules `+a-z { | } ~+`
|
||||
|
||||
[NOTE]
|
||||
Les valeurs 29 et 30 sont utilisés par quelques protocoles comme IRC.
|
||||
|
@ -706,9 +706,9 @@ Paramètres :
|
|||
* _string2_ : seconde chaîne à comparer
|
||||
* _max_ : nombre maximum de caractères à comparer
|
||||
* _range_ : nombre de caractères pour la comparaison de casse, par exemple :
|
||||
** 26 : `A-Z` deviennent en minuscules `a-z`
|
||||
** 29 : `A-Z [ \ ]` deviennent minuscules `a-z { | }`
|
||||
** 30 : `A-Z [ \ ] ^` deviennent minuscules `a-z { | } ~`
|
||||
** 26 : `+A-Z+` deviennent en minuscules `+a-z+`
|
||||
** 29 : `+A-Z [ \ ]+` deviennent minuscules `+a-z { | }+`
|
||||
** 30 : `+A-Z [ \ ] ^+` deviennent minuscules `+a-z { | } ~+`
|
||||
|
||||
[NOTE]
|
||||
Les valeurs 29 et 30 sont utilisés par quelques protocoles comme IRC.
|
||||
|
@ -1998,12 +1998,12 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
|
|||
_WeeChat ≥ 0.4.0, mis à jour dans la 0.4.2, 1.0, 1.1, 1.2 et 1.3._
|
||||
|
||||
Évaluer l'expression et retourner le résultat sous forme de chaîne.
|
||||
Les variables spéciales avec le format `${variable}` sont étendues (voir le
|
||||
Les variables spéciales avec le format `+${variable}+` sont étendues (voir le
|
||||
tableau ci-dessous).
|
||||
|
||||
[NOTE]
|
||||
Depuis la version 1.0, les variables imbriquées sont supportées, par exemple :
|
||||
`${color:${variable}}`.
|
||||
`+${color:${variable}}+`.
|
||||
|
||||
Prototype :
|
||||
|
||||
|
@ -2057,91 +2057,94 @@ première étendue à la dernière) :
|
|||
|===
|
||||
| Format | Description | Exemples | Résultats
|
||||
|
||||
| `${nom}` | Variable `nom` de la table de hachage _extra_vars_ |
|
||||
`${nom}` | `valeur`
|
||||
| `+${nom}+` |
|
||||
Variable `nom` de la table de hachage _extra_vars_ |
|
||||
`+${nom}+` |
|
||||
`+valeur+`
|
||||
|
||||
| `${eval:xxx}` +
|
||||
| `+${eval:xxx}+` +
|
||||
(_WeeChat ≥ 1.3_) |
|
||||
Chaîne à évaluer |
|
||||
`${eval:${date:${weechat.look.buffer_time_format}}}` |
|
||||
`19:02:45` (avec des couleurs s'il y a des codes couleur dans l'option
|
||||
weechat.look.buffer_time_format)
|
||||
`+${eval:${date:${weechat.look.buffer_time_format}}}+` |
|
||||
`+19:02:45+` (avec des couleurs s'il y a des codes couleur dans l'option
|
||||
weechat.look.buffer_time_format)
|
||||
|
||||
| `${esc:xxx}` +
|
||||
`${\xxx}` | Chaîne avec caractères échappés |
|
||||
`${esc:préfixe\tmessage}` +
|
||||
`${\ua9}` |
|
||||
`préfixe<TAB>message` +
|
||||
`©`
|
||||
| `+${esc:xxx}+` +
|
||||
`+${\xxx}+` |
|
||||
Chaîne avec caractères échappés |
|
||||
`+${esc:préfixe\tmessage}+` +
|
||||
`+${\ua9}+` |
|
||||
`+préfixe<TAB>message+` +
|
||||
`+©+`
|
||||
|
||||
| `${hide:x,valeur}` |
|
||||
| `+${hide:x,valeur}+` |
|
||||
Chaîne avec les caractères masqués (tous les caractères dans `valeur`
|
||||
remplacés par `x` |
|
||||
`${hide:*,mot_de_passe}` |
|
||||
`************`
|
||||
`+${hide:*,mot_de_passe}+` |
|
||||
`+************+`
|
||||
|
||||
| `${re:N}` |
|
||||
| `+${re:N}+` |
|
||||
Groupe regex capturé : `0` = toute la chaîne correspondante,
|
||||
`1` à `99` = groupe capturé, `+++` = dernier groupe capturé |
|
||||
`${re:1}` |
|
||||
`test`
|
||||
`+${re:1}+` |
|
||||
`+test+`
|
||||
|
||||
| `${color:nom}` |
|
||||
| `+${color:nom}+` |
|
||||
Code couleur WeeChat (le nom de couleur a des attributs facultatifs),
|
||||
voir la fonction <<_color,weechat_color>> pour les formats supportés |
|
||||
`${color:red}texte rouge` +
|
||||
`${color:*214}texte orange gras` |
|
||||
`texte rouge` (en rouge) +
|
||||
`texte orange gras` (en orange gras)
|
||||
`+${color:red}texte rouge+` +
|
||||
`+${color:*214}texte orange gras+` |
|
||||
`+texte rouge+` (en rouge) +
|
||||
`+texte orange gras+` (en orange gras)
|
||||
|
||||
| `${info:nom}` +
|
||||
`${info:nom,paramètres}` |
|
||||
| `+${info:nom}+` +
|
||||
`+${info:nom,paramètres}+` |
|
||||
Info de WeeChat ou d'une extension, voir la fonction
|
||||
<<_info_get,weechat_info_get>> |
|
||||
`${info:version}` +
|
||||
`${info:irc_nick_color_name,foo}` |
|
||||
`1.0` +
|
||||
`lightblue`
|
||||
`+${info:version}+` +
|
||||
`+${info:irc_nick_color_name,foo}+` |
|
||||
`+1.0+` +
|
||||
`+lightblue+`
|
||||
|
||||
| `${date}` +
|
||||
`${date:xxx}` +
|
||||
| `+${date}+` +
|
||||
`+${date:xxx}+` +
|
||||
(_WeeChat ≥ 1.3_) |
|
||||
La date/heure courante, avec un format personnalisé (voir `man strftime`),
|
||||
le format par défaut est `%F %T` |
|
||||
`${date}` +
|
||||
`${date:%H:%M:%S}` |
|
||||
`2015-06-30 19:02:45` +
|
||||
`19:02:45`
|
||||
`+${date}+` +
|
||||
`+${date:%H:%M:%S}+` |
|
||||
`+2015-06-30 19:02:45+` +
|
||||
`+19:02:45+`
|
||||
|
||||
| `${env:NOM}` +
|
||||
| `+${env:NOM}+` +
|
||||
(_WeeChat ≥ 1.2_) |
|
||||
Valeur de la variable d'environnement `NOM` |
|
||||
`${env:HOME}` |
|
||||
`/home/user`
|
||||
`+${env:HOME}+` |
|
||||
`+/home/user+`
|
||||
|
||||
| `${sec.data.nom}` |
|
||||
| `+${sec.data.nom}+` |
|
||||
Valeur de la donnée sécurisée `nom` |
|
||||
`${sec.data.freenode_pass}` |
|
||||
`mon_mot_de_passe`
|
||||
`+${sec.data.freenode_pass}+` |
|
||||
`+mon_mot_de_passe+`
|
||||
|
||||
| `${fichier.section.option}` |
|
||||
| `+${fichier.section.option}+` |
|
||||
Valeur de l'option |
|
||||
`${weechat.look.buffer_time_format}` |
|
||||
`%H:%M:%S`
|
||||
`+${weechat.look.buffer_time_format}+` |
|
||||
`+%H:%M:%S+`
|
||||
|
||||
| `${nom}` |
|
||||
| `+${nom}+` |
|
||||
Valeur de la variable locale `nom` dans le tampon |
|
||||
`${nick}` |
|
||||
`FlashCode`
|
||||
`+${nick}+` |
|
||||
`+FlashCode+`
|
||||
|
||||
| `${hdata.var1.var2...}` +
|
||||
`${hdata[list].var1.var2...}` |
|
||||
| `+${hdata.var1.var2...}+` +
|
||||
`+${hdata[list].var1.var2...}+` |
|
||||
Valeur d'un hdata (les pointeurs `window` et `buffer` sont définis par défaut
|
||||
avec la fenêtre et tampon courants) |
|
||||
`${buffer[gui_buffers].full_name}` +
|
||||
`${window.buffer.number}` |
|
||||
`core.weechat` +
|
||||
`1`
|
||||
`+${buffer[gui_buffers].full_name}+` +
|
||||
`+${window.buffer.number}+` |
|
||||
`+core.weechat+` +
|
||||
`+1+`
|
||||
|===
|
||||
|
||||
Exemples en C :
|
||||
|
@ -10038,8 +10041,8 @@ Liste des modificateurs utilisés par WeeChat et les extensions :
|
|||
| irc_command_auth +
|
||||
_(WeeChat ≥ 0.4.1)_ |
|
||||
Nom du serveur |
|
||||
Commande d'authentification (par exemple : `/msg nickserv identify password`) |
|
||||
Commande avec le mot de passe caché (par exemple : `/msg nickserv identify ********`)
|
||||
Commande d'authentification (par exemple : `+/msg nickserv identify password+`) |
|
||||
Commande avec le mot de passe caché (par exemple : `+/msg nickserv identify ********+`)
|
||||
|
||||
| irc_message_auth +
|
||||
_(WeeChat ≥ 0.4.1)_ |
|
||||
|
|
|
@ -187,7 +187,7 @@ Puis ajoutez une donnée sécurisée avec votre mot de passe freenode :
|
|||
/secure set freenode_password xxxxxxx
|
||||
----
|
||||
|
||||
Vous pouvez alors utiliser `${sec.data.freenode_password}` au lieu de votre
|
||||
Vous pouvez alors utiliser `+${sec.data.freenode_password}+` au lieu de votre
|
||||
mot de passe dans les options IRC mentionnées ci-dessus, par exemple :
|
||||
|
||||
----
|
||||
|
|
|
@ -1230,11 +1230,11 @@ Données envoyées dans le hdata :
|
|||
|
||||
La valeur de __diff_ peut être :
|
||||
|
||||
* `^` : le groupe parent : le(s) groupe(s)/pseudo(s) après celui-ci sont liés à
|
||||
* `+^+` : le groupe parent : le(s) groupe(s)/pseudo(s) après celui-ci sont liés à
|
||||
ce groupe
|
||||
* `+` : groupe/pseudo ajouté dans le groupe parent
|
||||
* `-` : groupe/pseudo supprimé du groupe parent
|
||||
* `*` : groupe/pseudo mis à jour dans le groupe parent
|
||||
* `+++` : groupe/pseudo ajouté dans le groupe parent
|
||||
* `+-+` : groupe/pseudo supprimé du groupe parent
|
||||
* `+*+` : groupe/pseudo mis à jour dans le groupe parent
|
||||
|
||||
Exemple : pseudo _master_ ajouté dans le groupe _000|o_ (opérateurs de canel sur
|
||||
un canal IRC), pseudos _nick1_ et _nick2_ ajoutés dans le groupe _999|..._
|
||||
|
|
|
@ -46,7 +46,7 @@ l'API est la même pour les autres langages.
|
|||
==== Python
|
||||
|
||||
* Vous devez utiliser `import weechat`
|
||||
* Les fonctions `print*` se nomment `prnt*` en python (car _print_ est un mot
|
||||
* Les fonctions `+print*+` se nomment `+prnt*+` en python (car _print_ est un mot
|
||||
clé réservé)
|
||||
* Les fonctions sont appelées par `weechat.xxx(arg1, arg2, ...)`
|
||||
|
||||
|
|
|
@ -895,15 +895,15 @@ La chaîne peut être :
|
|||
|
||||
Pour une expression, les variables suivantes sont disponibles :
|
||||
|
||||
* `${active}` : vrai si la fenêtre est active
|
||||
* `${inactive}` : vrai si la fenêtre est inactive
|
||||
* `${nicklist}` : vrai si le tampon affiché dans la fenêtre a une liste de
|
||||
* `+${active}+` : vrai si la fenêtre est active
|
||||
* `+${inactive}+` : vrai si la fenêtre est inactive
|
||||
* `+${nicklist}+` : vrai si le tampon affiché dans la fenêtre a une liste de
|
||||
pseudos
|
||||
|
||||
Les pointeurs suivants sont disponibles :
|
||||
|
||||
* `${window}` : la fenêtre où la condition est évaluée
|
||||
* `${buffer}` : le tampon de la fenêtre où la condition est évaluée
|
||||
* `+${window}+` : la fenêtre où la condition est évaluée
|
||||
* `+${buffer}+` : le tampon de la fenêtre où la condition est évaluée
|
||||
|
||||
Exemple pour afficher la liste de pseudos dans tous les tampons possédant une
|
||||
liste de pseudos, et seulement si la largeur de fenêtre est supérieurs à 100 :
|
||||
|
@ -3229,10 +3229,10 @@ caractères identiques).
|
|||
|
||||
Les groupes de correspondance peuvent être utilisés dans le "remplacement" :
|
||||
|
||||
* `${re:0}` à `${re:99}` : `${re:0}` est la correspondance complète, `${re:1}`
|
||||
à `${re:99}` sont les groupes capturés
|
||||
* `${re:+}` : la dernière correspondance (avec le numéro le plus élevé)
|
||||
* `${hide:c,${re:N}}` : la correspondance "N" avec tous les caractères
|
||||
* `+${re:0}+` à `+${re:99}+` : `+${re:0}+` est la correspondance complète, `+${re:1}+`
|
||||
à `+${re:99}+` sont les groupes capturés
|
||||
* `+${re:+}+` : la dernière correspondance (avec le numéro le plus élevé)
|
||||
* `+${hide:c,${re:N}}+` : la correspondance "N" avec tous les caractères
|
||||
remplacés par "c" (exemple : `+${hide:*,${re:2}}+` est le groupe n°2 avec tous
|
||||
les caractères remplacés par `+*+`).
|
||||
|
||||
|
@ -3519,8 +3519,8 @@ lorsque la taille du terminal change :
|
|||
Les triggers attrapent le signal "signal_sigwinch", qui et envoyé par WeeChat
|
||||
lorsque le signal SIGWINCH est reçu (lorsque la taille du terminal a changé).
|
||||
|
||||
La condition avec `${info:term_width}` vérifie la largeur du terminal (vous
|
||||
pouvez aussi utiliser `${info:term_height}` si besoin).
|
||||
La condition avec `+${info:term_width}+` vérifie la largeur du terminal (vous
|
||||
pouvez aussi utiliser `+${info:term_height}+` si besoin).
|
||||
|
||||
Dans l'exemple, si le terminal devient petit, la liste de pseudos est cachée.
|
||||
Et la barre est restaurée lorsque la largeur du terminal est supérieure ou
|
||||
|
@ -3530,7 +3530,7 @@ Et la barre est restaurée lorsque la largeur du terminal est supérieure ou
|
|||
===== Sauvegarde automatique de la configuration
|
||||
|
||||
Vous pouvez sauvegarder automatiquement les fichiers de configuration
|
||||
(`*.conf`), par example chaque heure :
|
||||
(`+*.conf+`), par example chaque heure :
|
||||
|
||||
----
|
||||
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
|
||||
|
|
|
@ -646,9 +646,9 @@ Argomenti:
|
|||
* _string1_: prima stringa da comparare
|
||||
* _string2_: seconda stringa da comparare
|
||||
* _range_: numero di caratteri nel confronto maiuscole/minuscole, ad esempio:
|
||||
** 26: `A-Z` vengono ridotti ad `a-z`
|
||||
** 29: `A-Z [ \ ]` vengono ridotti ad `a-z { | }`
|
||||
** 30: `A-Z [ \ ] ^` vengono ridotti ad `a-z { | } ~`
|
||||
** 26: `+A-Z+` vengono ridotti ad `+a-z+`
|
||||
** 29: `+A-Z [ \ ]+` vengono ridotti ad `+a-z { | }+`
|
||||
** 30: `+A-Z [ \ ] ^+` vengono ridotti ad `+a-z { | } ~+`
|
||||
|
||||
[NOTE]
|
||||
I valori 29 e 30 vengono usati da alcuni protocolli come IRC.
|
||||
|
@ -727,9 +727,9 @@ Argomenti:
|
|||
* _string2_: seconda stringa da comparare
|
||||
* _max_: numero massimo di caratteri da comparare
|
||||
* _range_: numero di caratteri nel confronto maiuscole/minuscole, ad esempio:
|
||||
** 26: `A-Z` vengono ridotti ad `a-z`
|
||||
** 29: `A-Z [ \ ]` vengono ridotti ad `a-z { | }`
|
||||
** 30: `A-Z [ \ ] ^` vengono ridotti ad `a-z { | } ~`
|
||||
** 26: `+A-Z+` vengono ridotti ad `+a-z+`
|
||||
** 29: `+A-Z [ \ ]+` vengono ridotti ad `+a-z { | }+`
|
||||
** 30: `+A-Z [ \ ] ^+` vengono ridotti ad `+a-z { | } ~+`
|
||||
|
||||
[NOTE]
|
||||
I valori 29 e 30 vengono usati da alcuni protocolli come IRC.
|
||||
|
@ -2035,12 +2035,12 @@ _WeeChat ≥ 0.4.0, updated in 0.4.2, 1.0, 1.1, 1.2 and 1.3._
|
|||
|
||||
// TRANSLATION MISSING
|
||||
Evaluate an expression and return result as a string.
|
||||
Special variables with format `${variable}` are expanded (see table below).
|
||||
Special variables with format `+${variable}+` are expanded (see table below).
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[NOTE]
|
||||
Since version 1.0, nested variables are supported, for example:
|
||||
`${color:${variable}}`.
|
||||
`+${color:${variable}}+`.
|
||||
|
||||
Prototipo:
|
||||
|
||||
|
@ -2093,92 +2093,95 @@ expanded to last):
|
|||
|===
|
||||
| Format | Description | Examples | Results
|
||||
|
||||
| `${name}` | Variable `name` from hashtable _extra_vars_ |
|
||||
`${name}` | `value`
|
||||
| `+${name}+` |
|
||||
Variable `name` from hashtable _extra_vars_ |
|
||||
`+${name}+` |
|
||||
`+value+`
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| `${eval:xxx}` +
|
||||
| `+${eval:xxx}+` +
|
||||
(_WeeChat ≥ 1.3_) |
|
||||
String to evaluate |
|
||||
`${eval:${date:${weechat.look.buffer_time_format}}}` |
|
||||
`19:02:45` (with colors if there are color codes in the option
|
||||
`+${eval:${date:${weechat.look.buffer_time_format}}}+` |
|
||||
`+19:02:45+` (with colors if there are color codes in the option
|
||||
weechat.look.buffer_time_format)
|
||||
|
||||
| `${esc:xxx}` +
|
||||
`${\xxx}` | String with escaped chars |
|
||||
`${esc:prefix\tmessage}` +
|
||||
`${\ua9}` |
|
||||
`prefix<TAB>message` +
|
||||
`©`
|
||||
| `+${esc:xxx}+` +
|
||||
`+${\xxx}+` |
|
||||
String with escaped chars |
|
||||
`+${esc:prefix\tmessage}+` +
|
||||
`+${\ua9}+` |
|
||||
`+prefix<TAB>message+` +
|
||||
`+©+`
|
||||
|
||||
| `${hide:x,value}` |
|
||||
| `+${hide:x,value}+` |
|
||||
String with hidden chars (all chars in `value` replaced `x`) |
|
||||
`${hide:*,password}` |
|
||||
`********`
|
||||
`+${hide:*,password}+` |
|
||||
`+********+`
|
||||
|
||||
| `${re:N}` |
|
||||
| `+${re:N}+` |
|
||||
Regex captured group: `0` = whole string matching, `1` to `99` = group
|
||||
captured, `+++` = last group captured |
|
||||
`${re:1}` |
|
||||
`test`
|
||||
`+${re:1}+` |
|
||||
`+test+`
|
||||
|
||||
| `${color:name}` |
|
||||
| `+${color:name}+` |
|
||||
WeeChat color code (the name of color has optional attributes),
|
||||
see function <<_color,weechat_color>> for supported formats |
|
||||
`${color:red}red text` +
|
||||
`${color:*214}bold orange text` |
|
||||
`red text` (in red) +
|
||||
`bold orange text` (in bold orange)
|
||||
`+${color:red}red text+` +
|
||||
`+${color:*214}bold orange text+` |
|
||||
`+red text+` (in red) +
|
||||
`+bold orange text+` (in bold orange)
|
||||
|
||||
| `${info:name}` +
|
||||
`${info:name,arguments}` |
|
||||
| `+${info:name}+` +
|
||||
`+${info:name,arguments}+` |
|
||||
Info from WeeChat or a plugin, see function
|
||||
<<_info_get,weechat_info_get>> |
|
||||
`${info:version}` +
|
||||
`${info:irc_nick_color_name,foo}` |
|
||||
`1.0` +
|
||||
`lightblue`
|
||||
`+${info:version}+` +
|
||||
`+${info:irc_nick_color_name,foo}+` |
|
||||
`+1.0+` +
|
||||
`+lightblue+`
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| `${date}` +
|
||||
`${date:xxx}` +
|
||||
| `+${date}+` +
|
||||
`+${date:xxx}+` +
|
||||
(_WeeChat ≥ 1.3_) |
|
||||
Current date/time, with custom format (see `man strftime`),
|
||||
default format is `%F %T` |
|
||||
`${date}` +
|
||||
`${date:%H:%M:%S}` |
|
||||
`2015-06-30 19:02:45` +
|
||||
`19:02:45`
|
||||
`+${date}+` +
|
||||
`+${date:%H:%M:%S}+` |
|
||||
`+2015-06-30 19:02:45+` +
|
||||
`+19:02:45+`
|
||||
|
||||
| `${env:NAME}` +
|
||||
| `+${env:NAME}+` +
|
||||
(_WeeChat ≥ 1.2_) |
|
||||
Value of the environment variable `NAME` |
|
||||
`${env:HOME}` |
|
||||
`/home/user`
|
||||
`+${env:HOME}+` |
|
||||
`+/home/user+`
|
||||
|
||||
| `${sec.data.name}` |
|
||||
| `+${sec.data.name}+` |
|
||||
Value of the secured data `name` |
|
||||
`${sec.data.freenode_pass}` |
|
||||
`my_password`
|
||||
`+${sec.data.freenode_pass}+` |
|
||||
`+my_password+`
|
||||
|
||||
| `${file.section.option}` |
|
||||
| `+${file.section.option}+` |
|
||||
Value of the option |
|
||||
`${weechat.look.buffer_time_format}` |
|
||||
`%H:%M:%S`
|
||||
`+${weechat.look.buffer_time_format}+` |
|
||||
`+%H:%M:%S+`
|
||||
|
||||
| `${name}` |
|
||||
| `+${name}+` |
|
||||
Value of local variable `name` in buffer |
|
||||
`${nick}` |
|
||||
`FlashCode`
|
||||
`+${nick}+` |
|
||||
`+FlashCode+`
|
||||
|
||||
| `${hdata.var1.var2...}` +
|
||||
`${hdata[list].var1.var2...}` |
|
||||
| `+${hdata.var1.var2...}+` +
|
||||
`+${hdata[list].var1.var2...}+` |
|
||||
Hdata value (pointers `window` and `buffer` are set by default with current
|
||||
window/buffer) |
|
||||
`${buffer[gui_buffers].full_name}` +
|
||||
`${window.buffer.number}` |
|
||||
`core.weechat` +
|
||||
`1`
|
||||
`+${buffer[gui_buffers].full_name}+` +
|
||||
`+${window.buffer.number}+` |
|
||||
`+core.weechat+` +
|
||||
`+1+`
|
||||
|===
|
||||
|
||||
Esempi in C:
|
||||
|
@ -10193,8 +10196,8 @@ List of modifiers used by WeeChat and plugins:
|
|||
| irc_command_auth +
|
||||
_(WeeChat ≥ 0.4.1)_ |
|
||||
Nome server |
|
||||
Authentication command (for example: `/msg nickserv identify password`) |
|
||||
Command with hidden password (for example: `/msg nickserv identify ********`)
|
||||
Authentication command (for example: `+/msg nickserv identify password+`) |
|
||||
Command with hidden password (for example: `+/msg nickserv identify ********+`)
|
||||
|
||||
// TRANSLATION MISSING
|
||||
| irc_message_auth +
|
||||
|
|
|
@ -196,7 +196,7 @@ Then add a secured data with your freenode password:
|
|||
----
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Then you can use `${sec.data.freenode_password}` instead of your password in
|
||||
Then you can use `+${sec.data.freenode_password}+` instead of your password in
|
||||
IRC options mentioned above, for example:
|
||||
|
||||
----
|
||||
|
|
|
@ -52,7 +52,7 @@ Quasi tutti gli esempi in questo manuale sono scritti in Python, ma l'API
|
|||
==== Python
|
||||
|
||||
* E necessario `import weechat`
|
||||
* Le funzioni `print*` sono chiamate `prnt*` in python (dato che _print_
|
||||
* Le funzioni `+print*+` sono chiamate `+prnt*+` in python (dato che _print_
|
||||
è una parola riservata)
|
||||
* Le funzioni sono chiamate con `weechat.xxx(arg1, arg2, ...)`
|
||||
|
||||
|
|
|
@ -924,14 +924,14 @@ The string can be:
|
|||
|
||||
For the expression, following variables are available:
|
||||
|
||||
* `${active}`: true if window is active
|
||||
* `${inactive}`: true if window is inactive
|
||||
* `${nicklist}`: true if buffer displayed in window has a nicklist
|
||||
* `+${active}+`: true if window is active
|
||||
* `+${inactive}+`: true if window is inactive
|
||||
* `+${nicklist}+`: true if buffer displayed in window has a nicklist
|
||||
|
||||
Following pointers are available:
|
||||
|
||||
* `${window}`: the window where condition is evaluated
|
||||
* `${buffer}`: the buffer of window where condition is evaluated
|
||||
* `+${window}+`: the window where condition is evaluated
|
||||
* `+${buffer}+`: the buffer of window where condition is evaluated
|
||||
|
||||
Example to display nicklist bar in all buffers with a nicklist, and only if
|
||||
width of window is > 100 :
|
||||
|
@ -3297,10 +3297,10 @@ The char "/" can be replaced by any char (one or more identical chars).
|
|||
|
||||
Matching groups can be used in "replace":
|
||||
|
||||
* `${re:0}` to `${re:99}`: `${re:0}` is the whole match, `${re:1}` to
|
||||
`${re:99}` are groups captured
|
||||
* `${re:+}`: the last match (with highest number)
|
||||
* `${hide:c,${re:N}}`: match "N" with all chars replaced by "c"
|
||||
* `+${re:0}+` to `+${re:99}+`: `+${re:0}+` is the whole match, `+${re:1}+` to
|
||||
`+${re:99}+` are groups captured
|
||||
* `+${re:+}+`: the last match (with highest number)
|
||||
* `+${hide:c,${re:N}}+`: match "N" with all chars replaced by "c"
|
||||
(example: `+${hide:*,${re:2}}+` is the group #2 with all chars replaced by
|
||||
`+*+`).
|
||||
|
||||
|
@ -3585,8 +3585,8 @@ terminal is changed:
|
|||
The triggers catch the signal "signal_sigwinch", which is sent by WeeChat when
|
||||
signal SIGWINCH is received (when terminal size is changed).
|
||||
|
||||
The condition with `${info:term_width}` checks the width of terminal (you can
|
||||
also use `${info:term_height}` if needed).
|
||||
The condition with `+${info:term_width}+` checks the width of terminal (you can
|
||||
also use `+${info:term_height}+` if needed).
|
||||
|
||||
In the example, when the terminal becomes small, the nicklist is hidden. And the
|
||||
bar is restored when the width is greater or equal to 100 chars.
|
||||
|
@ -3594,7 +3594,7 @@ bar is restored when the width is greater or equal to 100 chars.
|
|||
[[trigger_example_config_save]]
|
||||
===== Automatic save of configuration
|
||||
|
||||
You can automatically save configuration files (`*.conf`), for example each
|
||||
You can automatically save configuration files (`+*.conf+`), for example each
|
||||
hour:
|
||||
|
||||
----
|
||||
|
|
|
@ -420,7 +420,7 @@ C 言語のコードを書く際には以下の基本的なルールを*必ず*
|
|||
* インデントは空白文字を 4 個使ってください。タブ文字を使わないでください、タブ文字は良くありません。
|
||||
* 読みやすくする必要がある場合を除いて、1
|
||||
行は 80 文字以内に収めてください。
|
||||
* コメントは `/* comment */` のようにしてください (`// comment` のような C99 スタイルのコメントは使わないでください)。
|
||||
* コメントは `+/* comment */+` のようにしてください (`+// comment+` のような C99 スタイルのコメントは使わないでください)。
|
||||
* 関数の前に、その関数の機能を説明するコメントを付けてください
|
||||
(説明が短くても、必ず複数行コメントを使ってください)。
|
||||
|
||||
|
@ -471,8 +471,8 @@ foo ()
|
|||
----
|
||||
|
||||
* たとえ必要無くとも、丸括弧を使って式を評価する順番を明示してください、例:
|
||||
`x + y * z` の代わりに `x + (y * z)` と書いてください
|
||||
* 中括弧 `{ }` は制御文の次の行に単独で置き、制御文 (以下の `if` です)
|
||||
`+x + y * z+` の代わりに `+x + (y * z)+` と書いてください
|
||||
* 中括弧 `+{ }+` は制御文の次の行に単独で置き、制御文 (以下の `if` です)
|
||||
と同じ空白文字の数だけインデントしてください:
|
||||
|
||||
[source,C]
|
||||
|
@ -782,46 +782,46 @@ WeeChat は文字列中に独自の色コードを使うことで、属性
|
|||
指定できる色は:
|
||||
|
||||
* 標準色: 任意属性 + 2 桁の番号
|
||||
* 拡張色: `@` + 任意属性 + 5 桁の番号
|
||||
* 拡張色: `+@+` + 任意属性 + 5 桁の番号
|
||||
|
||||
以下の表に使われる組み合わせを示す:
|
||||
|
||||
* `STD`: 標準色 (2 桁の番号)
|
||||
* `(A)STD`: 任意属性を含めた標準色 (属性 + 2 桁の番号)
|
||||
* `EXT`: 拡張色 (`@` + 5 桁の番号)
|
||||
* `(A)EXT`:任意属性を含めた拡張色 (`@` + 属性 + 5 桁の番号)
|
||||
* `ATTR`: 属性指定の 1 文字 (`*` 、`!` 、`/` 、`_` 、`|`)
|
||||
* `EXT`: 拡張色 (`+@+` + 5 桁の番号)
|
||||
* `(A)EXT`:任意属性を含めた拡張色 (`+@+` + 属性 + 5 桁の番号)
|
||||
* `ATTR`: 属性指定の 1 文字 (`+*+` 、`+!+` 、`+/+` 、`+_+` 、`+|+`)
|
||||
|
||||
以下の表にすべての組み合わせをまとめています:
|
||||
|
||||
[width="100%",cols="4,2,2,8",options="header"]
|
||||
|===
|
||||
| コード | 例 | エリア | 説明
|
||||
| [hex]#19# + STD | [hex]#19# `01` | chat + bars | オプションを使って属性と色を指定、色コードは以下の表を参照
|
||||
| [hex]#19# + EXT | [hex]#19# `@00001` | chat | ncurses ペアを使って色を指定 (`/color` バッファのみ有効)
|
||||
| [hex]#19# + "F" + (A)STD | [hex]#19# `F*05` | chat + bars | 文字色 (WeeChat 色) を設定
|
||||
| [hex]#19# + "F" + (A)EXT | [hex]#19# `F@00214` | chat + bars | 文字色 (拡張色) を設定
|
||||
| [hex]#19# + "B" + STD | [hex]#19# `B05` | chat + bars | 背景色 (WeeChat 色) を設定
|
||||
| [hex]#19# + "B" + EXT | [hex]#19# `B@00124` | chat + bars | 背景色 (拡張色) を設定
|
||||
| [hex]#19# + "*" + (A)STD | [hex]#19# `*05` | chat + bars | 文字色(WeeChat 色) を設定
|
||||
| [hex]#19# + "*" + (A)EXT | [hex]#19# `*@00214` | chat + bars | 文字色 (拡張色) を設定
|
||||
| [hex]#19# + "*" + (A)STD + "," + STD | [hex]#19# `*08,05` | chat + bars | 文字色及び背景色 (WeeChat 色) を設定
|
||||
| [hex]#19# + "*" + (A)STD + "," + EXT | [hex]#19# `*01,@00214` | chat + bars | 文字色 (WeeChat 色) と背景色 (拡張色) を設定
|
||||
| [hex]#19# + "*" + (A)EXT + "," + STD | [hex]#19# `*@00214,05` | chat + bars | 文字色 (拡張色) と背景色 (WeeChat 色) を設定
|
||||
| [hex]#19# + "*" + (A)EXT + "," + EXT | [hex]#19# `*@00214,@00017` | chat + bars | 文字色及び背景色 (拡張色) を設定
|
||||
| [hex]#19# + "b" + "F" | [hex]#19# `bF` | bars | バーの文字色を設定
|
||||
| [hex]#19# + "b" + "D" | [hex]#19# `bD` | bars | バーの区切り文字色を設定
|
||||
| [hex]#19# + "b" + "B" | [hex]#19# `bB` | bars | バーの背景色を設定
|
||||
| [hex]#19# + "b" + "_" | [hex]#19# `b_` | input bar | 文字入力を開始 ("input_text" 要素のみで利用可)
|
||||
| [hex]#19# + "b" + "-" | [hex]#19# `b-` | input bar | 隠し文字入力を開始 ("input_text" 要素のみで利用可)
|
||||
| [hex]#19# + "b" + "#" | [hex]#19# `b#` | input bar | カーソル文字を移動 ("input_text" 要素のみで利用可)
|
||||
| [hex]#19# + "b" + "i" | [hex]#19# `bi` | bars | 要素を開始
|
||||
| [hex]#19# + "b" + "l" (小文字の L) | [hex]#19# `bl` | bars | 行要素を開始
|
||||
| [hex]#19# + "E" | [hex]#19# `E` | chat + bars | テキストを強調 _(WeeChat バージョン 0.4.2 以上で利用可)_
|
||||
| [hex]#19# + [hex]#1C# | [hex]#19# [hex]#1C# | chat + bars | 色をリセット (属性は保存)
|
||||
| [hex]#1A# + ATTR | [hex]#1A# `*` | chat + bars | 属性を設定
|
||||
| [hex]#1B# + ATTR | [hex]#1B# `*` | chat + bars | 属性を削除
|
||||
| [hex]#1C# | [hex]#1C# | chat + bars | 属性と色をリセット
|
||||
| コード | 例 | エリア | 説明
|
||||
| [hex]#19# + STD | [hex]#19# `+01+` | chat + bars | オプションを使って属性と色を指定、色コードは以下の表を参照
|
||||
| [hex]#19# + EXT | [hex]#19# `+@00001+` | chat | ncurses ペアを使って色を指定 (`/color` バッファのみ有効)
|
||||
| [hex]#19# + "F" + (A)STD | [hex]#19# `+F*05+` | chat + bars | 文字色 (WeeChat 色) を設定
|
||||
| [hex]#19# + "F" + (A)EXT | [hex]#19# `+F@00214+` | chat + bars | 文字色 (拡張色) を設定
|
||||
| [hex]#19# + "B" + STD | [hex]#19# `+B05+` | chat + bars | 背景色 (WeeChat 色) を設定
|
||||
| [hex]#19# + "B" + EXT | [hex]#19# `+B@00124+` | chat + bars | 背景色 (拡張色) を設定
|
||||
| [hex]#19# + "*" + (A)STD | [hex]#19# `+*05+` | chat + bars | 文字色(WeeChat 色) を設定
|
||||
| [hex]#19# + "*" + (A)EXT | [hex]#19# `+*@00214+` | chat + bars | 文字色 (拡張色) を設定
|
||||
| [hex]#19# + "*" + (A)STD + "," + STD | [hex]#19# `+*08,05+` | chat + bars | 文字色及び背景色 (WeeChat 色) を設定
|
||||
| [hex]#19# + "*" + (A)STD + "," + EXT | [hex]#19# `+*01,@00214+` | chat + bars | 文字色 (WeeChat 色) と背景色 (拡張色) を設定
|
||||
| [hex]#19# + "*" + (A)EXT + "," + STD | [hex]#19# `+*@00214,05+` | chat + bars | 文字色 (拡張色) と背景色 (WeeChat 色) を設定
|
||||
| [hex]#19# + "*" + (A)EXT + "," + EXT | [hex]#19# `+*@00214,@00017+` | chat + bars | 文字色及び背景色 (拡張色) を設定
|
||||
| [hex]#19# + "b" + "F" | [hex]#19# `+bF+` | bars | バーの文字色を設定
|
||||
| [hex]#19# + "b" + "D" | [hex]#19# `+bD+` | bars | バーの区切り文字色を設定
|
||||
| [hex]#19# + "b" + "B" | [hex]#19# `+bB+` | bars | バーの背景色を設定
|
||||
| [hex]#19# + "b" + "_" | [hex]#19# `+b_+` | input bar | 文字入力を開始 ("input_text" 要素のみで利用可)
|
||||
| [hex]#19# + "b" + "-" | [hex]#19# `+b-+` | input bar | 隠し文字入力を開始 ("input_text" 要素のみで利用可)
|
||||
| [hex]#19# + "b" + "#" | [hex]#19# `+b#+` | input bar | カーソル文字を移動 ("input_text" 要素のみで利用可)
|
||||
| [hex]#19# + "b" + "i" | [hex]#19# `+bi+` | bars | 要素を開始
|
||||
| [hex]#19# + "b" + "l" (小文字の L) | [hex]#19# `+bl+` | bars | 行要素を開始
|
||||
| [hex]#19# + "E" | [hex]#19# `+E+` | chat + bars | テキストを強調 _(WeeChat バージョン 0.4.2 以上で利用可)_
|
||||
| [hex]#19# + [hex]#1C# | [hex]#19# [hex]#1C# | chat + bars | 色をリセット (属性は保存)
|
||||
| [hex]#1A# + ATTR | [hex]#1A# `+*+` | chat + bars | 属性を設定
|
||||
| [hex]#1B# + ATTR | [hex]#1B# `+*+` | chat + bars | 属性を削除
|
||||
| [hex]#1C# | [hex]#1C# | chat + bars | 属性と色をリセット
|
||||
|===
|
||||
|
||||
オプションを使う色コード
|
||||
|
@ -905,14 +905,14 @@ WeeChat 色は:
|
|||
|
||||
[width="70%",cols="1,2",options="header"]
|
||||
|===
|
||||
| コード | 説明
|
||||
| [hex]#19# `01` | オプション "01" の色 (チャットテキスト)
|
||||
| [hex]#19# `*08,03` | 文字色が黄色、背景色が赤色
|
||||
| [hex]#19# `*@00214` | オレンジ (拡張色 214)
|
||||
| [hex]#19# `*@*_00214,@00017` | 文字は太字で下線付きのオレンジ色 (214)、背景色は青 (17)
|
||||
| [hex]#1A# `_` | 下線
|
||||
| [hex]#1B# `_` | 下線を削除
|
||||
| [hex]#1C# | 属性と色をリセット
|
||||
| コード | 説明
|
||||
| [hex]#19# `+01+` | オプション "01" の色 (チャットテキスト)
|
||||
| [hex]#19# `+*08,03+` | 文字色が黄色、背景色が赤色
|
||||
| [hex]#19# `+*@00214+` | オレンジ (拡張色 214)
|
||||
| [hex]#19# `+*@*_00214,@00017+` | 文字は太字で下線付きのオレンジ色 (214)、背景色は青 (17)
|
||||
| [hex]#1A# `+_+` | 下線
|
||||
| [hex]#1B# `+_+` | 下線を削除
|
||||
| [hex]#1C# | 属性と色をリセット
|
||||
|===
|
||||
|
||||
[[plugin_internals]]
|
||||
|
|
|
@ -623,9 +623,9 @@ int weechat_strcasecmp_range (const char *string1, const char *string2, int rang
|
|||
* _string1_: 1 番目の比較対象の文字列
|
||||
* _string2_: 2 番目の比較対象の文字列
|
||||
* _range_: 大文字小文字を無視する文字範囲の幅、例:
|
||||
** 26: `A-Z` を `a-z` のように変換して比較
|
||||
** 29: `A-Z [ \ ]` を `a-z { | }` のように変換して比較
|
||||
** 30: `A-Z [ \ ] ^` を `a-z { | } ~` のように変換して比較
|
||||
** 26: `+A-Z+` を `+a-z+` のように変換して比較
|
||||
** 29: `+A-Z [ \ ]+` を `+a-z { | }+` のように変換して比較
|
||||
** 30: `+A-Z [ \ ] ^+` を `+a-z { | } ~+` のように変換して比較
|
||||
|
||||
[NOTE]
|
||||
29 と 30 は IRC など一部のプロトコルで使います。
|
||||
|
@ -701,9 +701,9 @@ int weechat_strncasecmp_range (const char *string1, const char *string2, int max
|
|||
* _string2_: 2 番目の比較対象の文字列
|
||||
* _max_: 比較する文字数の最大値
|
||||
* _range_: 大文字小文字を無視する文字範囲の幅、例:
|
||||
** 26: `A-Z` を `a-z` のように変換して比較
|
||||
** 29: `A-Z [ \ ]` を `a-z { | }` のように変換して比較
|
||||
** 30: `A-Z [ \ ] ^` を `a-z { | } ~` のように変換して比較
|
||||
** 26: `+A-Z+` を `+a-z+` のように変換して比較
|
||||
** 29: `+A-Z [ \ ]+` を `+a-z { | }+` のように変換して比較
|
||||
** 30: `+A-Z [ \ ] ^+` を `+a-z { | } ~+` のように変換して比較
|
||||
|
||||
[NOTE]
|
||||
29 と 30 は IRC など一部のプロトコルで使います。
|
||||
|
@ -1963,12 +1963,12 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
|
|||
|
||||
_WeeChat バージョン 0.4.0 以上で利用可、バージョン 0.4.2、1.0、1.1、1.2、1.3 で更新。_
|
||||
|
||||
式を評価して文字列として返す。`${variable}`
|
||||
式を評価して文字列として返す。`+${variable}+`
|
||||
という書式で書かれた特殊変数は展開されます (以下の表を参照)。
|
||||
|
||||
[NOTE]
|
||||
WeeChat バージョン 1.0 以上の場合、入れ子変数を使えるようになりました、例:
|
||||
`${color:${variable}}` 。
|
||||
`+${color:${variable}}+` 。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
|
@ -2017,90 +2017,93 @@ char *weechat_string_eval_expression (const char *expr,
|
|||
|===
|
||||
| 書式 | 説明 | 例 | 結果
|
||||
|
||||
| `${name}` | _extra_vars_ の変数 `name` の値に展開 |
|
||||
`${name}` | `value`
|
||||
| `+${name}+` |
|
||||
_extra_vars_ の変数 `name` の値に展開 |
|
||||
`+${name}+` |
|
||||
`+value+`
|
||||
|
||||
| `${eval:xxx}` +
|
||||
| `+${eval:xxx}+` +
|
||||
(_WeeChat バージョン 1.3 以上で利用可_) |
|
||||
評価する文字列 |
|
||||
`${eval:${date:${weechat.look.buffer_time_format}}}` |
|
||||
`19:02:45` (オプション weechat.look.buffer_time_format
|
||||
`+${eval:${date:${weechat.look.buffer_time_format}}}+` |
|
||||
`+19:02:45+` (オプション weechat.look.buffer_time_format
|
||||
内に色コードが存在する場合色付き)
|
||||
|
||||
| `${esc:xxx}` +
|
||||
`${\xxx}` | エスケープ文字を含む文字列 |
|
||||
`${esc:prefix\tmessage}` +
|
||||
`${\ua9}` |
|
||||
`prefix<TAB>message` +
|
||||
`©`
|
||||
| `+${esc:xxx}+` +
|
||||
`+${\xxx}+` |
|
||||
エスケープ文字を含む文字列 |
|
||||
`+${esc:prefix\tmessage}+` +
|
||||
`+${\ua9}+` |
|
||||
`+prefix<TAB>message+` +
|
||||
`+©+`
|
||||
|
||||
| `${hide:x,value}` |
|
||||
| `+${hide:x,value}+` |
|
||||
隠す文字を含むテキスト (`value` に含まれる文字をすべて `x` で置換) |
|
||||
`${hide:*,password}` |
|
||||
`********`
|
||||
`+${hide:*,password}+` |
|
||||
`+********+`
|
||||
|
||||
| `${re:N}` |
|
||||
| `+${re:N}+` |
|
||||
正規表現のキャプチャグループ: `0` = マッチするすべての文字列、`1` から `99` =
|
||||
キャプチャされたグループ、`+++` = 最後にキャプチャされたグループ |
|
||||
`${re:1}` |
|
||||
`test`
|
||||
`+${re:1}+` |
|
||||
`+test+`
|
||||
|
||||
| `${color:name}` |
|
||||
| `+${color:name}+` |
|
||||
WeeChat 色コード (色名部分はオプション属性をとることも可能です),
|
||||
書式を確認するには関数 <<_color,weechat_color>> をご確認ください |
|
||||
`${color:red}red text` +
|
||||
`${color:*214}bold orange text` |
|
||||
`red text` (赤色で) +
|
||||
`bold orange text` (太字オレンジ色で)
|
||||
`+${color:red}red text+` +
|
||||
`+${color:*214}bold orange text+` |
|
||||
`+red text+` (赤色で) +
|
||||
`+bold orange text+` (太字オレンジ色で)
|
||||
|
||||
| `${info:name}` +
|
||||
`${info:name,arguments}` |
|
||||
| `+${info:name}+` +
|
||||
`+${info:name,arguments}+` |
|
||||
WeeChat またはプラグインのインフォ、<<_info_get,weechat_info_get>>
|
||||
を参照 |
|
||||
`${info:version}` +
|
||||
`${info:irc_nick_color_name,foo}` |
|
||||
`1.0` +
|
||||
`lightblue`
|
||||
`+${info:version}+` +
|
||||
`+${info:irc_nick_color_name,foo}+` |
|
||||
`+1.0+` +
|
||||
`+lightblue+`
|
||||
|
||||
| `${date}` +
|
||||
`${date:xxx}` +
|
||||
| `+${date}+` +
|
||||
`+${date:xxx}+` +
|
||||
(_WeeChat バージョン 1.3 以上で利用可_) |
|
||||
現在の日付/時刻、カスタム書式を使うことも可能です (`man strftime` を参照)、
|
||||
デフォルト書式は `%F %T` |
|
||||
`${date}` +
|
||||
`${date:%H:%M:%S}` |
|
||||
`2015-06-30 19:02:45` +
|
||||
`19:02:45`
|
||||
`+${date}+` +
|
||||
`+${date:%H:%M:%S}+` |
|
||||
`+2015-06-30 19:02:45+` +
|
||||
`+19:02:45+`
|
||||
|
||||
| `${env:NAME}` +
|
||||
| `+${env:NAME}+` +
|
||||
(_WeeChat バージョン 1.2 以上で利用可_) |
|
||||
環境変数 `NAME` の値 |
|
||||
`${env:HOME}` |
|
||||
`/home/user`
|
||||
`+${env:HOME}+` |
|
||||
`+/home/user+`
|
||||
|
||||
| `${sec.data.name}` |
|
||||
| `+${sec.data.name}+` |
|
||||
セキュアデータ `name` の値 |
|
||||
`${sec.data.freenode_pass}` |
|
||||
`my_password`
|
||||
`+${sec.data.freenode_pass}+` |
|
||||
`+my_password+`
|
||||
|
||||
| `${file.section.option}` |
|
||||
| `+${file.section.option}+` |
|
||||
オプションの値 |
|
||||
`${weechat.look.buffer_time_format}` |
|
||||
`%H:%M:%S`
|
||||
`+${weechat.look.buffer_time_format}+` |
|
||||
`+%H:%M:%S+`
|
||||
|
||||
| `${name}` |
|
||||
| `+${name}+` |
|
||||
バッファに対するローカル変数 `name` の値 |
|
||||
`${nick}` |
|
||||
`FlashCode`
|
||||
`+${nick}+` |
|
||||
`+FlashCode+`
|
||||
|
||||
| `${hdata.var1.var2...}` +
|
||||
`${hdata[list].var1.var2...}` |
|
||||
| `+${hdata.var1.var2...}+` +
|
||||
`+${hdata[list].var1.var2...}+` |
|
||||
hdata の値 (`window` と `buffer`
|
||||
ポインタはデフォルトで現在のウィンドウ/バッファに設定されます) |
|
||||
`${buffer[gui_buffers].full_name}` +
|
||||
`${window.buffer.number}` |
|
||||
`core.weechat` +
|
||||
`1`
|
||||
`+${buffer[gui_buffers].full_name}+` +
|
||||
`+${window.buffer.number}+` |
|
||||
`+core.weechat+` +
|
||||
`+1+`
|
||||
|===
|
||||
|
||||
C 言語での使用例:
|
||||
|
@ -9831,8 +9834,8 @@ WeeChat とプラグインが使う修飾子のリスト:
|
|||
| irc_command_auth +
|
||||
_(WeeChat バージョン 0.4.1 以上で利用可)_ |
|
||||
サーバ名 |
|
||||
認証コマンド (例: `/msg nickserv identify password`) |
|
||||
パスワードを隠したコマンド (例: `/msg nickserv identify ********`)
|
||||
認証コマンド (例: `+/msg nickserv identify password+`) |
|
||||
パスワードを隠したコマンド (例: `+/msg nickserv identify ********+`)
|
||||
|
||||
| irc_message_auth +
|
||||
_(WeeChat バージョン 0.4.1 以上で利用可)_ |
|
||||
|
|
|
@ -184,7 +184,7 @@ _command_ オプションに複数のコマンドを含める場合は `;` (セ
|
|||
----
|
||||
|
||||
こうすることで前述したようにパスワードを IRC オプションに直接書くのではなく
|
||||
`${sec.data.freenode_password}` を指定可能になります。例えば以下のように設定します:
|
||||
`+${sec.data.freenode_password}+` を指定可能になります。例えば以下のように設定します:
|
||||
|
||||
----
|
||||
/set irc.server.freenode.sasl_password "${sec.data.freenode_password}"
|
||||
|
|
|
@ -1212,11 +1212,11 @@ hdata として送られるデータ:
|
|||
|
||||
__diff_ のとりうる値:
|
||||
|
||||
* `^`: 親グループ:
|
||||
* `+^+`: 親グループ:
|
||||
これの後に続くグループまたはニックネームに関する操作はこのグループに対して行う
|
||||
* `+`: このグループおよびニックネームを親グループに追加
|
||||
* `-`: このグループおよびニックネームを親グループから削除
|
||||
* `*`: このグループおよびニックネームを親グループで更新
|
||||
* `+++`: このグループおよびニックネームを親グループに追加
|
||||
* `+-+`: このグループおよびニックネームを親グループから削除
|
||||
* `+*+`: このグループおよびニックネームを親グループで更新
|
||||
|
||||
例: ニックネーム _master_ を _000|o_ (IRC チャンネルのチャンネルオペレータ)
|
||||
グループに追加、ニックネーム _nick1_ と _nick2_ を _999|..._ に追加
|
||||
|
|
|
@ -50,7 +50,7 @@ WeeChat (Wee Enhanced Environment for Chat)
|
|||
==== Python
|
||||
|
||||
* 必ず `import weechat` を使ってください。
|
||||
* python では `print*` 系の関数は `prnt*` と書きます
|
||||
* python では `+print*+` 系の関数は `+prnt*+` と書きます
|
||||
(_print_ は予約済みキーワードなので)。
|
||||
* 関数は `weechat.xxx(arg1, arg2, ...)` のように呼び出してください。
|
||||
|
||||
|
|
|
@ -876,14 +876,14 @@ _conditions_
|
|||
|
||||
式に使える変数は以下:
|
||||
|
||||
* `${active}`: ウィンドウがアクティブ状態の時に真
|
||||
* `${inactive}`: ウィンドウが非アクティブ状態の時に真
|
||||
* `${nicklist}`: ウィンドウに表示されるバッファがニックネームリストの場合に真。
|
||||
* `+${active}+`: ウィンドウがアクティブ状態の時に真
|
||||
* `+${inactive}+`: ウィンドウが非アクティブ状態の時に真
|
||||
* `+${nicklist}+`: ウィンドウに表示されるバッファがニックネームリストの場合に真。
|
||||
|
||||
式に使えるポインタは以下:
|
||||
|
||||
* `${window}`: 状態が評価されたウィンドウ
|
||||
* `${buffer}`: 状態が評価されたウィンドウのバッファ
|
||||
* `+${window}+`: 状態が評価されたウィンドウ
|
||||
* `+${buffer}+`: 状態が評価されたウィンドウのバッファ
|
||||
|
||||
ニックネームリストを持ち、ウィンドウ幅が 100
|
||||
より大きい全てのバッファにニックネームリストバーを表示する例:
|
||||
|
@ -3127,11 +3127,11 @@ _var_
|
|||
|
||||
マッチグループを "replace" の中で利用できます:
|
||||
|
||||
* `${re:0}` から `${re:99}`: `${re:0}` はマッチ部分の全体、`${re:1}` から
|
||||
`${re:99}` はグループ化されたマッチ部分
|
||||
* `${re:+}`: 最後のマッチ部分 (最大のグループ番号を持つ)
|
||||
* `${hide:c,${re:N}}`: マッチグループ "N" のすべての文字を "c" で置換した文字列
|
||||
(例: `+${hide:*,${re:2}}+` はグループ #2 のすべての文字を `*`
|
||||
* `+${re:0}+` から `+${re:99}+`: `+${re:0}+` はマッチ部分の全体、`+${re:1}+` から
|
||||
`+${re:99}+` はグループ化されたマッチ部分
|
||||
* `+${re:+}+`: 最後のマッチ部分 (最大のグループ番号を持つ)
|
||||
* `+${hide:c,${re:N}}+`: マッチグループ "N" のすべての文字を "c" で置換した文字列
|
||||
(例: `+${hide:*,${re:2}}+` はグループ #2 のすべての文字を `+*+`
|
||||
で置換した文字列)。
|
||||
|
||||
例: "*" で囲まれた文字を太字にする:
|
||||
|
@ -3407,8 +3407,8 @@ URL を緑色にする:
|
|||
WeeChat は SIGWINCH を受けとたった際 (端末のサイズが変更された際)
|
||||
に "signal_sigwinch" シグナルを送信し、このトリガはこのシグナルをキャッチします。
|
||||
|
||||
`${info:term_width}` を使った条件で端末の横幅を確認します (必要であれば
|
||||
`${info:term_height}` を使うことも可能です)。
|
||||
`+${info:term_width}+` を使った条件で端末の横幅を確認します (必要であれば
|
||||
`+${info:term_height}+` を使うことも可能です)。
|
||||
|
||||
この例では、端末が小さくなった場合、ニックネームリストを隠します。さらに横幅が
|
||||
100 文字幅以上になった場合、ニックネームリストを表示します。
|
||||
|
@ -3416,7 +3416,7 @@ WeeChat は SIGWINCH を受けとたった際 (端末のサイズが変更され
|
|||
[[trigger_example_config_save]]
|
||||
===== 設定の自動保存
|
||||
|
||||
例えば 1 時間ごとに、設定ファイル (`*.conf`)
|
||||
例えば 1 時間ごとに、設定ファイル (`+*.conf+`)
|
||||
を自動的に保存することが可能です:
|
||||
|
||||
----
|
||||
|
|
|
@ -184,7 +184,7 @@ Następnie dodaj swoje hasło, np dla sieci freenode:
|
|||
/secure set freenode_password xxxxxxx
|
||||
----
|
||||
|
||||
Następnie możesz użyć `${sec.data.freenode_password}` zamiast swojego hasła dla
|
||||
Następnie możesz użyć `+${sec.data.freenode_password}+` zamiast swojego hasła dla
|
||||
opcji IRC omówionych wcześniej, na przykład:
|
||||
|
||||
----
|
||||
|
|
|
@ -50,7 +50,7 @@ ale API jest takie same dla wszystkich języków.
|
|||
==== Python
|
||||
|
||||
* Należy wykonać `import weechat`
|
||||
* Funkcje `print*` są nazwane `prnt*` w pythonie (ponieważ _print_ jest zastrzeżonym
|
||||
* Funkcje `+print*+` są nazwane `+prnt*+` w pythonie (ponieważ _print_ jest zastrzeżonym
|
||||
słowem kluczowym)
|
||||
* Funkcje są wywoływane za pomocą `weechat.xxx(arg1, arg2, ...)`
|
||||
|
||||
|
|
|
@ -883,14 +883,14 @@ Dostępne opcje:
|
|||
|
||||
Dla wyrażeń dostępne są następujące zmienne:
|
||||
|
||||
* `${active}`: prawda, jeśli okno jest aktywne
|
||||
* `${inactive}`: prawda, jeśli okno jest nieaktywne
|
||||
* `${nicklist}`: prawda, jeśli okno posiada listę nicków
|
||||
* `+${active}+`: prawda, jeśli okno jest aktywne
|
||||
* `+${inactive}+`: prawda, jeśli okno jest nieaktywne
|
||||
* `+${nicklist}+`: prawda, jeśli okno posiada listę nicków
|
||||
|
||||
Następujące wskaźniki są dostępne:
|
||||
|
||||
* `${window}`: okno, dla którego warunek jest sprawdzany
|
||||
* `${buffer}`: bufor okna, dla którego warunek jest sprawdzany
|
||||
* `+${window}+`: okno, dla którego warunek jest sprawdzany
|
||||
* `+${buffer}+`: bufor okna, dla którego warunek jest sprawdzany
|
||||
|
||||
Przykład wyświetlania paska z listą nicków w każdym oknie z taką listą i tylko
|
||||
jeśli szerokość okna > 100:
|
||||
|
@ -3162,10 +3162,10 @@ identycznymi znakami).
|
|||
|
||||
Dopasowane grupy, które mogą zostać użyte w "zamień":
|
||||
|
||||
* `${re:0}` to `${re:99}`: `${re:0}` to pełne dopasowanie, `${re:1}` do
|
||||
`${re:99}` to przechwycone grupy
|
||||
* `${re:+}`: ostatnie dopasowanie (z najwyższym numerem)
|
||||
* `${hide:c,${re:N}}`: dopasowanie "N" z wszystkimi znakami zastąpionymi "c"
|
||||
* `+${re:0}+` to `+${re:99}+`: `+${re:0}+` to pełne dopasowanie, `+${re:1}+` do
|
||||
`+${re:99}+` to przechwycone grupy
|
||||
* `+${re:+}+`: ostatnie dopasowanie (z najwyższym numerem)
|
||||
* `+${hide:c,${re:N}}+`: dopasowanie "N" z wszystkimi znakami zastąpionymi "c"
|
||||
(przykład: `+${hide:*,${re:2}}+` to grupa #2 ze znakami zastąpionymi `+*+`).
|
||||
|
||||
Przykład: użyj pogrubienia dla słów pomiędzy "*":
|
||||
|
@ -3442,8 +3442,8 @@ nastąpi zmiana rozmiaru terminala:
|
|||
Triggery przechwytują sygnał "signal_sigwinch", który jest wysyłany przez WeeChat,
|
||||
kiedy sygnał SIGWINCH zostanie otrzymany (kiedy rozmiar terminala się zmieni).
|
||||
|
||||
Warunek z `${info:term_width}` sprawdza szerokość terminala (możesz również użyć
|
||||
`${info:term_height}` w razie potrzeby).
|
||||
Warunek z `+${info:term_width}+` sprawdza szerokość terminala (możesz również użyć
|
||||
`+${info:term_height}+` w razie potrzeby).
|
||||
|
||||
W przykładzie, kiedy terminal stanie się mały, ukrywana jest lista nicków. Jest
|
||||
ona przywracana, kiedy szerokość jest większa lub równa 100 znakom.
|
||||
|
@ -3451,7 +3451,7 @@ ona przywracana, kiedy szerokość jest większa lub równa 100 znakom.
|
|||
[[trigger_example_config_save]]
|
||||
===== Automatyczne zapisywanie konfiguracji
|
||||
|
||||
Możesz automatycznie zapisywać pliki konfiguracyjne (`*.conf`), na przykład co
|
||||
Możesz automatycznie zapisywać pliki konfiguracyjne (`+*.conf+`), na przykład co
|
||||
godzinę:
|
||||
|
||||
----
|
||||
|
|
|
@ -190,7 +190,7 @@ Then add a secured data with your freenode password:
|
|||
----
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Then you can use `${sec.data.freenode_password}` instead of your password in
|
||||
Then you can use `+${sec.data.freenode_password}+` instead of your password in
|
||||
IRC options mentioned above, for example:
|
||||
|
||||
----
|
||||
|
|
Loading…
Reference in New Issue