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

Compare commits

...

83 Commits

Author SHA1 Message Date
Sébastien Helleu b20b5f1e41 [WIP] javascript: add compatibility with v8 version 6.8
This is work in progress, the javascript plugin does not yet compile.

Compatibility with old v8 lib will be added later, for now I'm focused on
compiling the plugin with v8 version 6.8.
2021-01-30 14:35:39 +01:00
Sébastien Helleu 691c9a0a0f irc: add function irc_server_get_chantypes 2021-01-30 10:34:23 +01:00
Sébastien Helleu 0c98b0cfa4 irc: use server option "default_chantypes" as fallback in function irc_nick_is_nick 2021-01-30 09:59:04 +01:00
Sébastien Helleu ba892ee5a0 core: update translations 2021-01-30 09:55:02 +01:00
Sébastien Helleu a11c90ab70 core: add contributor in AUTHORS.adoc (issue #1610) 2021-01-30 09:34:30 +01:00
Sébastien Helleu 201979fa8d doc: update auto-generated files with options 2021-01-30 09:32:59 +01:00
Sébastien Helleu dd589cd141 irc: use server option "default_chantypes" as fallback when automatically adding channel type on join 2021-01-30 09:31:31 +01:00
Sébastien Helleu e305b4e960 core: update ChangeLog 2021-01-30 09:25:55 +01:00
Sébastien Helleu ec2ffedab6 irc: improve help on server option "default_chantypes" 2021-01-30 09:25:06 +01:00
Sébastien Helleu 293402143b irc: fix name of option "default_chantypes" in list of server options 2021-01-30 09:24:34 +01:00
Sébastien Helleu e74dd22707 irc: simplify code in function irc_channel_is_channel 2021-01-30 09:05:49 +01:00
Matti Virkkunen bad6dc8a57 irc: make default chantypes configurable 2021-01-30 01:01:51 +02:00
Nils Görs dc8df133ea doc: update German documentation 2021-01-27 07:48:05 +01:00
Sébastien Helleu d465ec2a39 doc: update Polish auto-generated files 2021-01-27 00:06:34 +01:00
Sébastien Helleu fd672a0fa4 doc: add a second note on default configuration files in user's guide 2021-01-27 00:04:30 +01:00
Sébastien Helleu 7b1b482cc7 core: add command "/buffer listvar" in release notes 2021-01-26 23:39:49 +01:00
Sébastien Helleu 7255fac60b core: add contributor in AUTHORS.adoc (issue #1607) 2021-01-16 13:35:54 +01:00
Sébastien Helleu bb6152d8a3 core: update ChangeLog 2021-01-16 13:20:14 +01:00
Jan Palus b142617cca doc: don't build headless man page if headless is disabled 2021-01-16 13:15:45 +01:00
Krzysztof Korościk 1c3cb4364d po: updated polish translation 2021-01-15 21:35:27 +01:00
Krzysztof Korościk c81eac325d doc: updated polish translation 2021-01-15 21:17:37 +01:00
Sébastien Helleu 25ed384418 doc: add missing non-breaking spaces before punctuation in French docs 2021-01-09 20:22:22 +01:00
Nils Görs 84b02c1296 core: update German translations 2021-01-05 09:15:43 +01:00
Sébastien Helleu efc7a588d6 core: update copyright dates 2021-01-02 21:34:16 +01:00
Sébastien Helleu df4b9170f1 irc: remove obsolete comment on translation 2021-01-02 15:22:02 +01:00
Sébastien Helleu b8acaf8a14 irc: fix ambiguity on translation of word "server"
This fixes the following warning:

/usr/bin/xgettext: warning: msgid 'server' is used without plural and with plural.
                            ./src/plugins/irc/irc-bar-item.c:136: Here is the occurrence without plural.
                            ./src/plugins/irc/irc.c:154: Here is the occurrence with plural.
                            Workaround: If the msgid is a sentence, change the wording of the sentence; otherwise, use contexts for disambiguation.
2021-01-02 15:18:26 +01:00
Sébastien Helleu 470e3ef9cf core: move debug_id assignation in macro EVAL_DEBUG_MSG 2021-01-02 14:43:40 +01:00
Sébastien Helleu 943374f789 doc: add note about call to "regfree" after call to "string_regcomp" (plugin API reference) 2021-01-01 18:10:47 +01:00
Sébastien Helleu d413ccdf4f core: add indentation and colors in /eval debug output 2021-01-01 17:08:59 +01:00
Sébastien Helleu 63ead3da49 doc: update German auto-generated file 2021-01-01 15:47:35 +01:00
Nils Görs 565837f75a core: update German translations 2021-01-01 11:21:57 +01:00
Sébastien Helleu 2ad3da03a2 core: display more verbose debug with two "-d" in command /eval
Now a single -d in command /eval shows less debug messages than previous
versions.

To get the same debug messages than previous versions, two -d must be used.
2020-12-31 20:37:43 +01:00
Sébastien Helleu 33c7b96146 core: fix typo in comment 2020-12-30 23:02:37 +01:00
Nils Görs 7b13bb5cf9 doc: update German documentation 2020-12-28 10:14:42 +01:00
Sébastien Helleu 9bc194c898 doc: update question about config files sharing (FAQ) 2020-12-28 00:17:05 +01:00
Sébastien Helleu 0942b04c52 doc: add info about sensitive data in relay.conf (user's guide) 2020-12-28 00:08:45 +01:00
Sébastien Helleu 2e3cef4c41 doc: update Polish auto-generated files 2020-12-27 21:56:10 +01:00
Krzysztof Korościk 05a9a7904c po: updated polish translation 2020-12-27 19:05:51 +01:00
Sébastien Helleu ee9aa28a8c core: do not remove quotes in arguments of command /eval (closes #1601)
Now, /eval -n -c "a" == "a" returns True instead of False.

When quotes were removed, the condition evaluated was: a" == "a (which is
False).
2020-12-25 00:21:03 +01:00
Sébastien Helleu a8abfcd7b4 doc: update German auto-generated files 2020-12-21 18:33:48 +01:00
Sébastien Helleu cc5c34d4dc doc: add missing parenthesis in user's guide 2020-12-21 18:31:08 +01:00
Nils Görs f9b4f4e7e6 doc: update German documentation 2020-12-21 13:40:39 +01:00
Nils Görs 18f9ba3c0c core: update German translations 2020-12-21 13:07:23 +01:00
Sébastien Helleu 09f57476d2 doc: add a chapter on buffer local variables (user's guide) 2020-12-19 21:23:16 +01:00
Sébastien Helleu 7e2396ade8 core: add options "setvar" and "delvar" in command /buffer, rename option "localvar" to "listvar"
The option "localvar" (introduced long time ago, in WeeChat 0.3.0) is still
recognized by WeeChat, to stay compatible with any extension/script calling
it (or referencing it in the documentation).

It is deprecated and will be removed in a future release.
2020-12-19 20:59:38 +01:00
Sébastien Helleu 1526f58d7a doc: replace "core" by "weechat" in table with extra info for bar item "buffer_nicklist" (plugin API reference) 2020-12-19 15:00:02 +01:00
Sébastien Helleu 0294b246f6 core: add buffer local variable "completion_default_template" (evaluated) (closes #1600)
When this local variable is set, it overrides the value of option
"weechat.completion.default_template".

It is evaluated, that means the global default template can be used to append
some custom completion. For example:

  /buffer set localvar_set_completion_default_template ${weechat.completion.default_template}|%(my_completion)
2020-12-19 14:25:13 +01:00
Sébastien Helleu e4152c3535 core: remove unneeded return of WEECHAT_RC_OK in filter command 2020-12-18 20:28:41 +01:00
Sébastien Helleu dc5277fe89 core: add option "recreate" in command /filter 2020-12-18 20:28:16 +01:00
Sébastien Helleu 73eabdbe80 doc: update German auto-generated file 2020-12-18 19:55:44 +01:00
Nils Görs 5e17f0039b core: update German translations 2020-12-17 11:05:15 +01:00
Sébastien Helleu 13e4af7b46 script: add status of scripts in output of command /script list in /help script 2020-12-15 20:41:13 +01:00
Nils Görs 1efcaa9752 doc: update German documentation 2020-12-13 11:55:38 +01:00
Sébastien Helleu b95e91e1a2 doc: add command to run WeeChat with address sanitizer (user's guide) 2020-12-13 11:01:04 +01:00
Nils Görs 3dea65aa05 doc: update German documentation 2020-12-07 08:59:07 +01:00
Sébastien Helleu a69cfbdb19 core: add contributor in AUTHORS.adoc (issue #1597) 2020-12-06 15:54:44 +01:00
Sébastien Helleu d01a98950a doc: update auto-generated files with commands 2020-12-06 15:51:12 +01:00
Sébastien Helleu ee25c74903 irc: fix completion of commands /halfop and /dehalfop 2020-12-06 15:48:55 +01:00
Sébastien Helleu cd7947d8fc irc: add missing parameter "-yes" in /help dehalfop 2020-12-06 15:47:52 +01:00
dotflac 4974c2f0a2 add -yes to output of /help voice
currently /help voice does not tell you that you need -yes if you are using *. i have changed it to match /help op, /help deop and /help devoice
2020-12-06 15:43:36 +01:00
Sébastien Helleu 33cdf3eb90 doc: add question about buflist customization 2020-12-06 15:13:55 +01:00
Sébastien Helleu 58a94df61d core: update ChangeLog 2020-12-05 19:57:53 +01:00
Sébastien Helleu 08ebc99dea Revert "exec: return NULL immediately if the task id is invalid"
This reverts commit dff1bf6f0f.
2020-12-05 19:57:24 +01:00
Sébastien Helleu 03f4afe65e Revert "core: add extra compiler options to check overflow of destination buffer and output truncation"
This reverts commit 4ff4a64209.

These compiler flags are not supported on old compiler version, for example on
Debian Stretch/Jessie and Ubuntu Xenial (16.04).
2020-11-29 11:05:38 +01:00
Tim Gates 08db4407ed docs: fix simple typo, confiuration -> configuration
There is a small typo in src/core/weechat.c.

Should read `configuration` rather than `confiuration`.
2020-11-28 09:46:23 +01:00
Sébastien Helleu 4ff4a64209 core: add extra compiler options to check overflow of destination buffer and output truncation 2020-11-28 09:43:57 +01:00
Sébastien Helleu 21aef706cd core: allocate dynamic string size for colors 2020-11-23 21:25:41 +01:00
Sébastien Helleu 345bdddf62 script: increase buffer size in function script_buffer_detail_label
This fixes a compiler warning complaining about a too small buffer for
snprintf, even if this should never happen.
2020-11-22 15:00:19 +01:00
Sébastien Helleu d1cad18f01 core: increase buffer size in function plugin_api_info_uptime_cb
This fixes a compiler warning complaining about a too small buffer for
snprintf, even if this should never happen.
2020-11-22 14:59:06 +01:00
Sébastien Helleu a8dd0e1337 core: increase buffer size in function gui_bar_item_time_cb
This fixes a compiler warning complaining about a too small buffer for
snprintf, even if this should never happen.
2020-11-22 14:56:55 +01:00
Sébastien Helleu 070eb3f7b0 core: increase buffer size in HTTP proxy connection
In case of long address/username/password, the HTTP CONNECT message could be
truncated.
2020-11-21 21:13:13 +01:00
Sébastien Helleu 194f8b5b74 core: increase command buffer size in /color command
In case of long alias name, the command to set color alias could be truncated.
2020-11-21 21:13:05 +01:00
Sébastien Helleu ee24fac586 spell: fix crash with IRC color codes in command line (closes #1589) 2020-11-20 21:50:05 +01:00
Sébastien Helleu a2266e4e3f core: add missing cast to unsigned char on first argument to function isdigit 2020-11-19 22:20:48 +01:00
Sébastien Helleu 214f4f66d9 doc: update German auto-generated file 2020-11-18 22:58:32 +01:00
Nils Görs 14e66962c8 core: update German translations 2020-11-18 09:44:17 +01:00
Sébastien Helleu 5cbda03fca core: fix and normalize error messages 2020-11-17 21:54:24 +01:00
Sébastien Helleu 21eadc9488 core: display an error when the buffer is not found with command /command -buffer 2020-11-17 13:43:20 +01:00
Sébastien Helleu 6fda5a7e5f core: remove option to open a blank issue 2020-11-16 22:58:17 +01:00
Sébastien Helleu b9c8569422 trigger: add variable "${tg_trigger_name}" in command trigger evaluated strings (closes #1580)
${tg_trigger_name} is replaced by the trigger name in these command strings:

- description
- arguments
- description of arguments
- completion
2020-11-14 09:32:24 +01:00
Sébastien Helleu b626df72fb core: add evaluation of conditions in evaluation of expressions with "eval_cond:" (closes #1582) 2020-11-14 09:28:46 +01:00
Sébastien Helleu eb90a73fe8 spell: fix refresh of bar item "spell_suggest" when the input becomes empty (closes #1586)
When the input is empty, length of string is zero: when sending zero to
function weechat_string_dyn_alloc, the function returns NULL and therefore we
return immediately instead of handling the empty input, which is a valid value.

The regression was introduced by the use of dynamic strings, commit:
299f74bfef
2020-11-13 21:30:06 +01:00
Sébastien Helleu 4065d32e68 Version 3.1-dev 2020-11-11 09:30:24 +01:00
638 changed files with 7421 additions and 4468 deletions
+1
View File
@@ -0,0 +1 @@
blank_issues_enabled: false
+3
View File
@@ -37,6 +37,7 @@ Alphabetically:
* Dmitry Kobylin * Dmitry Kobylin
* Dominik Honnef * Dominik Honnef
* Dominique Martinet * Dominique Martinet
* dotflac
* Eduardo Elias * Eduardo Elias
* Eli Schwartz * Eli Schwartz
* Elizabeth Myers (Elizacat) * Elizabeth Myers (Elizacat)
@@ -55,6 +56,7 @@ Alphabetically:
* Hasan Kiran (turgay) * Hasan Kiran (turgay)
* Ivan Sichmann Freitas * Ivan Sichmann Freitas
* Jakub Jirutka * Jakub Jirutka
* Jan Palus
* Jason A. Donenfeld (zx2c4) * Jason A. Donenfeld (zx2c4)
* JD Horelick (jdhore) * JD Horelick (jdhore)
* jesopo * jesopo
@@ -83,6 +85,7 @@ Alphabetically:
* Matt Robinson * Matt Robinson
* Matthew Horan * Matthew Horan
* Matthew Martin * Matthew Martin
* Matti Virkkunen
* Max Anton Teufel * Max Anton Teufel
* Maxim Baz * Maxim Baz
* Michael Siegel * Michael Siegel
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2007-2008 Julien Louis <ptitlouis@sysif.net> # Copyright (C) 2007-2008 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2008-2009 Emmanuel Bouthenot <kolter@openics.org> # Copyright (C) 2008-2009 Emmanuel Bouthenot <kolter@openics.org>
# #
+26
View File
@@ -15,6 +15,32 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
(file _ReleaseNotes.adoc_ in sources). (file _ReleaseNotes.adoc_ in sources).
[[v3.1]]
== Version 3.1 (under dev)
New features::
* core: improve debug in command /eval: display more verbose debug with two "-d", add indentation and colors
* core: add options "setvar" and "delvar" in command /buffer, rename option "localvar" to "listvar"
* core: add buffer local variable "completion_default_template" (evaluated) to override the value of option "weechat.completion.default_template" (issue #1600)
* core: add option "recreate" in command /filter
* core: add evaluation of conditions in evaluation of expressions with "eval_cond:" (issue #1582)
* irc: add server option "default_chantypes", used when the server does not send them in message 005 (issue #1610)
* trigger: add variable "${tg_trigger_name}" in command trigger evaluated strings (issue #1580)
Bug fixes::
* core: do not remove quotes in arguments of command /eval as they can be part of the evaluated expression/condition (issue #1601)
* core: display an error when the buffer is not found with command /command -buffer
* exec: fix search of command by identifier
* irc: fix completion of commands /halfop and /dehalfop
* spell: fix crash with IRC color codes in command line (issue #1589)
* spell: fix refresh of bar item "spell_suggest" when the input becomes empty (issue #1586)
Documentation::
* do not build weechat-headless man page if headless binary is disabled (issue #1607)
[[v3.0]] [[v3.0]]
== Version 3.0 (2020-11-11) == Version 3.0 (2020-11-11)
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net> # Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2006-2009 Emmanuel Bouthenot <kolter@openics.org> # Copyright (C) 2006-2009 Emmanuel Bouthenot <kolter@openics.org>
# #
+1 -1
View File
@@ -114,7 +114,7 @@ $ ctest -V
== Copyright == Copyright
Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
This file is part of WeeChat, the extensible chat client. This file is part of WeeChat, the extensible chat client.
+15
View File
@@ -17,6 +17,21 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
(file _ChangeLog.adoc_ in sources). (file _ChangeLog.adoc_ in sources).
[[v3.1]]
== Version 3.1 (under dev)
[[v3.1_command_buffer_listvar]]
=== List of buffer local variables
The command `/buffer localvar` has been renamed to `/buffer listvar`.
The option `localvar` is still supported to stay compatible with scripts
calling it or referencing it in the documentation. +
It is deprecated and will be removed in a future release.
New options `setvar` and `delvar` were also added in command `/buffer`,
see `/help buffer`.
[[v3.0]] [[v3.0]]
== Version 3.0 (2020-11-11) == Version 3.0 (2020-11-11)
+1 -1
View File
@@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net> # Copyright (C) 2005 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org> # Copyright (C) 2005-2006 Emmanuel Bouthenot <kolter@openics.org>
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2014-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2014-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2007 Julien Louis <ptitlouis@sysif.net> # Copyright (C) 2007 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org> # Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org> # Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2011-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2011-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,6 +1,6 @@
# #
# Copyright (C) 2017 Adam Saponara <as@php.net> # Copyright (C) 2017 Adam Saponara <as@php.net>
# Copyright (C) 2017-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2017-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2009 Julien Louis <ptitlouis@sysif.net> # Copyright (C) 2009 Julien Louis <ptitlouis@sysif.net>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+2 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2015-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2015-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
@@ -33,6 +33,7 @@ endif()
set(V8_INC_PATHS set(V8_INC_PATHS
/usr/include /usr/include
/usr/include/v8
${CMAKE_INCLUDE_PATH} ${CMAKE_INCLUDE_PATH}
) )
find_path(V8_INCLUDE_DIR v8.h PATHS ${V8_INC_PATHS}) find_path(V8_INCLUDE_DIR v8.h PATHS ${V8_INC_PATHS})
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2005 Benoit Papillault <benoit.papillault@free.fr> # Copyright (C) 2005 Benoit Papillault <benoit.papillault@free.fr>
# Copyright (C) 2005-2006 Julien Louis <ptitlouis@sysif.net> # Copyright (C) 2005-2006 Julien Louis <ptitlouis@sysif.net>
# Copyright (C) 2005-2009 Emmanuel Bouthenot <kolter@openics.org> # Copyright (C) 2005-2009 Emmanuel Bouthenot <kolter@openics.org>
+1 -1
View File
@@ -4,7 +4,7 @@ Upstream-Contact: Sébastien Helleu <flashcode@flashtux.org>
Source: https://weechat.org/ Source: https://weechat.org/
Files: * Files: *
Copyright: 2003-2020, Sébastien Helleu <flashcode@flashtux.org> Copyright: 2003-2021, Sébastien Helleu <flashcode@flashtux.org>
License: GPL-3+ License: GPL-3+
Files: src/core/wee-command.c Files: src/core/wee-command.c
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org> # Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net> # Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
+16 -14
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
@@ -32,19 +32,21 @@ if(ENABLE_MAN)
add_custom_target(doc-man-weechat-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) add_custom_target(doc-man-weechat-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/cs/man1) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/cs/man1)
# man page: weechat-headless if(ENABLE_HEADLESS)
add_custom_command( # man page: weechat-headless
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 add_custom_command(
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
DEPENDS COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc
${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.cs.adoc ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.cs.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.cs.adoc ${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.cs.adoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/includes/man.cs.adoc
COMMENT "Building weechat-headless.1 (cs)" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
) COMMENT "Building weechat-headless.1 (cs)"
add_custom_target(doc-man-weechat-headless-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1) )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/cs/man1) add_custom_target(doc-man-weechat-headless-cs ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/cs/man1)
endif()
endif() endif()
if(ENABLE_DOC) if(ENABLE_DOC)
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -96,7 +96,7 @@ $HOME/.weechat/weechat.log::
WeeChat je napsán Sébastienem Helleu a přispěvovateli (kompletní seznam je v WeeChat je napsán Sébastienem Helleu a přispěvovateli (kompletní seznam je v
souboru AUTHORS.adoc). souboru AUTHORS.adoc).
Copyright (C) 2003-2020 {author} Copyright (C) 2003-2021 {author}
WeeChat is free software; you can redistribute it and/or modify WeeChat is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
+16 -14
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
@@ -32,19 +32,21 @@ if(ENABLE_MAN)
add_custom_target(doc-man-weechat-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) add_custom_target(doc-man-weechat-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/de/man1) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/de/man1)
# man page: weechat-headless if(ENABLE_HEADLESS)
add_custom_command( # man page: weechat-headless
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 add_custom_command(
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.de.adoc OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
DEPENDS COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.de.adoc
${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.de.adoc DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.de.adoc ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.de.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.de.adoc ${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.de.adoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/includes/man.de.adoc
COMMENT "Building weechat-headless.1 (de)" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
) COMMENT "Building weechat-headless.1 (de)"
add_custom_target(doc-man-weechat-headless-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1) )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/de/man1) add_custom_target(doc-man-weechat-headless-de ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/de/man1)
endif()
endif() endif()
if(ENABLE_DOC) if(ENABLE_DOC)
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net> # Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
@@ -120,6 +120,10 @@
| weechat | bars_options | Einstellungen für Infobars | weechat | bars_options | Einstellungen für Infobars
| weechat | buffer_local_variable_value | Wert einer lokalen Buffervariablen
| weechat | buffer_local_variables | lokale Buffervariablen
| weechat | buffer_properties_get | Eigenschaften die für den Buffer gelesen werden können | weechat | buffer_properties_get | Eigenschaften die für den Buffer gelesen werden können
| weechat | buffer_properties_set | Eigenschaften die für den Buffer gesetzt werden können | weechat | buffer_properties_set | Eigenschaften die für den Buffer gesetzt werden können
+45 -25
View File
@@ -219,6 +219,7 @@ Beispiel:
---- ----
/dehalfop <nick> [<nick>...] /dehalfop <nick> [<nick>...]
* -yes
nick: Nick oder Maske (Platzhalter "*" kann verwendet werden) nick: Nick oder Maske (Platzhalter "*" kann verwendet werden)
*: entzieht allen Nicks im Channel den half-operator-Status, ausgenommen sich selber *: entzieht allen Nicks im Channel den half-operator-Status, ausgenommen sich selber
@@ -932,6 +933,7 @@ target: Servername
---- ----
/voice <nick> [<nick>...] /voice <nick> [<nick>...]
* -yes
nick: Nick oder Maske (Platzhalter "*" kann verwendet werden) nick: Nick oder Maske (Platzhalter "*" kann verwendet werden)
*: vergibt an alle Nicks im Channel den voice-Status *: vergibt an alle Nicks im Channel den voice-Status
@@ -1020,7 +1022,7 @@ Anmerkung: Im Befehl können Variablen genutzt werden, die dann durch den entspr
$n-m: Argumente von 'n' bis 'm' $n-m: Argumente von 'n' bis 'm'
$*: alle Argumente $*: alle Argumente
$~: letztes Argument $~: letztes Argument
$var: "var" ist eine lokale Variable für den jeweiligen Buffer (siehe /buffer localvar) $var: "var" ist eine lokale Variable für den jeweiligen Buffer (siehe /buffer listvar)
Beispiel: $nick, $channel, $server, $plugin, $name Beispiel: $nick, $channel, $server, $plugin, $name
Beispiele: Beispiele:
@@ -1113,7 +1115,9 @@ Beispiele:
renumber [<number1> [<number2> [<start>]]] renumber [<number1> [<number2> [<start>]]]
close [<n1>[-<n2>]|<name>...] close [<n1>[-<n2>]|<name>...]
notify [<level>] notify [<level>]
localvar [<number>|<name>] listvar [<number>|<name>]
setvar <name> [<value>]
delvar <name>
set <property> [<value>] set <property> [<value>]
get <property> get <property>
<number>|-|+|<name> <number>|-|+|<name>
@@ -1137,7 +1141,9 @@ renumber: Buffer werden umnummeriert (Einstellung weechat.look.buffer_auto_renum
message: Benachrichtigung bei Nachrichten von Usern + Highlights message: Benachrichtigung bei Nachrichten von Usern + Highlights
all: Benachrichtigung bei allen Nachrichten all: Benachrichtigung bei allen Nachrichten
reset: Benachrichtigung auf Standardwert zurück setzen (all) reset: Benachrichtigung auf Standardwert zurück setzen (all)
localvar: zeigt die lokalen Variablen für den aktuellen Buffer an listvar: zeigt die lokalen Variablen für den aktuellen Buffer an
setvar: legt eine lokale Variable für den aktuellen Buffer an
delvar: löscht eine lokale Variable des aktuellen Buffers
set: setzt eine Eigenschaft für den aktuellen Buffer set: setzt eine Eigenschaft für den aktuellen Buffer
get: zeigt eine Eigenschaft für den aktuellen Buffer an get: zeigt eine Eigenschaft für den aktuellen Buffer an
number: wechselt von einem Buffer zu einem anderen, mögliche Optionen: number: wechselt von einem Buffer zu einem anderen, mögliche Optionen:
@@ -1296,11 +1302,11 @@ infolists: zeigt Information über die Infolists an
---- ----
/eval [-n|-s] [-d] <expression> /eval [-n|-s] [-d] <expression>
[-n] [-d] -c <expression1> <operator> <expression2> [-n] [-d [-d]] -c <expression1> <operator> <expression2>
-n: gibt das Ergebnis aus, ohne dass dieses in den Buffer gesendet wird (debug Modus) -n: gibt das Ergebnis aus, ohne dass dieses in den Buffer gesendet wird (debug Modus)
-s: teilt Ausdrücke, bevor sie evaluiert werden (mehrere Befehle können durch Semikolon getrennt werden) -s: teilt Ausdrücke, bevor sie evaluiert werden (mehrere Befehle können durch Semikolon getrennt werden)
-d: eine Debug-Ausgabe nach Auswertung anzeigen -d: eine Debug-Ausgabe nach Auswertung anzeigen (Nutzung von zwei -d: ausführliche Debug-Ausgabe)
-c: Auswertung als Bedingung: nutzt Operatoren und runde Klammern, Rückgabewert als Boolean-Wert ("0" oder "1") -c: Auswertung als Bedingung: nutzt Operatoren und runde Klammern, Rückgabewert als Boolean-Wert ("0" oder "1")
expression: Ausdruck welcher verarbeitet werden soll. Variablen im Format ${variable} werden ersetzt (siehe unten); mehrere Befehle werden durch ein Semikolon voneinander getrennt expression: Ausdruck welcher verarbeitet werden soll. Variablen im Format ${variable} werden ersetzt (siehe unten); mehrere Befehle werden durch ein Semikolon voneinander getrennt
operator: ein logischer oder vergleichender Operand: operator: ein logischer oder vergleichender Operand:
@@ -1336,24 +1342,25 @@ Um einen Vergleich zwischen zwei Zeichenketten zu erzwingen, müssen die Ausdrü
Einige Variablen werden im Ausdruck mittels der Formatierung ${variable} ersetzt. Mögliche Variablen sind, nach Reihenfolge ihrer Priorität: Einige Variablen werden im Ausdruck mittels der Formatierung ${variable} ersetzt. Mögliche Variablen sind, nach Reihenfolge ihrer Priorität:
1. eine evaluierte Teilzeichenkette (Format: "eval:xxx") 1. eine evaluierte Teilzeichenkette (Format: "eval:xxx")
2. eine Zeichenkette mit Escapesequenzen (Format: "esc:xxx" oder "\xxx") 2. eine evaluierte Bedingung (Format: "eval_cond:xxx")
3. Zeichen, die in einer Zeichenkette nicht dargestellt werden sollen (Format: "hide:Zeichen,Zeichenkette") 3. eine Zeichenkette mit Escapesequenzen (Format: "esc:xxx" oder "\xxx")
4. eine Zeichenkette mit einer maximalen Anzahl an Zeichen (Format: "cut:+Max,Suffix,Zeichenkette") 4. Zeichen, die in einer Zeichenkette nicht dargestellt werden sollen (Format: "hide:Zeichen,Zeichenkette")
5. eine Zeichenkette mit einer maximalen Anzahl an Zeichen (Format: "cut:+Max,Suffix,Zeichenkette")
oder maximale Anzahl an Zeichen die auf dem Bildschirm angezeigt werden sollen (Format: "cutscr:Max,Suffix,Zeichenkette oder "cutscr:+Max,Suffix,Zeichenkette") oder maximale Anzahl an Zeichen die auf dem Bildschirm angezeigt werden sollen (Format: "cutscr:Max,Suffix,Zeichenkette oder "cutscr:+Max,Suffix,Zeichenkette")
5. eine Zeichenkette umkehren (Format: "rev:xxx" oder "revscr:xxx") 6. eine Zeichenkette umkehren (Format: "rev:xxx" oder "revscr:xxx")
6. eine Zeichenkette wiederholen (Format: "repeat:Anzahl,Zeichenkette") 7. eine Zeichenkette wiederholen (Format: "repeat:Anzahl,Zeichenkette")
7. Länge einer Zeichenkette (Format: "length:xxx" oder "lengthscr:xxx") 8. Länge einer Zeichenkette (Format: "length:xxx" oder "lengthscr:xxx")
8. eine Farbe (Format: "color:xxx", siehe "Anleitung für API Erweiterung", Funktion "color") 9. eine Farbe (Format: "color:xxx", siehe "Anleitung für API Erweiterung", Funktion "color")
9. ein Modifizierer (Format: "info:Name,Argumente", Argumente sind optional) 10. ein Modifizierer (Format: "info:Name,Argumente", Argumente sind optional)
10. eine Info (Format: "Info:Name,Argumente", Argumente sind optional) 11. eine Info (Format: "Info:Name,Argumente", Argumente sind optional)
11. eine Basis 16/32/64 kodierte / dekodierte Zeichenfolge (Format: "base_encode:base,xxx" oder "base_decode:base,xxx") 12. eine Basis 16/32/64 kodierte / dekodierte Zeichenfolge (Format: "base_encode:base,xxx" oder "base_decode:base,xxx")
12. aktuelles Datum/Uhrzeit (Format: "date" oder "date:format") 13. aktuelles Datum/Uhrzeit (Format: "date" oder "date:format")
13. eine Umgebungsvariable (Format: "env:XXX") 14. eine Umgebungsvariable (Format: "env:XXX")
14. ein Dreifachoperand (Format: "if:Bedingung?Wert_falls_wahr:Wert_falls_unwahr") 15. ein Dreifachoperand (Format: "if:Bedingung?Wert_falls_wahr:Wert_falls_unwahr")
15. Ergebnis eines Ausdrucks mit Klammern und Operatoren + - * / // % ** (Format: "calc:xxx") 16. Ergebnis eines Ausdrucks mit Klammern und Operatoren + - * / // % ** (Format: "calc:xxx")
16. eine Option (Format: "file.section.option") 17. eine Option (Format: "file.section.option")
17. eine lokale Variable eines Buffers 18. eine lokale Variable eines Buffers
18. ein(e) hdata - Name/Variable (der Wert wird automatisch in eine Zeichenkette konvertiert), standardmäßig wird für "window" und "buffer" das aktuelle Fenster/Buffer verwendet. 19. ein(e) hdata - Name/Variable (der Wert wird automatisch in eine Zeichenkette konvertiert), standardmäßig wird für "window" und "buffer" das aktuelle Fenster/Buffer verwendet.
Das Format für hdata kann wie folgt aufgebaut sein: Das Format für hdata kann wie folgt aufgebaut sein:
hdata.var1.var2...: startet mit hdata (der Pointer muss bekannt sein) und fragt eine Variable nach der anderen ab (weitere hdata können folgen) hdata.var1.var2...: startet mit hdata (der Pointer muss bekannt sein) und fragt eine Variable nach der anderen ab (weitere hdata können folgen)
hdata[list].var1.var2...: startet hdata mittels einer Liste, zum Beispiel: hdata[list].var1.var2...: startet hdata mittels einer Liste, zum Beispiel:
@@ -1364,6 +1371,7 @@ Das Format für hdata kann wie folgt aufgebaut sein:
Die vorhandenen Namen für hdata und Variablen sind in der "Anleitung für API Erweiterung", Bereich "weechat_hdata_get". beschrieben Die vorhandenen Namen für hdata und Variablen sind in der "Anleitung für API Erweiterung", Bereich "weechat_hdata_get". beschrieben
Beispiele (einfache Zeichenketten): Beispiele (einfache Zeichenketten):
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3 /eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user /eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3 /eval -n ${weechat.look.scroll_amount} ==> 3
@@ -1406,6 +1414,7 @@ Beispiele (Bedingungen):
enable|disable|toggle [<name>|@] enable|disable|toggle [<name>|@]
add|addreplace <name> <buffer>[,<buffer>...] <tags> <regex> add|addreplace <name> <buffer>[,<buffer>...] <tags> <regex>
rename <name> <new_name> rename <name> <new_name>
recreate <name>
del <name>|-all del <name>|-all
list: alle Filter auflisten list: alle Filter auflisten
@@ -1416,6 +1425,7 @@ Beispiele (Bedingungen):
add: Filter hinzufügen add: Filter hinzufügen
addreplace: erzeugt neuen Filter oder ersetzt einen schon existierenden Filter addreplace: erzeugt neuen Filter oder ersetzt einen schon existierenden Filter
rename: benennt einen Filter um rename: benennt einen Filter um
recreate: in die Eingabezeile wird die entsprechende Filtereinstellung übernommen, um diese dann editieren zu können
del: Filter entfernen del: Filter entfernen
-all: entfernt alle Filter -all: entfernt alle Filter
buffer: durch Kommata getrennte Liste von Buffer in denen der Filter aktiv sein soll: buffer: durch Kommata getrennte Liste von Buffer in denen der Filter aktiv sein soll:
@@ -2817,7 +2827,17 @@ Im Skript-Buffer, werden folgende Statusangaben für ein Skript angezeigt:
| | | gehalten | | | gehalten
| | Skript wird beim Start, von WeeChat, automatisch geladen | | Skript wird beim Start, von WeeChat, automatisch geladen
| Skript ist installiert (wird aber nicht ausgeführt) | Skript ist installiert (wird aber nicht ausgeführt)
es wird empfohlen dieses Skript zu installieren beliebtes Skript
In der Ausgabe von /script list, wird der Status für ein Skript angegeben:
* ? i a H N
| | | | | |
| | | | | obsolete (neue Version verfügbar)
| | | | gehalten
| | | Skript wird beim Start, von WeeChat, automatisch geladen
| | Skript ist installiert (wird aber nicht ausgeführt)
| unbekanntes Skript (dieses Skript kann nicht heruntergeladen/aktualisiert werden)
beliebtes Skript
Tastenbefehle die im Skript-Buffer genutzt werden können: Tastenbefehle die im Skript-Buffer genutzt werden können:
alt+i installiert Skript (physikalisch) alt+i installiert Skript (physikalisch)
@@ -2948,7 +2968,7 @@ listdefault: zeigt die standardmäßig genutzten Trigger an
modifier: Name(en) des modifier (erforderlich) modifier: Name(en) des modifier (erforderlich)
line: Buffertyp ("formatted", "free" oder "*"), Liste von Buffermasken, Tags line: Buffertyp ("formatted", "free" oder "*"), Liste von Buffermasken, Tags
print: Buffer, Tags, Nachricht, Farben entfernen print: Buffer, Tags, Nachricht, Farben entfernen
command: Befehl (erforderlich), Beschreibung, Argumente, Beschreibung der Argumente, Vervollständigung (Alle Argumente, außer dem Befehl werden ausgewertet, siehe /help eval) command: Befehl (erforderlich), Beschreibung, Argumente, Beschreibung der Argumente, Vervollständigung (alle Argumente, außer dem Befehl werden ausgewertet, "${tg_trigger_name}" wird durch den Triggernamen ersetzt, siehe /help eval)
command_run: Befehl(e) (erforderlich) command_run: Befehl(e) (erforderlich)
timer: Intervall (erforderlich), Anpassung an Sekunden (erforderlich), maximale Anzahl an Aufrufen timer: Intervall (erforderlich), Anpassung an Sekunden (erforderlich), maximale Anzahl an Aufrufen
config: Name der Einstellung (erforderlich) config: Name der Einstellung (erforderlich)
@@ -2980,7 +3000,7 @@ post_action: Aktion welche nach der Abarbeitung des Triggers ausgeführt werden
restore: stellt Trigger mit Standardwerten wieder her (funktioniert nur bei vorgegebenen Triggern) restore: stellt Trigger mit Standardwerten wieder her (funktioniert nur bei vorgegebenen Triggern)
default: stellt die standardmäßigen Trigger wieder her default: stellt die standardmäßigen Trigger wieder her
monitor: öffnet den Trigger Monitor-Buffer, mit optionaler Filterfunktion: monitor: öffnet den Trigger Monitor-Buffer, mit optionaler Filterfunktion:
Filter: zeigt Hooks/Trigger an (ein Hook muss mit "@" beginnen, zum Beispiel "@signal"), mehrere Filter können durch Kommata voneinander getrennt werden; Platzhalter "*" kann im Namen des Trigger verwendet werden filter: filtert Hooks/Trigger zum Anzeigen (ein Hook muss mit "@" beginnen, zum Beispiel "@signal"), mehrere Filter können durch Kommata voneinander getrennt werden; Platzhalter "*" kann im Namen des Trigger verwendet werden
Wenn ein Trigger-Callback aufgerufen wird, dann wird folgende Befehlskette ausgeführt: Wenn ein Trigger-Callback aufgerufen wird, dann wird folgende Befehlskette ausgeführt:
1. Überprüfung von Bedingungen; falls unwahr, beenden 1. Überprüfung von Bedingungen; falls unwahr, beenden
@@ -2616,6 +2616,12 @@
** Werte: 1 .. 3600 ** Werte: 1 .. 3600
** Standardwert: `+60+` ** Standardwert: `+60+`
* [[option_irc.server_default.default_chantypes]] *irc.server_default.default_chantypes*
** Beschreibung: pass:none[channel type prefixes to use if the server does not send them in message 005 (default is "#&")]
** Typ: Zeichenkette
** Werte: beliebige Zeichenkette
** Standardwert: `+"#&"+`
* [[option_irc.server_default.ipv6]] *irc.server_default.ipv6* * [[option_irc.server_default.ipv6]] *irc.server_default.ipv6*
** Beschreibung: pass:none[bei der Kommunikation mit dem Server wird das IPv6 Protokoll genutzt (sollte IPv6 nicht verfügbar sein dann wird automatisch auf IPv4 umgeschaltet); wird die Funktion deaktiviert, dann wird ausschließlich IPv4 genutzt] ** Beschreibung: pass:none[bei der Kommunikation mit dem Server wird das IPv6 Protokoll genutzt (sollte IPv6 nicht verfügbar sein dann wird automatisch auf IPv4 umgeschaltet); wird die Funktion deaktiviert, dann wird ausschließlich IPv4 genutzt]
** Typ: boolesch ** Typ: boolesch
+1 -1
View File
@@ -97,7 +97,7 @@ $HOME/.weechat/weechat.log::
WeeChat wird programmiert von Sébastien Helleu und weiteren Beteiligten (eine vollständige Auflistung WeeChat wird programmiert von Sébastien Helleu und weiteren Beteiligten (eine vollständige Auflistung
findet man in der AUTHORS.adoc Datei). findet man in der AUTHORS.adoc Datei).
Copyright (C) 2003-2020 {author} Copyright (C) 2003-2021 {author}
WeeChat is free software; you can redistribute it and/or modify WeeChat is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
+28 -4
View File
@@ -249,6 +249,31 @@ Die Tasten "meta-OP" und "meta-OQ" können im Hinblick auf das jeweils genutzte
Um die korrekten Tasten zu finden, sollte man mit kbd:[Alt+k] die gewünschte Tastenkombination einfangen. Um die korrekten Tasten zu finden, sollte man mit kbd:[Alt+k] die gewünschte Tastenkombination einfangen.
Siehe auch: link:weechat_user.de.html#key_bindings_command_line[Benutzerhandbuch / Tastenbelegung]. Siehe auch: link:weechat_user.de.html#key_bindings_command_line[Benutzerhandbuch / Tastenbelegung].
[[customize_buflist]]
=== Wie kann ich die Darstellung der Bufferliste anpassen, z.B. die Farbe des aktiven Buffers?
Mit folgendem Befehl können alle Optionen der Buflist angezeigt werden:
----
/fset buflist
----
Die Hintergrundfarbe des aktiven Buffers ist standardmäßig blau. Sie können diese
Farbe folgendermaßen ändern, z.B. in "red":
----
/set buflist.format.buffer_current "${color:,red}${format_buffer}"
----
[NOTE]
Vor dem Farbnamen "red" steht ein Komma, da die Farbe als Hintergrund und nicht als Textfarbe verwendet wird. +
Es kann auch eine beliebige numerische Farbe anstelle von "Rot" verwendet werden, z. B. "237" für Dunkelgrau.
Die Buflist-Erweiterung bietet viele Optionen, zum individualisieren. Bitte lesen Sie dazu die Hilfe von jeder Option.
Es gibt auch eine Wiki-Seite mit Beispielen, wie eine erweiterte Konfiguration aussehen kann:
https://github.com/weechat/weechat/wiki/buflist
[[customize_prefix]] [[customize_prefix]]
=== Wie kann ich die Länge eines Nicknamens begrenzen oder die Ausrichtung des Nicks im Chatbereich entfernen? === Wie kann ich die Länge eines Nicknamens begrenzen oder die Ausrichtung des Nicks im Chatbereich entfernen?
@@ -1264,11 +1289,10 @@ Beispiel:
Es können alle _~/.weechat/*.conf_ Dateien geteilt werden. Es können alle _~/.weechat/*.conf_ Dateien geteilt werden.
Hiervon ausgenommen ist die Datei _sec.conf_, Hiervon ausgenommen ist die Datei _sec.conf_,
die durch eine Passphrase verschlüsselte sensible Daten enthalten kann. die durch eine Passphrase verschlüsselte, sensible, Daten enthalten kann.
In einigen Dateien wie _irc.conf_ können sensible Daten, Einige andere Dateien enthalten möglicherweise vertrauliche Informationen wie
z.B. Passwörter für Server oder Channels im Klartext hinterlegt sein. Kennwörter (sofern sie nicht mit dem Befehl `/secure` in _sec.conf_ gesichert werden).
(Das heißt, insofern diese nicht mit Hilfe des Befehls `/secure` verschlüsselt in der Datei _sec.conf_ gesichert wurden).
Siehe link:weechat_user.de.html#files_and_directories[Benutzerhandbuch / Dateien und Verzeichnisse] Siehe link:weechat_user.de.html#files_and_directories[Benutzerhandbuch / Dateien und Verzeichnisse]
für weitere Informationen über Konfigurationsdateien. für weitere Informationen über Konfigurationsdateien.
+1 -1
View File
@@ -988,7 +988,7 @@ Um zu sehen welche lokalen Variablen für einen Buffer gesetzt sind führen Sie
bitte in WeeChat folgenden Befehl aus: bitte in WeeChat folgenden Befehl aus:
---- ----
/buffer localvar /buffer listvar
---- ----
[[hooks]] [[hooks]]
+152 -8
View File
@@ -397,7 +397,10 @@ Bei der Kompilierung mit CMake muss folgende Option gesetzt werden:
$ cmake .. -DCMAKE_BUILD_TYPE=Debug $ cmake .. -DCMAKE_BUILD_TYPE=Debug
---- ----
Sie können zusätzlich den Adressbereiniger aktivieren, der bei Problemen sofort [[build_debug_address_sanitizer]]
==== Erstellen mit Debug-Optionen und Address Sanitizer
Sie können zusätzlich den Adress-Sanitizer aktivieren, der bei Problemen sofort
zum Absturz von WeeChat führt: zum Absturz von WeeChat führt:
---- ----
@@ -406,9 +409,15 @@ $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_C
[WARNING] [WARNING]
Sie sollten die Adressbereinigung nur aktivieren, wenn Sie versuchen, einen Sie sollten die Adressbereinigung nur aktivieren, wenn Sie versuchen, einen
Absturz zu provozieren. Dies wird im produktivem Einsatz nicht empfohlen. Absturz zu provozieren. Diese Funktion wird im produktivem Einsatz nicht empfohlen.
Wird ein Binärpaket genutzt dann muss zusätzlich das Paket _weechat-dbg_ installiert werden. Nach dem Kompilieren und Installieren müssen Sie WeeChat folgendermaßen ausführen:
----
$ ASAN_OPTIONS="detect_odr_violation=0 log_path=asan.log" weechat
----
Im Falle eines Absturzes befinden sich zusätzliche Informationen in der Datei, `asan.log`.
[[core_files]] [[core_files]]
==== Core Dateien ==== Core Dateien
@@ -549,7 +558,8 @@ Einige Umgebungsvariablen werden von WeeChat genutzt, sofern sie definiert wurde
=== Dateien und Verzeichnisse === Dateien und Verzeichnisse
WeeChat schreibt standardmäßig seine Konfiguration und andere WeeChat schreibt standardmäßig seine Konfiguration und andere
Daten in folgendes Verzeichnis: `~/.weechat` Daten in folgendes Verzeichnis: `~/.weechat` +
Diese Dateien werden, mit Standardwerten, beim ersten Ausführen von WeeChat automatisch erstellt.
[[weechat_directories]] [[weechat_directories]]
==== WeeChat Verzeichnisse ==== WeeChat Verzeichnisse
@@ -607,7 +617,7 @@ Folgende Dateien befinden sich im WeeChat-Heimatverzeichnis:
| perl.conf | Konfiguration für _perl_-Erweiterung | Nein. | perl.conf | Konfiguration für _perl_-Erweiterung | Nein.
| php.conf | Konfiguration für _php_-Erweiterung | Nein. | php.conf | Konfiguration für _php_-Erweiterung | Nein.
| python.conf | Konfiguration für _python_-Erweiterung | Nein. | python.conf | Konfiguration für _python_-Erweiterung | Nein.
| relay.conf | Konfiguration für _relay_-Erweiterung | Nein. | relay.conf | Konfiguration für _relay_-Erweiterung | *Ja*: es kann das Relay-Passwort und das TOTP (Einmalkennwort) enthalten (sofern nicht in `sec.conf` gesichert), erlaubt OP Adressen/Websocket und geöffnete Ports.
| ruby.conf | Konfiguration für _ruby_-Erweiterung | Nein. | ruby.conf | Konfiguration für _ruby_-Erweiterung | Nein.
| script.conf | Konfiguration für _script_-Erweiterung | Nein. | script.conf | Konfiguration für _script_-Erweiterung | Nein.
| spell.conf | Konfiguration für _spell_-Erweiterung | Nein. | spell.conf | Konfiguration für _spell_-Erweiterung | Nein.
@@ -1092,8 +1102,8 @@ Beispiele für eine vertikale und horizontale Fensteraufteilung:
▲ Fenster #1 (Buffer #3) ▲ Fenster #2 (Buffer #4) ▲ Fenster #1 (Buffer #3) ▲ Fenster #2 (Buffer #4)
.... ....
[[buffers_lines]] [[buffers]]
=== Zeilen in Buffern === Buffern
[[lines_format]] [[lines_format]]
==== Format von Zeilen ==== Format von Zeilen
@@ -1160,6 +1170,140 @@ Falls ein "notify_xxx" Tag vorhanden ist, kann die tatsächliche Benachrichtigun
unterschiedlich sein. Wenn beispielsweise der max hotlist level für einen Nick verwendet unterschiedlich sein. Wenn beispielsweise der max hotlist level für einen Nick verwendet
wird, kann die Benachrichtigungsstufe niedriger sein als der Wert im Tag. wird, kann die Benachrichtigungsstufe niedriger sein als der Wert im Tag.
[[local_variables]]
==== lokale Variablen
Lokale Variablen können für alle Buffer definiert werden.
Eine lokale Variable besteht:
* aus einem Namen (Zeichenkette)
* und aus einem Wert (Zeichenkette, kann leer sein).
Lokale Variablen können von WeeChat, Erweiterungen, Skripten oder manuell,
in der Befehlszeile eines Buffers, festgelegt werden.
So fügen Sie beispielsweise die lokale Variable "completion_default_template" hinzu:
----
/buffer setvar completion_default_template %(my_completion)
----
um sich alle lokalen Variablen des aktuellen Buffers anzeigen zu lassen:
----
/buffer listvar
----
So entfernen Sie die lokale Variable "completion_default_template":
----
/buffer delvar completion_default_template
----
Standardmäßig interpretieren WeeChat und seine Standard-Erweitertungen diese Variablen:
[width="100%",cols="^2m,2,5",options="header"]
|===
| Name | Wert | Beschreibung
| away |
beliebige Zeichenkette |
Abwesenheitsnotiz auf dem Server, wird durch IRC Erweiterung genutzt.
| channel |
beliebige Zeichenkette |
Channel-Name, wird durch irc/xfer Erweiterung und dem Debug-Buffer von relay/trigger Erweiterung genutzt.
| charset_modifier |
beliebige Zeichenkette |
Charset modifier für den Server-Buffer, wird durch IRC Erweiterung genutzt.
| completion_default_template |
beliebige Zeichenkette |
Vorlage für die standardmäßige Vervollständigung innerhalb eines Buffers, überschreibt die Option
`weechat.completion.default_template`.
| filter |
beliebige Zeichenkette |
Filter definiert für einige Buffer `/fset`, `/server raw` (irc) und `/script`.
| host |
beliebige Zeichenkette |
eigener Host (sofern bekannt), wird durch IRC Erweiterung genutzt.
| lag |
beliebige Zeichenkette |
Verzögerung auf dem Server, wird durch IRC Erweiterung genutzt.
| name |
beliebige Zeichenkette |
Buffername (Vorsicht, dies ist nicht der vollständige Name des Buffers und reicht nicht aus, um einen Buffer zu identifizieren oder zu suchen).
| nick |
beliebige Zeichenkette |
eigener Nick, wird durch IRC und xfer Erweiterung genutzt.
| no_log |
`1` (oder jede andere nicht leere Zeichenkette) |
Wenn festgelegt, protokolliert die Logger-Erweiterung nichts für den Buffer.
| plugin |
beliebige Zeichenkette |
Name der Erweiterung welche den Buffer erstellt hat (`core` für WeeChat-Buffer).
| script_close_cb |
beliebige Zeichenkette |
Close callback, für diesen Buffer durch ein Skript definiert.
| script_close_cb_data |
beliebige Zeichenkette |
Daten für ein Close callback, welches durch ein Skript für diesen Buffer definiert wurde.
| script_input_cb |
beliebige Zeichenkette |
Input callback, für diesen Buffer durch ein Skript definiert.
| script_input_cb_data |
beliebige Zeichenkette |
Daten für ein Input callback, welches durch ein Skript für diesen Buffer definiert wurde.
| script_name |
beliebige Zeichenkette |
Name des Skriptes welches den Buffer erstellt hat.
| server |
beliebige Zeichenkette |
Servername, wird durch IRC Erweiterung genutzt und durch den Debug-Buffer von relay/trigger Erweiterung.
| spell_suggest |
beliebige Zeichenkette |
falsch geschriebenes Wort und Korrekturvorschläge (Format: "fehlerhaftes Wort:Korrekturvorschläge"), wird durch
spell-Erweiterung definiert.
| trigger_filter |
beliebige Zeichenkette |
Trigger-Filter, wird durch Trigger-Erweiterung definiert.
| type |
beliebige Zeichenkette, zum Beispiel:
`channel`,
`debug`,
`exec`,
`option`,
`private`,
`relay`,
`script`,
`server`,
`user`,
`xfer` |
Buffertyp, festgelegt von WeeChat und vielen Erweiterungen.
|===
[NOTE]
Externe Erweitertungen und Skripte können andere lokale Variablen definieren und verwenden.
[[bars]] [[bars]]
=== Bars === Bars
@@ -3141,7 +3285,7 @@ mit lokalen Buffervariablen zu füllen. Um sich die verfügbaren lokalen Variabl
für den aktuellen Buffer anzeigen zu lassen: für den aktuellen Buffer anzeigen zu lassen:
---- ----
/buffer localvar /buffer listvar
---- ----
Masken werden in absteigender Reihenfolge abgeglichen, beginnend mit Masken werden in absteigender Reihenfolge abgeglichen, beginnend mit
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
# #
# Copyright (C) 2008-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2008-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -1,6 +1,6 @@
<!-- <!--
Custom styles for Asciidoctor Custom styles for Asciidoctor
Copyright (C) 2016-2020 Sébastien Helleu <flashcode@flashtux.org> Copyright (C) 2016-2021 Sébastien Helleu <flashcode@flashtux.org>
--> -->
<style> <style>
#header,#content,#footnotes,#footer { #header,#content,#footnotes,#footer {
+16 -14
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
@@ -32,19 +32,21 @@ if(ENABLE_MAN)
add_custom_target(doc-man-weechat-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) add_custom_target(doc-man-weechat-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/man1) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/man1)
# man page: weechat-headless if(ENABLE_HEADLESS)
add_custom_command( # man page: weechat-headless
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 add_custom_command(
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.en.adoc OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
DEPENDS COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.en.adoc
${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.en.adoc DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.en.adoc ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.en.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.en.adoc ${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.en.adoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/includes/man.en.adoc
COMMENT "Building weechat-headless.1 (en)" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
) COMMENT "Building weechat-headless.1 (en)"
add_custom_target(doc-man-weechat-headless-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1) )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/man1) add_custom_target(doc-man-weechat-headless-en ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/man1)
endif()
endif() endif()
if(ENABLE_DOC) if(ENABLE_DOC)
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net> # Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
@@ -120,6 +120,10 @@
| weechat | bars_options | options for bars | weechat | bars_options | options for bars
| weechat | buffer_local_variable_value | value of a buffer local variable
| weechat | buffer_local_variables | buffer local variables
| weechat | buffer_properties_get | properties that can be read on a buffer | weechat | buffer_properties_get | properties that can be read on a buffer
| weechat | buffer_properties_set | properties that can be set on a buffer | weechat | buffer_properties_set | properties that can be set on a buffer
+44 -24
View File
@@ -219,6 +219,7 @@ Examples:
---- ----
/dehalfop <nick> [<nick>...] /dehalfop <nick> [<nick>...]
* -yes
nick: nick or mask (wildcard "*" is allowed) nick: nick or mask (wildcard "*" is allowed)
*: remove channel half-operator status from everybody on channel except yourself *: remove channel half-operator status from everybody on channel except yourself
@@ -932,6 +933,7 @@ target: server name
---- ----
/voice <nick> [<nick>...] /voice <nick> [<nick>...]
* -yes
nick: nick or mask (wildcard "*" is allowed) nick: nick or mask (wildcard "*" is allowed)
*: give voice to everybody on channel *: give voice to everybody on channel
@@ -1020,7 +1022,7 @@ Note: in command, special variables are replaced:
$n-m: arguments from 'n' to 'm' $n-m: arguments from 'n' to 'm'
$*: all arguments $*: all arguments
$~: last argument $~: last argument
$var: where "var" is a local variable of buffer (see /buffer localvar) $var: where "var" is a local variable of buffer (see /buffer listvar)
examples: $nick, $channel, $server, $plugin, $name examples: $nick, $channel, $server, $plugin, $name
Examples: Examples:
@@ -1113,7 +1115,9 @@ Examples:
renumber [<number1> [<number2> [<start>]]] renumber [<number1> [<number2> [<start>]]]
close [<n1>[-<n2>]|<name>...] close [<n1>[-<n2>]|<name>...]
notify [<level>] notify [<level>]
localvar [<number>|<name>] listvar [<number>|<name>]
setvar <name> [<value>]
delvar <name>
set <property> [<value>] set <property> [<value>]
get <property> get <property>
<number>|-|+|<name> <number>|-|+|<name>
@@ -1137,8 +1141,10 @@ renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumb
message: for messages from users + highlights message: for messages from users + highlights
all: all messages all: all messages
reset: reset to default value (all) reset: reset to default value (all)
localvar: display local variables for the buffer listvar: display local variables in a buffer
set: set a property for current buffer setvar: set a local variable in the current buffer
delvar: delete a local variable from the current buffer
set: set a property in the current buffer
get: display a property of current buffer get: display a property of current buffer
number: jump to buffer by number, possible prefix: number: jump to buffer by number, possible prefix:
'+': relative jump, add number to current '+': relative jump, add number to current
@@ -1296,11 +1302,11 @@ infolists: display infos about infolists
---- ----
/eval [-n|-s] [-d] <expression> /eval [-n|-s] [-d] <expression>
[-n] [-d] -c <expression1> <operator> <expression2> [-n] [-d [-d]] -c <expression1> <operator> <expression2>
-n: display result without sending it to buffer (debug mode) -n: display result without sending it to buffer (debug mode)
-s: split expression before evaluating it (many commands can be separated by semicolons) -s: split expression before evaluating it (many commands can be separated by semicolons)
-d: display debug output after evaluation -d: display debug output after evaluation (with two -d: more verbose debug)
-c: evaluate as condition: use operators and parentheses, return a boolean value ("0" or "1") -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 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: operator: a logical or comparison operator:
@@ -1336,24 +1342,25 @@ To force a string comparison, you can add double quotes around each expression,
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority: 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") 1. an evaluated sub-string (format: "eval:xxx")
2. a string with escaped chars (format: "esc:xxx" or "\xxx") 2. an evaluated condition (format: "eval_cond:xxx")
3. a string with chars to hide (format: "hide:char,string") 3. a string with escaped chars (format: "esc:xxx" or "\xxx")
4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string") 4. a string with chars to hide (format: "hide:char,string")
5. 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") or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
5. a reversed string (format: "rev:xxx" or "revscr:xxx") 6. a reversed string (format: "rev:xxx" or "revscr:xxx")
6. a repeated string (format: "repeat:count,string") 7. a repeated string (format: "repeat:count,string")
7. length of a string (format: "length:xxx" or "lengthscr:xxx") 8. length of a string (format: "length:xxx" or "lengthscr:xxx")
8. a color (format: "color:xxx", see "Plugin API reference", function "color") 9. a color (format: "color:xxx", see "Plugin API reference", function "color")
9. a modifier (format: "modifier:name,data,string") 10. a modifier (format: "modifier:name,data,string")
10. an info (format: "info:name,arguments", arguments are optional) 11. an info (format: "info:name,arguments", arguments are optional)
11. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx") 12. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
12. current date/time (format: "date" or "date:format") 13. current date/time (format: "date" or "date:format")
13. an environment variable (format: "env:XXX") 14. an environment variable (format: "env:XXX")
14. a ternary operator (format: "if:condition?value_if_true:value_if_false") 15. a ternary operator (format: "if:condition?value_if_true:value_if_false")
15. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx") 16. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
16. an option (format: "file.section.option") 17. an option (format: "file.section.option")
17. a local variable in buffer 18. a local variable in buffer
18. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. 19. 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: 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.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: hdata[list].var1.var2...: start with a hdata using a list, for example:
@@ -1364,6 +1371,7 @@ Format for hdata can be one of following:
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get". For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
Examples (simple strings): Examples (simple strings):
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3 /eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user /eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3 /eval -n ${weechat.look.scroll_amount} ==> 3
@@ -1406,6 +1414,7 @@ Examples (conditions):
enable|disable|toggle [<name>|@] enable|disable|toggle [<name>|@]
add|addreplace <name> <buffer>[,<buffer>...] <tags> <regex> add|addreplace <name> <buffer>[,<buffer>...] <tags> <regex>
rename <name> <new_name> rename <name> <new_name>
recreate <name>
del <name>|-all del <name>|-all
list: list all filters list: list all filters
@@ -1416,6 +1425,7 @@ Examples (conditions):
add: add a filter add: add a filter
addreplace: add or replace an existing filter addreplace: add or replace an existing filter
rename: rename a filter rename: rename a filter
recreate: set input with the command used to edit the filter
del: delete a filter del: delete a filter
-all: delete all filters -all: delete all filters
buffer: comma separated list of buffers where filter is active: buffer: comma separated list of buffers where filter is active:
@@ -2819,6 +2829,16 @@ On script buffer, the possible status for each script are:
| installed | installed
popular script popular script
In output of /script list, the possible status for each script are:
* ? i a H N
| | | | | |
| | | | | obsolete (new version available)
| | | | held
| | | autoloaded
| | installed
| unknown script (can not be downloaded/updated)
popular script
Keys on script buffer: Keys on script buffer:
alt+i install script alt+i install script
alt+r remove script alt+r remove script
@@ -2948,7 +2968,7 @@ listdefault: list default triggers
modifier: name(s) of modifier (required) modifier: name(s) of modifier (required)
line: buffer type ("formatted", "free" or "*"), list of buffer masks, tags line: buffer type ("formatted", "free" or "*"), list of buffer masks, tags
print: buffer, tags, message, strip colors print: buffer, tags, message, strip colors
command: command (required), description, arguments, description of arguments, completion (all arguments except command are evaluated, see /help eval) command: command (required), description, arguments, description of arguments, completion (all arguments except command are evaluated, "${tg_trigger_name}" is replaced by the trigger name, see /help eval)
command_run: command(s) (required) command_run: command(s) (required)
timer: interval (required), align on second, max calls timer: interval (required), align on second, max calls
config: name(s) of option (required) config: name(s) of option (required)
@@ -2616,6 +2616,12 @@
** values: 1 .. 3600 ** values: 1 .. 3600
** default value: `+60+` ** default value: `+60+`
* [[option_irc.server_default.default_chantypes]] *irc.server_default.default_chantypes*
** description: pass:none[channel type prefixes to use if the server does not send them in message 005 (default is "#&")]
** type: string
** values: any string
** default value: `+"#&"+`
* [[option_irc.server_default.ipv6]] *irc.server_default.ipv6* * [[option_irc.server_default.ipv6]] *irc.server_default.ipv6*
** description: pass:none[use IPv6 protocol for server communication (try IPv6 then fallback to IPv4); if disabled, only IPv4 is used] ** description: pass:none[use IPv6 protocol for server communication (try IPv6 then fallback to IPv4); if disabled, only IPv4 is used]
** type: boolean ** type: boolean
+1 -1
View File
@@ -97,7 +97,7 @@ $HOME/.weechat/weechat.log::
WeeChat is written by Sébastien Helleu and contributors (complete list is in WeeChat is written by Sébastien Helleu and contributors (complete list is in
the AUTHORS.adoc file). the AUTHORS.adoc file).
Copyright (C) 2003-2020 {author} Copyright (C) 2003-2021 {author}
WeeChat is free software; you can redistribute it and/or modify WeeChat is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
+1 -1
View File
@@ -495,7 +495,7 @@ Example in C:
/* /*
* weechat.c - core functions for WeeChat * weechat.c - core functions for WeeChat
* *
* Copyright (C) 2020 Your Name <your@email.com> * Copyright (C) 2021 Your Name <your@email.com>
* *
* This file is part of WeeChat, the extensible chat client. * This file is part of WeeChat, the extensible chat client.
* *
+30 -3
View File
@@ -227,6 +227,34 @@ For example to use kbd:[F1], kbd:[F2], kbd:[Alt+F1] and kbd:[Alt+F2]:
Keys "meta-OP" and "meta-OQ" may be different in your terminal. To find key Keys "meta-OP" and "meta-OQ" may be different in your terminal. To find key
code press kbd:[Alt+k] then key. code press kbd:[Alt+k] then key.
[[customize_buflist]]
=== How can I customize the list of buffers list, like the color of the active buffer?
You can browse all buflist options with the command:
----
/fset buflist
----
The background of the active buffer is blue by default, you can change it
like this, for example to `red`:
----
/set buflist.format.buffer_current "${color:,red}${format_buffer}"
----
[NOTE]
There's a comma before the color name "red" because it is used as the background,
not the text color. +
You can also use any numeric color instead of `red`,
like `237` for dark gray.
The buflist plugin provides lot of options that you can customize, please read
the help on each option.
There's also a wiki page with examples of advanced buflist configuration:
https://github.com/weechat/weechat/wiki/buflist
[[customize_prefix]] [[customize_prefix]]
=== How can I reduce length of nicks or remove nick alignment in chat area? === How can I reduce length of nicks or remove nick alignment in chat area?
@@ -1166,9 +1194,8 @@ For example:
You can share files _~/.weechat/*.conf_ except the file _sec.conf_ which You can share files _~/.weechat/*.conf_ except the file _sec.conf_ which
contains your passwords ciphered with your passphrase. contains your passwords ciphered with your passphrase.
Some other files like _irc.conf_ may contain sensitive info like passwords Some other files may contain sensitive info like passwords (if they are not
for servers/channels (if they are not stored in _sec.conf_ with the `/secure` stored in _sec.conf_ with the `/secure` command).
command).
See the link:weechat_user.en.html#files_and_directories[User's guide / Files and directories] See the link:weechat_user.en.html#files_and_directories[User's guide / Files and directories]
for more information about configuration files. for more information about configuration files.
+30 -9
View File
@@ -1334,14 +1334,25 @@ Return value:
* same return code as function `regcomp` (0 if OK, other value for error, * same return code as function `regcomp` (0 if OK, other value for error,
see `man regcomp`) see `man regcomp`)
[NOTE]
Regular expression _preg_ must be cleaned by calling "regfree" after use,
if the function returned 0 (OK).
C example: C example:
[source,C] [source,C]
---- ----
regex_t my_regex; regex_t my_regex;
if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) != 0) if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) == 0)
{
/* OK */
/* ... */
regfree (&my_regex);
}
else
{ {
/* error */ /* error */
/* ... */
} }
---- ----
@@ -2198,7 +2209,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
==== string_eval_expression ==== string_eval_expression
_WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0, _WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0,
2.2, 2.3, 2.7 and 2.9._ 2.2, 2.3, 2.7, 2.9 and 3.1._
Evaluate an expression and return result as a string. 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).
@@ -2246,6 +2257,10 @@ Arguments:
** _regex_replace_: the replacement text to use with _regex_, to replace ** _regex_replace_: the replacement text to use with _regex_, to replace
text in _expr_ (the _regex_replace_ is evaluated on each match of _regex_ text in _expr_ (the _regex_replace_ is evaluated on each match of _regex_
against _expr_, until no match is found) against _expr_, until no match is found)
** _debug_: debug level (string with integer number ≥ 1), if enabled, a key
"debug_output" is added in hashtable _options_:
*** _1_: enable debug
*** _2_: enable more verbose debug
Return value: Return value:
@@ -2521,6 +2536,12 @@ expanded to last):
`+19:02:45+` (with colors if there are color codes in the option `+19:02:45+` (with colors if there are color codes in the option
weechat.look.buffer_time_format) weechat.look.buffer_time_format)
| `+${eval_cond:xxx}+` +
_(WeeChat ≥ 3.1)_ |
String to evaluate as condition. |
`+${eval_cond:${window.win_width} > 100}+` |
`+1+`
| `+${esc:xxx}+` + | `+${esc:xxx}+` +
`+${\xxx}+` + `+${\xxx}+` +
_(WeeChat ≥ 1.0)_ | _(WeeChat ≥ 1.0)_ |
@@ -12225,14 +12246,14 @@ button has been released). +
Extra info for bar item "buffer_nicklist": Extra info for bar item "buffer_nicklist":
[width="100%",cols="1,1,5",options="header"] [width="100%",cols="^1,^1,5",options="header"]
|=== |===
| Key | Plugin ^(1)^ | Description | Plugin ^(1)^ | Key | Description
| nick | core | Nick name. | irc | irc_nick | Pointer to IRC nick _(WeeChat ≥ 3.0)_.
| prefix | core | Prefix for nick. | irc | irc_host | Host for nick (if known).
| group | core | Group name. | weechat | nick | Nick name.
| irc_nick | irc | Pointer to IRC nick _(WeeChat ≥ 3.0)_. | weechat | prefix | Prefix for nick.
| irc_host | irc | Host for nick (if known). | weechat | group | Group name.
|=== |===
[NOTE] [NOTE]
+1 -1
View File
@@ -965,7 +965,7 @@ weechat.buffer_set(buffer, "localvar_del_myvar", "")
To see local variables of a buffer, do this command in WeeChat: To see local variables of a buffer, do this command in WeeChat:
---- ----
/buffer localvar /buffer listvar
---- ----
[[hooks]] [[hooks]]
+151 -6
View File
@@ -390,6 +390,9 @@ If you're compiling with CMake:
$ cmake .. -DCMAKE_BUILD_TYPE=Debug $ cmake .. -DCMAKE_BUILD_TYPE=Debug
---- ----
[[build_debug_address_sanitizer]]
==== Build with debug options and address sanitizer
You can additionally enable the address sanitizer, which causes WeeChat to You can additionally enable the address sanitizer, which causes WeeChat to
crash immediately in case of problem: crash immediately in case of problem:
@@ -401,7 +404,13 @@ $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_C
You should enable address sanitizer only if you're trying to cause a crash, You should enable address sanitizer only if you're trying to cause a crash,
this is not recommended in production. this is not recommended in production.
If you installed a binary package, then install package _weechat-dbg_. Then once compiled and installed, you must run WeeChat like this:
----
$ ASAN_OPTIONS="detect_odr_violation=0 log_path=asan.log" weechat
----
In case of crash, the backtrace is in file `asan.log`.
[[core_files]] [[core_files]]
==== Core files ==== Core files
@@ -540,7 +549,8 @@ Some environment variables are used by WeeChat if they are defined:
=== Files and directories === Files and directories
WeeChat writes configuration files and other data in directory `~/.weechat` WeeChat writes configuration files and other data in directory `~/.weechat`
by default. by default. +
These files are created with default values the first time you run WeeChat.
[[weechat_directories]] [[weechat_directories]]
==== WeeChat directories ==== WeeChat directories
@@ -598,7 +608,7 @@ The files in the WeeChat home directory are:
| perl.conf | Configuration file for _perl_ plugin | No. | perl.conf | Configuration file for _perl_ plugin | No.
| php.conf | Configuration file for _php_ plugin | No. | php.conf | Configuration file for _php_ plugin | No.
| python.conf | Configuration file for _python_ plugin | No. | python.conf | Configuration file for _python_ plugin | No.
| relay.conf | Configuration file for _relay_ plugin | No. | relay.conf | Configuration file for _relay_ plugin | *Yes*: it can contain relay password and TOTP secret (if not stored in `sec.conf`), allowed IP addresses/websocket origins and opened ports.
| ruby.conf | Configuration file for _ruby_ plugin | No. | ruby.conf | Configuration file for _ruby_ plugin | No.
| script.conf | Configuration file for _script_ plugin | No. | script.conf | Configuration file for _script_ plugin | No.
| tcl.conf | Configuration file for _tcl_ plugin | No. | tcl.conf | Configuration file for _tcl_ plugin | No.
@@ -1076,8 +1086,8 @@ Example of vertical + horizontal splits:
▲ window #1 (buffer #3) ▲ window #2 (buffer #4) ▲ window #1 (buffer #3) ▲ window #2 (buffer #4)
.... ....
[[buffers_lines]] [[buffers]]
=== Buffers lines === Buffers
[[lines_format]] [[lines_format]]
==== Format of lines ==== Format of lines
@@ -1144,6 +1154,141 @@ Tags commonly used (non-exhaustive list):
if a max hotlist level is used for a nick, the notify level can be lower than if a max hotlist level is used for a nick, the notify level can be lower than
the value in the tag. the value in the tag.
[[local_variables]]
==== Local variables
Local variables can be defined in all buffers.
A local variable has:
* a name (string)
* a value (string, can be empty).
Local variables can be set by WeeChat, plugins, scripts, or manually on the
command line in the buffer.
For example to add the local variable "completion_default_template":
----
/buffer setvar completion_default_template %(my_completion)
----
To list local variables in the current buffer:
----
/buffer listvar
----
To remove the local variable "completion_default_template":
----
/buffer delvar completion_default_template
----
By default WeeChat and its default plugins interpret these variables:
[width="100%",cols="^2m,2,5",options="header"]
|===
| Name | Value | Description
| away |
any string |
Away message on the server, set by irc plugin.
| channel |
any string |
Channel name, set by irc/xfer plugins and debug buffer of relay/trigger plugins.
| charset_modifier |
any string |
Charset modifier for the server buffer, set by irc plugin.
| completion_default_template |
any string |
Default completion template for the buffer, overriding the option
`weechat.completion.default_template`.
| filter |
any string |
Filter defined on some buffers like `/fset`, `/server raw` (irc) and `/script`.
| host |
any string |
Self host (if known), set by irc plugin.
| lag |
any string |
Lag on the server, set by irc plugin.
| name |
any string |
Buffer name (be careful, this is not the full name and this name is not
enough to identify or search a buffer).
| nick |
any string |
Self nick, set by irc and xfer plugins.
| no_log |
`1` (or any non-empty string) |
If set, the logger plugin does not log anything for the buffer.
| plugin |
any string |
Name of plugin which created the buffer (`core` for WeeChat buffers).
| script_close_cb |
any string |
Close callback defined by a script for a buffer.
| script_close_cb_data |
any string |
Data for close callback defined by a script for a buffer.
| script_input_cb |
any string |
Input callback defined by a script for a buffer.
| script_input_cb_data |
any string |
Data for input callback defined by a script for a buffer.
| script_name |
any string |
Name of the script which created the buffer.
| server |
any string |
Server name, set by irc plugin and debug buffer of relay/trigger plugins.
| spell_suggest |
any string |
Misspelled word and suggestions (format: "misspelled:suggestions"), set by
spell plugin.
| trigger_filter |
any string |
Trigger filter, set by trigger plugin.
| type |
any string, for example:
`channel`,
`debug`,
`exec`,
`option`,
`private`,
`relay`,
`script`,
`server`,
`user`,
`xfer` |
Type of buffer, set by WeeChat and many plugins.
|===
[NOTE]
External plugins and scripts can define and use other local variables.
[[bars]] [[bars]]
=== Bars === Bars
@@ -3078,7 +3223,7 @@ It is possible to define a filename mask for each buffer, and use local buffer
variables to build filename. To see available local variables for current buffer: variables to build filename. To see available local variables for current buffer:
---- ----
/buffer localvar /buffer listvar
---- ----
Masks will be matched on options in descending order of specificity on Masks will be matched on options in descending order of specificity on
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2012-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2012-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2012-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2012-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
+16 -14
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
@@ -32,19 +32,21 @@ if(ENABLE_MAN)
add_custom_target(doc-man-weechat-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) add_custom_target(doc-man-weechat-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/fr/man1) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/fr/man1)
# man page: weechat-headless if(ENABLE_HEADLESS)
add_custom_command( # man page: weechat-headless
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 add_custom_command(
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.fr.adoc OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
DEPENDS COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.fr.adoc
${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.fr.adoc DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.fr.adoc ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.fr.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.fr.adoc ${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.fr.adoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/includes/man.fr.adoc
COMMENT "Building weechat-headless.1 (fr)" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
) COMMENT "Building weechat-headless.1 (fr)"
add_custom_target(doc-man-weechat-headless-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1) )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/fr/man1) add_custom_target(doc-man-weechat-headless-fr ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/fr/man1)
endif()
endif() endif()
if(ENABLE_DOC) if(ENABLE_DOC)
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net> # Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
@@ -120,6 +120,10 @@
| weechat | bars_options | options pour les barres | weechat | bars_options | options pour les barres
| weechat | buffer_local_variable_value | valeur d'une variable locale du tampon
| weechat | buffer_local_variables | variables locales du tampon
| weechat | buffer_properties_get | propriétés qui peuvent être lues sur un tampon | weechat | buffer_properties_get | propriétés qui peuvent être lues sur un tampon
| weechat | buffer_properties_set | propriétés qui peuvent être changées sur un tampon | weechat | buffer_properties_set | propriétés qui peuvent être changées sur un tampon
+43 -23
View File
@@ -219,6 +219,7 @@ Exemples :
---- ----
/dehalfop <pseudo> [<pseudo>...] /dehalfop <pseudo> [<pseudo>...]
* -yes
pseudo : pseudo ou masque (le caractère joker "*" est autorisé) pseudo : pseudo ou masque (le caractère joker "*" est autorisé)
* : retirer le statut de demi-opérateur de tout le monde sur le canal excepté vous-même * : retirer le statut de demi-opérateur de tout le monde sur le canal excepté vous-même
@@ -932,6 +933,7 @@ pseudo : pseudo
---- ----
/voice <pseudo> [<pseudo>...] /voice <pseudo> [<pseudo>...]
* -yes
pseudo : pseudo ou masque (le caractère joker "*" est autorisé) pseudo : pseudo ou masque (le caractère joker "*" est autorisé)
* : donner la voix à tout le monde sur le canal * : donner la voix à tout le monde sur le canal
@@ -1020,7 +1022,7 @@ Note : dans la commande, les variables spéciales sont remplacées :
$n-m : paramètres de 'n' à 'm' $n-m : paramètres de 'n' à 'm'
$* : tous les paramètres $* : tous les paramètres
$~ : le dernier paramètre $~ : le dernier paramètre
$var : où "var" est une variable locale du tampon (voir /buffer localvar) $var : où "var" est une variable locale du tampon (voir /buffer listvar)
exemples : $nick, $channel, $server, $plugin, $name exemples : $nick, $channel, $server, $plugin, $name
Exemples : Exemples :
@@ -1113,7 +1115,9 @@ Exemples :
renumber <nombre1> [<nombre2> [<départ>]] renumber <nombre1> [<nombre2> [<départ>]]
close [<n1>[-<n2>]|<nom>...] close [<n1>[-<n2>]|<nom>...]
notify [<niveau>] notify [<niveau>]
localvar [<nombre>|<nom>] listvar [<nombre>|<nom>]
setvar <nom> [<valeur>]
delvar <nom>
set <propriété> [<valeur>] set <propriété> [<valeur>]
get <propriété> get <propriété>
<nombre>|<nom> <nombre>|<nom>
@@ -1137,7 +1141,9 @@ renumber : renuméroter des tampons (fonctionne seulement si l'option weechat.l
message : pour les messages d'utilisateurs + highlights message : pour les messages d'utilisateurs + highlights
all : pour tous les messages all : pour tous les messages
reset : réinitialise à valeur par défaut (all) reset : réinitialise à valeur par défaut (all)
localvar : afficher la liste des variables locales pour le tampon listvar : afficher la liste des variables locales d'un tampon
setvar : modifier une variable locale du tampon courant
delvar : supprimer une variable locale du tampon courant
set : modifier une propriété du tampon courant set : modifier une propriété du tampon courant
get : afficher une propriété du tampon courant get : afficher une propriété du tampon courant
nombre : sauter au tampon qui a ce numéro, préfixe possible : nombre : sauter au tampon qui a ce numéro, préfixe possible :
@@ -1295,12 +1301,12 @@ infolists : afficher des infos sur les infolists
* `+eval+`: évaluer une expression * `+eval+`: évaluer une expression
---- ----
/eval [-n|-s] [-d] <expression> /eval [-n|-s] [-d [-d]] <expression>
[-n] [-d] -c <expression1> <opérateur> <expression2> [-n] [-d] -c <expression1> <opérateur> <expression2>
-n : afficher le résultat sans envoyer au tampon (mode debug) -n : afficher le résultat sans envoyer au tampon (mode debug)
-s : découper l'expression avant de l'évaluer (plusieurs commandes peuvent être séparées par des points-virgules) -s : découper l'expression avant de l'évaluer (plusieurs commandes peuvent être séparées par des points-virgules)
-d : afficher la sortie de debug après l'évaluation -d : afficher la sortie de debug après l'évaluation (avec deux -d : mode debug plus verbeux)
-c : évaluer comme une condition : utiliser les opérateurs et les parenthèses, retourner une valeur booléenne ("0" ou "1") -c : évaluer comme une condition : utiliser les opérateurs et les parenthèses, retourner une valeur booléenne ("0" ou "1")
expression : expression à évaluer, les variables avec le format ${variable} sont remplacées (voir ci-dessous) ; plusieurs commandes peuvent être séparées par des points-virgules expression : expression à évaluer, les variables avec le format ${variable} sont remplacées (voir ci-dessous) ; plusieurs commandes peuvent être séparées par des points-virgules
opérateur : un opérateur logique ou de comparaison : opérateur : un opérateur logique ou de comparaison :
@@ -1336,24 +1342,25 @@ Pour forcer une comparaison de chaînes, vous pouvez ajouter des guillemets auto
Des variables sont remplacées dans l'expression, en utilisant le format ${variable}, la variable pouvant être, par ordre de priorité : Des variables sont remplacées dans l'expression, en utilisant le format ${variable}, la variable pouvant être, par ordre de priorité :
1. une sous-chaîne évaluée (format : "eval:xxx") 1. une sous-chaîne évaluée (format : "eval:xxx")
2. une chaîne avec les caractères échappés (format : "esc:xxx" ou "\xxx") 2. une condition évaluée (format : "eval_cond:xxx")
3. une chaîne avec des caractères à cacher (format : "hide:caractère,chaîne") 3. une chaîne avec les caractères échappés (format : "esc:xxx" ou "\xxx")
4. une chaîne avec un maximum de caractères (format : "cut:max,suffixe,chaîne" ou "cut:+max,suffixe,chaîne") 4. une chaîne avec des caractères à cacher (format : "hide:caractère,chaîne")
5. une chaîne avec un maximum de caractères (format : "cut:max,suffixe,chaîne" ou "cut:+max,suffixe,chaîne")
ou un maximum de caractères affichés à l'écran (format : "cutscr:max,suffixe,chaîne" ou "cutscr:+max,suffixe,chaîne") ou un maximum de caractères affichés à l'écran (format : "cutscr:max,suffixe,chaîne" ou "cutscr:+max,suffixe,chaîne")
5. une chaîne inversée (format : "rev:xxx" ou "revscr:xxx") 6. une chaîne inversée (format : "rev:xxx" ou "revscr:xxx")
6. une chaîne répétée (format : "repeat:nombre,chaîne") 7. une chaîne répétée (format : "repeat:nombre,chaîne")
7. longueur d'une chaîne (format : "length:xxx" ou "lengthscr:xxx") 8. longueur d'une chaîne (format : "length:xxx" ou "lengthscr:xxx")
8. une couleur (format : "color:xxx", voir la "Référence API extension", fonction "color") 9. une couleur (format : "color:xxx", voir la "Référence API extension", fonction "color")
9. un modificateur (format : "modifier:nom,données,chaîne") 10. un modificateur (format : "modifier:nom,données,chaîne")
10. une info (format : "info:nom,paramètres", les paramètres sont optionnels) 11. une info (format : "info:nom,paramètres", les paramètres sont optionnels)
11. une chaîne encodée/decodée en base 16, 32 ou 64 (format : "base_encode:base,xxx" ou "base_decode:base,xxx") 12. une chaîne encodée/decodée en base 16, 32 ou 64 (format : "base_encode:base,xxx" ou "base_decode:base,xxx")
12. la date/heure courante (format : "date" ou "date:format") 13. la date/heure courante (format : "date" ou "date:format")
13. une variable d'environnement (format : "env:XXX") 14. une variable d'environnement (format : "env:XXX")
14. un opérateur ternaire (format : "if:condition?valeur_si_vrai:valeur_si_faux") 15. un opérateur ternaire (format : "if:condition?valeur_si_vrai:valeur_si_faux")
15. le résultat d'une expression avec parenthèses et les opérateurs + - * / // % ** (format: "calc:xxx") 16. le résultat d'une expression avec parenthèses et les opérateurs + - * / // % ** (format: "calc:xxx")
16. une option (format : "fichier.section.option") 17. une option (format : "fichier.section.option")
17. une variable locale du tampon 18. une variable locale du tampon
18. un hdata/variable (la valeur est automatiquement convertie en chaîne), par défaut "window" et "buffer" pointent vers la fenêtre et le tampon courants. 19. un hdata/variable (la valeur est automatiquement convertie en chaîne), par défaut "window" et "buffer" pointent vers la fenêtre et le tampon courants.
Le format du hdata peut être le suivant : Le format du hdata peut être le suivant :
hdata.var1.var2... : démarrer avec un hdata (le pointeur doit être connu), et demander les variables l'une après l'autre (d'autres hdata peuvent être suivis) hdata.var1.var2... : démarrer avec un hdata (le pointeur doit être connu), et demander les variables l'une après l'autre (d'autres hdata peuvent être suivis)
hdata[liste].var1.var2... : démarrer avec un hdata en utilisant une liste, par exemple : hdata[liste].var1.var2... : démarrer avec un hdata en utilisant une liste, par exemple :
@@ -1364,6 +1371,7 @@ Le format du hdata peut être le suivant :
Pour le nom du hdata et des variables, voir la "Référence API extension", fonction "weechat_hdata_get". Pour le nom du hdata et des variables, voir la "Référence API extension", fonction "weechat_hdata_get".
Exemples (chaînes simples) : Exemples (chaînes simples) :
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3 /eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user /eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3 /eval -n ${weechat.look.scroll_amount} ==> 3
@@ -1406,6 +1414,7 @@ Exemples (conditions) :
enable|disable|toggle [<nom>|@] enable|disable|toggle [<nom>|@]
add|addreplace <nom> <tampon>[,<tampon>...] <étiquettes> <regex> add|addreplace <nom> <tampon>[,<tampon>...] <étiquettes> <regex>
rename <nom> <nouveau_nom> rename <nom> <nouveau_nom>
recreate <nom>
del <nom>|-all del <nom>|-all
list : lister tous les filtres list : lister tous les filtres
@@ -1416,6 +1425,7 @@ Exemples (conditions) :
add : ajouter un filtre add : ajouter un filtre
addreplace : ajouter ou remplacer un filtre existant addreplace : ajouter ou remplacer un filtre existant
rename : renommer un filtre rename : renommer un filtre
recreate : définir la ligne de commande utilisée pour modifier le filtre
del : supprimer un filtre del : supprimer un filtre
-all : supprimer tous les filtres -all : supprimer tous les filtres
tampon : liste des tampons, séparés par des virgules, où le filtre est actif : tampon : liste des tampons, séparés par des virgules, où le filtre est actif :
@@ -2819,6 +2829,16 @@ Sur le tampon des scripts, les statuts pour chaque script sont :
| installé | installé
script populaire script populaire
Dans la sortie de /script list, les statuts pour chaque script sont :
* ? i a H N
| | | | | |
| | | | | obsolète (nouvelle version disponible)
| | | | figé
| | | chargé auto
| | installé
| script inconnu (ne peut pas être téléchargé/mis à jour)
script populaire
Les touches sur le tampon des scripts : Les touches sur le tampon des scripts :
alt+i installer le script alt+i installer le script
alt+r supprimer le script alt+r supprimer le script
@@ -2948,7 +2968,7 @@ listdefault : lister les triggers par défaut
modifier : nom(s) de modificateur (obligatoire) modifier : nom(s) de modificateur (obligatoire)
line : type de tampon ("formatted", "free" ou "*"), liste de masques de tampons, étiquettes line : type de tampon ("formatted", "free" ou "*"), liste de masques de tampons, étiquettes
print : tampon, étiquettes, message, suppression des couleurs (0/1) print : tampon, étiquettes, message, suppression des couleurs (0/1)
command : commande (obligatoire), description, paramètres, description des paramètres, complétion (tous les paramètres sauf la commande sont évalués, voir /help eval) command : commande (obligatoire), description, paramètres, description des paramètres, complétion (tous les paramètres sauf la commande sont évalués, "${tg_trigger_name}" est remplacé par le nom du trigger, voir /help eval)
command_run : commande(s) (obligatoire) command_run : commande(s) (obligatoire)
timer : intervalle (obligatoire), alignement sur la seconde, nombre max d'appels timer : intervalle (obligatoire), alignement sur la seconde, nombre max d'appels
config : nom(s) de l'option (obligatoire) config : nom(s) de l'option (obligatoire)
@@ -2616,6 +2616,12 @@
** valeurs: 1 .. 3600 ** valeurs: 1 .. 3600
** valeur par défaut: `+60+` ** valeur par défaut: `+60+`
* [[option_irc.server_default.default_chantypes]] *irc.server_default.default_chantypes*
** description: pass:none[préfixes de types de canaux à utiliser si le serveur ne les envoie pas dans le message 005 (par défaut "#&")]
** type: chaîne
** valeurs: toute chaîne
** valeur par défaut: `+"#&"+`
* [[option_irc.server_default.ipv6]] *irc.server_default.ipv6* * [[option_irc.server_default.ipv6]] *irc.server_default.ipv6*
** description: pass:none[utiliser le protocole IPv6 pour la communication avec le serveur (essayer IPv6 puis repli sur l'IPv4) ; si désactivé, seulement l'IPv4 est utilisé] ** description: pass:none[utiliser le protocole IPv6 pour la communication avec le serveur (essayer IPv6 puis repli sur l'IPv4) ; si désactivé, seulement l'IPv4 est utilisé]
** type: booléen ** type: booléen
+1 -1
View File
@@ -99,7 +99,7 @@ $HOME/.weechat/weechat.log::
WeeChat est écrit par Sébastien Helleu et des contributeurs (la liste complète WeeChat est écrit par Sébastien Helleu et des contributeurs (la liste complète
est dans le fichier AUTHORS.adoc). est dans le fichier AUTHORS.adoc).
Copyright (C) 2003-2020 {author} Copyright (C) 2003-2021 {author}
WeeChat est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier WeeChat est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier
sous les termes de la GNU General Public License telle que publiée par la sous les termes de la GNU General Public License telle que publiée par la
+1 -1
View File
@@ -25,7 +25,7 @@ WeeChat (Wee Enhanced Environment for Chat) est un client de discussion libre,
rapide et léger, conçu pour différents systèmes d'exploitation. rapide et léger, conçu pour différents systèmes d'exploitation.
Il est hautement paramétrable et extensible avec des scripts. Il est hautement paramétrable et extensible avec des scripts.
La commande *weechat-headless* lance WeeChat en mode « headless » (sans interface). La commande *weechat-headless* lance WeeChat en mode « headless » (sans interface).
Elle peut être utilisée pour des tests ou lancer WeeChat en daemon Elle peut être utilisée pour des tests ou lancer WeeChat en daemon
avec l'option "--daemon". avec l'option "--daemon".
+3 -3
View File
@@ -68,7 +68,7 @@ Les répertoires principaux de WeeChat sont :
|       hook/ | Fonctions sur les "hooks". |       hook/ | Fonctions sur les "hooks".
|    gui/ | Fonctions pour les tampons, fenêtres, ... (utilisées par toutes les interfaces). |    gui/ | Fonctions pour les tampons, fenêtres, ... (utilisées par toutes les interfaces).
|       curses/ | Interface Curses. |       curses/ | Interface Curses.
|          headless/ | Mode sans interface (« headless »). |          headless/ | Mode sans interface (« headless »).
|          normal/ | Interface Curses. |          normal/ | Interface Curses.
|    plugins/ | API extension/script. |    plugins/ | API extension/script.
|       alias/ | Extension Alias. |       alias/ | Extension Alias.
@@ -199,7 +199,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|       gui-curses-mouse.c | Souris. |       gui-curses-mouse.c | Souris.
|       gui-curses-term.c | Fonctions pour le terminal. |       gui-curses-term.c | Fonctions pour le terminal.
|       gui-curses-window.c | Fenêtres. |       gui-curses-window.c | Fenêtres.
|       headless/ | Mode sans interface (« headless »). |       headless/ | Mode sans interface (« headless »).
|          main.c | Point d'entrée pour le mode sans interface. |          main.c | Point d'entrée pour le mode sans interface.
|          ncurses-fake.c | Fausse bibliothèque ncurses. |          ncurses-fake.c | Fausse bibliothèque ncurses.
|       normal/ | Interface Curses. |       normal/ | Interface Curses.
@@ -496,7 +496,7 @@ Exemple en C :
/* /*
* weechat.c - core functions for WeeChat * weechat.c - core functions for WeeChat
* *
* Copyright (C) 2020 Your Name <your@email.com> * Copyright (C) 2021 Your Name <your@email.com>
* *
* This file is part of WeeChat, the extensible chat client. * This file is part of WeeChat, the extensible chat client.
* *
+33 -5
View File
@@ -237,6 +237,34 @@ Par exemple pour utiliser kbd:[F1], kbd:[F2], kbd:[Alt+F1] et kbd:[Alt+F2] :
Les touches "meta-OP" et "meta-OQ" peuvent être différentes dans votre terminal. Les touches "meta-OP" et "meta-OQ" peuvent être différentes dans votre terminal.
Pour trouver le code de la touche appuyez sur kbd:[Alt+k] puis la touche. Pour trouver le code de la touche appuyez sur kbd:[Alt+k] puis la touche.
[[customize_buflist]]
=== Comment puis-je configurer la liste des tampons, comme la couleur du tampon actif ?
Vous pouvez afficher toutes les options buflist avec la commande :
----
/fset buflist
----
Le fond du tampon actif est bleu par défaut, vous pouvez le changer comme ceci,
par exemple en rouge (`red`) :
----
/set buflist.format.buffer_current "${color:,red}${format_buffer}"
----
[NOTE]
Il y a une virgule avant le nom de la couleur "red" parce qu'elle est utilisée
comme couleur de fond et non de texte. +
Vous pouvez aussi utiliser une couleur numérique à la place de `red`, comme
`237` pour du gris foncé.
L'extension buflist met à disposition beaucoup d'options que vous pouvez changer,
merci de lire l'aide sur chaque option.
Il y a aussi une page wiki avec des examples avancés de configuration buflist :
https://github.com/weechat/weechat/wiki/buflist
[[customize_prefix]] [[customize_prefix]]
=== Comment puis-je réduire la longueur des pseudos ou supprimer l'alignement des pseudos dans la zone de discussion ? === Comment puis-je réduire la longueur des pseudos ou supprimer l'alignement des pseudos dans la zone de discussion ?
@@ -1093,7 +1121,7 @@ $ curl -O https://weechat.org/files/plugins.xml.gz
---- ----
[[spell_dictionaries]] [[spell_dictionaries]]
=== J'ai installé des dictionnaires aspell sur mon système, comment les utiliser sans redémarrer WeeChat ? === J'ai installé des dictionnaires aspell sur mon système, comment les utiliser sans redémarrer WeeChat ?
Vous devez recharger l'extension spell : Vous devez recharger l'extension spell :
@@ -1209,15 +1237,15 @@ Par exemple :
---- ----
[[sharing_config_files]] [[sharing_config_files]]
=== Je souhaite partager ma configuration de WeeChat, quels fichiers dois-je partager et que dois-je garder privé ? === Je souhaite partager ma configuration de WeeChat, quels fichiers dois-je partager et que dois-je garder privé ?
Vous pouvez partager les fichiers _~/.weechat/*.conf_ sauf le fichier Vous pouvez partager les fichiers _~/.weechat/*.conf_ sauf le fichier
_sec.conf_ qui contient vos mots de passes chiffrés avec votre phrase _sec.conf_ qui contient vos mots de passes chiffrés avec votre phrase
de chiffrement. de chiffrement.
Quelques autres fichiers comme _irc.conf_ peuvent contenir des informations Quelques autres fichiers peuvent contenir des informations sensibles comme
sensibles comme les mots de passes des serveurs/canaux (s'ils ne sont pas des mots de passes (s'ils ne sont pas stockés dans _sec.conf_ avec la commande
stockés dans _sec.conf_ avec la commande `/secure`). `/secure`).
Voir le link:weechat_user.fr.html#files_and_directories[Guide utilisateur / Fichiers et répertoires] Voir le link:weechat_user.fr.html#files_and_directories[Guide utilisateur / Fichiers et répertoires]
pour plus d'informations sur les fichiers de configuration. pour plus d'informations sur les fichiers de configuration.
+30 -9
View File
@@ -1355,14 +1355,25 @@ Valeur de retour :
* même code retour que la fonction `regcomp` (0 si ok, autre valeur pour une * même code retour que la fonction `regcomp` (0 si ok, autre valeur pour une
erreur, voir `man regcomp`) erreur, voir `man regcomp`)
[NOTE]
L'expression régulière _preg_ doit être nettoyée par un appel à "regfree" après
utilisation, si la fonction a retourné 0 (OK).
Exemple en C : Exemple en C :
[source,C] [source,C]
---- ----
regex_t my_regex; regex_t my_regex;
if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) != 0) if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) == 0)
{
/* OK */
/* ... */
regfree (&my_regex);
}
else
{ {
/* erreur */ /* erreur */
/* ... */
} }
---- ----
@@ -2235,7 +2246,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
==== string_eval_expression ==== string_eval_expression
_WeeChat ≥ 0.4.0, mis à jour dans la 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, _WeeChat ≥ 0.4.0, mis à jour dans la 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8,
2.0, 2.2, 2.3, 2.7 et 2.9._ 2.0, 2.2, 2.3, 2.7, 2.9 et 3.1._
Évaluer l'expression et retourner le résultat sous forme de chaîne. É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
@@ -2288,6 +2299,10 @@ Paramètres :
remplacer du texte dans _expr_ (_regex_replace_ est évalué sur chaque remplacer du texte dans _expr_ (_regex_replace_ est évalué sur chaque
correspondance de _regex_ sur _expr_, jusqu'à ce que plus aucune correspondance de _regex_ sur _expr_, jusqu'à ce que plus aucune
correspondance ne soit trouvée) correspondance ne soit trouvée)
** _debug_ : niveau de debug (chaîne avec un nombre entier ≥ 1), si activé,
une clé "debug_output" est ajoutée dans la table de hachage _options_ :
*** _1_ : activer le debug
*** _2_ : activer le debug plus verbeux
Valeur de retour : Valeur de retour :
@@ -2564,6 +2579,12 @@ première étendue à la dernière) :
`+19:02:45+` (avec des couleurs s'il y a des codes couleur dans l'option `+19:02:45+` (avec des couleurs s'il y a des codes couleur dans l'option
weechat.look.buffer_time_format) weechat.look.buffer_time_format)
| `+${eval_cond:xxx}+` +
_(WeeChat ≥ 3.1)_ |
Chaîne à évaluer comme condition. |
`+${eval_cond:${window.win_width} > 100}+` |
`+1+`
| `+${esc:xxx}+` + | `+${esc:xxx}+` +
`+${\xxx}+` + `+${\xxx}+` +
_(WeeChat ≥ 1.0)_ | _(WeeChat ≥ 1.0)_ |
@@ -12490,14 +12511,14 @@ relâché). +
Informations additionnelles pour l'objet de barre "buffer_nicklist" : Informations additionnelles pour l'objet de barre "buffer_nicklist" :
[width="100%",cols="1,1,5",options="header"] [width="100%",cols="^1,^1,5",options="header"]
|=== |===
| Clé | Extension ^(1)^ | Description | Extension ^(1)^ | Clé | Description
| nick | core | Pseudonyme. | irc | irc_nick | Pointeur vers le pseudo IRC _(WeeChat ≥ 3.0)_.
| prefix | core | Préfixe du pseudonyme. | irc | irc_host | Nom d'hôte pour le pseudonyme (si connu).
| group | core | Nom du groupe. | weechat | nick | Pseudonyme.
| irc_nick | irc | Pointeur vers le pseudo IRC _(WeeChat ≥ 3.0)_. | weechat | prefix | Préfixe du pseudonyme.
| irc_host | irc | Nom d'hôte pour le pseudonyme (si connu). | weechat | group | Nom du groupe.
|=== |===
[NOTE] [NOTE]
+1 -1
View File
@@ -992,7 +992,7 @@ Pour voir les variables locales d'un tampon, exécutez cette commande dans
WeeChat : WeeChat :
---- ----
/buffer localvar /buffer listvar
---- ----
[[hooks]] [[hooks]]
+162 -9
View File
@@ -401,6 +401,9 @@ Si vous compilez avec CMake :
$ cmake .. -DCMAKE_BUILD_TYPE=Debug $ cmake .. -DCMAKE_BUILD_TYPE=Debug
---- ----
[[build_debug_address_sanitizer]]
==== Construction avec options de debug et la vérification des adresses
Vous pouvez aussi activer la vérification des adresses (« address sanitizer »), Vous pouvez aussi activer la vérification des adresses (« address sanitizer »),
ce qui provoquera immédiatement un plantage de WeeChat en cas de problème : ce qui provoquera immédiatement un plantage de WeeChat en cas de problème :
@@ -412,8 +415,13 @@ $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_C
Vous ne devriez activer la vérification des adresses que si vous essayez de Vous ne devriez activer la vérification des adresses que si vous essayez de
provoquer un plantage, ceci n'est pas recommandé en production. provoquer un plantage, ceci n'est pas recommandé en production.
Si vous avez installé un paquet binaire, alors installez le paquet Une fois compilé et installé, vous devez lancer WeeChat comme ceci :
_weechat-dbg_.
----
$ ASAN_OPTIONS="detect_odr_violation=0 log_path=asan.log" weechat
----
En cas de plantage, la trace est dans le fichier `asan.log`.
[[core_files]] [[core_files]]
==== Fichiers core ==== Fichiers core
@@ -555,7 +563,9 @@ Des variables d'environnement sont utilisées par WeeChat si elles sont définie
=== Fichiers et répertoires === Fichiers et répertoires
WeeChat écrit ses fichiers de configuration et les autres données dans WeeChat écrit ses fichiers de configuration et les autres données dans
`~/.weechat` par défaut. `~/.weechat` par défaut. +
Ces fichiers sont créés avec les valeurs par défaut la première fois que vous
lancez WeeChat.
[[weechat_directories]] [[weechat_directories]]
==== Répertoires de WeeChat ==== Répertoires de WeeChat
@@ -614,7 +624,7 @@ Les fichiers dans le répertoire principal de WeeChat sont :
| perl.conf | Fichier de configuration de l'extension _perl_ | Non. | perl.conf | Fichier de configuration de l'extension _perl_ | Non.
| php.conf | Fichier de configuration de l'extension _php_ | Non. | php.conf | Fichier de configuration de l'extension _php_ | Non.
| python.conf | Fichier de configuration de l'extension _python_ | Non. | python.conf | Fichier de configuration de l'extension _python_ | Non.
| relay.conf | Fichier de configuration de l'extension _relay_ | Non. | relay.conf | Fichier de configuration de l'extension _relay_ | *Oui* : il peut contenir le mot de passe relay et le secret TOTP (si non stockés dans `sec.conf`), les adresses IP/origines websocket autorisées et les ports ouverts.
| ruby.conf | Fichier de configuration de l'extension _ruby_ | Non. | ruby.conf | Fichier de configuration de l'extension _ruby_ | Non.
| script.conf | Fichier de configuration de l'extension _script_ | Non. | script.conf | Fichier de configuration de l'extension _script_ | Non.
| tcl.conf | Fichier de configuration de l'extension _tcl_ | Non. | tcl.conf | Fichier de configuration de l'extension _tcl_ | Non.
@@ -1104,8 +1114,8 @@ Exemple de découpage vertical + horizontal :
▲ fenêtre n°1 (tampon n°3) ▲ fenêtre n°2 (tampon n°4) ▲ fenêtre n°1 (tampon n°3) ▲ fenêtre n°2 (tampon n°4)
.... ....
[[buffers_lines]] [[buffers]]
=== Lignes des tampons === Tampons
[[lines_format]] [[lines_format]]
==== Format des lignes ==== Format des lignes
@@ -1174,6 +1184,149 @@ le niveau de notification réel peut être différent, par exemple si un niveau
maximum de hotlist est utilisé pour un pseudo, le niveau de notification peut maximum de hotlist est utilisé pour un pseudo, le niveau de notification peut
être inférieur à la valeur de l'étiquette. être inférieur à la valeur de l'étiquette.
[[local_variables]]
==== Variables locales
Des variables locales peuvent être définies dans les tampons.
Une variable locale a :
* un nom (chaîne)
* une valeur (chaîne, peut être vide).
Les variables locales peuvent être définies par WeeChat, les extensions, les
scripts, ou manuellement sur la ligne de commande, dans le tampon.
Par exemple pour ajouter la variable locale "completion_default_template" :
----
/buffer setvar completion_default_template %(my_completion)
----
Pour afficher les variables locales du tampon courant :
----
/buffer listvar
----
Pour supprimer la variable locale "completion_default_template" :
----
/buffer delvar completion_default_template
----
Par défaut WeeChat et ses extensions par défaut interprètent ces variables :
[width="100%",cols="^2m,2,5",options="header"]
|===
| Nom | Valeur | Description
| away |
toute chaîne |
Message d'absence sur le serveur, défini par l'extension irc.
| channel |
toute chaîne |
Nom du canal, défini par les extensions irc/xfer et le tampon de debug des
extensions relay/trigger.
| charset_modifier |
toute chaîne |
Modificateur de charset du tampon serveur, défini par l'extension irc.
| completion_default_template |
toute chaîne |
Modèle de complétion par défaut pour le tampon, qui remplace l'option
`weechat.completion.default_template`.
| filter |
toute chaîne |
Filtre défini sur certains tampons comme `/fset`, `/server raw` (irc) et
`/script`.
| host |
toute chaîne |
Nom d'hôte personnel (si connu), défini par l'extension irc.
| lag |
toute chaîne |
Lag sur le serveur, défini par l'extension irc.
| name |
toute chaîne |
Nom du tampon (attention, ce n'est pas le nom complet du tampon et ce nom
n'est pas suffisant pour identifier ou chercher un tampon).
| nick |
toute chaîne |
Pseudo personnel, défini par les extensions irc et xfer.
| no_log |
`1` (or any non-empty string) |
Si défini, l'extension logger n'écrira pas le "log" du tampon sur disque.
| plugin |
toute chaîne |
Nom de l'extension qui a créé le tampon (`core` pour les tampons WeeChat).
| script_close_cb |
toute chaîne |
Nom de la fonction de rappel pour la fermeture,
défini par un script pour le tampon.
| script_close_cb_data |
toute chaîne |
Données pour la fonction de rappel pour la fermeture,
définies par un script pour le tampon.
| script_input_cb |
toute chaîne |
Nom de la fonction de rappel d'entrée,
défini par un script pour le tampon.
| script_input_cb_data |
toute chaîne |
Données pour la fonction de rappel d'entrée,
définies par un script pour le tampon.
| script_name |
toute chaîne |
Nom du script qui a créé le tampon.
| server |
toute chaîne |
Nom du serveur, défini par l'extension irc et le tampon de debug des extensions
relay/trigger.
| spell_suggest |
toute chaîne |
Mot mal orthographié et ses suggestions (format : "mot:suggestions"), défini
par l'extension spell.
| trigger_filter |
toute chaîne |
Filtre trigger, défini par l'extension trigger.
| type |
toute chaîne, par exemple :
`channel`,
`debug`,
`exec`,
`option`,
`private`,
`relay`,
`script`,
`server`,
`user`,
`xfer` |
Type de tampon, défini par WeeChat et plusieurs extensions.
|===
[NOTE]
Les extensions et script externes peuvent définir et utiliser d'autres
variables locales.
[[bars]] [[bars]]
=== Barres === Barres
@@ -3178,7 +3331,7 @@ d'utiliser les variables locales du tampon pour construire le nom de fichier.
Pour voir les variables disponibles sur le tampon courant : Pour voir les variables disponibles sur le tampon courant :
---- ----
/buffer localvar /buffer listvar
---- ----
Les masques seront utilisés par ordre de priorité descendante sur Les masques seront utilisés par ordre de priorité descendante sur
@@ -3308,7 +3461,7 @@ Ce mot de passe sera utilisé pour les protocoles _irc_ et _weechat_.
[[relay_totp]] [[relay_totp]]
==== TOTP ==== TOTP
TOTP (« Time-based One-Time Password » : mot de passe à usage unique basé sur le TOTP (« Time-based One-Time Password » : mot de passe à usage unique basé sur le
temps) peut être utilisé comme second facteur d'authentification pour le protocole temps) peut être utilisé comme second facteur d'authentification pour le protocole
_weechat_, en plus du mot de passe. _weechat_, en plus du mot de passe.
@@ -3325,7 +3478,7 @@ par exemple :
https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2[Android], https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2[Android],
https://itunes.apple.com/fr/app/google-authenticator/id388497605[iOS] https://itunes.apple.com/fr/app/google-authenticator/id388497605[iOS]
Le « secret » TOTP doit être défini dans WeeChat et dans l'application utilisée Le « secret » TOTP doit être défini dans WeeChat et dans l'application utilisée
pour générer les mots de passe à usage unique. pour générer les mots de passe à usage unique.
Il doit être une chaîne encodée en base32, avec seulement des lettres et des Il doit être une chaîne encodée en base32, avec seulement des lettres et des
+16 -14
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
@@ -32,19 +32,21 @@ if(ENABLE_MAN)
add_custom_target(doc-man-weechat-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) add_custom_target(doc-man-weechat-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/it/man1) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/it/man1)
# man page: weechat-headless if(ENABLE_HEADLESS)
add_custom_command( # man page: weechat-headless
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 add_custom_command(
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.it.adoc OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
DEPENDS COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.it.adoc
${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.it.adoc DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.it.adoc ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.it.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.it.adoc ${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.it.adoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/includes/man.it.adoc
COMMENT "Building weechat-headless.1 (it)" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
) COMMENT "Building weechat-headless.1 (it)"
add_custom_target(doc-man-weechat-headless-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1) )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/it/man1) add_custom_target(doc-man-weechat-headless-it ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/it/man1)
endif()
endif() endif()
if(ENABLE_DOC) if(ENABLE_DOC)
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
@@ -120,6 +120,10 @@
| weechat | bars_options | opzioni per le barre | weechat | bars_options | opzioni per le barre
| weechat | buffer_local_variable_value | value of a buffer local variable
| weechat | buffer_local_variables | buffer local variables
| weechat | buffer_properties_get | proprietà che possono essere lette su un buffer | weechat | buffer_properties_get | proprietà che possono essere lette su un buffer
| weechat | buffer_properties_set | proprietà che possono essere impostate su un buffer | weechat | buffer_properties_set | proprietà che possono essere impostate su un buffer
+44 -24
View File
@@ -219,6 +219,7 @@ Examples:
---- ----
/dehalfop <nick> [<nick>...] /dehalfop <nick> [<nick>...]
* -yes
nick: nick or mask (wildcard "*" is allowed) nick: nick or mask (wildcard "*" is allowed)
*: remove channel half-operator status from everybody on channel except yourself *: remove channel half-operator status from everybody on channel except yourself
@@ -932,6 +933,7 @@ target: server name
---- ----
/voice <nick> [<nick>...] /voice <nick> [<nick>...]
* -yes
nick: nick or mask (wildcard "*" is allowed) nick: nick or mask (wildcard "*" is allowed)
*: give voice to everybody on channel *: give voice to everybody on channel
@@ -1020,7 +1022,7 @@ Note: in command, special variables are replaced:
$n-m: arguments from 'n' to 'm' $n-m: arguments from 'n' to 'm'
$*: all arguments $*: all arguments
$~: last argument $~: last argument
$var: where "var" is a local variable of buffer (see /buffer localvar) $var: where "var" is a local variable of buffer (see /buffer listvar)
examples: $nick, $channel, $server, $plugin, $name examples: $nick, $channel, $server, $plugin, $name
Examples: Examples:
@@ -1113,7 +1115,9 @@ Examples:
renumber [<number1> [<number2> [<start>]]] renumber [<number1> [<number2> [<start>]]]
close [<n1>[-<n2>]|<name>...] close [<n1>[-<n2>]|<name>...]
notify [<level>] notify [<level>]
localvar [<number>|<name>] listvar [<number>|<name>]
setvar <name> [<value>]
delvar <name>
set <property> [<value>] set <property> [<value>]
get <property> get <property>
<number>|-|+|<name> <number>|-|+|<name>
@@ -1137,8 +1141,10 @@ renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumb
message: for messages from users + highlights message: for messages from users + highlights
all: all messages all: all messages
reset: reset to default value (all) reset: reset to default value (all)
localvar: display local variables for the buffer listvar: display local variables in a buffer
set: set a property for current buffer setvar: set a local variable in the current buffer
delvar: delete a local variable from the current buffer
set: set a property in the current buffer
get: display a property of current buffer get: display a property of current buffer
number: jump to buffer by number, possible prefix: number: jump to buffer by number, possible prefix:
'+': relative jump, add number to current '+': relative jump, add number to current
@@ -1296,11 +1302,11 @@ infolists: display infos about infolists
---- ----
/eval [-n|-s] [-d] <expression> /eval [-n|-s] [-d] <expression>
[-n] [-d] -c <expression1> <operator> <expression2> [-n] [-d [-d]] -c <expression1> <operator> <expression2>
-n: display result without sending it to buffer (debug mode) -n: display result without sending it to buffer (debug mode)
-s: split expression before evaluating it (many commands can be separated by semicolons) -s: split expression before evaluating it (many commands can be separated by semicolons)
-d: display debug output after evaluation -d: display debug output after evaluation (with two -d: more verbose debug)
-c: evaluate as condition: use operators and parentheses, return a boolean value ("0" or "1") -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 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: operator: a logical or comparison operator:
@@ -1336,24 +1342,25 @@ To force a string comparison, you can add double quotes around each expression,
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority: 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") 1. an evaluated sub-string (format: "eval:xxx")
2. a string with escaped chars (format: "esc:xxx" or "\xxx") 2. an evaluated condition (format: "eval_cond:xxx")
3. a string with chars to hide (format: "hide:char,string") 3. a string with escaped chars (format: "esc:xxx" or "\xxx")
4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string") 4. a string with chars to hide (format: "hide:char,string")
5. 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") or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
5. a reversed string (format: "rev:xxx" or "revscr:xxx") 6. a reversed string (format: "rev:xxx" or "revscr:xxx")
6. a repeated string (format: "repeat:count,string") 7. a repeated string (format: "repeat:count,string")
7. length of a string (format: "length:xxx" or "lengthscr:xxx") 8. length of a string (format: "length:xxx" or "lengthscr:xxx")
8. a color (format: "color:xxx", see "Plugin API reference", function "color") 9. a color (format: "color:xxx", see "Plugin API reference", function "color")
9. a modifier (format: "modifier:name,data,string") 10. a modifier (format: "modifier:name,data,string")
10. an info (format: "info:name,arguments", arguments are optional) 11. an info (format: "info:name,arguments", arguments are optional)
11. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx") 12. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
12. current date/time (format: "date" or "date:format") 13. current date/time (format: "date" or "date:format")
13. an environment variable (format: "env:XXX") 14. an environment variable (format: "env:XXX")
14. a ternary operator (format: "if:condition?value_if_true:value_if_false") 15. a ternary operator (format: "if:condition?value_if_true:value_if_false")
15. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx") 16. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
16. an option (format: "file.section.option") 17. an option (format: "file.section.option")
17. a local variable in buffer 18. a local variable in buffer
18. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. 19. 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: 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.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: hdata[list].var1.var2...: start with a hdata using a list, for example:
@@ -1364,6 +1371,7 @@ Format for hdata can be one of following:
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get". For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
Examples (simple strings): Examples (simple strings):
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3 /eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user /eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3 /eval -n ${weechat.look.scroll_amount} ==> 3
@@ -1406,6 +1414,7 @@ Examples (conditions):
enable|disable|toggle [<name>|@] enable|disable|toggle [<name>|@]
add|addreplace <name> <buffer>[,<buffer>...] <tags> <regex> add|addreplace <name> <buffer>[,<buffer>...] <tags> <regex>
rename <name> <new_name> rename <name> <new_name>
recreate <name>
del <name>|-all del <name>|-all
list: list all filters list: list all filters
@@ -1416,6 +1425,7 @@ Examples (conditions):
add: add a filter add: add a filter
addreplace: add or replace an existing filter addreplace: add or replace an existing filter
rename: rename a filter rename: rename a filter
recreate: set input with the command used to edit the filter
del: delete a filter del: delete a filter
-all: delete all filters -all: delete all filters
buffer: comma separated list of buffers where filter is active: buffer: comma separated list of buffers where filter is active:
@@ -2819,6 +2829,16 @@ On script buffer, the possible status for each script are:
| installed | installed
popular script popular script
In output of /script list, the possible status for each script are:
* ? i a H N
| | | | | |
| | | | | obsolete (new version available)
| | | | held
| | | autoloaded
| | installed
| unknown script (can not be downloaded/updated)
popular script
Keys on script buffer: Keys on script buffer:
alt+i install script alt+i install script
alt+r remove script alt+r remove script
@@ -2948,7 +2968,7 @@ listdefault: list default triggers
modifier: name(s) of modifier (required) modifier: name(s) of modifier (required)
line: buffer type ("formatted", "free" or "*"), list of buffer masks, tags line: buffer type ("formatted", "free" or "*"), list of buffer masks, tags
print: buffer, tags, message, strip colors print: buffer, tags, message, strip colors
command: command (required), description, arguments, description of arguments, completion (all arguments except command are evaluated, see /help eval) command: command (required), description, arguments, description of arguments, completion (all arguments except command are evaluated, "${tg_trigger_name}" is replaced by the trigger name, see /help eval)
command_run: command(s) (required) command_run: command(s) (required)
timer: interval (required), align on second, max calls timer: interval (required), align on second, max calls
config: name(s) of option (required) config: name(s) of option (required)
@@ -2616,6 +2616,12 @@
** valori: 1 .. 3600 ** valori: 1 .. 3600
** valore predefinito: `+60+` ** valore predefinito: `+60+`
* [[option_irc.server_default.default_chantypes]] *irc.server_default.default_chantypes*
** descrizione: pass:none[channel type prefixes to use if the server does not send them in message 005 (default is "#&")]
** tipo: stringa
** valori: qualsiasi stringa
** valore predefinito: `+"#&"+`
* [[option_irc.server_default.ipv6]] *irc.server_default.ipv6* * [[option_irc.server_default.ipv6]] *irc.server_default.ipv6*
** descrizione: pass:none[usa il protocollo IPv6 per le comunicazioni con il server (prova con IPv6, se non disponibile usa IPv4); se disabilitato, viene usato solo IPv4] ** descrizione: pass:none[usa il protocollo IPv6 per le comunicazioni con il server (prova con IPv6, se non disponibile usa IPv4); se disabilitato, viene usato solo IPv4]
** tipo: bool ** tipo: bool
+1 -1
View File
@@ -100,7 +100,7 @@ $HOME/.weechat/weechat.log::
WeeChat is written by Sébastien Helleu and contributors (complete list is in WeeChat is written by Sébastien Helleu and contributors (complete list is in
the AUTHORS.adoc file). the AUTHORS.adoc file).
Copyright (C) 2003-2020 {author} Copyright (C) 2003-2021 {author}
WeeChat is free software; you can redistribute it and/or modify WeeChat is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
+32 -3
View File
@@ -256,6 +256,35 @@ For example to use kbd:[F1], kbd:[F2], kbd:[Alt+F1] and kbd:[Alt+F2]:
I tasti "meta-OP" e "meta-OQ" possono essere differenti nel proprio terminale. I tasti "meta-OP" e "meta-OQ" possono essere differenti nel proprio terminale.
Per trovare il codice tasto digitare kbd:[Alt+k] poi il tast. Per trovare il codice tasto digitare kbd:[Alt+k] poi il tast.
// TRANSLATION MISSING
[[customize_buflist]]
=== How can I customize the list of buffers list, like the color of the active buffer?
You can browse all buflist options with the command:
----
/fset buflist
----
The background of the active buffer is blue by default, you can change it
like this, for example to `red`:
----
/set buflist.format.buffer_current "${color:,red}${format_buffer}"
----
[NOTE]
There's a comma before the color name "red" because it is used as the background,
not the text color. +
You can also use any numeric color instead of `red`,
like `237` for dark gray.
The buflist plugin provides lot of options that you can customize, please read
the help on each option.
There's also a wiki page with examples of advanced buflist configuration:
https://github.com/weechat/weechat/wiki/buflist
[[customize_prefix]] [[customize_prefix]]
=== Come si può ridurre la lunghezza dei nick o rimuovere l'allineamento nella finestra di chat? === Come si può ridurre la lunghezza dei nick o rimuovere l'allineamento nella finestra di chat?
@@ -1268,9 +1297,9 @@ For example:
You can share files _~/.weechat/*.conf_ except the file _sec.conf_ which You can share files _~/.weechat/*.conf_ except the file _sec.conf_ which
contains your passwords ciphered with your passphrase. contains your passwords ciphered with your passphrase.
Some other files like _irc.conf_ may contain sensitive info like passwords // TRANSLATION MISSING
for servers/channels (if they are not stored in _sec.conf_ with the `/secure` Some other files may contain sensitive info like passwords (if they are not
command). stored in _sec.conf_ with the `/secure` command).
See the link:weechat_user.it.html#files_and_directories[User's guide / Files and directories] See the link:weechat_user.it.html#files_and_directories[User's guide / Files and directories]
for more information about configuration files. for more information about configuration files.
+32 -9
View File
@@ -1400,14 +1400,26 @@ Valore restituito:
* same return code as function `regcomp` (0 if ok, other value for error, * same return code as function `regcomp` (0 if ok, other value for error,
see `man regcomp`) see `man regcomp`)
[NOTE]
// TRANSLATION MISSING
Regular expression _preg_ must be cleaned by calling "regfree" after use,
if the function returned 0 (OK).
Esempio in C: Esempio in C:
[source,C] [source,C]
---- ----
regex_t my_regex; regex_t my_regex;
if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) != 0) if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) == 0)
{
/* OK */
/* ... */
regfree (&my_regex);
}
else
{ {
/* error */ /* error */
/* ... */
} }
---- ----
@@ -2294,7 +2306,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
// TRANSLATION MISSING // TRANSLATION MISSING
_WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0, _WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0,
2.2, 2.3, 2.7 and 2.9._ 2.2, 2.3, 2.7, 2.9 and 3.1._
// TRANSLATION MISSING // TRANSLATION MISSING
Evaluate an expression and return result as a string. Evaluate an expression and return result as a string.
@@ -2345,6 +2357,11 @@ Argomenti:
** _regex_replace_: the replacement text to use with _regex_, to replace ** _regex_replace_: the replacement text to use with _regex_, to replace
text in _expr_ (the _regex_replace_ is evaluated on each match of _regex_ text in _expr_ (the _regex_replace_ is evaluated on each match of _regex_
against _expr_, until no match is found) against _expr_, until no match is found)
// TRANSLATION MISSING
** _debug_: debug level (string with integer number ≥ 1), if enabled, a key
"debug_output" is added in hashtable _options_:
*** _1_: enable debug
*** _2_: enable more verbose debug
Valore restituito: Valore restituito:
@@ -2631,6 +2648,12 @@ expanded to last):
`+19:02:45+` (with colors if there are color codes in the option `+19:02:45+` (with colors if there are color codes in the option
weechat.look.buffer_time_format) weechat.look.buffer_time_format)
| `+${eval_cond:xxx}+` +
_(WeeChat ≥ 3.1)_ |
String to evaluate as condition. |
`+${eval_cond:${window.win_width} > 100}+` |
`+1+`
| `+${esc:xxx}+` + | `+${esc:xxx}+` +
`+${\xxx}+` + `+${\xxx}+` +
_(WeeChat ≥ 1.0)_ | _(WeeChat ≥ 1.0)_ |
@@ -12726,15 +12749,15 @@ per sapere dove il pulsante del mouse è stato rilasciato). +
Informazioni aggiuntive per l'elemento barra "buffer_nicklist": Informazioni aggiuntive per l'elemento barra "buffer_nicklist":
[width="100%",cols="1,1,5",options="header"] [width="100%",cols="^1,^1,5",options="header"]
|=== |===
| Chiave | Plugin ^(1)^ | Descrizione | Plugin ^(1)^ | Chiave | Descrizione
| nick | core | Nick.
| prefix | core | Prefisso per il nick.
| group | core | Nome gruppo.
// TRANSLATION MISSING // TRANSLATION MISSING
| irc_nick | irc | Pointer to IRC nick _(WeeChat ≥ 3.0)_. | irc | irc_nick | Pointer to IRC nick _(WeeChat ≥ 3.0)_.
| irc_host | irc | Host per il nick (se conosciuto). | irc | irc_host | Host per il nick (se conosciuto).
| weechat | nick | Nick.
| weechat | prefix | Prefisso per il nick.
| weechat | group | Nome gruppo.
|=== |===
[NOTE] [NOTE]
+1 -1
View File
@@ -1004,7 +1004,7 @@ Per impostare le variabili locali di un buffer, digitare questo comando
in WeeChat: in WeeChat:
---- ----
/buffer localvar /buffer listvar
---- ----
[[hooks]] [[hooks]]
+156 -6
View File
@@ -434,6 +434,10 @@ Se si compila con CMake:
$ cmake .. -DCMAKE_BUILD_TYPE=Debug $ cmake .. -DCMAKE_BUILD_TYPE=Debug
---- ----
// TRANSLATION MISSING
[[build_debug_address_sanitizer]]
==== Build with debug options and address sanitizer
// TRANSLATION MISSING // TRANSLATION MISSING
You can additionally enable the address sanitizer, which causes WeeChat to You can additionally enable the address sanitizer, which causes WeeChat to
crash immediately in case of problem: crash immediately in case of problem:
@@ -447,7 +451,15 @@ $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_C
You should enable address sanitizer only if you're trying to cause a crash, You should enable address sanitizer only if you're trying to cause a crash,
this is not recommended in production. this is not recommended in production.
Se è stato installato il pacchetto binario, installare il pacchetto _weechat-gdb_. // TRANSLATION MISSING
Then once compiled and installed, you must run WeeChat like this:
----
$ ASAN_OPTIONS="detect_odr_violation=0 log_path=asan.log" weechat
----
// TRANSLATION MISSING
In case of crash, the backtrace is in file `asan.log`.
[[core_files]] [[core_files]]
==== File core ==== File core
@@ -596,7 +608,8 @@ Some environment variables are used by WeeChat if they are defined:
=== Files and directories === Files and directories
WeeChat writes configuration files and other data in directory `~/.weechat` WeeChat writes configuration files and other data in directory `~/.weechat`
by default. by default. +
These files are created with default values the first time you run WeeChat.
[[weechat_directories]] [[weechat_directories]]
==== WeeChat directories ==== WeeChat directories
@@ -654,7 +667,8 @@ The files in the WeeChat home directory are:
| perl.conf | Configuration file for _perl_ plugin | No. | perl.conf | Configuration file for _perl_ plugin | No.
| php.conf | Configuration file for _php_ plugin | No. | php.conf | Configuration file for _php_ plugin | No.
| python.conf | Configuration file for _python_ plugin | No. | python.conf | Configuration file for _python_ plugin | No.
| relay.conf | Configuration file for _relay_ plugin | No. // TRANSLATION MISSING
| relay.conf | Configuration file for _relay_ plugin | *Yes*: it can contain relay password and TOTP secret (if not stored in `sec.conf`), allowed IP addresses/websocket origins and opened ports.
| ruby.conf | Configuration file for _ruby_ plugin | No. | ruby.conf | Configuration file for _ruby_ plugin | No.
| script.conf | Configuration file for _script_ plugin | No. | script.conf | Configuration file for _script_ plugin | No.
| spell.conf | Configuration file for _spell_ plugin | No. | spell.conf | Configuration file for _spell_ plugin | No.
@@ -1160,8 +1174,8 @@ Esempio di split orizzontale + verticale:
.... ....
// TRANSLATION MISSING // TRANSLATION MISSING
[[buffers_lines]] [[buffers]]
=== Buffers lines === Buffers
[[lines_format]] [[lines_format]]
==== Format of lines ==== Format of lines
@@ -1235,6 +1249,142 @@ Tag usati di frequente (elenco non esaustivo):
if a max hotlist level is used for a nick, the notify level can be lower than if a max hotlist level is used for a nick, the notify level can be lower than
the value in the tag. the value in the tag.
// TRANSLATION MISSING
[[local_variables]]
==== Local variables
Local variables can be defined in all buffers.
A local variable has:
* a name (string)
* a value (string, can be empty).
Local variables can be set by WeeChat, plugins, scripts, or manually on the
command line in the buffer.
For example to add the local variable "completion_default_template":
----
/buffer setvar completion_default_template %(my_completion)
----
To list local variables in the current buffer:
----
/buffer listvar
----
To remove the local variable "completion_default_template":
----
/buffer delvar completion_default_template
----
By default WeeChat and its default plugins interpret these variables:
[width="100%",cols="^2m,2,5",options="header"]
|===
| Name | Value | Description
| away |
any string |
Away message on the server, set by irc plugin.
| channel |
any string |
Channel name, set by irc/xfer plugins and debug buffer of relay/trigger plugins.
| charset_modifier |
any string |
Charset modifier for the server buffer, set by irc plugin.
| completion_default_template |
any string |
Default completion template for the buffer, overriding the option
`weechat.completion.default_template`.
| filter |
any string |
Filter defined on some buffers like `/fset`, `/server raw` (irc) and `/script`.
| host |
any string |
Self host (if known), set by irc plugin.
| lag |
any string |
Lag on the server, set by irc plugin.
| name |
any string |
Buffer name (be careful, this is not the full name and this name is not
enough to identify or search a buffer).
| nick |
any string |
Self nick, set by irc and xfer plugins.
| no_log |
`1` (or any non-empty string) |
If set, the logger plugin does not log anything for the buffer.
| plugin |
any string |
Name of plugin which created the buffer (`core` for WeeChat buffers).
| script_close_cb |
any string |
Close callback defined by a script for a buffer.
| script_close_cb_data |
any string |
Data for close callback defined by a script for a buffer.
| script_input_cb |
any string |
Input callback defined by a script for a buffer.
| script_input_cb_data |
any string |
Data for input callback defined by a script for a buffer.
| script_name |
any string |
Name of the script which created the buffer.
| server |
any string |
Server name, set by irc plugin and debug buffer of relay/trigger plugins.
| spell_suggest |
any string |
Misspelled word and suggestions (format: "misspelled:suggestions"), set by
spell plugin.
| trigger_filter |
any string |
Trigger filter, set by trigger plugin.
| type |
any string, for example:
`channel`,
`debug`,
`exec`,
`option`,
`private`,
`relay`,
`script`,
`server`,
`user`,
`xfer` |
Type of buffer, set by WeeChat and many plugins.
|===
[NOTE]
External plugins and scripts can define and use other local variables.
// TRANSLATION MISSING // TRANSLATION MISSING
[[bars]] [[bars]]
=== Bars === Bars
@@ -3318,7 +3468,7 @@ le variabili buffer locali per costruire il nome del file. To see available
local variables for current buffer: local variables for current buffer:
---- ----
/buffer localvar /buffer listvar
---- ----
// TRANSLATION MISSING // TRANSLATION MISSING
+16 -14
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
@@ -32,19 +32,21 @@ if(ENABLE_MAN)
add_custom_target(doc-man-weechat-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) add_custom_target(doc-man-weechat-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/ja/man1) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/ja/man1)
# man page: weechat-headless if(ENABLE_HEADLESS)
add_custom_command( # man page: weechat-headless
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 add_custom_command(
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ja.adoc OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
DEPENDS COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ja.adoc
${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ja.adoc DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.ja.adoc ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.ja.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.ja.adoc ${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.ja.adoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/includes/man.ja.adoc
COMMENT "Building weechat-headless.1 (ja)" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
) COMMENT "Building weechat-headless.1 (ja)"
add_custom_target(doc-man-weechat-headless-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1) )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/ja/man1) add_custom_target(doc-man-weechat-headless-ja ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/ja/man1)
endif()
endif() endif()
if(ENABLE_DOC) if(ENABLE_DOC)
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
@@ -120,6 +120,10 @@
| weechat | bars_options | バーのオプション | weechat | bars_options | バーのオプション
| weechat | buffer_local_variable_value | value of a buffer local variable
| weechat | buffer_local_variables | buffer local variables
| weechat | buffer_properties_get | バッファから読み取り可能なプロパティ | weechat | buffer_properties_get | バッファから読み取り可能なプロパティ
| weechat | buffer_properties_set | バッファに指定可能なプロパティ | weechat | buffer_properties_set | バッファに指定可能なプロパティ
+86 -66
View File
@@ -219,6 +219,7 @@ file: ファイル名 (ローカルホスト上の)
---- ----
/dehalfop <nick> [<nick>...] /dehalfop <nick> [<nick>...]
* -yes
nick: ニックネームまたはマスク (ワイルドカード "*" を使うことができます) nick: ニックネームまたはマスク (ワイルドカード "*" を使うことができます)
*: 自分以外のチャンネル参加者からチャンネルの half-operator 権を剥奪 *: 自分以外のチャンネル参加者からチャンネルの half-operator 権を剥奪
@@ -932,6 +933,7 @@ target: サーバ名
---- ----
/voice <nick> [<nick>...] /voice <nick> [<nick>...]
* -yes
nick: ニックネームまたはマスク (ワイルドカード "*" を使うことができます) nick: ニックネームまたはマスク (ワイルドカード "*" を使うことができます)
*: チャンネル参加者全員に voice 権を付与 *: チャンネル参加者全員に voice 権を付与
@@ -1020,7 +1022,7 @@ Note: in command, special variables are replaced:
$n-m: arguments from 'n' to 'm' $n-m: arguments from 'n' to 'm'
$*: all arguments $*: all arguments
$~: last argument $~: last argument
$var: where "var" is a local variable of buffer (see /buffer localvar) $var: where "var" is a local variable of buffer (see /buffer listvar)
examples: $nick, $channel, $server, $plugin, $name examples: $nick, $channel, $server, $plugin, $name
Examples: Examples:
@@ -1113,7 +1115,9 @@ message: 離席メッセージ (メッセージが無い場合は、離席状態
renumber [<number1> [<number2> [<start>]]] renumber [<number1> [<number2> [<start>]]]
close [<n1>[-<n2>]|<name>...] close [<n1>[-<n2>]|<name>...]
notify [<level>] notify [<level>]
localvar [<number>|<name>] listvar [<number>|<name>]
setvar <name> [<value>]
delvar <name>
set <property> [<value>] set <property> [<value>]
get <property> get <property>
<number>|-|+|<name> <number>|-|+|<name>
@@ -1137,8 +1141,10 @@ renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumb
message: for messages from users + highlights message: for messages from users + highlights
all: all messages all: all messages
reset: reset to default value (all) reset: reset to default value (all)
localvar: display local variables for the buffer listvar: display local variables in a buffer
set: set a property for current buffer setvar: set a local variable in the current buffer
delvar: delete a local variable from the current buffer
set: set a property in the current buffer
get: display a property of current buffer get: display a property of current buffer
number: jump to buffer by number, possible prefix: number: jump to buffer by number, possible prefix:
'+': relative jump, add number to current '+': relative jump, add number to current
@@ -1296,11 +1302,11 @@ infolists: インフォリストに関する情報を表示
---- ----
/eval [-n|-s] [-d] <expression> /eval [-n|-s] [-d] <expression>
[-n] [-d] -c <expression1> <operator> <expression2> [-n] [-d [-d]] -c <expression1> <operator> <expression2>
-n: display result without sending it to buffer (debug mode) -n: display result without sending it to buffer (debug mode)
-s: split expression before evaluating it (many commands can be separated by semicolons) -s: split expression before evaluating it (many commands can be separated by semicolons)
-d: display debug output after evaluation -d: display debug output after evaluation (with two -d: more verbose debug)
-c: evaluate as condition: use operators and parentheses, return a boolean value ("0" or "1") -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 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: operator: a logical or comparison operator:
@@ -1336,24 +1342,25 @@ To force a string comparison, you can add double quotes around each expression,
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority: 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") 1. an evaluated sub-string (format: "eval:xxx")
2. a string with escaped chars (format: "esc:xxx" or "\xxx") 2. an evaluated condition (format: "eval_cond:xxx")
3. a string with chars to hide (format: "hide:char,string") 3. a string with escaped chars (format: "esc:xxx" or "\xxx")
4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string") 4. a string with chars to hide (format: "hide:char,string")
5. 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") or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
5. a reversed string (format: "rev:xxx" or "revscr:xxx") 6. a reversed string (format: "rev:xxx" or "revscr:xxx")
6. a repeated string (format: "repeat:count,string") 7. a repeated string (format: "repeat:count,string")
7. length of a string (format: "length:xxx" or "lengthscr:xxx") 8. length of a string (format: "length:xxx" or "lengthscr:xxx")
8. a color (format: "color:xxx", see "Plugin API reference", function "color") 9. a color (format: "color:xxx", see "Plugin API reference", function "color")
9. a modifier (format: "modifier:name,data,string") 10. a modifier (format: "modifier:name,data,string")
10. an info (format: "info:name,arguments", arguments are optional) 11. an info (format: "info:name,arguments", arguments are optional)
11. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx") 12. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx")
12. current date/time (format: "date" or "date:format") 13. current date/time (format: "date" or "date:format")
13. an environment variable (format: "env:XXX") 14. an environment variable (format: "env:XXX")
14. a ternary operator (format: "if:condition?value_if_true:value_if_false") 15. a ternary operator (format: "if:condition?value_if_true:value_if_false")
15. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx") 16. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx")
16. an option (format: "file.section.option") 17. an option (format: "file.section.option")
17. a local variable in buffer 18. a local variable in buffer
18. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. 19. 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: 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.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: hdata[list].var1.var2...: start with a hdata using a list, for example:
@@ -1364,6 +1371,7 @@ Format for hdata can be one of following:
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get". For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
Examples (simple strings): Examples (simple strings):
/eval -n ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3 /eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user /eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3 /eval -n ${weechat.look.scroll_amount} ==> 3
@@ -1406,60 +1414,62 @@ Examples (conditions):
enable|disable|toggle [<name>|@] enable|disable|toggle [<name>|@]
add|addreplace <name> <buffer>[,<buffer>...] <tags> <regex> add|addreplace <name> <buffer>[,<buffer>...] <tags> <regex>
rename <name> <new_name> rename <name> <new_name>
recreate <name>
del <name>|-all del <name>|-all
list: 全てのフィルタをリストアップ list: list all filters
enable: フィルタを有効化 (フィルタはデフォルトで有効になっています) enable: enable filters (filters are enabled by default)
disable: フィルタを無効化 disable: disable filters
toggle: フィルタの有効無効を切り替え toggle: toggle filters
name: フィルタの名前 ("@" = 現在のバッファに設定されている全てのフィルタを有効化/無効化) name: filter name ("@" = enable/disable all filters in current buffer)
add: フィルタを追加 add: add a filter
addreplace: 既存のフィルタに追加もしくは置換 addreplace: add or replace an existing filter
rename: フィルタをリネーム rename: rename a filter
del: フィルタを削除 recreate: set input with the command used to edit the filter
-all: 全てのフィルタを削除 del: delete a filter
buffer: フィルタが有効化されているバッファのコンマ区切りリスト: -all: delete all filters
- これはプラグイン名を含む完全な名前です (例: "irc.freenode.#weechat" または "irc.server.freenode") buffer: comma separated list of buffers where filter is active:
- "*" は全てのバッファを意味します - this is full name including plugin (example: "irc.freenode.#weechat" or "irc.server.freenode")
- 名前が '!' から始まるものは除外されます - "*" means all buffers
- ワイルドカード "*" を使うことができます - a name starting with '!' is excluded
tags: タグのコンマ区切りリスト、例えば "irc_join,irc_part,irc_quit" - wildcard "*" is allowed
- 論理積 "and": タグ同士を "+" でつなげてください (例: "nick_toto+irc_action") tags: comma separated list of tags, for example "irc_join,irc_part,irc_quit"
- ワイルドカード "*" を使うことができます - logical "and": use "+" between tags (for example: "nick_toto+irc_action")
- タグを '!' で始めると、そのタグが付けられたメッセージとそのタグを含むメッセージはフィルタされません - wildcard "*" is allowed
regex: 行単位検索の正規表現 - if tag starts with '!', then it is excluded and must NOT be in message
- '\t' を使うと、プレフィックスをメッセージから分離できます。'|' 等の特別な文字は '\|' のようにエスケープしなければいけません regex: POSIX extended regular expression to search in line
- 正規表現の最初に '!' が含まれる場合は、マッチ結果が反転されます (最初の '!' にマッチさせたければ、'\!' を使ってください) - use '\t' to separate prefix from message, special chars like '|' must be escaped: '\|'
- 2 種類の正規表現があります: 一方はプレフィックス用、他方はメッセージ用 - if regex starts with '!', then matching result is reversed (use '\!' to start with '!')
- 正規表現は大文字小文字を区別しません、"(?-i)" から始まる場合は区別します - two regular expressions are created: one for prefix and one for message
- regex are case insensitive, they can start by "(?-i)" to become case sensitive
デフォルトではキー alt+'=' ですべてのバッファについてフィルタリングの on/off を切り替えられます。現在のバッファに限りフィルタリングを切り替えるには alt+'-' を使います。 The default key alt+'=' toggles filtering on/off globally and alt+'-' toggles filtering on/off in the current buffer.
よく使われるタグ: Tags most commonly used:
no_filterno_highlightno_loglog0..log9 (ログレベル)、 no_filter, no_highlight, no_log, log0..log9 (log level),
notify_nonenotify_messagenotify_privatenotify_highlight notify_none, notify_message, notify_private, notify_highlight,
self_msgnick_xxx (xxx はメッセージのニックネーム部分)、prefix_nick_ccc (ccc はニックネームの色)、 self_msg, nick_xxx (xxx is nick in message), prefix_nick_ccc (ccc is color of nick),
host_xxx (xxx はメッセージのユーザ名 + ホスト名部分)、 host_xxx (xxx is username + host in message),
irc_xxx (xxx はコマンド名または番号、/server raw または /debug tags で確認)、 irc_xxx (xxx is command name or number, see /server raw or /debug tags),
irc_numericirc_errorirc_actionirc_ctcpirc_ctcp_replyirc_smart_filteraway_info irc_numeric, irc_error, irc_action, irc_ctcp, irc_ctcp_reply, irc_smart_filter, away_info.
バッファ内でタグを見るには: /debug tags To see tags for lines in buffers: /debug tags
: Examples:
全てのバッファで IRC スマートフィルタを使用: use IRC smart filter on all buffers:
/filter add irc_smart * irc_smart_filter * /filter add irc_smart * irc_smart_filter *
名前に "#weechat" を含むバッファを除いた全てのバッファで IRC スマートフィルタを使用: use IRC smart filter on all buffers except those with "#weechat" in name:
/filter add irc_smart *,!*#weechat* irc_smart_filter * /filter add irc_smart *,!*#weechat* irc_smart_filter *
全ての IRC join/part/quit メッセージをフィルタ: filter all IRC join/part/quit messages:
/filter add joinquit * irc_join,irc_part,irc_quit * /filter add joinquit * irc_join,irc_part,irc_quit *
チャンネルに入った時や /names で表示されるニックネームをフィルタ: filter nicks displayed when joining channels or with /names:
/filter add nicks * irc_366 * /filter add nicks * irc_366 *
IRC チャンネル #weechat で "toto" を含むニックネームをフィルタ: filter nick "toto" on IRC channel #weechat:
/filter add toto irc.freenode.#weechat nick_toto * /filter add toto irc.freenode.#weechat nick_toto *
ニックネーム "toto" からの IRC の参加/アクションメッセージをフィルタ: filter IRC join/action messages from nick "toto":
/filter add toto * nick_toto+irc_join,nick_toto+irc_action * /filter add toto * nick_toto+irc_join,nick_toto+irc_action *
IRC チャンネル #weechat で "weechat sucks" を含む行をフィルタ: filter lines containing "weechat sucks" on IRC channel #weechat:
/filter add sucks irc.freenode.#weechat * weechat sucks /filter add sucks irc.freenode.#weechat * weechat sucks
すべてのバッファで "WeeChat sucks" と完全に一致する行をフィルタ: filter lines that are strictly equal to "WeeChat sucks" on all buffers:
/filter add sucks2 * * (?-i)^WeeChat sucks$ /filter add sucks2 * * (?-i)^WeeChat sucks$
---- ----
@@ -2819,6 +2829,16 @@ On script buffer, the possible status for each script are:
| installed | installed
popular script popular script
In output of /script list, the possible status for each script are:
* ? i a H N
| | | | | |
| | | | | obsolete (new version available)
| | | | held
| | | autoloaded
| | installed
| unknown script (can not be downloaded/updated)
popular script
Keys on script buffer: Keys on script buffer:
alt+i install script alt+i install script
alt+r remove script alt+r remove script
@@ -2948,7 +2968,7 @@ listdefault: list default triggers
modifier: name(s) of modifier (required) modifier: name(s) of modifier (required)
line: buffer type ("formatted", "free" or "*"), list of buffer masks, tags line: buffer type ("formatted", "free" or "*"), list of buffer masks, tags
print: buffer, tags, message, strip colors print: buffer, tags, message, strip colors
command: command (required), description, arguments, description of arguments, completion (all arguments except command are evaluated, see /help eval) command: command (required), description, arguments, description of arguments, completion (all arguments except command are evaluated, "${tg_trigger_name}" is replaced by the trigger name, see /help eval)
command_run: command(s) (required) command_run: command(s) (required)
timer: interval (required), align on second, max calls timer: interval (required), align on second, max calls
config: name(s) of option (required) config: name(s) of option (required)
@@ -2616,6 +2616,12 @@
** 値: 1 .. 3600 ** 値: 1 .. 3600
** デフォルト値: `+60+` ** デフォルト値: `+60+`
* [[option_irc.server_default.default_chantypes]] *irc.server_default.default_chantypes*
** 説明: pass:none[channel type prefixes to use if the server does not send them in message 005 (default is "#&")]
** タイプ: 文字列
** 値: 未制約文字列
** デフォルト値: `+"#&"+`
* [[option_irc.server_default.ipv6]] *irc.server_default.ipv6* * [[option_irc.server_default.ipv6]] *irc.server_default.ipv6*
** 説明: pass:none[サーバ接続に IPv6 プロトコルを利用 (IPv6 の利用に失敗したら IPv4 を利用); 無効の場合には IPv4 を利用] ** 説明: pass:none[サーバ接続に IPv6 プロトコルを利用 (IPv6 の利用に失敗したら IPv4 を利用); 無効の場合には IPv4 を利用]
** タイプ: ブール ** タイプ: ブール
+1 -1
View File
@@ -97,7 +97,7 @@ $HOME/.weechat/weechat.log::
WeeChat は Sébastien Helleu さんと貢献者によって作成されています WeeChat は Sébastien Helleu さんと貢献者によって作成されています
(完全なリストは AUTHORS.adoc ファイルを参照してください)。 (完全なリストは AUTHORS.adoc ファイルを参照してください)。
著作権 (C) 2003-2020 {author} 著作権 (C) 2003-2021 {author}
WeeChat はフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行された WeeChat はフリーソフトウェアです。あなたはこれを、フリーソフトウェア財団によって発行された
GNU 一般公衆利用許諾契約書 (バージョン 2 か、希望によってはそれ以降のバージョンのうちどれか) GNU 一般公衆利用許諾契約書 (バージョン 2 か、希望によってはそれ以降のバージョンのうちどれか)
+1 -1
View File
@@ -517,7 +517,7 @@ WeeChat とプラグインの翻訳は gettext で行います、ファイルは
/* /*
* weechat.c - core functions for WeeChat * weechat.c - core functions for WeeChat
* *
* Copyright (C) 2020 Your Name <your@email.com> * Copyright (C) 2021 Your Name <your@email.com>
* *
* This file is part of WeeChat, the extensible chat client. * This file is part of WeeChat, the extensible chat client.
* *
+32 -3
View File
@@ -227,6 +227,35 @@ _buffers.pl_
"meta-OP" と "meta-OQ" キーは端末によって異なります。キーコードを見つけるには "meta-OP" と "meta-OQ" キーは端末によって異なります。キーコードを見つけるには
kbd:[Alt+k] の後にキーを押してください。 kbd:[Alt+k] の後にキーを押してください。
// TRANSLATION MISSING
[[customize_buflist]]
=== How can I customize the list of buffers list, like the color of the active buffer?
You can browse all buflist options with the command:
----
/fset buflist
----
The background of the active buffer is blue by default, you can change it
like this, for example to `red`:
----
/set buflist.format.buffer_current "${color:,red}${format_buffer}"
----
[NOTE]
There's a comma before the color name "red" because it is used as the background,
not the text color. +
You can also use any numeric color instead of `red`,
like `237` for dark gray.
The buflist plugin provides lot of options that you can customize, please read
the help on each option.
There's also a wiki page with examples of advanced buflist configuration:
https://github.com/weechat/weechat/wiki/buflist
[[customize_prefix]] [[customize_prefix]]
=== どうすればチャットエリア内のニックネームの最大長さを短く、またはニックネーム整列機能を無効化できますか。 === どうすればチャットエリア内のニックネームの最大長さを短く、またはニックネーム整列機能を無効化できますか。
@@ -1168,9 +1197,9 @@ link:weechat_user.ja.html#secured_data[ユーザーズガイド / 暗号化デ
_~/.weechat/*.conf_ ファイルは公開しても問題ありませんが、 _~/.weechat/*.conf_ ファイルは公開しても問題ありませんが、
パスフレーズで暗号化されたパスワードが含まれる _sec.conf_ ファイルは秘密にしてください。 パスフレーズで暗号化されたパスワードが含まれる _sec.conf_ ファイルは秘密にしてください。
サーバおよびチャンネルパスワード等の機密情報を `/secure` コマンドで // TRANSLATION MISSING
_sec.conf_ に保存していない場合、これらの情報は _irc.conf_ Some other files may contain sensitive info like passwords (if they are not
などのファイルに保存されます。 stored in _sec.conf_ with the `/secure` command).
設定ファイルに関する詳しい情報はlink:weechat_user.ja.html#files_and_directories[ユーザーズガイド / ファイルとディレクトリ]を参照してください。 設定ファイルに関する詳しい情報はlink:weechat_user.ja.html#files_and_directories[ユーザーズガイド / ファイルとディレクトリ]を参照してください。
+33 -9
View File
@@ -1344,14 +1344,26 @@ int weechat_string_regcomp (void *preg, const char *regex, int default_flags)
* `regcomp` 関数と同じ戻り値 * `regcomp` 関数と同じ戻り値
(成功の場合は 0、エラーが起きた場合は 0 以外、`man regcomp` を参照) (成功の場合は 0、エラーが起きた場合は 0 以外、`man regcomp` を参照)
[NOTE]
// TRANSLATION MISSING
Regular expression _preg_ must be cleaned by calling "regfree" after use,
if the function returned 0 (OK).
C 言語での使用例: C 言語での使用例:
[source,C] [source,C]
---- ----
regex_t my_regex; regex_t my_regex;
if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) != 0) if (weechat_string_regcomp (&my_regex, "(?i)test", REG_EXTENDED) == 0)
{
/* OK */
/* ... */
regfree (&my_regex);
}
else
{ {
/* error */ /* error */
/* ... */
} }
---- ----
@@ -2214,7 +2226,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
// TRANSLATION MISSING // TRANSLATION MISSING
_WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0, _WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6, 1.8, 2.0,
2.2, 2.3, 2.7 and 2.9._ 2.2, 2.3, 2.7, 2.9 and 3.1._
式を評価して文字列として返す。`+${variable}+` 式を評価して文字列として返す。`+${variable}+`
という書式で書かれた特殊変数は展開されます (以下の表を参照)。 という書式で書かれた特殊変数は展開されます (以下の表を参照)。
@@ -2262,6 +2274,11 @@ char *weechat_string_eval_expression (const char *expr,
** _regex_replace_: _regex_ と一緒に使われる置換テキスト、_expr_ ** _regex_replace_: _regex_ と一緒に使われる置換テキスト、_expr_
に含まれるテキストを置換する (_regex_replace_ は、_expr_ 内で に含まれるテキストを置換する (_regex_replace_ は、_expr_ 内で
_regex_ 引数にマッチする部分が見つからなくなるまで、毎回評価されます) _regex_ 引数にマッチする部分が見つからなくなるまで、毎回評価されます)
// TRANSLATION MISSING
** _debug_: debug level (string with integer number ≥ 1), if enabled, a key
"debug_output" is added in hashtable _options_:
*** _1_: enable debug
*** _2_: enable more verbose debug
戻り値: 戻り値:
@@ -2543,6 +2560,13 @@ str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, optio
`+19:02:45+` (オプション weechat.look.buffer_time_format `+19:02:45+` (オプション weechat.look.buffer_time_format
内に色コードが存在する場合色付き) 内に色コードが存在する場合色付き)
// TRANSLATION MISSING
| `+${eval_cond:xxx}+` +
_(WeeChat バージョン 3.1 以上で利用可)_ |
String to evaluate as condition. |
`+${eval_cond:${window.win_width} > 100}+` |
`+1+`
| `+${esc:xxx}+` + | `+${esc:xxx}+` +
`+${\xxx}+` + `+${\xxx}+` +
_(WeeChat バージョン 1.0 以上で利用可)_ | _(WeeChat バージョン 1.0 以上で利用可)_ |
@@ -12237,15 +12261,15 @@ info を使う前にエリアが一致していることを確認して下さい
バー要素 "buffer_nicklist" の追加情報: バー要素 "buffer_nicklist" の追加情報:
[width="100%",cols="1,1,5",options="header"] [width="100%",cols="^1,^1,5",options="header"]
|=== |===
| キー | プラグイン ^(1)^ | 説明 | プラグイン ^(1)^ | キー | 説明
| nick | core | ニックネーム | weechat | nick | ニックネーム
| prefix | core | ニックネームのプレフィックス | weechat | prefix | ニックネームのプレフィックス
| group | core | グループ名 | weechat | group | グループ名
// TRANSLATION MISSING // TRANSLATION MISSING
| irc_nick | irc | Pointer to IRC nick _(WeeChat ≥ 3.0)_. | irc | irc_nick | Pointer to IRC nick _(WeeChat ≥ 3.0)_.
| irc_host | irc | ニックネームのホスト名 (判る場合) | irc | irc_host | ニックネームのホスト名 (判る場合)
|=== |===
[NOTE] [NOTE]
+1 -1
View File
@@ -987,7 +987,7 @@ weechat.buffer_set(buffer, "localvar_del_myvar", "")
バッファに対するローカル変数を見るには、WeeChat で以下のコマンドを実行してください: バッファに対するローカル変数を見るには、WeeChat で以下のコマンドを実行してください:
---- ----
/buffer localvar /buffer listvar
---- ----
[[hooks]] [[hooks]]
+158 -6
View File
@@ -400,6 +400,10 @@ CMake でコンパイルする場合:
$ cmake .. -DCMAKE_BUILD_TYPE=Debug $ cmake .. -DCMAKE_BUILD_TYPE=Debug
---- ----
// TRANSLATION MISSING
[[build_debug_address_sanitizer]]
==== Build with debug options and address sanitizer
// TRANSLATION MISSING // TRANSLATION MISSING
You can additionally enable the address sanitizer, which causes WeeChat to You can additionally enable the address sanitizer, which causes WeeChat to
crash immediately in case of problem: crash immediately in case of problem:
@@ -413,7 +417,15 @@ $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_C
You should enable address sanitizer only if you're trying to cause a crash, You should enable address sanitizer only if you're trying to cause a crash,
this is not recommended in production. this is not recommended in production.
バイナリパッケージをインストールする場合は、_weechat-dbg_ パッケージをインストールしてください。 // TRANSLATION MISSING
Then once compiled and installed, you must run WeeChat like this:
----
$ ASAN_OPTIONS="detect_odr_violation=0 log_path=asan.log" weechat
----
// TRANSLATION MISSING
In case of crash, the backtrace is in file `asan.log`.
[[core_files]] [[core_files]]
==== Core ファイル ==== Core ファイル
@@ -551,7 +563,9 @@ include::includes/cmdline_options.ja.adoc[tag=debug]
=== ファイルとディレクトリ === ファイルとディレクトリ
デフォルト状態の WeeChat は `~/.weechat` デフォルト状態の WeeChat は `~/.weechat`
ディレクトリ内に設定ファイルおよびその他のデータを書き込みます。 ディレクトリ内に設定ファイルおよびその他のデータを書き込みます。 +
// TRANSLATION MISSING
These files are created with default values the first time you run WeeChat.
// TRANSLATION MISSING // TRANSLATION MISSING
[[weechat_directories]] [[weechat_directories]]
@@ -612,7 +626,8 @@ WeeChat ホームディレクトリには以下のファイルが含まれます
| perl.conf | _perl_ プラグイン用の設定ファイル | 保護されません | perl.conf | _perl_ プラグイン用の設定ファイル | 保護されません
| php.conf | _php_ プラグイン用の設定ファイル | 保護されません | php.conf | _php_ プラグイン用の設定ファイル | 保護されません
| python.conf | _python_ プラグイン用の設定ファイル | 保護されません | python.conf | _python_ プラグイン用の設定ファイル | 保護されません
| relay.conf | _relay_ プラグイン用の設定ファイル | 保護されません // TRANSLATION MISSING
| relay.conf | _relay_ プラグイン用の設定ファイル | *Yes*: it can contain relay password and TOTP secret (if not stored in `sec.conf`), allowed IP addresses/websocket origins and opened ports.
| ruby.conf | _ruby_ プラグイン用の設定ファイル | 保護されません | ruby.conf | _ruby_ プラグイン用の設定ファイル | 保護されません
| script.conf | _script_ プラグイン用の設定ファイル | 保護されません | script.conf | _script_ プラグイン用の設定ファイル | 保護されません
| spell.conf | _spell_ プラグイン用の設定ファイル | 保護されません | spell.conf | _spell_ プラグイン用の設定ファイル | 保護されません
@@ -1095,8 +1110,9 @@ _window_
▲ ウィンドウ #1 (バッファ #3) ▲ ウィンドウ #2 (バッファ #4) ▲ ウィンドウ #1 (バッファ #3) ▲ ウィンドウ #2 (バッファ #4)
.... ....
[[buffers_lines]] // TRANSLATION MISSING
=== バッファの行 [[buffers]]
=== Buffers
[[lines_format]] [[lines_format]]
==== 行の書式 ==== 行の書式
@@ -1168,6 +1184,142 @@ WeeChat は様々な目的で各行にタグを付けます:
if a max hotlist level is used for a nick, the notify level can be lower than if a max hotlist level is used for a nick, the notify level can be lower than
the value in the tag. the value in the tag.
// TRANSLATION MISSING
[[local_variables]]
==== Local variables
Local variables can be defined in all buffers.
A local variable has:
* a name (string)
* a value (string, can be empty).
Local variables can be set by WeeChat, plugins, scripts, or manually on the
command line in the buffer;
For example to add the local variable "completion_default_template":
----
/buffer setvar completion_default_template %(my_completion)
----
To list local variables in the current buffer:
----
/buffer listvar
----
To remove the local variable "completion_default_template":
----
/buffer delvar completion_default_template
----
By default WeeChat and its default plugins interpret these variables:
[width="100%",cols="^2m,2,5",options="header"]
|===
| Name | Value | Description
| away |
any string |
Away message on the server, set by irc plugin.
| channel |
any string |
Channel name, set by irc/xfer plugins and debug buffer of relay/trigger plugins.
| charset_modifier |
any string |
Charset modifier for the server buffer, set by irc plugin.
| completion_default_template |
any string |
Default completion template for the buffer, overriding the option
`weechat.completion.default_template`.
| filter |
any string |
Filter defined on some buffers like `/fset`, `/server raw` (irc) and `/script`.
| host |
any string |
Self host (if known), set by irc plugin.
| lag |
any string |
Lag on the server, set by irc plugin.
| name |
any string |
Buffer name (be careful, this is not the full name and this name is not
enough to identify or search a buffer).
| nick |
any string |
Self nick, set by irc and xfer plugins.
| no_log |
`1` (or any non-empty string) |
If set, the logger plugin does not log anything for the buffer.
| plugin |
any string |
Name of plugin which created the buffer (`core` for WeeChat buffers).
| script_close_cb |
any string |
Close callback defined by a script for a buffer.
| script_close_cb_data |
any string |
Data for close callback defined by a script for a buffer.
| script_input_cb |
any string |
Input callback defined by a script for a buffer.
| script_input_cb_data |
any string |
Data for input callback defined by a script for a buffer.
| script_name |
any string |
Name of the script which created the buffer.
| server |
any string |
Server name, set by irc plugin and debug buffer of relay/trigger plugins.
| spell_suggest |
any string |
Misspelled word and suggestions (format: "misspelled:suggestions"), set by
spell plugin.
| trigger_filter |
any string |
Trigger filter, set by trigger plugin.
| type |
any string, for example:
`channel`,
`debug`,
`exec`,
`option`,
`private`,
`relay`,
`script`,
`server`,
`user`,
`xfer` |
Type of buffer, set by WeeChat and many plugins.
|===
[NOTE]
External plugins and scripts can define and use other local variables.
[[bars]] [[bars]]
=== バー === バー
@@ -3117,7 +3269,7 @@ It is possible to define a filename mask for each buffer, and use local buffer
variables to build filename. To see available local variables for current buffer: variables to build filename. To see available local variables for current buffer:
---- ----
/buffer localvar /buffer listvar
---- ----
// TRANSLATION MISSING // TRANSLATION MISSING
+16 -14
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
# #
@@ -32,19 +32,21 @@ if(ENABLE_MAN)
add_custom_target(doc-man-weechat-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1) add_custom_target(doc-man-weechat-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/pl/man1) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat.1 DESTINATION ${MANDIR}/pl/man1)
# man page: weechat-headless if(ENABLE_HEADLESS)
add_custom_command( # man page: weechat-headless
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 add_custom_command(
COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.pl.adoc OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1
DEPENDS COMMAND ${ASCIIDOCTOR_EXECUTABLE} ARGS ${ASCIIDOCTOR_ARGS} -b manpage -o weechat-headless.1 ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.pl.adoc
${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.pl.adoc DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.pl.adoc ${CMAKE_CURRENT_SOURCE_DIR}/weechat-headless.1.pl.adoc
${CMAKE_CURRENT_SOURCE_DIR}/includes/man.pl.adoc ${CMAKE_CURRENT_SOURCE_DIR}/includes/cmdline_options.pl.adoc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/includes/man.pl.adoc
COMMENT "Building weechat-headless.1 (pl)" WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
) COMMENT "Building weechat-headless.1 (pl)"
add_custom_target(doc-man-weechat-headless-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1) )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/pl/man1) add_custom_target(doc-man-weechat-headless-pl ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/weechat-headless.1 DESTINATION ${MANDIR}/pl/man1)
endif()
endif() endif()
if(ENABLE_DOC) if(ENABLE_DOC)
+1 -1
View File
@@ -1,5 +1,5 @@
# #
# Copyright (C) 2003-2020 Sébastien Helleu <flashcode@flashtux.org> # Copyright (C) 2003-2021 Sébastien Helleu <flashcode@flashtux.org>
# Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net> # Copyright (C) 2006 Julien Louis <ptitlouis@sysif.net>
# #
# This file is part of WeeChat, the extensible chat client. # This file is part of WeeChat, the extensible chat client.
@@ -52,7 +52,7 @@
| irc | irc_server_privates | rozmowy prywatne na obecnym serwerze IRC | irc | irc_server_privates | rozmowy prywatne na obecnym serwerze IRC
| irc | irc_servers | serwery IRC (nazwy wewnętrzne) | irc | irc_servers | Serwery IRC (nazwy wewnętrzne)
| irc | nick | użytkownicy obecnego kanału IRC | irc | nick | użytkownicy obecnego kanału IRC
@@ -120,6 +120,10 @@
| weechat | bars_options | opcje pasków | weechat | bars_options | opcje pasków
| weechat | buffer_local_variable_value | wartość zmiennej lokalnej bufora
| weechat | buffer_local_variables | zmienne lokalne bufora
| weechat | buffer_properties_get | właściwości, jakie mogą być przeczytane w buforze | weechat | buffer_properties_get | właściwości, jakie mogą być przeczytane w buforze
| weechat | buffer_properties_set | właściwości, jakie mogą być ustawione w buforze | weechat | buffer_properties_set | właściwości, jakie mogą być ustawione w buforze
+1 -1
View File
@@ -678,7 +678,7 @@ _next_completion_   (pointer, hdata: "completion") +
| weechat | weechat
| [[hdata_completion_word]]<<hdata_completion_word,completion_word>> | [[hdata_completion_word]]<<hdata_completion_word,completion_word>>
| structure with word found for a completion | struktura z ze słowem znalezionym dla dopełnienia
| - | -
| _word_   (string) + | _word_   (string) +
_nick_completion_   (char) + _nick_completion_   (char) +
+16 -16
View File
@@ -18,9 +18,9 @@
| irc | irc_buffer | pobiera wskaźnik dla serwera/kanału/nicku IRC | serwer,kanał,nick (kanał oraz nick są opcjonalne) | irc | irc_buffer | pobiera wskaźnik dla serwera/kanału/nicku IRC | serwer,kanał,nick (kanał oraz nick są opcjonalne)
| irc | irc_is_channel | 1 jeśli ciąg jest poprawną nazwą kanału IRC dla serwera | serwer,kanał (serWer jest opcjonalny) | irc | irc_is_channel | 1 jeśli ciąg jest poprawną nazwą kanału IRC dla serwera | serwer,kanał (serwer jest opcjonalny)
| irc | irc_is_nick | 1 jeśli ciąg jest poprawną nazwą użytkownika IRC | server,nickname (server is optional) | irc | irc_is_nick | 1 jeśli ciąg jest poprawną nazwą użytkownika IRC | serwer,nick (serwer jest opcjonalny)
| irc | irc_nick | pobiera aktualny nick z serwera | nazwa serwera | irc | irc_nick | pobiera aktualny nick z serwera | nazwa serwera
@@ -28,7 +28,7 @@
| irc | irc_nick_color_name | pobierz nazwę koloru nicka (*przestarzałe* od wersji 1.5, zamienione przez "nick_color_name") | nazwa użytkownika | irc | irc_nick_color_name | pobierz nazwę koloru nicka (*przestarzałe* od wersji 1.5, zamienione przez "nick_color_name") | nazwa użytkownika
| irc | irc_nick_from_host | pobiera nick z hosta IRC | host IRC (jak `:nick!nazwa@serwer.com`) | irc | irc_nick_from_host | pobiera nick z hosta IRC | Host IRC (jak `:nick!nazwa@serwer.com`)
| irc | irc_server_isupport | 1 jeśli serwer wspiera tę opcję (z wiadomości IRC 005) | serwer,właściwość | irc | irc_server_isupport | 1 jeśli serwer wspiera tę opcję (z wiadomości IRC 005) | serwer,właściwość
@@ -84,19 +84,19 @@
| weechat | auto_connect | 1 jeśli automatycznie łączenie z serwerami jest włączone, 0 jeśli zostało wyłączone przez użytkownika (opcja "-a" lub "--no-connect") | - | weechat | auto_connect | 1 jeśli automatycznie łączenie z serwerami jest włączone, 0 jeśli zostało wyłączone przez użytkownika (opcja "-a" lub "--no-connect") | -
| weechat | charset_internal | wewnętrzne kodowanie WeeChat | - | weechat | charset_internal | Wewnętrzne kodowanie WeeChat | -
| weechat | charset_terminal | kodowanie terminala | - | weechat | charset_terminal | kodowanie terminala | -
| weechat | color_ansi_regex | Rozszerzone wyrażenia regularne POSIX do wyszukiwania kodów escapującyhc ANSI | - | weechat | color_ansi_regex | Rozszerzone wyrażenia regularne POSIX do wyszukiwania kodów escapującyhc ANSI | -
| weechat | color_rgb2term | kolor RGB skonwertowany na kolor terminala (0-255) | rgb,limit (limit jest opcjonalny i ustawiony domyślnie na 256) | weechat | color_rgb2term | Kolor RGB skonwertowany na kolor terminala (0-255) | rgb,limit (limit jest opcjonalny i ustawiony domyślnie na 256)
| weechat | color_term2rgb | kolor terminala (0-255) skonwertowany na kolor RGB | kolor (kolor terminala: 0-255) | weechat | color_term2rgb | kolor terminala (0-255) skonwertowany na kolor RGB | kolor (kolor terminala: 0-255)
| weechat | cursor_mode | 1 jeśli tryb kursora jest aktywny | - | weechat | cursor_mode | 1 jeśli tryb kursora jest aktywny | -
| weechat | date | data kompilacji WeeChat | - | weechat | date | Data kompilacji WeeChat | -
| weechat | dir_separator | separator katalogów | - | weechat | dir_separator | separator katalogów | -
@@ -106,9 +106,9 @@
| weechat | locale | zestaw znaków użyty do tłumaczenia wiadomości | - | weechat | locale | zestaw znaków użyty do tłumaczenia wiadomości | -
| weechat | nick_color | pobiera kod koloru nicka | nickname;colors (colors is an optional comma-separated list of colors to use; background is allowed for a color with format text:background; if colors is present, WeeChat options with nick colors and forced nick colors are ignored) | weechat | nick_color | pobiera kod koloru nicka | nick;kolory (kolory są opcjonalną oddzieloną przecinkami listą kolorów do użycia; tło dla koloru można ustawić używając formatu text:tło; jeśli kolory są zdefiniowane, opcje WeeChat dla kolorów nicków i wymuszonych kolorów nicków są ignorowane)
| weechat | nick_color_name | pobiera nazwę koloru nicka | nickname;colors (colors is an optional comma-separated list of colors to use; background is allowed for a color with format text:background; if colors is present, WeeChat options with nick colors and forced nick colors are ignored) | weechat | nick_color_name | pobiera nazwę koloru nicka | nick;kolory (kolory są opcjonalną oddzieloną przecinkami listą kolorów do użycia; tło dla koloru można ustawić używając formatu text:tło; jeśli kolory są zdefiniowane, opcje WeeChat dla kolorów nicków i wymuszonych kolorów nicków są ignorowane)
| weechat | pid | WeeChat PID (ID procesu) | - | weechat | pid | WeeChat PID (ID procesu) | -
@@ -124,23 +124,23 @@
| weechat | totp_validate | walidacja haseł jednorazowych (TOTP): 1 jeśli poprawne, w przeciwnym wypadku 0 | sekret (w base32), jednorazowe hasło, czas (opcjonalne, domyślnie używany jest obecny czas), ilość starszych/nowszych haseł do sprawdzenia (opcjonalne, domyślnie 0) | weechat | totp_validate | walidacja haseł jednorazowych (TOTP): 1 jeśli poprawne, w przeciwnym wypadku 0 | sekret (w base32), jednorazowe hasło, czas (opcjonalne, domyślnie używany jest obecny czas), ilość starszych/nowszych haseł do sprawdzenia (opcjonalne, domyślnie 0)
| weechat | uptime | uptime WeeChat (format: "dni:hh:mm:ss") | "dni" (ilość dni) lub "sekundy" (ilość sekund) (opcjonalne) | weechat | uptime | Uptime WeeChat (format: "dni:hh:mm:ss") | "dni" (ilość dni) lub "sekundy" (ilość sekund) (opcjonalne)
| weechat | version | wersja WeeChat | - | weechat | version | Wersja WeeChat | -
| weechat | version_git | wersja git WeeChat (wyjście komendy "git describe" dla tylko dla wersji rozwojowej, puste dla wersji stabilnej) | - | weechat | version_git | Wersja git WeeChat (wyjście komendy "git describe" dla tylko dla wersji rozwojowej, puste dla wersji stabilnej) | -
| weechat | version_number | wersja WeeChat (jako liczba) | - | weechat | version_number | Wersja WeeChat (jako liczba) | -
| weechat | weechat_dir | katalog WeeChat | - | weechat | weechat_dir | Katalog WeeChat | -
| weechat | weechat_headless | 1 jeśli WeeChat działa w trybie bez interfejsu | - | weechat | weechat_headless | 1 jeśli WeeChat działa w trybie bez interfejsu | -
| weechat | weechat_libdir | katalog "lib" WeeChata | - | weechat | weechat_libdir | Katalog "lib" WeeChata | -
| weechat | weechat_localedir | katalog "locale" WeeChata | - | weechat | weechat_localedir | Katalog "locale" WeeChata | -
| weechat | weechat_sharedir | katalog "share" WeeChata | - | weechat | weechat_sharedir | Katalog "share" WeeChata | -
| weechat | weechat_site | Strona WeeChat | - | weechat | weechat_site | Strona WeeChat | -
@@ -12,7 +12,7 @@
| irc | irc_message_split | dziel wiadomość IRC (aby zmieściła się domyślnie w 512 bajtach) | "message": wiadomość IRC, "server": nazwa serwera (opcjonalne) | "msg1" ... "msgN": wiadomości do wysłania (bez kończącego "\r\n"), "args1" ... "argsN": argumenty wiadomości, "count": ilość wiadomości | irc | irc_message_split | dziel wiadomość IRC (aby zmieściła się domyślnie w 512 bajtach) | "message": wiadomość IRC, "server": nazwa serwera (opcjonalne) | "msg1" ... "msgN": wiadomości do wysłania (bez kończącego "\r\n"), "args1" ... "argsN": argumenty wiadomości, "count": ilość wiadomości
| weechat | focus_info | get focus info | "x": x coordinate (string with integer >= 0), "y": y coordinate (string with integer >= 0) | see function "hook_focus" in Plugin API reference | weechat | focus_info | pobierz informacje o focusie | "x": współrzędne w osi x (ciąg z liczbą >= 0), "y": y współrzędne w osi y (ciąg z liczbą >= 0) | zobacz funkcję „hook_focus” w opisie API wtyczek
|=== |===
// end::infos_hashtable[] // end::infos_hashtable[]
+392 -372
View File
@@ -17,61 +17,61 @@ cel: nazwa serwera
* `+allchan+`: wykonuje komendę na wszystkich kanałach na połączonych serwerach * `+allchan+`: wykonuje komendę na wszystkich kanałach na połączonych serwerach
---- ----
/allchan [-current] [-exclude=<channel>[,<channel>...]] <command> /allchan [-current] [-exclude=<kanał>[,<kanał>...]] <komenda>
[-current] -include=<channel>[,<channel>...] <command> [-current] -include=<kanał>[,<kanał>...] <komenda>
-current: execute command for channels of current server only -current: wykonuje komendę tylko na kanałach obecnego serwera
-exclude: exclude some channels (wildcard "*" is allowed) -exclude: wyklucza niektóre kanały (wildcard "*" jest dozwolony)
-include: include only some channels (wildcard "*" is allowed) -include: uwzględnia tylko niektóre znaki (wildcard "*" est dozwolony)
command: command to execute (or text to send to buffer if command does not start with '/') komenda: komenda do wykonania (albo tekst do wysłania do bufora jeśli komenda nie zaczyna się od '/')
Command and arguments are evaluated (see /help eval), the following variables are replaced: Komenda i argumenty są przetwarzane (zobacz /help eval), następujące zmienne są podmieniane:
$server server name $server nazwa serwera
$channel channel name $channel nazwa kanału
$nick nick on server $nick nick na serwerze
${irc_server.xxx} variable xxx in server ${irc_server.xxx} zmienna xxx na serwerze
${irc_channel.xxx} variable xxx in channel ${irc_channel.xxx} zmienna xxx w kanalel
Examples: Przykłady:
execute '/me is testing' on all channels: wykonuje '/me testuje' na wszystkich kanałach:
/allchan /me is testing /allchan /me testuje
say 'hello' everywhere but not on #weechat: wysyła 'witam' wszędzie tylko nie na #weechat:
/allchan -exclude=#weechat hello /allchan -exclude=#weechat witam
say 'hello' everywhere but not on #weechat and channels beginning with #linux: wysyła 'witam' wszędzie poza #weechat oraz kanałami zaczynającymi się od #linux:
/allchan -exclude=#weechat,#linux* hello /allchan -exclude=#weechat,#linux* witam
say 'hello' on all channels beginning with #linux: wysyła 'witam' na wszytkich kanałach zaczynających się od #linux:
/allchan -include=#linux* hello /allchan -include=#linux* witam
---- ----
[[command_irc_allpv]] [[command_irc_allpv]]
* `+allpv+`: wykonuje komendę na wszystkich prywatnych buforach wszystkich połączonych serwerów * `+allpv+`: wykonuje komendę na wszystkich prywatnych buforach wszystkich połączonych serwerów
---- ----
/allpv [-current] [-exclude=<nick>[,<nick>...]] <command> /allpv [-current] [-exclude=<nick>[,<nick>...]] <komenda>
[-current] -include=<nick>[,<nick>...] <command> [-current] -include=<nick>[,<nick>...] <komenda>
-current: execute command for private buffers of current server only -current: wykonuje komendę tylko na prywatnych buforach obecnego serwera
-exclude: exclude some nicks (wildcard "*" is allowed) -exclude: wyklucza niektóre nicki (wildcard "*" jest dozwolony)
-include: include only some nicks (wildcard "*" is allowed) -include: uwzględnia tylko niektóre znaki (wildcard "*" est dozwolony)
command: command to execute (or text to send to buffer if command does not start with '/') komenda: komenda do wykonania (albo tekst do wysłania do bufora jeśli komenda nie zaczyna się od '/')
Command and arguments are evaluated (see /help eval), the following variables are replaced: Komenda i argumenty są przetwarzane (zobacz /help eval), następujące zmienne są podmieniane:
$server server name $server nazwa serwera
$channel channel name $channel nazwa kanału
$nick nick on server $nick nick na serwerze
${irc_server.xxx} variable xxx in server ${irc_server.xxx} zmienna xxx na serwerze
${irc_channel.xxx} variable xxx in channel ${irc_channel.xxx} zmienna xxx w kanalel
Examples: Przykłady:
execute '/me is testing' on all private buffers: wykonuje '/me testuje' we wszystkich prywatnych buforach:
/allpv /me is testing /allpv /me testuje
say 'hello' everywhere but not for nick foo: wysyła wszędzie 'witam' tylko nie nickowi foo:
/allpv -exclude=foo hello /allpv -exclude=foo witam
say 'hello' everywhere but not for nick foo and nicks beginning with bar: wysyła wszędzie 'witam' tylko nie nickowi foo i nickom zaczynającym się od bar:
/allpv -exclude=foo,bar* hello /allpv -exclude=foo,bar* witam
say 'hello' for all nicks beginning with bar: wysyła 'witam' do wszystkich nicków zaczynających się od bar:
/allpv -include=bar* hello /allpv -include=bar* witam
close all private buffers: zamyka wszystkie prywatne bufory:
/allpv /close /allpv /close
---- ----
@@ -79,24 +79,24 @@ Examples:
* `+allserv+`: wykonuje komendę na wszystkich połączonych serwerach * `+allserv+`: wykonuje komendę na wszystkich połączonych serwerach
---- ----
/allserv [-exclude=<server>[,<server>...]] <command> /allserv [-exclude=<serwer>[,<serwer>...]] <komenda>
-include=<server>[,<server>...] <command> -include=<serwer>[,<serwer>...] <komenda>
-exclude: exclude some servers (wildcard "*" is allowed) -exclude: wyklucza niektóre serwery (wildcard "*" jest dozwolony)
-include: include only some servers (wildcard "*" is allowed) -include: uwzględnia tylko niektóre znaki (wildcard "*" jest dozwolony)
command: command to execute (or text to send to buffer if command does not start with '/') komenda: komenda do wykonania (albo tekst do wysłania do bufora jeśli komenda nie zaczyna się od '/')
Command and arguments are evaluated (see /help eval), the following variables are replaced: Komenda i argumenty są przetwarzane (zobacz /help eval), następujące zmienne są podmieniane:
$server server name $server nazwa serwera
$nick nick on server $nick nick na serwerze
${irc_server.xxx} variable xxx in server ${irc_server.xxx} zmienna xxx na serwerze
Examples: Przykłady:
change nick on all servers: zmienia nick na wszystkich serwerach:
/allserv /nick newnick /allserv /nick nowy_nick
set away on all servers: ustawia stan nieobecności na wszystkich serwerach:
/allserv /away I'm away /allserv /away Jestem nieobecny
do a whois on my nick on all servers: wykonuje whois na własnym nicku na wszystkich serwerach:
/allserv /whois $nick /allserv /whois $nick
---- ----
@@ -219,6 +219,7 @@ Przykłady:
---- ----
/dehalfop <nick> [<nick>...] /dehalfop <nick> [<nick>...]
* -yes
nick: nick lub maska (wildcard "*" jest dozwolony) nick: nick lub maska (wildcard "*" jest dozwolony)
*: zabiera status pół-operatora kanału wszystkim na kanale poza tobą *: zabiera status pół-operatora kanału wszystkim na kanale poza tobą
@@ -931,6 +932,7 @@ cel: nazwa serwera
---- ----
/voice <nick> [<nick>...] /voice <nick> [<nick>...]
* -yes
nick: nick lub maska (wildcard "*" jest dozwolony) nick: nick lub maska (wildcard "*" jest dozwolony)
*: daje głos każdemu na kanale *: daje głos każdemu na kanale
@@ -1003,32 +1005,32 @@ cel: odpowiedź powinna pasować do maski
addcompletion <dopełnienie> <alias> [<komenda>[;<komenda>...]] addcompletion <dopełnienie> <alias> [<komenda>[;<komenda>...]]
del <alias> [<alias>...] del <alias> [<alias>...]
list: list aliases (without argument, this list is displayed) list: lista aliasów (ta lista wyświetlana jest jeśli nie zostanie podany argument)
add: add an alias add: dodaje alias
addcompletion: add an alias with a custom completion addcompletion: dodaje alias z niestandardowym dopełnieniem
del: delete an alias del: usuwa alias
completion: completion for alias: by default completion is done with target command completion: dopełnienie dla aliasu: domyślnie dopełnienie wykonuje się z docelową komendą
note: you can use %%command to use completion of an existing command uwaga: można użyć %%komenda w celu użycia dopełnień dla istniejących komend
alias: name of alias alias: nazwa aliasu
command: command name with arguments (many commands can be separated by semicolons) komenda: nazwa komendy (wiele komend można oddzielić za pomocą średnika)
Note: in command, special variables are replaced: Ważne: dla komend specjalne zmienne są zastępowane odpowiednimi wartościami:
$n: argument 'n' (between 1 and 9) $n: argument 'n' (pomiędzy 1 i 9)
$-m: arguments from 1 to 'm' $-m: argumenty od 1 do 'm'
$n-: arguments from 'n' to last $n-: argumenty od 'n' do ostatniego
$n-m: arguments from 'n' to 'm' $n-m: argumenty od 'n' od 'm'
$*: all arguments $*: wszystkie argumenty
$~: last argument $~: ostatni argument
$var: where "var" is a local variable of buffer (see /buffer localvar) $var: gdzie "var" to zmienna lokalna buforu (zobacz /buffer localvar)
examples: $nick, $channel, $server, $plugin, $name przykłady: $nick, $channel, $server, $plugin, $name
Examples: Przykłady:
alias /split to split window horizontally: alias /split do poziomego podziału okna:
/alias add split /window splith /alias split /window splith
alias /hello to say "hello" on all channels but not on #weechat: alias /hello pisze "hello" na wszystkich kanałach poza #weechat:
/alias add hello /allchan -exclude=#weechat hello /alias hello /allchan -exclude=#weechat hello
alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin: alias /forcejoin wysyłający komende IRC "forcejoin" z dopełnieniem dla /sajoin:
/alias addcompletion %%sajoin forcejoin /quote forcejoin /alias -completion %%sajoin forcejoin /quote forcejoin
---- ----
// end::alias_commands[] // end::alias_commands[]
@@ -1100,79 +1102,83 @@ Przykłady:
---- ----
/buffer list /buffer list
add [-free] [-switch] <name> add [-free] [-switch] <nazwa>
clear [<number>|<name>|-merged|-all [<number>|<name>...]] clear [<numer>|<nazwa>|-merged|-all [<numer>|<nazwa>...]]
move <number>|-|+ move <numer>|-|+
swap <number1>|<name1> [<number2>|<name2>] swap <numer1>|<nazwa1> [<numer2>|<nazwa2>]
cycle <number>|<name> [<number>|<name>...] cycle <numer>|<nazwa> [<numer>|<nazwa>...]
merge <number>|<name> merge <numer>|<nazwa>
unmerge [<number>|-all] unmerge [<numer>|-all]
hide [<number>|<name>|-all [<number>|<name>...]] hide [<numer>|<nazwa>|-all [<numer>|<nazwa>...]]
unhide [<number>|<name>|-all [<number>|<name>...]] unhide [<numer>|<nazwa>|-all [<numer>|<nazwa>...]]
renumber [<number1> [<number2> [<start>]]] renumber [<numer1> [<numer2> [<start>]]]
close [<n1>[-<n2>]|<name>...] close [<n1>[-<n2>]|<nazwa>...]
notify [<level>] notify <poziom>
localvar [<number>|<name>] listvar [<numer>|<nazwa>]
set <property> [<value>] setvar <nazwa> [<value>]
get <property> delvar <nazwa>
<number>|-|+|<name> set <właściwość> [<wartość>]
get <właściwość>
<numer>|-|+|<nazwa>
list: list buffers (without argument, this list is displayed) list: wyświetla listę buforów (bez podania argumenty wyświetlana jest ta lista)
add: add a new buffer (it can be closed with "/buffer close" or input "q") add: dodaje nowy bufor (może zostać zamknięty komendą "/buffer close" albo "q")
clear: clear buffer content (number for a buffer, -merged for merged buffers, -all for all buffers, or nothing for current buffer) clear: czyści zawartość bufora (numer bufora, -merged dla połączonych buforów, -all dla wszystkich buforów, lub nic dla obecnego bufora)
move: move buffer in the list (may be relative, for example -1); "-" = move to first buffer number, "+" = move to last buffer number + 1 move: przesuwa bufor na liście (może być względne, np -1); "-" = przesuwa na pierwszy numer, "+" = przesuwa na ostatni numer bufora +1
swap: swap two buffers (swap with current buffer if only one number/name given) swap: zamienia miejscami dwa bufory (zamienia z obecnym buforem, jeśli podano tylko jeden numer/nazwę)
cycle: jump loop between a list of buffers cycle: przełącza w pętli między listą buforów
merge: merge current buffer to another buffer (chat area will be mix of both buffers) merge: łączy obecny bufor z innym (obszar rozmowy zostanie pomieszany między oba bufory)
(by default ctrl-x switches between merged buffers) (domyślnie ctrl-x przełącza pomiędzy połączonymi buforami)
unmerge: unmerge buffer from other buffers which have same number unmerge: odłącza bufor od innych mających taki sam numer
hide: hide the buffer hide: ukrywa bufor
unhide: unhide the buffer unhide: przywraca ukryty bufor
renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumber is off) renumber: zmienia numer bufora (działa tylko, jeśli opcja weechat.look.buffer_auto_renumber jest wyłączona)
close: close buffer (number/range or name is optional) close: zamyka bufor (numer/przedział są opcjonalne)
notify: display or set notify level for current buffer: this level determines whether buffer will be added to hotlist or not: notify: ustawia poziom powiadomień dla obecnego bufora: ten poziom określa czy bufor zostanie dodany do hotlisty czy nie:
none: never none: nigdy
highlight: for highlights only highlight: tylko dla higlightów
message: for messages from users + highlights message: wiadomości od użytkowników + highlighty
all: all messages all: wszystkie wiadomości
reset: reset to default value (all) reset: przywraca wartości domyślne (all)
localvar: display local variables for the buffer localvar: wyświetla zmienne lokalne obecnego bufora
set: set a property for current buffer setvar: ustawia zmienną lokalną w obecnym buforze
get: display a property of current buffer delvar: kasuje zmienną lokalna z obecnego bufora
number: jump to buffer by number, possible prefix: set: ustawia właściwość obecnego bufora
'+': relative jump, add number to current get: wyświetla właściwości obecnego bufora
'-': relative jump, sub number to current numer: przechodzi do bufora o numerze, dostępne prefiksy:
'*': jump to number, using option "weechat.look.jump_current_to_previous_buffer" '+': przejście względne, dodaje numer do obecnego
-: jump to first buffer number '-': przejście względne, odejmuje numer od obecnego
+: jump to last buffer number '*': przejście do numeru, używając opcji "weechat.look.jump_current_to_previous_buffer"
name: jump to buffer by (partial) name -: przejście do pierwszego bufora
+: przejście do ostatniego bufora
nazwa: przejście do bufora o (częściowej) nazwie
Examples: Przykłady:
clear current buffer: czyści zawartość obecnego bufora:
/buffer clear /buffer clear
move buffer to number 5: przenosi bufor na numer 5:
/buffer move 5 /buffer move 5
swap buffer 1 with 3: zamienia bufor 1 z 3:
/buffer swap 1 3 /buffer swap 1 3
swap buffer #weechat with current buffer: zamienia bufor #weechat z obecnym buforem:
/buffer swap #weechat /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 /buffer cycle #chan1 #chan2 #chan3
merge with core buffer: łączy z głównym buforem:
/buffer merge 1 /buffer merge 1
merge with #weechat buffer: łączy z buforem #weechat:
/buffer merge #weechat /buffer merge #weechat
unmerge buffer: odłącza bufory:
/buffer unmerge /buffer unmerge
close current buffer: zamyka obecny bufor:
/buffer close /buffer close
close buffers 5 to 7: zamyka bufory od 5 do 7:
/buffer close 5-7 /buffer close 5-7
jump to #weechat: przechodzi do #weechat:
/buffer #weechat /buffer #weechat
jump to next buffer: przechodzi do następnego bufora:
/buffer +1 /buffer +1
jump to last buffer number: przechodzi do ostatniego bufora:
/buffer + /buffer +
---- ----
@@ -1295,78 +1301,80 @@ infolists: wyświetla informacje o infolistach
---- ----
/eval [-n|-s] [-d] <wyrażenie> /eval [-n|-s] [-d] <wyrażenie>
[-n] [-d ] -c <wyrażenie1> <operator> <wyrażenie2> [-n] [-d [-d]] -c <wyrażenie1> <operator> <wyrażenie2>
-n: display result without sending it to buffer (debug mode) -n: wyświetla wynik bez wysyłania go do buforu (tryb debugowania)
-s: split expression before evaluating it (many commands can be separated by semicolons) -s: podziel wyrażenie przed przetworzeniem go (wiele komend może być oddzielonych średnikami)
-d: display debug output after evaluation -d: wyświetl wyjście debugowe po ewaluacji
-c: evaluate as condition: use operators and parentheses, return a boolean value ("0" or "1") -c: przetwarza jako warunek: użyj operatorów i nawiasów, zwraca wartość logiczną ("0" lub "1")
expression: expression to evaluate, variables with format ${variable} are replaced (see below); many commands can be separated by semicolons wyrażenie: wyrażenie do przetworzenia, zmienne o formacie ${zmienna} są zastępowane (zobacz niżej); wiele komend można oddzielić średnikami
operator: a logical or comparison operator: operator: operator logiczny lub porównania:
- logical operators: - operatory logiczne:
&& boolean "and" && logiczne „i”
|| boolean "or" || logiczne „lub”
- comparison operators: - operatory porównania:
== equal == równy
!= not equal != różny
<= less or equal <= mniejszy lub równy
< less < mniejszy
>= greater or equal >= większy lub równy
> greater > większy
=~ is matching POSIX extended regex =~ pasuje do rozszerzonego wyrażenia regularnego POSIX
!~ is NOT matching POSIX extended regex !~ NIE pasuje do rozszerzonego wyrażenia regularnego POSIX
==* is matching mask, case sensitive (wildcard "*" is allowed) ==* pasuje do maski, rozróżnia wielkość znaków (dzika karta „*” dozwolona)
!!* is NOT matching mask, case sensitive (wildcard "*" is allowed) !!* NIE pasuje do maski, rozróżnia wielkość znaków (dzika karta „*” dozwolona)
=* is matching mask, case insensitive (wildcard "*" is allowed) =* pasuje do maski, nie rozróżnia wielkość znaków (dzika karta „*” dozwolona)
!* is NOT matching mask, case insensitive (wildcard "*" is allowed) !* NIE pasuje do maski, nie rozróżnia wielkość znaków (dzika karta „*” dozwolona)
==- is included, case sensitive ==- jest zawarte, rozróżnia wielkość znaków
!!- is NOT included, case sensitive !!- NIE jest zawarte,rozróżnia wielkość znaków
=- is included, case insensitive =- jest zawarte, nie rozróżnia wielkość znaków
!- is NOT included, case insensitive !- NIE jest zawarte, nie rozróżnia wielkość znaków
An expression is considered as "true" if it is not NULL, not empty, and different from "0". Wyrażenie jest uznawane za „prawdziwe” jeśli nie jest NULL, nie jest puste, oraz różni się od „0”.
The comparison is made using floating point numbers if the two expressions are valid numbers, with one of the following formats: 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:
- integer (examples: 5, -7) - liczby całkowite (przykłady: 5, -7)
- floating point number (examples: 5.2, -7.5, 2.83e-2) - liczby zmiennoprzecinkowe (przykłady: 5.2, -7.5, 2.83e-2)
- hexadecimal number (examples: 0xA3, -0xA3) - liczby szesnastkowe (przykłady: 0xA3, -0xA3)
To force a string comparison, you can add double quotes around each expression, for example: 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 ==> 0
"50" > "100" ==> 1 "50" > "100" ==> 1
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority: Niektóre zmienne w wyrażeniach są zamieniane, poprzez zastosowanie formatu ${zmienna}, według priorytetu zmienną może być:
1. an evaluated sub-string (format: "eval:xxx") 1. przetworzony ciąg (format: "eval:xxx")
2. a string with escaped chars (format: "esc:xxx" or "\xxx") 2. przetworzone wyrażenie (format: "eval_cond:xxx")
3. a string with chars to hide (format: "hide:char,string") 3. ciąg z wyescapowanymi znakami (format: "esc:xxx" lub "\xxx")
4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string") 4. ciąg ze znakami do ukrycia (format: "hide:char,string")
or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string") 5. ciąg o maksymalnej długości (format: "cut:max,suffix,string" lub "cut:+max,suffix,string")
5. a reversed string (format: "rev:xxx" or "revscr:xxx") lub maksymalna ilość znaków wyświetlanych na ekranie (format: "cutscr:max,suffix,string" lub "cutscr:+max,suffix,string")
6. a repeated string (format: "repeat:count,string") 6. odwrócony ciąg (format: "rev:xxx")
7. length of a string (format: "length:xxx" or "lengthscr:xxx") 7. powtórzony ciąg (format: "repeat:ilość,ciąg")
8. a color (format: "color:xxx", see "Plugin API reference", function "color") 8. długość ciągu (format: "length:xxx" or "lengthscr:xxx")
9. a modifier (format: "modifier:name,data,string") 9. kolor (format "color:xxx", zobacz „Opis API wtyczek”, funkcja "color")
10. an info (format: "info:name,arguments", arguments are optional) 10. modyfikator (format: "modifier:name,data,string")
11. a base 16/32/64 encoded/decoded string (format: "base_encode:base,xxx" or "base_decode:base,xxx") 11. informacja (format: "info:nazwa,argumenty", argumenty są opcjonalne)
12. current date/time (format: "date" or "date:format") 12. ciąg zakodowany/zdekodowany z base 16/32/64 (format: "base_encode:base,xxx" lub "base_decode:base,xxx")
13. an environment variable (format: "env:XXX") 13. obecna data/czas (format: "date" lub "date:format")
14. a ternary operator (format: "if:condition?value_if_true:value_if_false") 14. zmienna środowiskowa (format: "env:XXX")
15. result of an expression with parentheses and operators + - * / // % ** (format: "calc:xxx") 15. wyrażenie warunkowe (format: "if:condition?value_if_true:value_if_false")
16. an option (format: "file.section.option") 16. wynik wyrażenia z nawiasami i operatorami + - * / // % ** (format: "calc:xxx")
17. a local variable in buffer 17. opcja (format: plik.sekcja.opcja)
18. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer. 18 zmienna lokalna w buforze
Format for hdata can be one of following: 19. nazwa hdatay/zmiennej (wartość jest automatycznie konwertowana na ciąg znaków), domyślnie „window” i „buffer” wskazują na aktualne okno/bufor.
hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed) Format dla hdata może być jednym z poniższych:
hdata[list].var1.var2...: start with a hdata using a list, for example: hdata.zmienna1.zmienna2...: inicjuje hdata (wskaźnik musi być znany), następnie wypytuje zmienne jedna po drugiej (inne hdata mogą być następne)
${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers hdata[list].zmienna1.zmienna2...: inicjuje hdata z wykorzystaniem listy, na przykład:
${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins ${buffer[gui_buffers].full_name}: pełna nazwa buforu w połączonej liście buforów
hdata[pointer].var1.var2...: start with a hdata using a pointer, for example: ${plugin[weechat_plugins].name}: nazwa pierwszej wtyczki w połączonej liście wtyczek
${buffer[0x1234abcd].full_name}: full name of the buffer with this pointer (can be used in triggers) hdata[wskaźnik].zmienna1.zmienna2...: zacznij z hdata używając wskaźnika, na przykład:
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get". ${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 ${eval_cond:${window.win_width}>100} ==> 1
/eval -n ${info:version} ==> 0.4.3 /eval -n ${info:version} ==> 0.4.3
/eval -n ${env:HOME} ==> /home/user /eval -n ${env:HOME} ==> /home/user
/eval -n ${weechat.look.scroll_amount} ==> 3 /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} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320 /eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat /eval -n ${window.buffer.full_name} ==> core.weechat
@@ -1384,7 +1392,7 @@ Examples (simple strings):
/eval -n ${base_encode:64,test} ==> dGVzdA== /eval -n ${base_encode:64,test} ==> dGVzdA==
/eval -n ${base_decode:64,dGVzdA==} ==> test /eval -n ${base_decode:64,dGVzdA==} ==> test
Examples (conditions): Przykłady (warunki):
/eval -n -c ${window.buffer.number} > 2 ==> 0 /eval -n -c ${window.buffer.number} > 2 ==> 0
/eval -n -c ${window.win_width} > 100 ==> 1 /eval -n -c ${window.win_width} > 100 ==> 1
/eval -n -c (8 > 12) || (5 > 2) ==> 1 /eval -n -c (8 > 12) || (5 > 2) ==> 1
@@ -1403,34 +1411,36 @@ Examples (conditions):
---- ----
/filter list /filter list
enable|disable|toggle [<nazwa>|@] enable|disable|toggle [<nazwa>|@]
add | addreplace<nazwa> <bufor>[,<bufor>...] <tagi> <regex> add|addreplace<nazwa> <bufor>[,<bufor>...] <tagi> <regex>
rename <nazwa> <nowa_nazwa> rename <nazwa> <nowa_nazwa>
recreate <nazwa>
del <nazwa>|-all del <nazwa>|-all
list: wyświetla wszystkie filtry list: wyświetla wszystkie filtry
enable: włącza filtry (filtry są domyślnie włączone) enable: włącza filtry (filtry są domyślnie włączone)
disable: wyłącza filtry disable: wyłącza filtry
toggle: przełącza filtry toggle: przełącza filtry
nazwa: nazwa filtru ("@" = włącza/wyłącza wszystkie filtry w obecnym buforze) nazwa: nazwa filtru ("@" = włącza/wyłącza wszystkie filtry w obecnym buforze)
add: dodaje filtr add: dodaje filtr
addreplace: dodaje lub nadpisuje istniejący filtr addreplace: dodaje lub nadpisuje istniejący filtr
rename: zmienia nazwę filtru rename: zmienia nazwę filtru
del: usuwa filtr recreate: ustawia linie poleceń na komendę filtra umożliwiając edycję
-all: usuwa wszystkie filtry del: usuwa filtr
bufor: oddzielona przecinkami lisa buforów, dla których filtr jest aktywny: -all: usuwa wszystkie filtry
- jest to pełna nazwa zawierająca wtyczkę (przykład: "irc.freenode.#weechat" lub "irc.server.freenode") bufor: oddzielona przecinkami lisa buforów, dla których filtr jest aktywny:
- "*" oznacza wszystkie bufory - jest to pełna nazwa zawierająca wtyczkę (przykład: "irc.freenode.#weechat" lub "irc.server.freenode")
- nazwa zaczynająca się od '!' jest wykluczana - "*" oznacza wszystkie bufory
- dozwolony jest znak "*" - nazwa zaczynająca się od '!' jest wykluczana
- dozwolony jest znak "*"
tagi: lista tagów oddzielona przecinkiem, np: "irc_join,irc_part,irc_quit" tagi: lista tagów oddzielona przecinkiem, np: "irc_join,irc_part,irc_quit"
- logiczne "i": użyj "+" pomiędzy tagami (na przykład: "nick_toto+irc_action") - logiczne "i": użyj "+" pomiędzy tagami (na przykład: "nick_toto+irc_action")
- dozwolony jest znak "*" - dozwolony jest znak "*"
- jeśli tag zaczyna się od '!', wtedy jest on wykluczony i NIE może znajdować się w wiadomości - jeśli tag zaczyna się od '!', wtedy jest on wykluczony i NIE może znajdować się w wiadomości
regex: rozszerzone wyrażenie regularne POSIX do wyszukania w linii regex: rozszerzone wyrażenie regularne POSIX do wyszukania w linii
- użyj '\t' do oddzielenia prefiksu od wiadomości, znaki specjalne jak '|' muszą zostać poprzedzone '\' np: '\|' - użyj '\t' do oddzielenia prefiksu od wiadomości, znaki specjalne jak '|' muszą zostać poprzedzone '\' np: '\|'
- jeśli wyrażenie zaczyna się od '!', wtedy pasujący wynik jest odwracany (użyj '\!', aby zacząć od '!') - jeśli wyrażenie zaczyna się od '!', wtedy pasujący wynik jest odwracany (użyj '\!', aby zacząć od '!')
- dwa wyrażenia są tworzone: jedno dla prefiksu, drugie dla wiadomości - dwa wyrażenia są tworzone: jedno dla prefiksu, drugie dla wiadomości
- wielkość znaków nie ma znaczenia dla wyrażeń, jeśli zaczynają się od "(?-i)" wielkość znaków ma znaczenie - wielkość znaków nie ma znaczenia dla wyrażeń, jeśli zaczynają się od "(?-i)" wielkość znaków ma znaczenie
Domyślny skrót klawiszowy alt+'=' włącza/wyłącza filtrowanie globalnie i alt+'-' włącza/wyłącza filtrowanie w obecnym buforze. Domyślny skrót klawiszowy alt+'=' włącza/wyłącza filtrowanie globalnie i alt+'-' włącza/wyłącza filtrowanie w obecnym buforze.
@@ -2106,50 +2116,50 @@ Przykłady:
bar bar
refresh refresh
enable: enable buflist enable: włącza buflist
disable: disable buflist disable: wyłącza buflist
toggle: toggle buflist toggle: przełącza buflist
bar: add the "buflist" bar bar: dodaje pasek "buflist"
refresh: force the refresh of the bar items (buflist, buflist2 and buflist3) refresh: wymusza odświeżenie elementów paska (buflist, buflist2 oraz buflist3)
The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options: Linie z buforami są wyświetlane za pomocą przetwarzania ciągów (zobacz /help eval żeby poznać format), za pomocą tych opcji:
- buflist.look.display_conditions: conditions to display a buffer in the list - buflist.look.display_conditions: warunki wyświetlenia buforu na liście
- buflist.format.buffer: format for a buffer which is not current buffer - buflist.format.buffer: format dla buforu nie będącego obecnym buforem
- buflist.format.buffer_current: format for the current buffer - buflist.format.buffer_current: format format dla obecnego buforu
The following variables can be used in these options: Następujące zmienne mogą być użyte w powyższych opcjach:
- bar item data (see hdata "bar_item" in API doc for a complete list), for example: - dane elementu paska (pełną listę można znaleźć w dokumentacji API dla hdata "bar_item"), na przykład:
- ${bar_item.name} - ${bar_item.name}
- window data, where the bar item is displayed (there's no window in root bars, see hdata "window" in API doc for a complete list), for example: - dane okna, w którym element paska jest wyświetlany (okna nie ma w głównych paskach, zobacz hdata "window" w dokumentacji API dla pełnej listy zmiennych), na przykład:
- ${window.number} - ${window.number}
- ${window.buffer.full_name} - ${window.buffer.full_name}
- buffer data (see hdata "buffer" in API doc for a complete list), for example: - dane buforu (zobacz hdata "buffer" w dokumentacji API dla pełnej listy zmiennych), na przykład:
- ${buffer.number} - ${buffer.number}
- ${buffer.name} - ${buffer.name}
- ${buffer.full_name} - ${buffer.full_name}
- ${buffer.short_name} - ${buffer.short_name}
- ${buffer.nicklist_nicks_count} - ${buffer.nicklist_nicks_count}
- irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc) - irc_server: dane serwera IRC, zdefiniowane tylko w buforze IRC (zobacz hdata "irc_server" w dokumentacji API)
- irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc) - irc_channel: dane kanału IRC, zdefiniowane tylko w buforze kanału IRC (zobacz hdata "irc_channel" w dokumentacji API)
- extra variables added by buflist for convenience: - dodatkowe zmienne dodane dla wygody przez listę buforów:
- ${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_buffer}: przetworzona wartość opcji buflist.format.buffer; może to zostać użyte w opcji buflist.format.buffer_current na przykład do zmiany koloru tła
- ${current_buffer}: a boolean ("0" or "1"), "1" if this is the current buffer; it can be used in a condition: ${if:${current_buffer}?...:...} - ${current_buffer}: boolowskie ("0" lub "1"), "1" jeśli jest to obecny bufor; może zostać użyte w warunku: ${if: ${current_buffer}?...:...}
- ${merged}: a boolean ("0" or "1"), "1" if the buffer is merged with at least another buffer; it can be used in a condition: ${if:${merged}?...:...} - ${merged}: boolowskie ("0" lub "1"), "1" jeśli bufor jest połączony z przynajmniej jednym innym buforem; może zostać użyte w warunku: ${if:${merged}?...:...}
- ${format_number}: indented number with separator (evaluation of option buflist.format.number) - ${format_number}: wyrównany numer z separatorem (przetworzona opcja buflist.format.number)
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers; for merged buffers, this variable is set with number for the first buffer and spaces for the next buffers with same number - ${number}: wyrównany numer, na przykład " 1" jeśli buforów jest między 10 a 99
- ${number2}: indented number, for example " 1" if there are between 10 and 99 buffers - ${number2}: wyrównany numer, na przykład " 1" jeśli buforów jest między 10 a 99
- ${number_displayed}: "1" if the number is displayed, otherwise "0" - ${number_displayed}: "1" jeśli numer jest wyświetlany, w przeciwnym wypadku "0"
- ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent) - ${indent}: wyrównanie dla nazwy (kanały i bufory prywatne są wyrównywane) (przetworzona opcja buflist.format.indent)
- ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix) - ${format_nick_prefix}: kolorowy prefiks nicka dla kanału (przetworzona opcja 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) - ${color_nick_prefix}: kolor prefiksu nicka dla kanału (ustawiany, jeśli opcja buflist.look.nick_prefix jest włączona)
- ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled) - ${nick_prefix}: prefix nicka dla kanału (ustawiany, jeśli opcja buflist.look.nick_prefix jest włączona)
- ${format_name}: formatted name (evaluation of option buflist.format.name) - ${format_name}: sformatowana nazwa (przetworzona opcja buflist.format.name)
- ${name}: the short name (if set), with a fallback on the name - ${name}: skrócona nazwa (jeśli ustawiona inaczej zwraca pełną nazwę)
- ${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) - ${color_hotlist}: kolor zależący od najwyższego poziomu hotlisty dla bufora (przetworzona opcja buflist.format.hotlist_xxx, gdzie xxx to poziom)
- ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist) - ${format_hotlist}: sformatowana hotlista (przetworzenie opcji buflist.format.hotlist)
- ${hotlist}: the raw hotlist - ${hotlist}: niesformatowana hotlista
- ${hotlist_priority}: "none", "low", "message", "private" or "highlight" - ${hotlist_priority}: "none", "low", "message", "private" lub "highlight"
- ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag) - ${format_lag}: opóźnienie buforu serwera IRC, puste jeśli nie ma opóźnienia (przetworzona opcja buflist.format.lag)
---- ----
// end::buflist_commands[] // end::buflist_commands[]
@@ -2174,68 +2184,68 @@ kodowanie: nowe kodowanie dla obecnego bufora
---- ----
/exec -list /exec -list
[-sh|-nosh] [-bg|-nobg] [-stdin|-nostdin] [-buffer <name>] [-l|-o|-oc|-n|-nf] [-oerr] [-cl|-nocl] [-sw|-nosw] [-ln|-noln] [-flush|-noflush] [-color ansi|auto|irc|weechat|strip] [-rc|-norc] [-timeout <timeout>] [-name <name>] [-pipe <command>] [-hsignal <name>] <command> [-sh|-nosh] [-bg|-nobg] [-stdin|-nostdin] [-buffer <nazwa>] [-l|-o|-n|-nf] [-oerr] [-cl|-nocl] [-sw|-nosw] [-ln|-noln] [-flush|-noflush] [-color ansi|auto|irc|weechat|strip] [-rc|-norc] [-timeout <czas>] [-name <nazwa>] [-pipe <komenda>] [-hsignal <nazwa>] <komenda>
-in <id> <text> -in <id> <tekst>
-inclose <id> [<text>] -inclose <id> [<tekst>]
-signal <id> <signal> -signal <id> <sygnał>
-kill <id> -kill <id>
-killall -killall
-set <id> <property> <value> -set <id> <właściwość> <wartość>
-del <id>|-all [<id>...] -del <id>|-all [<id>...]
-list: list commands -list: wyświetla komendy
-sh: use the shell to execute the command, many commands can be piped (WARNING: use this option ONLY if all arguments are safe, see option -nosh) -sh: użyj powłoki do wykonania komendy (UWAGA: użyj tej opcji TYLKO jeśli wszystkie argumenty są bezpieczne, zobacz opcję -nosh)
-nosh: do not use the shell to execute the command (required if the command has some unsafe data, for example the content of a message from another user) (default) -nosh: nie używaj powłoki do wykonania komendy (wymagane jeśli komenda posiada niebezpieczne dane, na przykład zawartość wiadomości od innego użytkownika) (domyślne)
-bg: run process in background: do not display process output neither return code (not compatible with options -o/-oc/-n/-nf/-pipe/-hsignal) -bg: uruchom proces w tle: nie wyświetlaj wyjścia z procesu ani zwracanego kodu (nie kompatybilne z opcjami -o/-oc/-n/-nf/-pipe/-hsignal)
-nobg: catch process output and display return code (default) -nobg: przechwyć całość wyjścia z procesu i wyświetl kod wyjścia (domyślne)
-stdin: create a pipe for sending data to the process (with /exec -in/-inclose) -stdin: tworzy strumień do wysyłania danych do procesu (za pomocą /exec -in/-inclose)
-nostdin: do not create a pipe for stdin (default) -nostdin: nie twórz strumienia dla stdin (domyślne)
-buffer: display/send output of command on this buffer (if the buffer is not found, a new buffer with name "exec.exec.xxx" is created) -buffer: wyświetl/wyślij wyjście komendy do tego bufora (jeśli bufor nie zostanie znaleziony zostanie utworzony nowy bufor o nazwie "exec.exec.xxx")
-l: display locally output of command on buffer (default) -l: wyświetl lokalnie wyście z komendy w buforze (domyślne)
-o: send output of command to the buffer without executing commands (not compatible with options -bg/-pipe/-hsignal) -o: wyślij wyjście z komendy do bufora (nie kompatybilne z opcjami -bg/-pipe/-hsignal)
-oc: send output of command to the buffer and execute commands (lines starting with "/" or another custom command char) (not compatible with options -bg/-pipe/-hsignal) -oc: wysyła wyjście komendy do bufora i wykonuje komendy (linie zaczynające się od "/" lub własnego znaku komendy) (nie kompatybilne z opcjami -bg/-pipe/-hsignal)
-n: display output of command in a new buffer (not compatible with options -bg/-pipe/-hsignal) -n: wyświetl wyjście komendy w nowym buforze (nie kompatybilne z opcjami -bg/-pipe/-hsignal)
-nf: display output of command in a new buffer with free content (no word-wrap, no limit on number of lines) (not compatible with options -bg/-pipe/-hsignal) -nf: wyświetl wyjście komendy w nowym buforze z wolna zawartością (brak zawijania słów, bez limitu ilości linii) (nie kompatybilne z opcjami -bg/-pipe/-hsignal)
-oerr: also send stderr (error output) to the buffer (can be used only with options -o and -oc) -oerr: wysyłaj również stderr (wyjście błędu)do bufora (można użyć tylko z opcjami -o i -oc)
-cl: clear the new buffer before displaying output -cl: wyczyść nowy bufor przed wyświetleniem wyjścia
-nocl: append to the new buffer without clear (default) -nocl: dodaj do nowego bufora bez czyszczenia zawartości (domyślne)
-sw: switch to the output buffer (default) -sw: przełącz na bufor wyjściowy (domyślne)
-nosw: don't switch to the output buffer -nosw: nie przełączaj na bufor wyjściowy
-ln: display line numbers (default in new buffer only) -ln: wyświetl numery linii (domyślne tylko w nowym buforze)
-noln: don't display line numbers -noln: nie wyświetlaj numerów linii
-flush: display output of command in real time (default) -flush: wyświetl wyjście z komendy w czasie rzeczywistym (domyślne)
-noflush: display output of command after its end -noflush: wyświetl wyjście z komendy po jej zakończeniu
-color: action on ANSI colors in output: -color: akcja na kolorach ANSI w wyjściu:
ansi: keep ANSI codes as-is ansi: zachowaj kody ANSI
auto: convert ANSI colors to WeeChat/IRC (default) auto: konwertuj kolory ANSI na WeeChat/IRC (domyślne)
irc: convert ANSI colors to IRC colors irc: konwertuj kolory ANSI na kolory IRC
weechat: convert ANSI colors to WeeChat colors weechat: konwertuj kolory ANSI na kolory WeeChat
strip: remove ANSI colors strip: usuń kolory ANSI
-rc: display return code (default) -rc: wyświetl kod wyjścia (domyślne)
-norc: don't display return code -norc: nie wyświetlaj kodu wyjścia
-timeout: set a timeout for the command (in seconds) -timeout: ustaw timeout dla komendy (w sekundach)
-name: set a name for the command (to name it later with /exec) -name: ustaw nazwę dla komendy (do wywołania później za pomocą /exec)
-pipe: send the output to a WeeChat/plugin command (line by line); if there are spaces in command/arguments, enclose them with double quotes; variable $line is replaced by the line (by default the line is added after the command, separated by a space) (not compatible with options -bg/-o/-oc/-n/-nf) -pipe: wyślij wyjście do WeeChat/wtyczki (linia po linii); jeśli występują spacje w komendzie/argumentach, otocz je cudzysłowem; zmienna $line jest zastępowana przez linie (domyślnie linia jest dodawana za komendą, oddzielona spac) (nie kompatybilne z opcjami -bg/-o/-oc/-n/-nf)
-hsignal: send the output as a hsignal (to be used for example in a trigger) (not compatible with options -bg/-o/-oc/-n/-nf) -hsignal: wyślij wyjście jako hsignal (w celu użycia na przykład w triggerze) (nie kompatybilne z opcjami -bg/-o/-oc/-n/-nf)
command: the command to execute; if beginning with "url:", the shell is disabled and the content of URL is downloaded and sent as output komenda: komenda do wykonania; jeśli zaczyna się od "url:", powłoka jest wyłączana i zawartość URLa jest pobierana i wysyłana jako wyjście
id: command identifier: either its number or name (if set with "-name xxx") id: identyfikator komendy: numer lub nazwa (jeśli ustawiona przez "-name xxx")
-in: send text on standard input of process -in: wyślij tekst na standardowe wejście procesu
-inclose: same as -in, but stdin is closed after (and text is optional: without text, the stdin is just closed) -inclose: to samo co -in, ale stdin jest zamykane (tekst jest opcjonalny: bez niego stdin jest po prostu zamykane)
-signal: send a signal to the process; the signal can be an integer or one of these names: hup, int, quit, kill, term, usr1, usr2 -signal: wysyła sygnał do procesu; sygnał może być liczbą całkowitą lub jedna z nazw: hup, int, quit, kill, term, usr1, usr2
-kill: alias of "-signal <id> kill" -kill: alias dla "-signal <id> kill"
-killall: kill all running processes -killall: zabija wszystkie działające procesy
-set: set a hook property (see function hook_set in plugin API reference) -set: ustawia przypisaną właściwość (zobacz funkcję hook_set w opisie API wtyczek)
property: hook property właściwość: przypisana właściwość
value: new value for hook property wartość: nowa wartość
-del: delete a terminated command -del: usuń zakończoną komendę
-all: delete all terminated commands -all: usuń wszystkie zakończone komendy
Default options can be set in the option exec.command.default_options. Domyślne opcje mogą być ustawione za pomocą opcji exec.command.default_options.
Examples: Przykłady:
/exec -n ls -l /tmp /exec -n ls -l /tmp
/exec -sh -n ps xu | grep weechat /exec -sh -n ps xu | grep weechat
/exec -n -norc url:https://pastebin.com/raw.php?i=xxxxxxxx /exec -n -norc url:http://pastebin.com/raw.php?i=xxxxxxxx
/exec -nf -noln links -dump https://weechat.org/files/doc/devel/weechat_user.en.html /exec -nf -noln links -dump https://weechat.org/files/doc/devel/weechat_user.en.html
/exec -o uptime /exec -o uptime
/exec -pipe "/print Machine uptime:" uptime /exec -pipe "/print Machine uptime:" uptime
@@ -2818,6 +2828,16 @@ W buforze skryptów, możliwe statusy dla każdego ze skryptów:
| zainstalowany | zainstalowany
popularny skrypt popularny skrypt
Wynik polecenia /script list, dopuszczalne statusy dla każdego skryptu:
* ? i a H N
| | | | | |
| | | | | przestarzały (dostępna jest nowa wersja)
| | | | wstrzymany
| | | automatycznie ładowany
| | zainstalowany
| nieznany skrypt (nie może zostać pobrany/zaktualizowany)
popularny skrypt
Skróty klawiszowe w buforze skryptów: Skróty klawiszowe w buforze skryptów:
alt+i instaluje skrypt alt+i instaluje skrypt
alt+r usuwa skrypt alt+r usuwa skrypt
@@ -2933,70 +2953,70 @@ Bez argumentów ta komenda wyświetli wszystkie załadowane wtyczki.
default -yes default -yes
monitor [<filtr>] monitor [<filtr>]
list: list triggers (without argument, this list is displayed) list: lista triggerów (jeśli nie podano argumentu, wyświetli się ta lista)
listfull: list triggers with detailed info for each trigger listfull: lista triggerów ze szczegółowymi informacjami
listdefault: list default triggers listdefault: lista domyślnych triggerów
add: add a trigger add: dodaje trigger
addoff: add a trigger (disabled) addoff: dodaje trigger (wyłączony)
addreplace: add or replace an existing trigger addreplace: dodaje lub zastępuje istniejący trigger
name: name of trigger nazwa: nazwa triggera
hook: signal, hsignal, modifier, line, print, command, command_run, timer, config, focus, info, info_hashtable hook: signal, hsignal, modifier, line, print, command, command_run, timer, config, focus, info, info_hashtable
arguments: arguments for the hook, depending on hook (separated by semicolons): argumenty: argumenty dla uchwytu, w zależności od jego typu (oddzielone średnikami):
signal: name(s) of signal (required) signal: nazwa(-y) signal (wymagane)
hsignal: name(s) of hsignal (required) hsignal: nazwa(-y) hsignal (wymagane)
modifier: name(s) of modifier (required) modifier: nazwa(-y) modifier (wymagane)
line: buffer type ("formatted", "free" or "*"), list of buffer masks, tags line: typ bufora("formatted", "free" lub "*"), lista mask buforów, tagi
print: buffer, tags, message, strip colors print: bufor, tagi, wiadomość, pomiń kolory
command: command (required), description, arguments, description of arguments, completion (all arguments except command are evaluated, see /help eval) command: komenda (wymagane), opis, argumenty, opis argumentów, dopełnienie (wszystkie argumenty poza komendą są przetwarzane, "${tg_trigger_name}" jest zastępowane przez nazwę triggera, zobacz /help eval)
command_run: command(s) (required) command_run: komenda(-y) (wymagane)
timer: interval (required), align on second, max calls timer: interwał (wymagane), wyrównanie sekund, ilość wywołań
config: name(s) of option (required) config: nazwa(-y) opcji (wymagane)
focus: name(s) of area (required) focus: nazwa(-y) obszarów (wymagane)
info: name(s) of info (required) info: nazwa(y) informacji (wymagane)
info_hashtable: name(s) of info (required) info_hashtable: nazwa(y) informacji (wymagane)
conditions: evaluated conditions for the trigger warunki: przetwarzane warunki dla triggera
regex: one or more regular expressions to replace strings in variables regex: jedno lub więcej wyrażeń regularnych do zastępowania ciągów w zmiennych
command: command to execute (many commands can be separated by ";") komenda: komenda do wykonania (wiele komend można oddzielić ";")
return_code: return code in callback (ok (default), ok_eat, error) zwracany_kod: kod zwracany w callbacku (ok (domyślne), ok_eat, error)
post_action: action to take after execution (none (default), disable, delete) post_action: akcja do wykonania po zakończeniu (none (domyślne), disable, delete)
addinput: set input with default arguments to create a trigger addinput: ustawia wejście z domyślnymi argumentami do stworzenia triggera
input: set input with the command used to create the trigger input: ustawia wejście z komendą użytą do stworzenia triggera
output: send the command to create the trigger on the buffer output: wysyła komendę do stworzenia triggera do buforu
recreate: same as "input", with option "addreplace" instead of "add" recreate: tak samo jak "input", z opcją "addreplace" zamiast "add"
set: set an option in a trigger set: ustawia opcje triggera
option: name of option: name, hook, arguments, conditions, regex, command, return_code opcja: nazwa opcji: name, hook, arguments, conditions, regex, command, return_code
(for help on option, you can type: /help trigger.trigger.<name>.<option>) (aby uzyskać pomoc na temat opcji możesz wpisać: /help trigger.trigger.<nazwa>.<opcja>)
value: new value for the option wartość: nowa wartość dla opcji
rename: rename a trigger rename: zmienia nazwę triggera
copy: copy a trigger copy: kopiuje trigger
enable: enable trigger(s) (without arguments: enable triggers globally) enable: włącza trigger(y) (bez argumentów: włącza triggery globalnie)
disable: disable trigger(s) (without arguments: disable triggers globally) disable: wyłącza trigger(y) (bez argumentów: wyłącza triggery globalnie)
toggle: toggle trigger(s) (without arguments: toggle triggers globally) toggle: zmienia stan triggera(-ów) (bez argumentów: zmienia stan triggerów globalnie)
restart: restart trigger(s) (recreate the hooks) restart: restartuje trigger(y) (tworzy na nowo uchwyty)
show: show detailed info on a trigger (with some stats) show: pokazuje szczegółowe informacje o triggerze (z niektórymi statystykami)
del: delete a trigger del: usuwa trigger
-all: do action on all triggers -all: wykonaj akcję na wszystkich triggerach
restore: restore trigger(s) with the default values (works only for default triggers) restore: przywraca trigger(y) z domyślnymi wartościami (działa tylko dla domyślnych triggerów)
default: delete all triggers and restore default ones default: przywraca domyślne triggery
monitor: open the trigger monitor buffer, with optional filter: monitor: otwiera bufor monitorowania triggerów, z opcjonalnym filtrem:
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 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: Kiedy callback triggera jest wywoływany, wykonywane są następujące akcje, w kolejności:
1. check conditions; if false, exit 1. sprawdzenie warunków; jeśli nie są spełnione, wyjście
2. replace text using POSIX extended regular expression(s) (if defined in trigger) 2. zastąpienie tekstu za pomocą rozszerzonych wyrażeń regularnych POSIX (jeśli zdefiniowane)
3. execute command(s) (if defined in trigger) 3. wykonanie komend(y) (jeśli zdefiniowane)
4. exit with a return code (except for modifier, line, focus, info and info_hashtable) 4. wyjście z kodem wyjścia (poza modifiers i focus)
5. perform post action 5. wykonanie akcji kończącej
Examples (you can also look at default triggers with /trigger listdefault): Przykłady (możesz też spojrzeć na domyślne triggery za pomocą /trigger listdefault):
add text attributes *bold*, _underline_ and /italic/ (only in user messages): dodaje atrybuty tekstu *bold*, _underline_ i /italic/ (tylko w wiadomościach użytkowników):
/trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*([^ ]+)\*==*${color:bold}${re:1}${color:-bold}*== ==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== ==/([^ ]+)/==/${color:italic}${re:1}${color:-italic}/" /trigger add effects modifier weechat_print "${tg_tag_nick}" "==\*([^ ]+)\*==*${color:bold}${re:1}${color:-bold}*== ==_([^ ]+)_==_${color:underline}${re:1}${color:-underline}_== ==/([^ ]+)/==/${color:italic}${re:1}${color:-italic}/"
hide nicklist bar on small terminals: 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_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" /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" /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* /trigger monitor @modifier,resize*
---- ----
// end::trigger_commands[] // end::trigger_commands[]
+21 -15
View File
@@ -751,7 +751,7 @@
** domyślna wartość: `+""+` ** domyślna wartość: `+""+`
* [[option_weechat.look.highlight_regex]] *weechat.look.highlight_regex* * [[option_weechat.look.highlight_regex]] *weechat.look.highlight_regex*
** opis: pass:none[rozszerzone wyrażenie regularne POSIX używane do sprawdzenia, czy wiadomość posiada podświetlenie czy nie, przynajmniej jedno dopasowanie w ciąg musi być otoczone separatorami (znaki inne niż: alfanumeryczne, "-", "_" lub "|"), wielkość znaków nie ma wpływu na wyrażenie (użyj "(?-i)" na początku, aby wielkość znaków miała znaczenie), przykłady: "flashcode|flashy", "(?-i)FlashCode|flashy"] ** opis: pass:none[Rozszerzone wyrażenie regularne POSIX używane do sprawdzenia, czy wiadomość posiada podświetlenie czy nie, przynajmniej jedno dopasowanie w ciąg musi być otoczone separatorami (znaki inne niż: alfanumeryczne, "-", "_" lub "|"), wielkość znaków nie ma wpływu na wyrażenie (użyj "(?-i)" na początku, aby wielkość znaków miała znaczenie), przykłady: "flashcode|flashy", "(?-i)FlashCode|flashy"]
** typ: ciąg ** typ: ciąg
** wartości: dowolny ciąg ** wartości: dowolny ciąg
** domyślna wartość: `+""+` ** domyślna wartość: `+""+`
@@ -1765,7 +1765,7 @@
** domyślna wartość: `+""+` ** domyślna wartość: `+""+`
* [[option_buflist.look.sort]] *buflist.look.sort* * [[option_buflist.look.sort]] *buflist.look.sort*
** opis: pass:none[comma-separated list of fields to sort buffers; each field is a hdata variable of buffer ("var"), a hdata variable of IRC server ("irc_server.var") or a hdata variable of IRC channel ("irc_channel.var"); char "-" can be used before field to reverse order, char "~" can be used to do a case insensitive comparison; example: "-~short_name" for case insensitive and reverse sort on buffer short name (note: content is evaluated, only the pointer to bar_item can be used, for example "bar_item.name")] ** opis: pass:none[oddzielona przecinkami lista pól do sortowania buforów; każde pole to zmienna hdata bufora ("var"), zmienna hdata serwera IRC ("irc_server.var") lub zmienna hdata kanału IRC ("irc_channel.var"); znak "-" użyty przed nazwą pola odwraca kolejność, znak "~" może zostać użyty do porównań niewrażliwych na wielkość liter; przykład: "-~short_name" dla sortowania odwrotnego, niewrażliwego na wielkość liter po skróconej nazwie bufora (uwaga: zawartość jest przetwarzana, tylko wskaźnik na bar_item może zostać użyty, na przykład "bar_item.name")]
** typ: ciąg ** typ: ciąg
** wartości: dowolny ciąg ** wartości: dowolny ciąg
** domyślna wartość: `+"number,-active"+` ** domyślna wartość: `+"number,-active"+`
@@ -1937,7 +1937,7 @@
** domyślna wartość: `+on+` ** domyślna wartość: `+on+`
* [[option_xfer.network.own_ip]] *xfer.network.own_ip* * [[option_xfer.network.own_ip]] *xfer.network.own_ip*
** opis: pass:none[adres IP lub DNS użyty do wysłania pliku/rozmowy (jeśli pusty zostanie użyty adres IP lokalnego interfejsu)] ** opis: pass:none[Adres IP lub DNS użyty do wysłania pliku/rozmowy (jeśli pusty zostanie użyty adres IP lokalnego interfejsu)]
** typ: ciąg ** typ: ciąg
** wartości: dowolny ciąg ** wartości: dowolny ciąg
** domyślna wartość: `+""+` ** domyślna wartość: `+""+`
@@ -2005,7 +2005,7 @@
** domyślna wartość: `+default+` ** domyślna wartość: `+default+`
* [[option_irc.color.message_account]] *irc.color.message_account* * [[option_irc.color.message_account]] *irc.color.message_account*
** opis: pass:none[color for text in account messages] ** opis: pass:none[kolor tekstu w wiadomościach konta]
** typ: kolor ** typ: kolor
** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie ** wartości: nazwa koloru WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), numer koloru terminala albo alias; atrybuty dozwolone przed kolorem (tylko dla kolorów testu, nie tła): "*" pogrubienie, "!" odwrócenie, "/" pochylenie, "_" podkreślenie
** domyślna wartość: `+cyan+` ** domyślna wartość: `+cyan+`
@@ -2371,7 +2371,7 @@
** domyślna wartość: `+on+` ** domyślna wartość: `+on+`
* [[option_irc.look.smart_filter_account]] *irc.look.smart_filter_account* * [[option_irc.look.smart_filter_account]] *irc.look.smart_filter_account*
** opis: pass:none[enable smart filter for "account" messages] ** opis: pass:none[włącza mądre filtrowanie dla wiadomości "account"]
** typ: bool ** typ: bool
** wartości: on, off ** wartości: on, off
** domyślna wartość: `+on+` ** domyślna wartość: `+on+`
@@ -2616,6 +2616,12 @@
** wartości: 1 .. 3600 ** wartości: 1 .. 3600
** domyślna wartość: `+60+` ** domyślna wartość: `+60+`
* [[option_irc.server_default.default_chantypes]] *irc.server_default.default_chantypes*
** opis: pass:none[channel type prefixes to use if the server does not send them in message 005 (default is "#&")]
** typ: ciąg
** wartości: dowolny ciąg
** domyślna wartość: `+"#&"+`
* [[option_irc.server_default.ipv6]] *irc.server_default.ipv6* * [[option_irc.server_default.ipv6]] *irc.server_default.ipv6*
** opis: pass:none[używaj protokołu IPv6 do komunikacji z serwerem (próbuj IPv6 później wróć do IPv4); jeśli wyłączone używane jest tylko IPv4] ** opis: pass:none[używaj protokołu IPv6 do komunikacji z serwerem (próbuj IPv6 później wróć do IPv4); jeśli wyłączone używane jest tylko IPv4]
** typ: bool ** typ: bool
@@ -2731,7 +2737,7 @@
** domyślna wartość: `+off+` ** domyślna wartość: `+off+`
* [[option_irc.server_default.ssl_cert]] *irc.server_default.ssl_cert* * [[option_irc.server_default.ssl_cert]] *irc.server_default.ssl_cert*
** opis: pass:none[plik certyfikatu SSL używany do automatycznego uwierzytelnienia nicka ("%h" zostanie zastąpione katalogiem domowym WeeChat, domyślnie "~/.weechat")] ** opis: pass:none[Plik certyfikatu SSL używany do automatycznego uwierzytelnienia nicka ("%h" zostanie zastąpione katalogiem domowym WeeChat, domyślnie "~/.weechat")]
** typ: ciąg ** typ: ciąg
** wartości: dowolny ciąg ** wartości: dowolny ciąg
** domyślna wartość: `+""+` ** domyślna wartość: `+""+`
@@ -2889,13 +2895,13 @@
** domyślna wartość: `+off+` ** domyślna wartość: `+off+`
* [[option_relay.network.allowed_ips]] *relay.network.allowed_ips* * [[option_relay.network.allowed_ips]] *relay.network.allowed_ips*
** opis: pass:none[rozszerzone wyrażenia regularne POSIX z adresami IP dozwolonymi dla pośrednika (nie wrażliwe na wielkość znaków, umieszczenie "(?-i)" na początku sprawi, że wielość znaków będzie miała znaczenie), przykład: "^(123\.45\.67\.89|192\.160\..*)$"] ** opis: pass:none[Rozszerzone wyrażenia regularne POSIX z adresami IP dozwolonymi dla pośrednika (nie wrażliwe na wielkość znaków, umieszczenie "(?-i)" na początku sprawi, że wielość znaków będzie miała znaczenie), przykład: "^(123\.45\.67\.89|192\.160\..*)$"]
** typ: ciąg ** typ: ciąg
** wartości: dowolny ciąg ** wartości: dowolny ciąg
** domyślna wartość: `+""+` ** domyślna wartość: `+""+`
* [[option_relay.network.auth_timeout]] *relay.network.auth_timeout* * [[option_relay.network.auth_timeout]] *relay.network.auth_timeout*
** opis: pass:none[timeout (in seconds) for client authentication: connection is closed if the client is still not authenticated after this delay and the client status is set to "authentication failed" (0 = wait forever)] ** opis: pass:none[limit czasu (w sekundach) na uwierzytelnienie klienta: połączenie jest zamykane jeśli klient się nie uwierzytelni w tym czasie oraz status klienta jest ustawiany na „authentication failed (0 = brak limitu)]
** typ: liczba ** typ: liczba
** wartości: 0 .. 2147483647 ** wartości: 0 .. 2147483647
** domyślna wartość: `+60+` ** domyślna wartość: `+60+`
@@ -2931,7 +2937,7 @@
** domyślna wartość: `+5+` ** domyślna wartość: `+5+`
* [[option_relay.network.nonce_size]] *relay.network.nonce_size* * [[option_relay.network.nonce_size]] *relay.network.nonce_size*
** opis: pass:none[size of nonce (in bytes), generated when a client connects; the client must use this nonce, concatenated to the client nonce and the password when hashing the password in the "init" command of the weechat protocol] ** opis: pass:none[rozmiar noncji (w bajtach), generowane podczas połączenia klienta; klient musi użyć tej noncji w połączeniu z noncją klienta i hasłem podczas hashowania hasła w komendzie init” protokołu weechat]
** typ: liczba ** typ: liczba
** wartości: 8 .. 128 ** wartości: 8 .. 128
** domyślna wartość: `+16+` ** domyślna wartość: `+16+`
@@ -2943,13 +2949,13 @@
** domyślna wartość: `+""+` ** domyślna wartość: `+""+`
* [[option_relay.network.password_hash_algo]] *relay.network.password_hash_algo* * [[option_relay.network.password_hash_algo]] *relay.network.password_hash_algo*
** opis: pass:none[comma separated list of hash algorithms used for password authentication in weechat protocol, among these values: "plain" (password in plain text, not hashed), "sha256", "sha512", "pbkdf2+sha256", "pbkdf2+sha512"), "*" means all algorithms, a name beginning with "!" is a negative value to prevent an algorithm from being used, wildcard "*" is allowed in names (examples: "*", "pbkdf2*", "*,!plain")] ** opis: pass:none[oddzielona przecinkami lista algorytmów hashujących używanych dla uwierzytelnienia hasłem w protokole weechat, dostępne wartości: "plain" (hasło w postaci jawnej, nie zahashowane), "sha256", "sha512", "pbkdf2+sha256", "pbkdf2+sha512", "*" oznacza wszystkie algorytmy, nazwa zaczynająca się od "!" oznacza wartość negatywną w celu uniknięcia użycia algorytmu, znak "*" może zostać użyty w nazwie (przykłady: "*", "pbkdf2*", "*,!plain")]
** typ: ciąg ** typ: ciąg
** wartości: dowolny ciąg ** wartości: dowolny ciąg
** domyślna wartość: `+"*"+` ** domyślna wartość: `+"*"+`
* [[option_relay.network.password_hash_iterations]] *relay.network.password_hash_iterations* * [[option_relay.network.password_hash_iterations]] *relay.network.password_hash_iterations*
** opis: pass:none[number of iterations asked to the client in weechat protocol when a hashed password with algorithm PBKDF2 is used for authentication; more iterations is better in term of security but is slower to compute; this number should not be too high if your CPU is slow] ** opis: pass:none[ilość iteracji zapytań klienta protokołu weechat w przypadku hashowania haseł algorytmem PBKDF2 podczas uwierzytelnienia; im więcej iteracji tym lepiej w kwestii bezpieczeństwa, jednak zwiększa to czas przetwarzania; ta liczba nie powinna być zbyt wysoka jeśli masz słabe CPU]
** typ: liczba ** typ: liczba
** wartości: 1 .. 1000000 ** wartości: 1 .. 1000000
** domyślna wartość: `+100000+` ** domyślna wartość: `+100000+`
@@ -2979,7 +2985,7 @@
** domyślna wartość: `+0+` ** domyślna wartość: `+0+`
* [[option_relay.network.websocket_allowed_origins]] *relay.network.websocket_allowed_origins* * [[option_relay.network.websocket_allowed_origins]] *relay.network.websocket_allowed_origins*
** opis: pass:none[rozszerzone wyrażenia regularne POSIX ze źródłami dozwolonymi dla gniazd webowych (nie wrażliwe na wielkość znaków, umieszczenie "(?-i)" na początku sprawi, że wielość znaków będzie miała znaczenie), przykład: "^http://(www\.)?przykład\.(com|org)"] ** opis: pass:none[Rozszerzone wyrażenia regularne POSIX ze źródłami dozwolonymi dla gniazd webowych (nie wrażliwe na wielkość znaków, umieszczenie "(?-i)" na początku sprawi, że wielość znaków będzie miała znaczenie), przykład: "^http://(www\.)?przykład\.(com|org)"]
** typ: ciąg ** typ: ciąg
** wartości: dowolny ciąg ** wartości: dowolny ciąg
** domyślna wartość: `+""+` ** domyślna wartość: `+""+`
@@ -3321,7 +3327,7 @@
** domyślna wartość: `+1440+` ** domyślna wartość: `+1440+`
* [[option_script.scripts.download_enabled]] *script.scripts.download_enabled* * [[option_script.scripts.download_enabled]] *script.scripts.download_enabled*
** opis: pass:none[enable download of files from the scripts repository when the /script command is used (list of scripts and scripts themselves); the list of scripts is downloaded from the URL specified in the option script.scripts.url; WeeChat will sometimes download again the list of scripts when you use the /script command, even if you don't install a script] ** opis: pass:none[włącza pobieranie plików z repozytorium skryptów podczas użycia komendy /script (lista skryptów i same skrypty); lista skryptów pobierana jest z adresu URL podanego w opcji script.scripts.url; WeeChat czasami ponownie pobierze listę skryptów podczas użycia komendy /script, nawet w przypadku nie instalowania żadnego skryptu]
** typ: bool ** typ: bool
** wartości: on, off ** wartości: on, off
** domyślna wartość: `+off+` ** domyślna wartość: `+off+`
@@ -3345,7 +3351,7 @@
** domyślna wartość: `+"%h/script"+` ** domyślna wartość: `+"%h/script"+`
* [[option_script.scripts.url]] *script.scripts.url* * [[option_script.scripts.url]] *script.scripts.url*
** opis: pass:none[adres URL pliku z listą skryptów] ** opis: pass:none[Adres URL pliku z listą skryptów]
** typ: ciąg ** typ: ciąg
** wartości: dowolny ciąg ** wartości: dowolny ciąg
** domyślna wartość: `+"https://weechat.org/files/plugins.xml.gz"+` ** domyślna wartość: `+"https://weechat.org/files/plugins.xml.gz"+`
@@ -3755,7 +3761,7 @@
** domyślna wartość: `+"${marked} ${name} ${type} ${value2}${newline} ${empty_name} ${_default_value}${color:darkgray} -- ${min}..${max}${newline} ${empty_name} ${description}"+` ** domyślna wartość: `+"${marked} ${name} ${type} ${value2}${newline} ${empty_name} ${_default_value}${color:darkgray} -- ${min}..${max}${newline} ${empty_name} ${description}"+`
* [[option_fset.look.auto_refresh]] *fset.look.auto_refresh* * [[option_fset.look.auto_refresh]] *fset.look.auto_refresh*
** opis: pass:none[comma separated list of options to automatically refresh on the fset buffer (if opened); "*" means all options (recommended), a name beginning with "!" is a negative value to prevent an option to be refreshed, wildcard "*" is allowed in names (example: "*,!plugin.section.*")] ** opis: pass:none[oddzielona przecinkami lista opcji odświeżanych automatycznie w buforze fset (jeśli jest on otwarty); "*" oznacza wszystkie opcje (zalecane), nazwa zaczynająca się od "!" oznacza wartość negatywną i zapobiega odświeżeniu opcji, "*" jest dozwolone w nazwach (przykład: "*,!plugin.section.*")]
** typ: ciąg ** typ: ciąg
** wartości: dowolny ciąg ** wartości: dowolny ciąg
** domyślna wartość: `+"*"+` ** domyślna wartość: `+"*"+`
+1 -1
View File
@@ -98,7 +98,7 @@ $HOME/.weechat/weechat.log::
WeeChat jest tworzony przez Sébastien Helleu i społeczność (pełna lista dostępna WeeChat jest tworzony przez Sébastien Helleu i społeczność (pełna lista dostępna
jest w pliku AUTHORS.adoc). jest w pliku AUTHORS.adoc).
Copyright (C) 2003-2020 {author} Copyright (C) 2003-2021 {author}
WeeChat is free software; you can redistribute it and/or modify WeeChat is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
+30 -2
View File
@@ -230,6 +230,34 @@ Na przykład kbd:[F1], kbd:[F2], kbd:[Alt+F1] oraz kbd:[Alt+F2]:
Klawisze "meta-OP" i "meta-OQ" mogą być inne dla twojego terminala. W celu Klawisze "meta-OP" i "meta-OQ" mogą być inne dla twojego terminala. W celu
znalezienia ich kodów wciśnij kbd:[Alt+k] następnie przycisk. znalezienia ich kodów wciśnij kbd:[Alt+k] następnie przycisk.
[[customize_buflist]]
=== Jak mogę spersonalizować lisę buforów, na przykład kolor aktywnego budora?
Możesz sprawdzić wszystkie opcję listy buforów za pomocą polecenia:
----
/fset buflist
----
Tło dla aktywnego bufora jest niebieskie, możesz to zmienić na przykład na
`czerwone` w ten sposób:
----
/set buflist.format.buffer_current "${color:,red}${format_buffer}"
----
[NOTE]
Przecinek przed nazwą koloru „red” jest wymagany, ponieważ zostanie on użyty jako
kolor tła, a nie kolor tekstu. +
Możesz także używać numerów kolorów zamiast ich nazwy,
jak `237` dla ciemnego szarego.
Wtyczka buflist posiada wiele opcji, które można personalizować, zapoznaj się
z opisem dla każdej z nich.
Istnieje również strona wiki z przykładami zaawansowanej konfiguracji:
https://github.com/weechat/weechat/wiki/buflist
[[customize_prefix]] [[customize_prefix]]
=== Jak mogę ograniczyć długość wyświetlanych nicków lub usunąć wyrównanie w oknie rozmowy? === Jak mogę ograniczyć długość wyświetlanych nicków lub usunąć wyrównanie w oknie rozmowy?
@@ -1171,8 +1199,8 @@ Na przykład:
Możesz pokazywać pliki z _~/.weechat/*.conf_ poza plikiem _sec.conf_, który Możesz pokazywać pliki z _~/.weechat/*.conf_ poza plikiem _sec.conf_, który
zawiera Twoje hasla zaszywrowane Twoim kluczem. zawiera Twoje hasla zaszywrowane Twoim kluczem.
Niektóre pliki jak _irc.conf_ mogą zawierać wrażliwe dane jak hasła do Niektóre inne pliki mogą zawierać poufne informacje jak hasła (jeśli nie są przetrzymywane
serwerów/kanałów (jeśli nie zostały dodane do _sec.conf_ za pomocą komendy `/secure`). w _sec.conf_ za pomocą komendy `/secure`).
Przejrzyj link:weechat_user.pl.html#files_and_directories[Poradnik użytkownika / Pliki i foldery], Przejrzyj link:weechat_user.pl.html#files_and_directories[Poradnik użytkownika / Pliki i foldery],
gdzie znajdziesz więcej informacji o plikach konfiguracyjnych. gdzie znajdziesz więcej informacji o plikach konfiguracyjnych.
+9 -12
View File
@@ -163,10 +163,9 @@ Weechat.config_new_option(config, section, "name", "string", "opis opcji", "", 0
"value", "wartość", 0, ["check_cb", "", "change_cb", "", "delete_cb", ""]) "value", "wartość", 0, ["check_cb", "", "change_cb", "", "delete_cb", ""])
---- ----
// TRANSLATION MISSING Funkcja `+Weechat.bar_new+` przyjmuje kolory w tablicy składającej się z 4 ciągów
And the function `+Weechat.bar_new+` receives the colors in an array of 4 strings (color_fg, color_delim, color_bg, color_bg_inactive), wywołaine tej funkcji wygląda
(color_fg, color_delim, color_bg, color_bg_inactive), so a call to this function następująco:
looks like:
[source,ruby] [source,ruby]
---- ----
@@ -191,7 +190,7 @@ Funkcje są wywoływane za pomocą `+weechat::xxx arg1 arg2 ...+`.
===== Funkcje ===== Funkcje
Funkcje są wywoływane za pomocą `+(weechat:xxx arg1 arg2 ...)+`. Funkcje są wywoływane za pomocą `+(weechat:xxx arg1 arg2 ...)+`.
/
Następujące funkcje przyjmują litę argumentów (zamiast wielu argumentów dla Następujące funkcje przyjmują litę argumentów (zamiast wielu argumentów dla
innych funkcji), ponieważ ilość argumentów przekracza maksymalną ilość innych funkcji), ponieważ ilość argumentów przekracza maksymalną ilość
argumentów dozwolonych w Guile: argumentów dozwolonych w Guile:
@@ -416,10 +415,9 @@ wypadku możesz zobaczyć ładny raport o błędzie ;)
Prawie wszystkie callbacki muszą zwrócić WEECHAT_RC_OK lub WEECHAT_RC_ERROR Prawie wszystkie callbacki muszą zwrócić WEECHAT_RC_OK lub WEECHAT_RC_ERROR
(wyjątkiem jest callback modyfikujący, który zwraca ciąg). (wyjątkiem jest callback modyfikujący, który zwraca ciąg).
// TRANSLATION MISSING Callbacki w języku C używają akgumentów "callback_pointer" i "callback_data", które
C callbacks are using "callback_pointer" and "callback_data" arguments, which są wskaźnikami. W API skryptów, obecny jest tylko "callback_data" (lub "data") i jest
are pointers. In script API, there is only "callback_data" (or "data"), and it to ciąg a nie wskaźnik.
is a string instead of a pointer.
Przykłady callbacków dla każdego języka: Przykłady callbacków dla każdego języka:
@@ -714,8 +712,7 @@ Lista funkcji w API skryptów:
command + command +
command_options command_options
// TRANSLATION MISSING | dopełnienia |
| completion |
completion_new + completion_new +
completion_search + completion_search +
completion_get_string + completion_get_string +
@@ -973,7 +970,7 @@ weechat.buffer_set(buffer, "localvar_del_myvar", "")
Aby zobaczyć lokalne zmienne danego bufora, należy wykonać tą komendę w WeeChat: Aby zobaczyć lokalne zmienne danego bufora, należy wykonać tą komendę w WeeChat:
---- ----
/buffer localvar /buffer listvar
---- ----
[[hooks]] [[hooks]]
+187 -58
View File
@@ -68,10 +68,9 @@ Pakiety binarne dostępne są dla wielu dystrybucji, wliczając:
* Arch Linuxa: `pacman -S weechat` * Arch Linuxa: `pacman -S weechat`
* Cygwin (Windows): wybierz pakiet WeeChat w setup.exe * Cygwin (Windows): wybierz pakiet WeeChat w setup.exe
// TRANSLATION MISSING
* Debiana/Ubuntu (lub dowolna kompatybilna): * Debiana/Ubuntu (lub dowolna kompatybilna):
`apt-get install weechat-curses weechat-plugins` + `apt-get install weechat-curses weechat-plugins` +
For latest versions and nightly builds: https://weechat.org/download/debian Najnowsze wersje i nocne buildy można znaleźć na stonie: https://weechat.org/download/debian
* Fedora Core: `dnf install weechat` * Fedora Core: `dnf install weechat`
* Gentoo: `emerge weechat` * Gentoo: `emerge weechat`
* Mandrive/RedHata (lub dowolna kompatybilna): * Mandrive/RedHata (lub dowolna kompatybilna):
@@ -382,16 +381,14 @@ Następnie postępuj zgodnie z instrukcjami dla pakietów źródłowych (zobacz
Jeśli doświadczyłeś awarii, lub chcesz zgłosić przyszłą awarię WeeChat, należy: Jeśli doświadczyłeś awarii, lub chcesz zgłosić przyszłą awarię WeeChat, należy:
// TRANSLATION MISSING * skompilować WeeChat z:
* compile with: ** informacjami dla debuggera (albo zainstalować stosowną paczkę w systemie)
** debug info (or install binary package with debug info) ** weryfikacją adresów (opcjonalnie)
** address sanitizer (optional)
* włączyć obsługę plików _core_ w systemie * włączyć obsługę plików _core_ w systemie
* zainstalować gdb * zainstalować gdb
// TRANSLATION MISSING
[[build_debug]] [[build_debug]]
==== Build with debug options ==== Kompilowanie z informacjami dla debuggera
Jeśli kompilujesz z użyciem CMake: Jeśli kompilujesz z użyciem CMake:
@@ -399,20 +396,27 @@ Jeśli kompilujesz z użyciem CMake:
$ cmake .. -DCMAKE_BUILD_TYPE=Debug $ cmake .. -DCMAKE_BUILD_TYPE=Debug
---- ----
// TRANSLATION MISSING [[build_debug_address_sanitizer]]
You can additionally enable the address sanitizer, which causes WeeChat to ==== Kompilowanie z weryfikowaniem adresów
crash immediately in case of problem:
Możesz dodatowo włączyć weryfikację adresów, co spowoduje natychmiastową awarię
WeeChat w przypadku wystąpienia problemu:
---- ----
$ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address $ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
---- ----
// TRANSLATION MISSING
[WARNING] [WARNING]
You should enable address sanitizer only if you're trying to cause a crash, Powinieneś włączyć tą opcję tylko jeśli chcesz wymusić awarię aplikacji,
this is not recommended in production. nie powinno się tego używać do codziennej pracy.
Jeśli zainstalowałeś pakiet binarny, doinstaluj paczkę _weechat-dbg_. Po skompilowaniu i zainstalowaniu należy uruchamiać WeeChat w taki sposób:
----
$ ASAN_OPTIONS="detect_odr_violation=0 log_path=asan.log" weechat
----
W przypadku awarii plik logi znajdą się w pliku `asan.log`.
[[core_files]] [[core_files]]
==== CPliki core ==== CPliki core
@@ -550,7 +554,9 @@ Niektóre zmienne śwodowiskowe są używane przez WeeChat o ile zostały zdefin
[[files_and_directories]] [[files_and_directories]]
=== Pliki i foldery === Pliki i foldery
WeeChat zapisuje pliki konfiguracyjne i inne rzeczy domyślnie w folderze `~/.weechat`. WeeChat zapisuje pliki konfiguracyjne i inne rzeczy domyślnie w folderze `~/.weechat`. +
// TRANSLATION MISSING
These files are created with default values the first time you run WeeChat.
[[weechat_directories]] [[weechat_directories]]
==== Katalogi WeeChat ==== Katalogi WeeChat
@@ -601,14 +607,14 @@ Pliki tworzone w katalogu domowym WeeChat:
| fifo.conf | Plik konfiguracyjny wtyczki _fifo_ | Nie. | fifo.conf | Plik konfiguracyjny wtyczki _fifo_ | Nie.
| fset.conf | Plik konfiguracyjny wtyczki _fset_ | Nie. | fset.conf | Plik konfiguracyjny wtyczki _fset_ | Nie.
| guile.conf | Plik konfiguracyjny wtyczki _guile_ | Nie. | guile.conf | Plik konfiguracyjny wtyczki _guile_ | Nie.
| irc.conf | Plik konfiguracyjny wtyczki _irc_ | *Tak*: Może zawierać hasła dla serwerów, nickserva i kanałów (jeśli nie zostały zapisane w `sec.conf`). | irc.conf | Plik konfiguracyjny wtyczki _irc_ | *Tak*: może zawierać hasła dla serwerów, nickserva i kanałów (jeśli nie zostały zapisane w `sec.conf`).
| javascript.conf | Plik konfiguracyjny wtyczki _javascript_ | Nie. | javascript.conf | Plik konfiguracyjny wtyczki _javascript_ | Nie.
| logger.conf | Plik konfiguracyjny wtyczki _logger_ | Nie. | logger.conf | Plik konfiguracyjny wtyczki _logger_ | Nie.
| lua.conf | Plik konfiguracyjny wtyczki _lua_ | Nie. | lua.conf | Plik konfiguracyjny wtyczki _lua_ | Nie.
| perl.conf | Plik konfiguracyjny wtyczki _perl_ | Nie. | perl.conf | Plik konfiguracyjny wtyczki _perl_ | Nie.
| php.conf | Plik konfiguracyjny wtyczki _php_ | Nie. | php.conf | Plik konfiguracyjny wtyczki _php_ | Nie.
| python.conf | Plik konfiguracyjny wtyczki _python_ | Nie. | python.conf | Plik konfiguracyjny wtyczki _python_ | Nie.
| relay.conf | Plik konfiguracyjny wtyczki _relay_ | Nie. | relay.conf | Plik konfiguracyjny wtyczki _relay_ | *Tak*: może on zawierać hasła pośredników i sekrety TOTP (jeśli nie zostały zapisane w `sec.conf`), dozwolone adresy IP/websockety oraz otwarte porty.
| ruby.conf | Plik konfiguracyjny wtyczki _ruby_ | Nie. | ruby.conf | Plik konfiguracyjny wtyczki _ruby_ | Nie.
| script.conf | Plik konfiguracyjny wtyczki _script_ | Nie. | script.conf | Plik konfiguracyjny wtyczki _script_ | Nie.
| spell.conf | Plik konfiguracyjny wtyczki _spell_ | Nie. | spell.conf | Plik konfiguracyjny wtyczki _spell_ | Nie.
@@ -701,8 +707,7 @@ Pasek _status_ posiada następujące domyślne elementy:
| buffer_number | `2` | Numer obecnego buforu. | buffer_number | `2` | Numer obecnego buforu.
| buffer_name | `#test` | Nazwa obecnego buforu. | buffer_name | `#test` | Nazwa obecnego buforu.
| buffer_modes | `+n` | Tryby kanału IRC. | buffer_modes | `+n` | Tryby kanału IRC.
// TRANSLATION MISSING | buffer_nicklist_count | `{4}` | Ilość nicków wyświetlanych na liście nicków.
| buffer_nicklist_count | `{4}` | Number of nicks displayed in nicklist.
| buffer_zoom | ! | `!` oznacza, że połączony bufor jest przybliżony (tylko ten jest wyświetlany), pusta wartość oznacza, że wszystkie połączone bufory są wyświetlane. | buffer_zoom | ! | `!` oznacza, że połączony bufor jest przybliżony (tylko ten jest wyświetlany), pusta wartość oznacza, że wszystkie połączone bufory są wyświetlane.
| buffer_filter | `+*+` | Wskaźnik filtrowania: `+*+` oznacza, że niektóre linie zostały odfiltrowywane (ukryte), pusta wartość oznacza, że wszystkie linie są wyświetlane. | buffer_filter | `+*+` | Wskaźnik filtrowania: `+*+` oznacza, że niektóre linie zostały odfiltrowywane (ukryte), pusta wartość oznacza, że wszystkie linie są wyświetlane.
| scroll | `-Więcej(50)-` | Wskaźnik przewijania, z numerem linii poniżej ostatniej wyświetlanej. | scroll | `-Więcej(50)-` | Wskaźnik przewijania, z numerem linii poniżej ostatniej wyświetlanej.
@@ -1087,8 +1092,8 @@ Przykład podziałów pionowego i poziomego:
▲ window #1 (buffer #3) ▲ window #2 (buffer #4) ▲ window #1 (buffer #3) ▲ window #2 (buffer #4)
.... ....
[[buffers_lines]] [[buffers]]
=== Linie buforów === Buforów
[[lines_format]] [[lines_format]]
==== Format linii ==== Format linii
@@ -1122,7 +1127,7 @@ WeeChat używa tagów w liniach dla różnych celów:
Tagi można wyświetlić używając komendy `/debug tags` (tą samą komendą można je ukryć). Tagi można wyświetlić używając komendy `/debug tags` (tą samą komendą można je ukryć).
Popularnie używane tagi (niepełna lista): Popularnie używane tagi (niepełna lista):
[width="100%",cols="1m,4",options="header"] [width="100%",cols="1m,4",options="header"]
|=== |===
@@ -1131,14 +1136,10 @@ Popularnie używane tagi (niepełna lista):
| no_highlight | Podświetlenia nie są dozwolone w tej linii. | no_highlight | Podświetlenia nie są dozwolone w tej linii.
| no_log | Linia nie jest zapisywana w logu. | no_log | Linia nie jest zapisywana w logu.
| log0 … log9 | Poziom logowania dla linii (zobacz `/help logger`). | log0 … log9 | Poziom logowania dla linii (zobacz `/help logger`).
// TRANSLATION MISSING | notify_none | Linia nie może być dodana do hotlisty. ^(1)^
| notify_none | The line must not be added to hotlist. ^(1)^ | notify_message | Linia jest wiasomością użytkownika. ^(1)^
// TRANSLATION MISSING | notify_private | Linia jest wiadomością prywatną. ^(1)^
| notify_message | The line is a user message. ^(1)^ | notify_highlight | Linia jest wiadomością z podświetleniem. ^(1)^
// TRANSLATION MISSING
| notify_private | The line is a private message. ^(1)^
// TRANSLATION MISSING
| notify_highlight | The line is a message with highlight. ^(1)^
| self_msg | Własna wiadomość. | self_msg | Własna wiadomość.
| nick_xxx | Wiadomość od nicku "xxx". | nick_xxx | Wiadomość od nicku "xxx".
| prefix_nick_ccc | Prefiks to nick o kolorze "ccc". | prefix_nick_ccc | Prefiks to nick o kolorze "ccc".
@@ -1153,12 +1154,149 @@ Popularnie używane tagi (niepełna lista):
| away_info | Wiadomość z powodem nieobecności. | away_info | Wiadomość z powodem nieobecności.
|=== |===
// TRANSLATION MISSING
[NOTE] [NOTE]
^(1)^ When no tag "notify_xxx" is present, the default level is "low". If a tag ^(1)^ Kiedy brak jest taga "notify_xxx", poziom jest ustawiony domyślnie na "low".
"notify_xxx" is present, the real notify level can be different, for example Jeśli tag "notify_xxx" jest obecny, można zdefiniować odpowiedni poziom powiadomień,
if a max hotlist level is used for a nick, the notify level can be lower than na przykład jeśli maksymalna hotlista jest używana dla nicku, poziom powiadomień może
the value in the tag. być niższy niż wartość dla tagu.
[[local_variables]]
==== Zmienne lokalne
Zmienne lokalne mogą być definiowane dla wsystkich buforów.
Zmienna lokalna posiada:
* nazwę (ciąg)
* wartość (ciąg, może być pusty).
Zmienne lokalne mogą być tworzone przez WeeChat, wtyczki, skrypty lub ręcznie
w linii poleceń bufora.
Na przykład, żeby dodać zmienna lokalną „completion_default_template” wystarczy
polecenie:
----
/buffer setvar completion_default_template %(my_completion)
----
Żeby wyświetlić zmienne lokalne dla obecnego bufora:
----
/buffer listvar
----
Usunięcie zmiennej lokalnej „completion_default_template”:
----
/buffer delvar completion_default_template
----
WeeChat i jego wtyczki domyślnie tworzą następujące zmienne:
[width="100%",cols="^2m,2,5",options="header"]
|===
| Nazwa | Wartość | Opis
| away |
dowolny ciąg |
Powód nieobecności na serwerze, ustawiane przez wtyczkę irc.
| channel |
dowolny ciąg |
Nazwa kanału, ustawiana przez wtyczki irc/xfer i bufory z
informacjami do debugowania wtyczek relay/trigger.
| charset_modifier |
dowolny ciąg |
Modyfikacja kodowania używanego na kanale, ustawiane przez wtyczkę irc.
| completion_default_template |
dowolny ciąg |
Domyślny szablon dopełnień dla bufora, nadpisuje zmienną
`weechat.completion.default_template`.
| filter |
dowolny ciąg |
Filtry zdefiniowane dla buforów jak `/fset`, `/server raw` (irc) i `/script`.
| host |
dowolny ciąg |
Własny host (jeśli jest znany), ustawiane przez wtyczkę irc.
| lag |
dowolny ciąg |
Opóźnienie serwera, ustawiane przez wtyczkę irc.
| name |
dowolny ciąg |
Nazwa bufora (uważaj, nie jest to pełna nazwa i nie wystarczy ona do
zidentyfikowania i wyszukania bufora).
| nick |
dowolny ciąg |
Nazwa użytkownika, ustawiane przez wtyczki irc i xfer.
| no_log |
`1` (lub dowolny niepusty ciąg) |
Jeśli jest ustawiona, wiadomości z bufora nie są logowane.
| plugin |
dowolny ciąg |
Nazwa wtyczki, która stworzyła bufor (`core` dla buforów WeeChat).
| script_close_cb |
dowolny ciąg |
Callback zamykania bufora zdefiniowany przez skrypt.
| script_close_cb_data |
dowolny ciąg |
Dane dla callbacka zamykania bufora zdefiniowane przez skrypt.
| script_input_cb |
dowolny ciąg |
Callback wprowadzania danych w buforze zdefiniowany przez skrypt.
| script_input_cb_data |
dowolny ciąg |
Dane dla callbacka wprowadzania danych w buforze zdefiniowane przez skrypt.
| script_name |
dowolny ciąg |
Nazwa skryptu, który stworzył bufor.
| server |
dowolny ciąg |
Nazwa serwera ustawiana przez wtyczkę irc albo bufor z informacjami do
debugowania wtyczki relay/trigger.
| spell_suggest |
dowolny ciąg |
Źle napisane słowo i sugestie (format: "słowo:sugestie"), ustawiane przez
wtyczkę spell.
| trigger_filter |
dowolny ciąg |
Filtr triggerów, ustawiany przez wtyczkę trigger.
| type |
dowolny ciąg, na przykład:
`channel`,
`debug`,
`exec`,
`option`,
`private`,
`relay`,
`script`,
`server`,
`user`,
`xfer` |
Typ bufora ustawiany przez WeeChat i wiele wtyczek.
|===
[NOTE]
External plugins and scripts can define and use other local variables.
[[bars]] [[bars]]
=== Paski === Paski
@@ -1667,8 +1805,7 @@ Można ją zapisać za pomocą skryptu _buffer_autoset.py_: można go zaintalowa
| kbd:[Enter] + | kbd:[Enter] +
kbd:[Ctrl+j] + kbd:[Ctrl+j] +
kbd:[Ctrl+m] | Wykonaj komendę lub wyślij wiadomość (w trybie wyszukiwania: przerwij wyszukiwanie). | `+/input return+` kbd:[Ctrl+m] | Wykonaj komendę lub wyślij wiadomość (w trybie wyszukiwania: przerwij wyszukiwanie). | `+/input return+`
// TRANSLATION MISSING | kbd:[Alt+Enter] | Wstawia nową linię. | `+/input insert \n+`
| kbd:[Alt+Enter] | Insert a newline. | `+/input insert \n+`
| kbd:[↑] | Pokaż poprzednią komendę/wiadomość (w trybie wyszukiwania: szukaj w górę). | `+/input history_previous+` | kbd:[↑] | Pokaż poprzednią komendę/wiadomość (w trybie wyszukiwania: szukaj w górę). | `+/input history_previous+`
| kbd:[↓] | Pokaż następną komendę/wiadomość (w trybie wyszukiwania: szukaj w dół). | `+/input history_next+` | kbd:[↓] | Pokaż następną komendę/wiadomość (w trybie wyszukiwania: szukaj w dół). | `+/input history_next+`
| kbd:[Ctrl+↑] | Pokaż poprzednią komendę/wiadomość w historii globalnej (wspólnej dla wszystkich buforów). | `+/input history_global_previous+` | kbd:[Ctrl+↑] | Pokaż poprzednią komendę/wiadomość w historii globalnej (wspólnej dla wszystkich buforów). | `+/input history_global_previous+`
@@ -1721,8 +1858,7 @@ Można ją zapisać za pomocą skryptu _buffer_autoset.py_: można go zaintalowa
| kbd:[Alt+F11] | Idź na początek listy nicków. | `+/bar scroll nicklist * b+` | kbd:[Alt+F11] | Idź na początek listy nicków. | `+/bar scroll nicklist * b+`
| kbd:[Alt+F12] | Idź na koniec listy nicków. | `+/bar scroll nicklist * e+` | kbd:[Alt+F12] | Idź na koniec listy nicków. | `+/bar scroll nicklist * e+`
| kbd:[Alt+a] | Przełącz na następny bufor z aktywnością (z priorytetem: powiadomienie, wiadomość, inne). | `+/input jump_smart+` | kbd:[Alt+a] | Przełącz na następny bufor z aktywnością (z priorytetem: powiadomienie, wiadomość, inne). | `+/input jump_smart+`
// TRANSLATION MISSING | kbd:[Alt+Shift+B] | Przełącza widoczność listy buforów. | `+/buflist toggle+`
| kbd:[Alt+Shift+B] | Toggle buflist. | `+/buflist toggle+`
| kbd:[Alt+h] | Wyczyść hotlistę (powiadomienia o aktywności w innych buforach). | `+/input hotlist_clear+` | kbd:[Alt+h] | Wyczyść hotlistę (powiadomienia o aktywności w innych buforach). | `+/input hotlist_clear+`
| kbd:[Alt+j], | kbd:[Alt+j],
kbd:[Alt+f] | Przełącz na pierwszy bufor. | `+/buffer -+` kbd:[Alt+f] | Przełącz na pierwszy bufor. | `+/buffer -+`
@@ -1738,8 +1874,7 @@ Można ją zapisać za pomocą skryptu _buffer_autoset.py_: można go zaintalowa
| kbd:[Alt+l] (`L`) | Przełącz tryb niesformatowanego wyświetlania. | `+/window bare+` | kbd:[Alt+l] (`L`) | Przełącz tryb niesformatowanego wyświetlania. | `+/window bare+`
| kbd:[Alt+m] | Przełącz obsługę myszy. | `+/mouse toggle+` | kbd:[Alt+m] | Przełącz obsługę myszy. | `+/mouse toggle+`
| kbd:[Alt+n] | Przewiń do następnego powiadomienia. | `+/window scroll_next_highlight+` | kbd:[Alt+n] | Przewiń do następnego powiadomienia. | `+/window scroll_next_highlight+`
// TRANSLATION MISSING | kbd:[Alt+Shift+N] | Przełącza widoczność paska z listą nicków. | `+/bar toggle nicklist+`
| kbd:[Alt+Shift+N] | Toggle nicklist bar. | `+/bar toggle nicklist+`
| kbd:[Alt+p] | Przewiń do poprzedniego powiadomienia. | `+/window scroll_previous_highlight+` | kbd:[Alt+p] | Przewiń do poprzedniego powiadomienia. | `+/window scroll_previous_highlight+`
| kbd:[Alt+u] | Przewiń do pierwszej nieprzeczytanej linii w buforze. | `+/window scroll_unread+` | kbd:[Alt+u] | Przewiń do pierwszej nieprzeczytanej linii w buforze. | `+/window scroll_unread+`
| kbd:[Alt+w], | kbd:[Alt+w],
@@ -3110,7 +3245,7 @@ użycie do tego zmiennych lokalnych bufora. W celu wyświetlenia listy dostępny
zmiennych dla bufora wykonaj: zmiennych dla bufora wykonaj:
---- ----
/buffer localvar /buffer listvar
---- ----
Maski zostaną dopasowane do opcji w kolejności malejącej specyficznie dla Maski zostaną dopasowane do opcji w kolejności malejącej specyficznie dla
@@ -3893,13 +4028,12 @@ Argumenty zależą od rodzaju uchwytu. Są oddzielane średnikami.
`+*;;;1+` | `+*;;;1+` |
link:weechat_plugin_api.en.html#_hook_print[hook_print] (Angielski) link:weechat_plugin_api.en.html#_hook_print[hook_print] (Angielski)
// TRANSLATION MISSING
| command | | command |
1. nazwa komendy dozwolony priorytet) (wymagane) + 1. nazwa komendy dozwolony priorytet) (wymagane) +
2. opis (evaluated, zobacz komendę <<command_weechat_eval,/eval>>) + 2. opis (przetwarzane, zobacz komendę <<command_weechat_eval,/eval>>) +
3. argumenty (evaluated, zobacz komendę <<command_weechat_eval,/eval>>) + 3. argumenty (przetwarzane, zobacz komendę <<command_weechat_eval,/eval>>) +
4. opis argumentów (evaluated, zobacz komendę <<command_weechat_eval,/eval>>) + 4. opis argumentów (przetwarzane, zobacz komendę <<command_weechat_eval,/eval>>) +
5. dopełnienie (evaluated, zobacz komendę <<command_weechat_eval,/eval>>) | 5. dopełnienie (przetwarzane, zobacz komendę <<command_weechat_eval,/eval>>) |
`+test+` + `+test+` +
`+5000\|test+` + `+5000\|test+` +
`+test;test command;arg1 arg2;arg1: description 1${\n}arg2: description 2+` | `+test;test command;arg1 arg2;arg1: description 1${\n}arg2: description 2+` |
@@ -4065,14 +4199,12 @@ monitorującego, za pomocą komendy:
/trigger monitor /trigger monitor
---- ----
// TRANSLATION MISSING Wszystkie callbacki ustawiają następujące zmienne w tablicy hashy:
All callbacks set following variables in hashtable:
[width="100%",cols="3m,2,14",options="header"] [width="100%",cols="3m,2,14",options="header"]
|=== |===
| Zmienna | Typ | Opis | Zmienna | Typ | Opis
// TRANSLATION MISSING | tg_trigger_name | ciąg | Nazwa triggera.
| tg_trigger_name | ciąg | Name of trigger.
|=== |===
[[trigger_data_signal]] [[trigger_data_signal]]
@@ -4244,12 +4376,9 @@ Callback "command" ustawia następujące zmienne w tablicy hashy:
|=== |===
| Zmienna | Typ | Opis | Zmienna | Typ | Opis
| buffer | wskaźnik | Bufor. | buffer | wskaźnik | Bufor.
// TRANSLATION MISSING | tg_argc | ciąg | Ilość argumentów (komenda liczy się za jeden).
| tg_argc | ciąg | The number of arguments (the command itself counts for one). | tg_argvN | ciąg | Argument #N (`+tg_argv0+` to komenda, pozostałe to jej argumenty).
// TRANSLATION MISSING | tg_argv_eolN | ciąg | Od argumentu #N do końca argumentów (`+tg_argv_eol0+` zawiera komendę).
| tg_argvN | ciąg | Argument #N (`+tg_argv0+` is the command itself, the others are command arguments).
// TRANSLATION MISSING
| tg_argv_eolN | ciąg | Od argumentu #N do końca argumentów (`+tg_argv_eol0+` includes the command itself).
|=== |===
[[trigger_data_command_run]] [[trigger_data_command_run]]

Some files were not shown because too many files have changed in this diff Show More