diff options
Diffstat (limited to 'doc/it')
-rw-r--r-- | doc/it/autogen/user/buflist_commands.adoc | 6 | ||||
-rw-r--r-- | doc/it/autogen/user/buflist_options.adoc | 18 | ||||
-rw-r--r-- | doc/it/autogen/user/script_options.adoc | 10 | ||||
-rw-r--r-- | doc/it/autogen/user/weechat_commands.adoc | 11 | ||||
-rw-r--r-- | doc/it/weechat_plugin_api.it.adoc | 12 |
5 files changed, 37 insertions, 20 deletions
diff --git a/doc/it/autogen/user/buflist_commands.adoc b/doc/it/autogen/user/buflist_commands.adoc index ca80e8765..abe134263 100644 --- a/doc/it/autogen/user/buflist_commands.adoc +++ b/doc/it/autogen/user/buflist_commands.adoc @@ -22,11 +22,15 @@ The following variables can be used in these options: - ${buffer.full_name} - ${buffer.short_name} - ${buffer.nicklist_nicks_count} + - irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc) + - irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc) - extra variables added by buflist for convenience: - ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example - ${format_number}: indented number with separator (evaluation of option buflist.format.number) - ${number}: indented number, for example " 1" if there are between 10 and 99 buffers - - ${indent}: indentation for name (channel and private buffers are indented) + - ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent) + - ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix) + - ${color_nick_prefix}: color of nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled) - ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled) - ${name}: the short name (if set), with a fallback on the name - ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level) diff --git a/doc/it/autogen/user/buflist_options.adoc b/doc/it/autogen/user/buflist_options.adoc index 30db597ec..2fcce8b17 100644 --- a/doc/it/autogen/user/buflist_options.adoc +++ b/doc/it/autogen/user/buflist_options.adoc @@ -6,13 +6,13 @@ ** descrizione: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)] ** tipo: stringa ** valori: qualsiasi stringa -** valore predefinito: `+"${format_number}${indent}${nick_prefix}${color_hotlist}${name}"+` +** valore predefinito: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${name}"+` * [[option_buflist.format.buffer_current]] *buflist.format.buffer_current* ** descrizione: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)] ** tipo: stringa ** valori: qualsiasi stringa -** valore predefinito: `+"${color:lightgreen,blue}${format_buffer}"+` +** valore predefinito: `+"${color:,blue}${format_buffer}"+` * [[option_buflist.format.hotlist]] *buflist.format.hotlist* ** descrizione: pass:none[format for hotlist (note: content is evaluated, see /help buflist)] @@ -56,12 +56,24 @@ ** valori: qualsiasi stringa ** valore predefinito: `+"${color:default},"+` +* [[option_buflist.format.indent]] *buflist.format.indent* +** descrizione: pass:none[string displayed to indent channel and private buffers (note: content is evaluated, see /help buflist)] +** tipo: stringa +** valori: qualsiasi stringa +** valore predefinito: `+" "+` + * [[option_buflist.format.lag]] *buflist.format.lag* ** descrizione: pass:none[format for lag on an IRC server buffer (note: content is evaluated, see /help buflist)] ** tipo: stringa ** valori: qualsiasi stringa ** valore predefinito: `+" ${color:green}[${color:brown}${lag}${color:green}]"+` +* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix* +** descrizione: pass:none[format for nick prefix on a channel (note: content is evaluated, see /help buflist)] +** tipo: stringa +** valori: qualsiasi stringa +** valore predefinito: `+"${color_nick_prefix}${nick_prefix}"+` + * [[option_buflist.format.number]] *buflist.format.number* ** descrizione: pass:none[format for buffer number, ${number} is the indented number (note: content is evaluated, see /help buflist)] ** tipo: stringa @@ -69,7 +81,7 @@ ** valore predefinito: `+"${color:green}${number}${if:${number_displayed}?.: }"+` * [[option_buflist.look.display_conditions]] *buflist.look.display_conditions* -** descrizione: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist)] +** descrizione: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist); for example to hide server buffers if they are merged with core buffer: "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"] ** tipo: stringa ** valori: qualsiasi stringa ** valore predefinito: `+"${buffer.hidden}==0"+` diff --git a/doc/it/autogen/user/script_options.adoc b/doc/it/autogen/user/script_options.adoc index 01860fe15..fb2a484cc 100644 --- a/doc/it/autogen/user/script_options.adoc +++ b/doc/it/autogen/user/script_options.adoc @@ -237,13 +237,7 @@ ** valore predefinito: `+"%h/script"+` * [[option_script.scripts.url]] *script.scripts.url* -** descrizione: pass:none[URL for file with list of scripts; by default HTTPS is forced, see option script.scripts.url_force_https] +** descrizione: pass:none[URL for file with list of scripts] ** tipo: stringa ** valori: qualsiasi stringa -** valore predefinito: `+"http://weechat.org/files/plugins.xml.gz"+` - -* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https* -** descrizione: pass:none[force use of HTTPS for downloads (index and scripts); you should disable this option only if you have problems with the downloads] -** tipo: bool -** valori: on, off -** valore predefinito: `+on+` +** valore predefinito: `+"https://weechat.org/files/plugins.xml.gz"+` diff --git a/doc/it/autogen/user/weechat_commands.adoc b/doc/it/autogen/user/weechat_commands.adoc index 1c1915e83..fdffcf0ce 100644 --- a/doc/it/autogen/user/weechat_commands.adoc +++ b/doc/it/autogen/user/weechat_commands.adoc @@ -285,9 +285,9 @@ Some variables are replaced in expression, using the format ${variable}, variabl 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 max chars displayed on screen (format: "cutscr:max,suffix,string") - 5. a color (format: "color:xxx") + 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 color (format: "color:xxx", see "Plugin API reference", function "color") 6. an info (format: "info:name,arguments", arguments are optional) 7. current date/time (format: "date" or "date:format") 8. an environment variable (format: "env:XXX") @@ -314,9 +314,8 @@ Examples (simple strings): /eval -n ${window.buffer.number} ==> 1 /eval -n ${\t} ==> <tab> /eval -n ${hide:-,${relay.network.password}} ==> -------- - /eval -n ${cut:2,+,test} ==> te+ - /eval -n ${cut:2,+,こんにちは世界} ==> こん+ - /eval -n ${cutscr:2,+,こんにちは世界} ==> こ+ + /eval -n ${cut:3,+,test} ==> tes+ + /eval -n ${cut:+3,+,test} ==> te+ /eval -n ${date:%H:%M:%S} ==> 07:46:40 /eval -n ${if:${info:term_width}>80?big:small} ==> big diff --git a/doc/it/weechat_plugin_api.it.adoc b/doc/it/weechat_plugin_api.it.adoc index a0a5bbc88..647a392e4 100644 --- a/doc/it/weechat_plugin_api.it.adoc +++ b/doc/it/weechat_plugin_api.it.adoc @@ -2121,19 +2121,27 @@ expanded to last): `+********+` | `+${cut:max,suffix,string}+` + + `+${cut:+max,suffix,string}+` + (_WeeChat ≥ 1.8_) | - String with `max` chars, and optional `suffix` if string is cut. | + String with `max` chars, and optional `suffix` if string is cut. + + With the format `+max`, the suffix is counted in max length. | `+${cut:4,…,this is a test}+` + + `+${cut:+4,…,this is a test}+` + `+${cut:2,>>,こんにちは世界}+` | `+this…+` + + `+t…+` + `+こん>>+` | `+${cutscr:max,suffix,string}+` + + `+${cutscr:+max,suffix,string}+` + (_WeeChat ≥ 1.8_) | - String with `max` chars displayed on screen, and optional `suffix` if string is cut. | + String with `max` chars displayed on screen, and optional `suffix` if string is cut. + + With the format `+max`, the suffix is counted in max length. | `+${cutscr:4,…,this is a test}+` + + `+${cutscr:+4,…,this is a test}+` + `+${cutscr:2,>>,こんにちは世界}+` | `+this…+` + + `+thi…+` + `+こ>>+` | `+${re:N}+` + |