mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 22:24:47 +02:00
Compare commits
364 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6494deb29c | |||
| 05a9875f81 | |||
| f30d556e25 | |||
| f105c6f0b5 | |||
| 1206a7bbe4 | |||
| 77d1175026 | |||
| 49b70911b0 | |||
| 3976fa33a1 | |||
| 6a8d2e5044 | |||
| a78d97e2d9 | |||
| 1318f1b72e | |||
| ceb5351eb8 | |||
| b3dd47edd8 | |||
| 5a9269ba20 | |||
| 4827ede798 | |||
| c15c30770e | |||
| fadee50664 | |||
| 48a3baedd5 | |||
| 22d69953d4 | |||
| 5e62af427b | |||
| 29f90fb80e | |||
| 54517dbf4f | |||
| 227776f8b9 | |||
| 383652aa2a | |||
| fbbb72c44d | |||
| cab29dd47f | |||
| 92a40052af | |||
| fbf7156b1b | |||
| ee2f09fb13 | |||
| 8dbd2cf83d | |||
| 3dc72b2e5f | |||
| 46f409d463 | |||
| 54bf589d7d | |||
| 8c8a0c0826 | |||
| f2d250a78f | |||
| ad9c75f234 | |||
| 3af24d9739 | |||
| be47805597 | |||
| a9f87e7e56 | |||
| f962ba1c6c | |||
| 46b27bff4e | |||
| 964481aaeb | |||
| 0c249b14c9 | |||
| 493ecfb388 | |||
| 5352702213 | |||
| fc12a34f19 | |||
| d924eff930 | |||
| 193ff0db37 | |||
| 0094be17a8 | |||
| 5997660bb5 | |||
| f140a9198e | |||
| e2589aaaca | |||
| 111962c65a | |||
| e09dc5f63b | |||
| 1e22a96a10 | |||
| fa3a4355ce | |||
| 4947ed6d31 | |||
| fc6c165c49 | |||
| a195fa2af5 | |||
| 43451e8481 | |||
| 4492547204 | |||
| 2508f0acea | |||
| 55e7090cde | |||
| 7ab6731efe | |||
| dab0792029 | |||
| e5f67894be | |||
| 90936d8478 | |||
| 824610d28b | |||
| ab3806e320 | |||
| 7a0bbd802b | |||
| dcef2a8e0d | |||
| 996aaf0613 | |||
| ec13a66af3 | |||
| 824e6603cc | |||
| 832316df0c | |||
| e5fe9c34c3 | |||
| da8f19bcee | |||
| 240a2fc2ca | |||
| b8684b01cc | |||
| b67b6f3834 | |||
| 3176fd4f09 | |||
| 345c46133d | |||
| d9336d52b3 | |||
| 6e33f286f1 | |||
| 2da9b35acb | |||
| 593eee869f | |||
| eff373e73b | |||
| 840ebc9ac9 | |||
| d320b72d89 | |||
| ab6ca6b065 | |||
| 8a25ac7875 | |||
| cdbf83c764 | |||
| d0b47b5c47 | |||
| e6a6cc971e | |||
| 7621939a7a | |||
| f6a8c28d2d | |||
| f131b9f7de | |||
| a0f1f3fd68 | |||
| b53741e8f4 | |||
| 90e6dca386 | |||
| 65b1edf5b5 | |||
| 4a1dd35b69 | |||
| a603c5e476 | |||
| b9fdcb0193 | |||
| 8062ed6e75 | |||
| 0e8254e25b | |||
| 07ddd31c44 | |||
| 323a19d73a | |||
| 02b1fe9926 | |||
| 28e5018835 | |||
| f12ed55117 | |||
| a87e3908cf | |||
| c88d578d2d | |||
| 23ec19b8dd | |||
| 066cc258b9 | |||
| 67c09d799e | |||
| 68864606e1 | |||
| 925e8b79a8 | |||
| 455a0e501c | |||
| 1bace336bc | |||
| 2ba333d478 | |||
| 999de96b2a | |||
| b522060cef | |||
| 138af6e7dd | |||
| 2eebde035a | |||
| 33ccc29a3f | |||
| 60c324eac5 | |||
| f56b38c34e | |||
| 03a8fbc834 | |||
| 53d95cbbef | |||
| cfc550a20a | |||
| b7d5392771 | |||
| 3cd0960255 | |||
| 664cb6598a | |||
| 5ba10f4141 | |||
| 769decc98c | |||
| 5631e30182 | |||
| 71dc89d057 | |||
| 9b8cc5d130 | |||
| 65368c003e | |||
| 8644ad0d4e | |||
| 9df72e5d53 | |||
| dd2580a1fa | |||
| 505f5be3fe | |||
| d4259a3c9d | |||
| 93361c95d2 | |||
| 36187a240a | |||
| 070249ca3e | |||
| 1921fd4700 | |||
| 9a03e554e3 | |||
| f7c3463c31 | |||
| a8a3fa9f15 | |||
| e5fd20fd25 | |||
| 2867dcc45f | |||
| b87a59701d | |||
| df00926d35 | |||
| 19c2e14c47 | |||
| 90a9a1fb96 | |||
| b58d9910e3 | |||
| 07b7be0357 | |||
| ca9e4697f5 | |||
| 1ed169cb2b | |||
| b9d4fc7e18 | |||
| 0537fe0a83 | |||
| cac3546fcb | |||
| d73b54758c | |||
| 676c8ccaa2 | |||
| b7a6d6813f | |||
| 90752a0458 | |||
| 00eddd3a00 | |||
| 1afa19a6ee | |||
| ec11a59552 | |||
| b3073054a4 | |||
| 1fc06ba0ac | |||
| c491241989 | |||
| 1329dfb57a | |||
| a9f6c34fae | |||
| b297c2d56e | |||
| 9ccb798bcd | |||
| 0655d2d9c4 | |||
| 4a2ad84230 | |||
| 497dc3cd44 | |||
| 9de17f0cb4 | |||
| cd3908ccd2 | |||
| 5b78cb2a7b | |||
| a21a31e3ca | |||
| ef7851ab5c | |||
| 8edca0dd75 | |||
| 4049c6c8a2 | |||
| a10b2bc36a | |||
| 49cdbaab38 | |||
| 2a43f45947 | |||
| a96d27f236 | |||
| 112bebcddf | |||
| 0470a71af9 | |||
| cce2954263 | |||
| 671c216eb3 | |||
| 2606b8a5a3 | |||
| ffdf0ec687 | |||
| 10917530d5 | |||
| 3038380d25 | |||
| 46ff6ba794 | |||
| d4f83a11e9 | |||
| 94355e2e38 | |||
| 572678100b | |||
| 2756da028c | |||
| 2fb346f25f | |||
| 628313a663 | |||
| 90029f9abd | |||
| 2c6985c7e7 | |||
| 061f33b9b8 | |||
| 0a11184984 | |||
| 5a8fb043ab | |||
| 669ca77c41 | |||
| c946b3e361 | |||
| 91c517bbf1 | |||
| c3b85da2d0 | |||
| 084f9d7b52 | |||
| 1e98c9f1c2 | |||
| 67fe4beb70 | |||
| 442940942a | |||
| 45de475c74 | |||
| a4dffb1915 | |||
| e7edebfaee | |||
| fab7a8bdfd | |||
| 2ab0b3b0a9 | |||
| a0e45f67f1 | |||
| aae36f4641 | |||
| 36661af744 | |||
| f12ab59a78 | |||
| a86a32334a | |||
| 4c8d37e09f | |||
| 4a23309f22 | |||
| efea57365c | |||
| c652598ad7 | |||
| 20bb762e28 | |||
| 6948d22e40 | |||
| e6db6185a7 | |||
| b29f18d7ea | |||
| 6ab7af705e | |||
| af138840b3 | |||
| f855b6b0f3 | |||
| d61dfac5b5 | |||
| 2ab3015114 | |||
| 92fc469247 | |||
| 36eb3ee343 | |||
| 85bb23f8cb | |||
| bb00b6b8fb | |||
| f0c8da2f05 | |||
| 467f482ea6 | |||
| 0436fff31b | |||
| 454a4b14b2 | |||
| eb2d0ac58a | |||
| 3045021430 | |||
| ee82ba7461 | |||
| 0fbca41d88 | |||
| f99c866f35 | |||
| f37ecbfefd | |||
| 7d47652c99 | |||
| 86128bdc87 | |||
| 532216e760 | |||
| 7ceacabd46 | |||
| df833d9ba8 | |||
| d4618e45cb | |||
| 24fd69e42c | |||
| 5ce678bf75 | |||
| 9d0ae31fce | |||
| 9816c8cbce | |||
| 370fbeb5a3 | |||
| fb66eeec79 | |||
| f54ed11f1d | |||
| 98487253ca | |||
| 887362dfd9 | |||
| 6f46f65c73 | |||
| e113fe2440 | |||
| 6b8c5381d4 | |||
| 64a8c6d2ae | |||
| b77e0a2c6f | |||
| 7f69f88468 | |||
| 1963191700 | |||
| d31e4f1d9a | |||
| 9a8ec36cbd | |||
| db0ecc07fe | |||
| a8bf5eb7ba | |||
| 4ef8e61ca5 | |||
| 77af4e0a87 | |||
| da0fea8a60 | |||
| c18be9da21 | |||
| ce5dafa6dc | |||
| abbfc9664a | |||
| edfeb60e32 | |||
| 83117f8d2a | |||
| 07d16903f3 | |||
| a5b00ec979 | |||
| 97ca653a43 | |||
| 9e0d103ff7 | |||
| d4c27aa7e2 | |||
| f15ea72da3 | |||
| 70d110026c | |||
| 0d059add9a | |||
| eebb0547e2 | |||
| 8648ee651e | |||
| 45e30f9c82 | |||
| 184891fd7b | |||
| 3fd8012729 | |||
| e4e18d106e | |||
| 5661b4da74 | |||
| b372a34b71 | |||
| 60a40c2ba2 | |||
| 155fa5c1e3 | |||
| 3293070499 | |||
| 77b229ab64 | |||
| f4c2328abf | |||
| e6d5d791cd | |||
| e52400841a | |||
| a54e40ea14 | |||
| 1c9446e594 | |||
| 12e2d9995c | |||
| e1eeb22945 | |||
| 51b2352786 | |||
| 06d73e4b96 | |||
| ffcf135593 | |||
| 1adb6075fa | |||
| cf1010e177 | |||
| 8282567d40 | |||
| 7fbdc08f3a | |||
| ac007a1efd | |||
| d7f72c2a1c | |||
| 0fd8c00b92 | |||
| b8a399ced9 | |||
| 50b0fa1cb1 | |||
| e76471a2e0 | |||
| dd440b6805 | |||
| d6977490d0 | |||
| 0586413ede | |||
| 2437107e35 | |||
| 0ef979a54a | |||
| 24a15e8b95 | |||
| 71b6db5583 | |||
| 661c8b9900 | |||
| 78429c549a | |||
| 27e949d974 | |||
| 8971f001b4 | |||
| 658b166a41 | |||
| e8e7a6392e | |||
| d3da29ba51 | |||
| 8e160c31fe | |||
| 9ed4f2a9a6 | |||
| 0e0d665671 | |||
| 3c29cff2a5 | |||
| 9a35a07d86 | |||
| 19504d30e5 | |||
| f250f72208 | |||
| 49fb896a96 | |||
| 459f58f6aa | |||
| 1b23cd3a47 | |||
| 2f2b04e139 | |||
| 761ac58aa2 | |||
| 9eafa1e461 | |||
| c51aa7960c | |||
| 9cdc75abd4 | |||
| c205aae269 | |||
| 2ef5d654dc | |||
| e1f296857e |
@@ -61,7 +61,9 @@ Alphabetically:
|
||||
* Mateusz Poszwa
|
||||
* Matt Robinson
|
||||
* Max Anton Teufel
|
||||
* Miroslav Koskar
|
||||
* Murilo Opsfelder Araujo
|
||||
* Neui
|
||||
* Nick (SolitaryCipher)
|
||||
* Nicolas Cavigneaux
|
||||
* Nils Görs (nils_2)
|
||||
@@ -80,8 +82,10 @@ Alphabetically:
|
||||
* Quentin Pradet
|
||||
* Quico Noizeux
|
||||
* Raghavendra Prabhu
|
||||
* raspbeguy
|
||||
* Rettub
|
||||
* Rob Campbell
|
||||
* Romero B. de S. Malaquias
|
||||
* Rudolf Polzer (divVerent)
|
||||
* Ryuunosuke Ayanokouzi
|
||||
* scumjr
|
||||
@@ -95,6 +99,8 @@ Alphabetically:
|
||||
* Stfn
|
||||
* Sven Knurr (Cthulhux)
|
||||
* Tim D. Smith
|
||||
* Tim Harder
|
||||
* Tobias Stoeckmann
|
||||
* Tom Alsberg
|
||||
* Tomoe Mami
|
||||
* Tor Hveem (xt)
|
||||
|
||||
@@ -89,6 +89,7 @@ option(ENABLE_LARGEFILE "Enable Large File Support" ON)
|
||||
option(ENABLE_ALIAS "Enable Alias plugin" ON)
|
||||
option(ENABLE_ASPELL "Enable Aspell plugin" ON)
|
||||
option(ENABLE_ENCHANT "Enable Enchant lib for Aspell plugin" OFF)
|
||||
option(ENABLE_BUFLIST "Enable Buflist plugin" ON)
|
||||
option(ENABLE_CHARSET "Enable Charset plugin" ON)
|
||||
option(ENABLE_EXEC "Enable Exec plugin" ON)
|
||||
option(ENABLE_FIFO "Enable FIFO plugin" ON)
|
||||
|
||||
+103
-7
@@ -15,6 +15,102 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
|
||||
(file _ReleaseNotes.adoc_ in sources).
|
||||
|
||||
|
||||
[[v1.9.1]]
|
||||
== Version 1.9.1 (2017-09-23)
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* buflist: fix crash in auto-scroll of bar when the buflist item is not the first item in the bar
|
||||
* logger: call strftime before replacing buffer local variables
|
||||
* relay: fix send of "PART" command in backlog (irc protocol)
|
||||
|
||||
[[v1.9]]
|
||||
== Version 1.9 (2017-06-25)
|
||||
|
||||
New features::
|
||||
|
||||
* api: allow update of variables "scroll_x" and "scroll_y" in bar_window with function hdata_update
|
||||
* api: add functions config_option_get_string() and hdata_compare()
|
||||
* buflist: add option buflist.look.auto_scroll (issue #332)
|
||||
* buflist: add keys kbd:[F1]/kbd:[F2], kbd:[Alt+F1]/kbd:[Alt+F2] to scroll the buflist bar
|
||||
|
||||
Improvements::
|
||||
|
||||
* core: improve speed of nicklist bar item callback
|
||||
* core: allow index for hdata arrays in evaluation of expressions
|
||||
* buflist: display a warning when the script "buffers.pl" is loaded
|
||||
* buflist: add support of char "~" in option buflist.look.sort for case insensitive comparison
|
||||
* buflist: add variable `${format_name}` in bar item evaluation and option buflist.format.name (issue #1020)
|
||||
* buflist: add variables `${current_buffer}` and `${merged}` (booleans "0" / "1") in bar item evaluation
|
||||
* relay: add option "start" in command /relay
|
||||
* trigger: add "irc_server" and "irc_channel" pointers in data for IRC signal/modifier hooks
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* core: fix bind of keys with space key, like kbd:[Alt+Space] (bug #32133)
|
||||
* core: fix infinite loop when the terminal is closed on the secure password prompt (issue #1010)
|
||||
* buflist: fix long mouse gestures
|
||||
* buflist: fix slow switch of buffer when there are a lot of buffers opened (issue #998)
|
||||
* buflist: add option "bar" in command /buflist, do not automatically add the "buflist" bar when the option buflist.look.enabled is off (issue #994)
|
||||
* buflist: fix crash on drag & drop of buffers
|
||||
* irc: don't reset nick properties (prefixes/away/account/realname) on /names when the nick already exists (issue #1019)
|
||||
* irc: fix memory leak in case of error in "ecdsa-nist256p-challenge" SASL mechanism
|
||||
* relay: rebind on address after option relay.network.bind_address is changed
|
||||
* relay: fix parsing of CAP command arguments in irc protocol (issue #995)
|
||||
|
||||
[[v1.8]]
|
||||
== Version 1.8 (2017-05-13)
|
||||
|
||||
New features::
|
||||
|
||||
* core: add option weechat.completion.nick_case_sensitive (issue #981)
|
||||
* core: add wilcard matching operator (`+=*+` and `+!*+`) in evaluation of expressions (issue #611)
|
||||
* core: add cut of string in evaluation of expressions with "cut:" (number of chars) and "cutscr:" (number of chars displayed on screen)
|
||||
* core: add ternary operator (condition) in evaluation of expressions (`${if:condition?value_if_true:value_if_false}`)
|
||||
* core: add resize of window parents with /window resize [h/v]size (task #11461, issue #893)
|
||||
* api: add arraylist functions: arraylist_new(), arraylist_size(), arraylist_get(), arraylist_search(), arraylist_insert(), arraylist_add(), arraylist_remove(), arraylist_clear(), arraylist_free()
|
||||
* api: add dynamic string functions: string_dyn_alloc(), string_dyn_copy(), string_dyn_concat(), string_dyn_free()
|
||||
* aspell: add options to control delimiters in suggestions: aspell.color.suggestion_delimiter_{dict|word} and aspell.look.suggestion_delimiter_{dict|word} (issue #940)
|
||||
* buflist: new plugin "buflist" (bar item with list of buffers)
|
||||
* irc: add option "open" in command /server (issue #966)
|
||||
* irc: send signal "irc_server_lag_changed" and store the lag in the server buffer (local variable)
|
||||
|
||||
Improvements::
|
||||
|
||||
* core: add hotlist pointer in buffer structure
|
||||
* core: add last start date in output of command /version after at least one /upgrade (issue #903)
|
||||
* api: add special key "__quiet" in hashtable for function key_bind()
|
||||
* api: add `${re:#}` to get the index of last group captured in function string_eval_expression()
|
||||
* irc: send multiple masks by message in commands /ban, /unban, /quiet and /unquiet, use ban mask default for nicks in /quiet and /unquiet, display an error if /quiet and /unquiet are not supported by server (issue #579, issue #15, issue #577)
|
||||
* irc: add option "-include" in commands /allchan, /allpv and /allserv (issue #572)
|
||||
* irc: don't smart filter modes given to you (issue #530, issue #897)
|
||||
* script: remove option script.scripts.url_force_https, use HTTPS by default in option script.scripts.url
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* core: fix memory leak in display of mouse event debug info
|
||||
* core: fix command /cursor stop (do not toggle cursor mode) (issue #964)
|
||||
* core: fix delayed refresh when the signal SIGWINCH is received (terminal resized), send signal "signal_sigwinch" after refreshes (issue #902)
|
||||
* irc: fix update of server addresses on reconnection when the evaluated content has changed (issue #925)
|
||||
* irc: fix crash in case of invalid server reply during SASL authentication with dh-blowfish or dh-aes mechanism
|
||||
* irc: fix double decoding of IRC colors in messages sent/displayed by commands /msg and /query (issue #943)
|
||||
* irc: fix parsing of message 324 (modes) when there is a colon before the modes (issue #913)
|
||||
* relay: check buffer pointer received in "sync" and "desync" commands (weechat protocol) (issue #936)
|
||||
* relay: remove buffer from synchronized buffers when it is closed (fix memory leak)
|
||||
|
||||
Build::
|
||||
|
||||
* core: fix compilation on FreeBSD with autotools (issue #276)
|
||||
* python: add detection of Python 3.6
|
||||
* ruby: add detection of Ruby 2.4 (issue #895)
|
||||
|
||||
[[v1.7.1]]
|
||||
== Version 1.7.1 (2017-04-22)
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* irc: fix parsing of DCC filename (CVE-2017-8073)
|
||||
|
||||
[[v1.7]]
|
||||
== Version 1.7 (2017-01-15)
|
||||
|
||||
@@ -26,7 +122,7 @@ New features::
|
||||
* core: add option "time" in command /debug
|
||||
* api: add info "uptime" (WeeChat uptime)
|
||||
* api: add info "pid" (WeeChat PID) (issue #850)
|
||||
* fifo: add file fifo.conf and option fifo.file.path to customize FIFO pipe path/filename (issue #850)
|
||||
* fifo: add file fifo.conf and option fifo.file.path to customize FIFO pipe path/filename (issue #850, issue #122)
|
||||
* irc: add server option "usermode" (issue #377, issue #820)
|
||||
* irc: add tag "self_msg" on self messages (issue #840)
|
||||
|
||||
@@ -978,14 +1074,14 @@ Build::
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* core: do not call shell to execute command in hook_process() (fix security problem when a plugin/script gives untrusted command) (bug #37764)
|
||||
* core: do not call shell to execute command in hook_process() (fix security problem when a plugin/script gives untrusted command) (bug #37764, CVE-2012-5534)
|
||||
|
||||
[[v0.3.9.1]]
|
||||
== Version 0.3.9.1 (2012-11-09)
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* irc: fix crash when decoding IRC colors in strings (bug #37704)
|
||||
* irc: fix crash when decoding IRC colors in strings (bug #37704, CVE-2012-5854)
|
||||
|
||||
[[v0.3.9]]
|
||||
== Version 0.3.9 (2012-09-29)
|
||||
@@ -1381,7 +1477,7 @@ Bug fixes::
|
||||
* core: fix bug with repeat of last completion ("%*"), which failed when many templates are used in completion
|
||||
* core: reload file with certificate authorities when option weechat.network.gnutls_ca_file is changed
|
||||
* core: rebuild bar content when items are changed in an hidden bar
|
||||
* core: fix verification of SSL certificates by calling GnuTLS verify callback (patch #7459)
|
||||
* core: fix verification of SSL certificates by calling GnuTLS verify callback (patch #7459, CVE-2011-1428)
|
||||
* core: fix crash when using column filling in bars with some empty items (bug #32565)
|
||||
* core: fix terminal title when $TERM starts with "screen"
|
||||
* plugins: fix memory leaks when setting buffer callbacks after /upgrade (plugins: irc, relay, xfer, scripts)
|
||||
@@ -1752,7 +1848,7 @@ Bug fixes::
|
||||
|
||||
Bug fixes::
|
||||
|
||||
* fix crash with some special chars in IRC messages (bug #25862)
|
||||
* fix crash with some special chars in IRC messages (bug #25862, CVE-2009-0661)
|
||||
|
||||
[[v0.2.6]]
|
||||
== Version 0.2.6 (2007-09-06)
|
||||
@@ -2007,7 +2103,7 @@ Bug fixes::
|
||||
* fix bug with spaces in script names (bug #16957)
|
||||
* fix random crash when "MODE #chan -l" is received
|
||||
* fix bug in IRC parser (random crash with malformed IRC messages)
|
||||
* fix refresh bugs when terminal is resized: too many refreshs, display bug with split windows
|
||||
* fix refresh bugs when terminal is resized: too many refreshes, display bug with split windows
|
||||
* case ignored for channel names in charset options (bug #16858)
|
||||
* fix crash when setting look_one_server_buffer to ON (bug #16932)
|
||||
* fix display bug with special char (bug #16732)
|
||||
@@ -2240,7 +2336,7 @@ Bug fixes::
|
||||
* fix FIFO pipe (command now authorized on a buffer not connected to an IRC server)
|
||||
* topic completion now decodes UTF-8 string
|
||||
* fix bug with IRC URL on command line (irc://)
|
||||
* fix some curses refreshs
|
||||
* fix some curses refreshes
|
||||
|
||||
[[v0.1.3]]
|
||||
== Version 0.1.3 (2005-07-02)
|
||||
|
||||
@@ -40,6 +40,8 @@ please include:
|
||||
(or if you have a core file), please include the backtrace from gdb (look at
|
||||
https://weechat.org/files/doc/devel/weechat_user.en.html#report_crashes[User's guide]
|
||||
for more info).
|
||||
* The *actual result*.
|
||||
* The *expected result*: the correct result you are expecting.
|
||||
|
||||
[IMPORTANT]
|
||||
Most of times, the WeeChat crash log file (_weechat_crash_YYYYMMDD_xxx.log_) is
|
||||
|
||||
+2
-1
@@ -4,13 +4,14 @@
|
||||
:lang: en
|
||||
|
||||
|
||||
image:https://travis-ci.org/weechat/weechat.svg?branch=master["Build Status", link="https://travis-ci.org/weechat/weechat"]
|
||||
image:https://img.shields.io/badge/diaspora*-follow-blue.svg["Diaspora*", link="https://diasp.eu/u/weechat"]
|
||||
image:https://img.shields.io/badge/google%2B-follow-blue.svg["Google+", link="https://plus.google.com/+WeeChat"]
|
||||
image:https://img.shields.io/badge/devel%20blog-follow-blue.svg["Devel blog", link="http://dev.weechat.org/"]
|
||||
image:https://img.shields.io/badge/slant-recommend-28acad.svg["Slant", link="http://www.slant.co/topics/1323/~irc-clients-for-linux"]
|
||||
image:https://img.shields.io/badge/paypal-donate%20%E2%9D%A4-yellow.svg["Paypal", link="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4LSMSNLUAJWNS"]
|
||||
|
||||
image:https://travis-ci.org/weechat/weechat.svg?branch=master["Build Status", link="https://travis-ci.org/weechat/weechat"]
|
||||
|
||||
WeeChat (Wee Enhanced Environment for Chat) is a free chat client, fast and
|
||||
light, designed for many operating systems.
|
||||
It is highly customizable and extensible with scripts.
|
||||
|
||||
@@ -17,6 +17,68 @@ https://weechat.org/files/changelog/ChangeLog-devel.html[ChangeLog]
|
||||
(file _ChangeLog.adoc_ in sources).
|
||||
|
||||
|
||||
[[v1.9.1]]
|
||||
== Version 1.9.1 (2017-09-23)
|
||||
|
||||
Bug fix and maintenance release.
|
||||
|
||||
[[v1.9]]
|
||||
== Version 1.9 (2017-06-25)
|
||||
|
||||
No release note.
|
||||
|
||||
[[v1.8]]
|
||||
== Version 1.8 (2017-05-13)
|
||||
|
||||
[[v1.8_options]]
|
||||
=== Options
|
||||
|
||||
The option _script.scripts.url_force_https_ has been removed because now the
|
||||
site weechat.org can only be used with HTTPS. +
|
||||
Both HTTP and HTTPS protocols are allowed in the option _script.scripts.url_.
|
||||
For http://weechat.org an automatic redirection to https://weechat.org will
|
||||
occur, so you should check that the CA certificates are properly installed
|
||||
on your machine.
|
||||
|
||||
Aspell option with color for suggestion on a misspelled word has been renamed:
|
||||
|
||||
* _aspell.color.suggestions_ has been renamed to _aspell.color.suggestion_
|
||||
|
||||
[[v1.8_buflist_plugin]]
|
||||
=== Buflist plugin
|
||||
|
||||
A new plugin called "buflist" has been added, it replaces the script "buffers.pl".
|
||||
|
||||
If the script is installed, you will see two sidebars with list of buffers.
|
||||
|
||||
If you fell in love with buflist and that the script buffers.pl is installed,
|
||||
you can uninstall the script and remove its bar with these commands:
|
||||
|
||||
----
|
||||
/script remove buffers.pl
|
||||
/bar del buffers
|
||||
----
|
||||
|
||||
If you don't want the list of buffers, you can disable buflist:
|
||||
|
||||
----
|
||||
/set buflist.look.enabled off
|
||||
----
|
||||
|
||||
To save extra memory, you can even unload the buflist plugin, remove the bar and
|
||||
prevent the plugin from loading on next startup:
|
||||
|
||||
----
|
||||
/plugin unload buflist
|
||||
/bar del buflist
|
||||
/set weechat.plugin.autoload "*,!buflist"
|
||||
----
|
||||
|
||||
[[v1.7.1]]
|
||||
== Version 1.7.1 (2017-04-22)
|
||||
|
||||
Bug fix and maintenance release.
|
||||
|
||||
[[v1.7]]
|
||||
== Version 1.7 (2017-01-15)
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ endif()
|
||||
|
||||
if(ENABLE_PYTHON3)
|
||||
find_program(PYTHON_EXECUTABLE
|
||||
NAMES python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python3 python2.7 python2.6 python2.5 python
|
||||
NAMES python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python3 python2.7 python2.6 python2.5 python
|
||||
PATHS /usr/bin /usr/local/bin /usr/pkg/bin
|
||||
)
|
||||
else()
|
||||
@@ -67,7 +67,7 @@ if(PYTHON_EXECUTABLE)
|
||||
)
|
||||
if(ENABLE_PYTHON3)
|
||||
find_library(PYTHON_LIBRARY
|
||||
NAMES python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python3 python2.7 python2.6 python2.5 python
|
||||
NAMES python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python3 python2.7 python2.6 python2.5 python
|
||||
HINTS ${PYTHON_POSSIBLE_LIB_PATH}
|
||||
)
|
||||
else()
|
||||
|
||||
@@ -33,7 +33,7 @@ endif()
|
||||
|
||||
find_package(PkgConfig)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
pkg_search_module(RUBY ruby-2.3 ruby-2.2 ruby-2.1 ruby-2.0 ruby-1.9 ruby-1.8)
|
||||
pkg_search_module(RUBY ruby-2.4 ruby-2.3 ruby-2.2 ruby-2.1 ruby-2.0 ruby-1.9 ruby-1.8)
|
||||
endif()
|
||||
|
||||
if(RUBY_FOUND)
|
||||
@@ -41,7 +41,7 @@ if(RUBY_FOUND)
|
||||
mark_as_advanced(RUBY_LIB)
|
||||
else()
|
||||
find_program(RUBY_EXECUTABLE
|
||||
NAMES ruby2.3.0 ruby230 ruby2.3 ruby23 ruby2.2.3 ruby223 ruby2.2.2 ruby222 ruby2.2.1 ruby221 ruby2.2.0 ruby220 ruby2.2 ruby22 ruby2.1.7 ruby217 ruby2.1.6 ruby216 ruby2.1.5 ruby215 ruby2.1.4 ruby214 ruby2.1.3 ruby213 ruby2.1.2 ruby212 ruby2.1.1 ruby211 ruby2.1.0 ruby210 ruby2.1 ruby21 ruby2.0 ruby20 ruby1.9.3 ruby193 ruby1.9.2 ruby192 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby1.8 ruby18 ruby
|
||||
NAMES ruby2.4.0 ruby240 ruby2.4 ruby2.3.0 ruby230 ruby2.3 ruby23 ruby2.2.3 ruby223 ruby2.2.2 ruby222 ruby2.2.1 ruby221 ruby2.2.0 ruby220 ruby2.2 ruby22 ruby2.1.7 ruby217 ruby2.1.6 ruby216 ruby2.1.5 ruby215 ruby2.1.4 ruby214 ruby2.1.3 ruby213 ruby2.1.2 ruby212 ruby2.1.1 ruby211 ruby2.1.0 ruby210 ruby2.1 ruby21 ruby2.0 ruby20 ruby1.9.3 ruby193 ruby1.9.2 ruby192 ruby1.9.1 ruby191 ruby1.9 ruby19 ruby1.8 ruby18 ruby
|
||||
PATHS /usr/bin /usr/local/bin /usr/pkg/bin
|
||||
)
|
||||
if(RUBY_EXECUTABLE)
|
||||
|
||||
+27
-12
@@ -109,6 +109,7 @@ AH_VERBATIM([HAVE_ENCHANT_GET_VERSION], [#undef HAVE_ENCHANT_GET_VERSION])
|
||||
AH_VERBATIM([HAVE_GUILE_GMP_MEMORY_FUNCTIONS], [#undef HAVE_GUILE_GMP_MEMORY_FUNCTIONS])
|
||||
AH_VERBATIM([PLUGIN_ALIAS], [#undef PLUGIN_ALIAS])
|
||||
AH_VERBATIM([PLUGIN_ASPELL], [#undef PLUGIN_ASPELL])
|
||||
AH_VERBATIM([PLUGIN_BUFLIST], [#undef PLUGIN_BUFLIST])
|
||||
AH_VERBATIM([PLUGIN_CHARSET], [#undef PLUGIN_CHARSET])
|
||||
AH_VERBATIM([PLUGIN_EXEC], [#undef PLUGIN_EXEC])
|
||||
AH_VERBATIM([PLUGIN_FIFO], [#undef PLUGIN_FIFO])
|
||||
@@ -139,7 +140,8 @@ AC_ARG_ENABLE(largefile, [ --disable-largefile turn off Large File Suppo
|
||||
AC_ARG_ENABLE(alias, [ --disable-alias turn off Alias plugin (default=compiled)],enable_alias=$enableval,enable_alias=yes)
|
||||
AC_ARG_ENABLE(aspell, [ --disable-aspell turn off Aspell plugin (default=compiled)],enable_aspell=$enableval,enable_aspell=yes)
|
||||
AC_ARG_ENABLE(enchant, [ --enable-enchant turn on Enchant lib for Aspell plugin (default=off)],enable_enchant=$enableval,enable_enchant=no)
|
||||
AC_ARG_ENABLE(charset, [ --disable-charset turn off Charset plugin (default=compiled if found)],enable_charset=$enableval,enable_charset=yes)
|
||||
AC_ARG_ENABLE(buflist, [ --disable-buflist turn off Buflist plugin (default=compiled)],enable_buflist=$enableval,enable_buflist=yes)
|
||||
AC_ARG_ENABLE(charset, [ --disable-charset turn off Charset plugin (default=compiled)],enable_charset=$enableval,enable_charset=yes)
|
||||
AC_ARG_ENABLE(exec, [ --disable-exec turn off Exec plugin (default=compiled)],enable_exec=$enableval,enable_exec=yes)
|
||||
AC_ARG_ENABLE(fifo, [ --disable-fifo turn off Fifo plugin (default=compiled)],enable_fifo=$enableval,enable_fifo=yes)
|
||||
AC_ARG_ENABLE(irc, [ --disable-irc turn off IRC plugin (default=compiled)],enable_irc=$enableval,enable_irc=yes)
|
||||
@@ -156,7 +158,7 @@ AC_ARG_ENABLE(tcl, [ --disable-tcl turn off Tcl script plugi
|
||||
AC_ARG_ENABLE(guile, [ --disable-guile turn off Guile (scheme) script plugin (default=compiled if found)],enable_guile=$enableval,enable_guile=yes)
|
||||
AC_ARG_ENABLE(javascript, [ --disable-javascript turn off Javascript script plugin (default=compiled if found)],enable_javascript=$enableval,enable_javascript=yes)
|
||||
AC_ARG_ENABLE(trigger, [ --disable-trigger turn off Trigger plugin (default=compiled)],enable_trigger=$enableval,enable_trigger=yes)
|
||||
AC_ARG_ENABLE(xfer, [ --disable-xfer turn off Xfer (file transfer) plugin (default=compiled if found)],enable_xfer=$enableval,enable_xfer=yes)
|
||||
AC_ARG_ENABLE(xfer, [ --disable-xfer turn off Xfer (file transfer) plugin (default=compiled)],enable_xfer=$enableval,enable_xfer=yes)
|
||||
AC_ARG_WITH(tclconfig, [ --with-tclconfig=DIR directory containing tcl configuration (tclConfig.sh)],tclconfig=$withval,tclconfig='')
|
||||
AC_ARG_WITH(debug, [ --with-debug debugging: 0=no debug, 1=debug compilation (default=1)],debug=$withval,debug=1)
|
||||
AC_ARG_ENABLE(tests, [ --enable-tests turn on build of tests (default=not built)],enable_tests=$enableval,enable_tests=no)
|
||||
@@ -336,7 +338,7 @@ if test "x$enable_aspell" = "xyes" ; then
|
||||
AC_CHECK_HEADER(aspell.h,ac_found_aspell_header="yes",ac_found_aspell_header="no")
|
||||
AC_CHECK_LIB(aspell,new_aspell_speller,ac_found_aspell_lib="yes",ac_found_aspell_lib="no")
|
||||
|
||||
AC_MSG_CHECKING(for aspell headers and librairies)
|
||||
AC_MSG_CHECKING(for aspell headers and libraries)
|
||||
if test "x$ac_found_aspell_header" = "xno" -o "x$ac_found_aspell_lib" = "xno" ; then
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_WARN([
|
||||
@@ -375,6 +377,14 @@ if test "x$enable_aspell" = "xyes" ; then
|
||||
AC_DEFINE(PLUGIN_ASPELL)
|
||||
fi
|
||||
|
||||
# --------------------------------- buflist ------------------------------------
|
||||
|
||||
if test "x$enable_buflist" = "xyes" ; then
|
||||
AC_DEFINE(PLUGIN_BUFLIST)
|
||||
else
|
||||
not_asked="$not_asked buflist"
|
||||
fi
|
||||
|
||||
# --------------------------------- charset ------------------------------------
|
||||
|
||||
if test "x$enable_charset" = "xyes" ; then
|
||||
@@ -657,7 +667,7 @@ if test "x$enable_lua" = "xyes" ; then
|
||||
fi
|
||||
|
||||
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
|
||||
AC_MSG_CHECKING(for Lua headers and librairies with pkg-config)
|
||||
AC_MSG_CHECKING(for Lua headers and libraries with pkg-config)
|
||||
echo
|
||||
for l in "$lua_suffix" "" "52" "5.2" "51" "5.1" "50" "5.0" ; do
|
||||
pkgconfig_lua_found=`$PKGCONFIG --exists lua$l 2>/dev/null`
|
||||
@@ -680,7 +690,7 @@ if test "x$enable_lua" = "xyes" ; then
|
||||
LUACONFIG=""
|
||||
AC_CHECK_PROGS(LUACONFIG, lua-config lua-config52 lua-config5.2 lua-config51 lua-config5.1 lua-config50 lua-config5.0)
|
||||
if test "x$LUACONFIG" != "x" ; then
|
||||
AC_MSG_CHECKING(for Lua headers and librairies with lua-config)
|
||||
AC_MSG_CHECKING(for Lua headers and libraries with lua-config)
|
||||
echo
|
||||
LUA_CFLAGS=`$LUACONFIG --include`
|
||||
LUA_LFLAGS=`$LUACONFIG --libs`
|
||||
@@ -689,7 +699,7 @@ if test "x$enable_lua" = "xyes" ; then
|
||||
fi
|
||||
|
||||
if test "x$LUA_CFLAGS" = "x" -o "x$LUA_LFLAGS" = "x" ; then
|
||||
AC_MSG_CHECKING(for Lua headers and librairies)
|
||||
AC_MSG_CHECKING(for Lua headers and libraries)
|
||||
echo
|
||||
AC_CHECK_HEADER(lua.h,ac_found_lua_header="yes",ac_found_lua_header="no")
|
||||
AC_CHECK_HEADER(lualib.h,ac_found_liblua_header="yes",ac_found_liblua_header="no")
|
||||
@@ -734,7 +744,7 @@ if test "x$enable_lua" = "xyes" ; then
|
||||
if test "x$LUA52_TEST" != "x0" ; then
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_WARN([
|
||||
*** Lua (>=5.0) headers and/or librairies couldn't be found on your system.
|
||||
*** Lua (>=5.0) headers and/or libraries couldn't be found on your system.
|
||||
*** Try to install liblua, liblualib and liblua-dev with your software package manager.
|
||||
*** WeeChat will be built without Lua support.])
|
||||
enable_lua="no"
|
||||
@@ -807,7 +817,7 @@ if test "x$enable_guile" = "xyes" ; then
|
||||
enable_plugins="yes"
|
||||
|
||||
guile_found="no"
|
||||
AC_MSG_CHECKING(for Guile headers and librairies)
|
||||
AC_MSG_CHECKING(for Guile headers and libraries)
|
||||
echo
|
||||
for v in "2.0" ; do
|
||||
pkgconfig_guile_found=`$PKGCONFIG --exists guile-$v 2>/dev/null`
|
||||
@@ -939,7 +949,7 @@ fi
|
||||
AC_CHECK_HEADER(gcrypt.h,ac_found_gcrypt_header="yes",ac_found_gcrypt_header="no")
|
||||
AC_CHECK_LIB(gcrypt,gcry_check_version,ac_found_gcrypt_lib="yes",ac_found_gcrypt_lib="no")
|
||||
|
||||
AC_MSG_CHECKING(for gcrypt headers and librairies)
|
||||
AC_MSG_CHECKING(for gcrypt headers and libraries)
|
||||
if test "x$ac_found_gcrypt_header" = "xno" -o "x$ac_found_gcrypt_lib" = "xno" ; then
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_ERROR([
|
||||
@@ -961,7 +971,7 @@ if test "x$enable_gnutls" = "xyes" ; then
|
||||
AC_CHECK_HEADER(gnutls/gnutls.h,ac_found_gnutls_header="yes",ac_found_gnutls_header="no")
|
||||
AC_CHECK_LIB(gnutls,gnutls_global_init,ac_found_gnutls_lib="yes",ac_found_gnutls_lib="no")
|
||||
|
||||
AC_MSG_CHECKING(for gnutls headers and librairies)
|
||||
AC_MSG_CHECKING(for gnutls headers and libraries)
|
||||
if test "x$ac_found_gnutls_header" = "xno" -o "x$ac_found_gnutls_lib" = "xno" ; then
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_WARN([
|
||||
@@ -1057,7 +1067,7 @@ fi
|
||||
AC_CHECK_HEADER(zlib.h,ac_found_zlib_header="yes",ac_found_zlib_header="no")
|
||||
AC_CHECK_LIB(z,compress2,ac_found_zlib_lib="yes",ac_found_zlib_lib="no")
|
||||
|
||||
AC_MSG_CHECKING(for zlib headers and librairies)
|
||||
AC_MSG_CHECKING(for zlib headers and libraries)
|
||||
if test "x$ac_found_zlib_header" = "xno" -o "x$ac_found_zlib_lib" = "xno" ; then
|
||||
AC_MSG_RESULT(no)
|
||||
AC_MSG_ERROR([
|
||||
@@ -1092,7 +1102,7 @@ AC_SUBST(CURL_LFLAGS)
|
||||
|
||||
if test "x$enable_tests" = "xyes" ; then
|
||||
cpputest_found="no"
|
||||
AC_MSG_CHECKING(for CppUTest headers and librairies)
|
||||
AC_MSG_CHECKING(for CppUTest headers and libraries)
|
||||
echo
|
||||
pkgconfig_cpputest_found=`$PKGCONFIG --exists cpputest 2>/dev/null`
|
||||
if test "x$?" = "x0" ; then
|
||||
@@ -1245,6 +1255,7 @@ AM_CONDITIONAL(HAVE_EAT_NEWLINE_GLITCH, test "$enable_eatnewlineglitch" = "yes")
|
||||
AM_CONDITIONAL(GUI_NCURSES, test "$enable_ncurses" = "yes")
|
||||
AM_CONDITIONAL(PLUGIN_ALIAS, test "$enable_alias" = "yes")
|
||||
AM_CONDITIONAL(PLUGIN_ASPELL, test "$enable_aspell" = "yes")
|
||||
AM_CONDITIONAL(PLUGIN_BUFLIST, test "$enable_buflist" = "yes")
|
||||
AM_CONDITIONAL(PLUGIN_CHARSET, test "$enable_charset" = "yes")
|
||||
AM_CONDITIONAL(PLUGIN_EXEC, test "$enable_exec" = "yes")
|
||||
AM_CONDITIONAL(PLUGIN_FIFO, test "$enable_fifo" = "yes")
|
||||
@@ -1281,6 +1292,7 @@ AC_OUTPUT([Makefile
|
||||
src/plugins/Makefile
|
||||
src/plugins/alias/Makefile
|
||||
src/plugins/aspell/Makefile
|
||||
src/plugins/buflist/Makefile
|
||||
src/plugins/charset/Makefile
|
||||
src/plugins/exec/Makefile
|
||||
src/plugins/fifo/Makefile
|
||||
@@ -1325,6 +1337,9 @@ fi
|
||||
if test "x$enable_aspell" = "xyes"; then
|
||||
listplugins="$listplugins aspell($ASPELL_LIB_USED)"
|
||||
fi
|
||||
if test "x$enable_buflist" = "xyes"; then
|
||||
listplugins="$listplugins buflist"
|
||||
fi
|
||||
if test "x$enable_charset" = "xyes"; then
|
||||
listplugins="$listplugins charset"
|
||||
fi
|
||||
|
||||
@@ -88,8 +88,8 @@ Description: Fast, light and extensible chat client - core files
|
||||
for many operating systems. Everything can be done with a keyboard.
|
||||
.
|
||||
This package provides core plugins and locales files for WeeChat. It
|
||||
currently ships the following plugins: alias, xfer, irc, charset and
|
||||
logger. It is useless without weechat-curses.
|
||||
currently ships the following plugins: alias, buflist, charset, irc, logger
|
||||
and xfer. It is useless without weechat-curses.
|
||||
|
||||
Package: weechat-devel-plugins
|
||||
Architecture: any
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
../debian-stable/weechat.xpm
|
||||
@@ -0,0 +1,397 @@
|
||||
/* XPM */
|
||||
static char * C:\temp\weechat_xpm[] = {
|
||||
"32 32 362 2",
|
||||
" c None",
|
||||
". c #117529",
|
||||
"+ c #0E7527",
|
||||
"@ c #0A7424",
|
||||
"# c #057323",
|
||||
"$ c #016F20",
|
||||
"% c #5DAA58",
|
||||
"& c #5DB059",
|
||||
"* c #5AB158",
|
||||
"= c #57B157",
|
||||
"- c #54AF55",
|
||||
"; c #4FAE53",
|
||||
"> c #4BAE52",
|
||||
", c #48AD50",
|
||||
"' c #44AC4E",
|
||||
") c #3FAB4C",
|
||||
"! c #3BA849",
|
||||
"~ c #36A646",
|
||||
"{ c #30A343",
|
||||
"] c #2CA040",
|
||||
"^ c #279D3D",
|
||||
"/ c #229A3A",
|
||||
"( c #1D9837",
|
||||
"_ c #189534",
|
||||
": c #129232",
|
||||
"< c #0D8F2E",
|
||||
"[ c #088D2C",
|
||||
"} c #03691F",
|
||||
"| c #64AB5B",
|
||||
"1 c #6FC468",
|
||||
"2 c #6AC265",
|
||||
"3 c #66BF62",
|
||||
"4 c #62BC5F",
|
||||
"5 c #5DBA5D",
|
||||
"6 c #58B85A",
|
||||
"7 c #54B557",
|
||||
"8 c #4FB254",
|
||||
"9 c #4AB052",
|
||||
"0 c #45AD4F",
|
||||
"a c #40AB4C",
|
||||
"b c #3CA849",
|
||||
"c c #37A647",
|
||||
"d c #32A344",
|
||||
"e c #2DA041",
|
||||
"f c #289D3D",
|
||||
"g c #239A3B",
|
||||
"h c #1E9838",
|
||||
"i c #199535",
|
||||
"j c #139232",
|
||||
"k c #0F8F2F",
|
||||
"l c #098B2B",
|
||||
"m c #035018",
|
||||
"n c #68AE5E",
|
||||
"o c #76C96B",
|
||||
"p c #70C568",
|
||||
"q c #6CC365",
|
||||
"r c #67C062",
|
||||
"s c #62BD60",
|
||||
"t c #5FBC5E",
|
||||
"u c #5ABA5B",
|
||||
"v c #55B859",
|
||||
"w c #51B656",
|
||||
"x c #4CB354",
|
||||
"y c #47B051",
|
||||
"z c #42AD4E",
|
||||
"A c #3EAA4B",
|
||||
"B c #38A647",
|
||||
"C c #32A243",
|
||||
"D c #2E9D40",
|
||||
"E c #28993C",
|
||||
"F c #239439",
|
||||
"G c #1E9036",
|
||||
"H c #188C32",
|
||||
"I c #13882F",
|
||||
"J c #0F842C",
|
||||
"K c #0A7C27",
|
||||
"L c #629F57",
|
||||
"M c #7BCC6F",
|
||||
"N c #76C86B",
|
||||
"O c #71C569",
|
||||
"P c #6DC366",
|
||||
"Q c #69C163",
|
||||
"R c #65C162",
|
||||
"S c #57AC56",
|
||||
"T c #3E803F",
|
||||
"U c #377539",
|
||||
"V c #316E34",
|
||||
"W c #2C6830",
|
||||
"X c #28602C",
|
||||
"Y c #225928",
|
||||
"Z c #1D5124",
|
||||
"` c #1A4E22",
|
||||
" . c #184C20",
|
||||
".. c #81CF72",
|
||||
"+. c #7CCB6E",
|
||||
"@. c #77C86C",
|
||||
"#. c #72C76A",
|
||||
"$. c #6EC467",
|
||||
"%. c #69C164",
|
||||
"&. c #549F51",
|
||||
"*. c #71B062",
|
||||
"=. c #84D274",
|
||||
"-. c #7FCF71",
|
||||
";. c #7ACD6F",
|
||||
">. c #76CB6C",
|
||||
",. c #72C869",
|
||||
"'. c #6CC465",
|
||||
"). c #1F391D",
|
||||
"!. c #558DC1",
|
||||
"~. c #568EC3",
|
||||
"{. c #568FC5",
|
||||
"]. c #5790C7",
|
||||
"^. c #5892C8",
|
||||
"/. c #538ABE",
|
||||
"(. c #5B98D0",
|
||||
"_. c #5C99D2",
|
||||
":. c #5E9CD5",
|
||||
"<. c #609FDB",
|
||||
"[. c #61A1DC",
|
||||
"}. c #497440",
|
||||
"|. c #3F6638",
|
||||
"1. c #355930",
|
||||
"2. c #2C4A28",
|
||||
"3. c #213B1F",
|
||||
"4. c #609ED9",
|
||||
"5. c #63A4E2",
|
||||
"6. c #63A4E1",
|
||||
"7. c #5B96CE",
|
||||
"8. c #64A6E4",
|
||||
"9. c #4878A4",
|
||||
"0. c #426E96",
|
||||
"a. c #4F83B3",
|
||||
"b. c #4E82B2",
|
||||
"c. c #62A3DF",
|
||||
"d. c #64A6E3",
|
||||
"e. c #274159",
|
||||
"f. c #44729C",
|
||||
"g. c #5B97CF",
|
||||
"h. c #5B97D0",
|
||||
"i. c #5C98D0",
|
||||
"j. c #5C98D1",
|
||||
"k. c #5B97CE",
|
||||
"l. c #64A5E2",
|
||||
"m. c #36597B",
|
||||
"n. c #64A4E2",
|
||||
"o. c #5A95CD",
|
||||
"p. c #5993CB",
|
||||
"q. c #64A5E3",
|
||||
"r. c #45729C",
|
||||
"s. c #63A4E3",
|
||||
"t. c #62A2E1",
|
||||
"u. c #62A1E1",
|
||||
"v. c #61A1E1",
|
||||
"w. c #609FE0",
|
||||
"x. c #5993D4",
|
||||
"y. c #5D9BDF",
|
||||
"z. c #5D99DF",
|
||||
"A. c #5C99DF",
|
||||
"B. c #5B98DE",
|
||||
"C. c #4878B1",
|
||||
"D. c #63A3E5",
|
||||
"E. c #609EE0",
|
||||
"F. c #5F9DE0",
|
||||
"G. c #5F9DDF",
|
||||
"H. c #5E9BDF",
|
||||
"I. c #5C99DC",
|
||||
"J. c #2B4666",
|
||||
"K. c #4D7FBD",
|
||||
"L. c #5A96DF",
|
||||
"M. c #5A94DE",
|
||||
"N. c #5993DD",
|
||||
"O. c #5992DD",
|
||||
"P. c #5993E1",
|
||||
"Q. c #4069A0",
|
||||
"R. c #365A8E",
|
||||
"S. c #568EDF",
|
||||
"T. c #548ADB",
|
||||
"U. c #5489DB",
|
||||
"V. c #5389DB",
|
||||
"W. c #5287DA",
|
||||
"X. c #2E4D7C",
|
||||
"Y. c #4C7DC1",
|
||||
"Z. c #5891DE",
|
||||
"`. c #568FDC",
|
||||
" + c #568EDC",
|
||||
".+ c #568DDC",
|
||||
"++ c #558CDC",
|
||||
"@+ c #4F82CD",
|
||||
"#+ c #4D7ECD",
|
||||
"$+ c #5185DA",
|
||||
"%+ c #5085DA",
|
||||
"&+ c #5084DA",
|
||||
"*+ c #4F82D9",
|
||||
"=+ c #5185DF",
|
||||
"-+ c #121E31",
|
||||
";+ c #4370C2",
|
||||
">+ c #4C7CD9",
|
||||
",+ c #4A7BD7",
|
||||
"'+ c #4A7AD7",
|
||||
")+ c #4978D7",
|
||||
"!+ c #4877D6",
|
||||
"~+ c #4E82D9",
|
||||
"{+ c #4E81D9",
|
||||
"]+ c #4E80D9",
|
||||
"^+ c #4E7FD9",
|
||||
"/+ c #4D7ED8",
|
||||
"(+ c #4C7DDA",
|
||||
"_+ c #395FA4",
|
||||
":+ c #4775D2",
|
||||
"<+ c #4876D6",
|
||||
"[+ c #4775D6",
|
||||
"}+ c #4773D6",
|
||||
"|+ c #4674D7",
|
||||
"1+ c #3B62B7",
|
||||
"2+ c #436ED6",
|
||||
"3+ c #416CD4",
|
||||
"4+ c #416AD3",
|
||||
"5+ c #4069D3",
|
||||
"6+ c #406AD6",
|
||||
"7+ c #304FA2",
|
||||
"8+ c #375BA8",
|
||||
"9+ c #4673D5",
|
||||
"0+ c #4572D5",
|
||||
"a+ c #4571D5",
|
||||
"b+ c #4470D5",
|
||||
"c+ c #436FD4",
|
||||
"d+ c #4470D9",
|
||||
"e+ c #14213E",
|
||||
"f+ c #3150A3",
|
||||
"g+ c #4069D4",
|
||||
"h+ c #3E67D3",
|
||||
"i+ c #3E66D2",
|
||||
"j+ c #3D64D2",
|
||||
"k+ c #3D64D3",
|
||||
"l+ c #243C7F",
|
||||
"m+ c #2F4DAC",
|
||||
"n+ c #395ED1",
|
||||
"o+ c #385CD0",
|
||||
"p+ c #375AD0",
|
||||
"q+ c #365ACF",
|
||||
"r+ c #375AD5",
|
||||
"s+ c #111C41",
|
||||
"t+ c #3558B8",
|
||||
"u+ c #3C63D2",
|
||||
"v+ c #3C62D2",
|
||||
"w+ c #3B61D1",
|
||||
"x+ c #3A60D2",
|
||||
"y+ c #3658C2",
|
||||
"z+ c #3455C4",
|
||||
"A+ c #3659CF",
|
||||
"B+ c #3557CF",
|
||||
"C+ c #3556CF",
|
||||
"D+ c #3354CF",
|
||||
"E+ c #3151C5",
|
||||
"F+ c #101A3E",
|
||||
"G+ c #2C49C0",
|
||||
"H+ c #2F4DCC",
|
||||
"I+ c #2E4CCC",
|
||||
"J+ c #2D4ACB",
|
||||
"K+ c #2D49CB",
|
||||
"L+ c #2741B7",
|
||||
"M+ c #3353C6",
|
||||
"N+ c #3455CF",
|
||||
"O+ c #3454CE",
|
||||
"P+ c #3353CE",
|
||||
"Q+ c #3252CD",
|
||||
"R+ c #3151CE",
|
||||
"S+ c #304FCC",
|
||||
"T+ c #162467",
|
||||
"U+ c #1F318C",
|
||||
"V+ c #2E4BCF",
|
||||
"W+ c #2C47CB",
|
||||
"X+ c #2B47CA",
|
||||
"Y+ c #2A45CA",
|
||||
"Z+ c #2943C8",
|
||||
"`+ c #2841C5",
|
||||
" @ c #2942CB",
|
||||
".@ c #2841CB",
|
||||
"+@ c #273EC9",
|
||||
"@@ c #263DC9",
|
||||
"#@ c #253BC8",
|
||||
"$@ c #243AC7",
|
||||
"%@ c #2339C9",
|
||||
"&@ c #172583",
|
||||
"*@ c #1D2F86",
|
||||
"=@ c #2D49CE",
|
||||
"-@ c #2B46CB",
|
||||
";@ c #2B46CA",
|
||||
">@ c #2A44CA",
|
||||
",@ c #2943CA",
|
||||
"'@ c #2841C9",
|
||||
")@ c #2740C9",
|
||||
"!@ c #2840CC",
|
||||
"~@ c #273FCA",
|
||||
"{@ c #263DCA",
|
||||
"]@ c #243AC8",
|
||||
"^@ c #2339C7",
|
||||
"/@ c #2338C7",
|
||||
"(@ c #2237C7",
|
||||
"_@ c #2135C6",
|
||||
":@ c #2034C6",
|
||||
"<@ c #2033C6",
|
||||
"[@ c #1E31C5",
|
||||
"}@ c #1E30C5",
|
||||
"|@ c #1D2EC4",
|
||||
"1@ c #1C2DC4",
|
||||
"2@ c #1B2CC4",
|
||||
"3@ c #1A2AC3",
|
||||
"4@ c #1928C0",
|
||||
"5@ c #0C1258",
|
||||
"6@ c #1B2C97",
|
||||
"7@ c #233AC9",
|
||||
"8@ c #2238C7",
|
||||
"9@ c #2136C7",
|
||||
"0@ c #1F32C6",
|
||||
"a@ c #1D2FC5",
|
||||
"b@ c #1C2EC5",
|
||||
"c@ c #1B2BC4",
|
||||
"d@ c #1A2AC4",
|
||||
"e@ c #1929C3",
|
||||
"f@ c #1827C3",
|
||||
"g@ c #1826C3",
|
||||
"h@ c #1724C2",
|
||||
"i@ c #1623C2",
|
||||
"j@ c #1522C1",
|
||||
"k@ c #1420C2",
|
||||
"l@ c #141FC2",
|
||||
"m@ c #121EC1",
|
||||
"n@ c #111CC2",
|
||||
"o@ c #111AC1",
|
||||
"p@ c #0E17B2",
|
||||
"q@ c #1A2AC1",
|
||||
"r@ c #1929C4",
|
||||
"s@ c #1927C4",
|
||||
"t@ c #1724C3",
|
||||
"u@ c #1623C3",
|
||||
"v@ c #1522C4",
|
||||
"w@ c #1520C3",
|
||||
"x@ c #131FC3",
|
||||
"y@ c #131DC3",
|
||||
"z@ c #111CC0",
|
||||
"A@ c #111ABB",
|
||||
"B@ c #0F19B6",
|
||||
"C@ c #0F17B1",
|
||||
"D@ c #0D15AD",
|
||||
"E@ c #0D14A9",
|
||||
"F@ c #0C13A7",
|
||||
"G@ c #0B11A4",
|
||||
"H@ c #0A1099",
|
||||
"I@ c #080D8B",
|
||||
"J@ c #070B7A",
|
||||
"K@ c #060968",
|
||||
"L@ c #0F179E",
|
||||
"M@ c #0E16AA",
|
||||
"N@ c #0E15AF",
|
||||
"O@ c #0C13A9",
|
||||
"P@ c #0C129C",
|
||||
"Q@ c #0A108F",
|
||||
"R@ c #090E80",
|
||||
"S@ c #080C72",
|
||||
"T@ c #070B63",
|
||||
"U@ c #060957",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" . + @ # $ ",
|
||||
" % & * = - ; > , ' ) ! ~ { ] ^ / ( _ : < [ } ",
|
||||
" | 1 2 3 4 5 6 7 8 9 0 a b c d e f g h i j k l m ",
|
||||
" n o p q r s t u v w x y z A B C D E F G H I J K ",
|
||||
" L M N O P Q R S T U V W X Y Z ` . ",
|
||||
" ..+.@.#.$.%.&. ",
|
||||
" *.=.-.;.>.,.'.). !.~.{.].^. /.(._.:.<.[. ",
|
||||
" }.|.1.2.3. 4.5.6.6.6.7. [.6.6.6.8.9. ",
|
||||
" 0.8.6.6.6.6.a. b.c.6.6.6.d.e. ",
|
||||
" f.g.h.i.j._.{. k.l.6.6.6.l.m. !.n.6.6.6.o. ",
|
||||
" p.l.6.6.6.q.r. s.t.t.u.v.w. x.y.z.A.B.C. ",
|
||||
" D.E.F.G.H.I.J. K.L.M.N.O.P.Q. R.S.T.U.V.W.X. ",
|
||||
" Y.Z.`. +.+++@+ #+$+%+&+*+=+-+ ;+>+,+'+)+!+ ",
|
||||
" ~+{+]+^+/+(+_+ :+<+[+}+|+1+ 2+3+4+5+6+7+ ",
|
||||
" 8+9+0+a+b+c+d+e+ f+g+h+i+j+k+l+ m+n+o+p+q+r+s+ ",
|
||||
" t+j+u+v+w+x+y+ z+A+B+C+D+E+F+ G+H+I+J+K+L+ ",
|
||||
" M+N+O+P+Q+R+S+T+ U+V+K+W+X+Y+Z+`+ @.@+@@@#@$@%@&@ ",
|
||||
"*@=@-@;@>@,@'@)@!@~@{@]@^@/@(@_@:@<@[@}@|@1@2@3@4@5@ ",
|
||||
"6@7@8@9@_@:@0@[@a@b@1@c@d@e@f@g@h@i@j@k@l@m@n@o@p@ ",
|
||||
" q@r@s@g@t@u@v@w@x@y@z@A@B@C@D@E@F@G@H@I@J@K@ ",
|
||||
" L@M@N@O@P@Q@R@S@T@U@ ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" ",
|
||||
" "};
|
||||
@@ -88,8 +88,8 @@ Description: Fast, light and extensible chat client - core files
|
||||
for many operating systems. Everything can be done with a keyboard.
|
||||
.
|
||||
This package provides core plugins and locales files for WeeChat. It
|
||||
currently ships the following plugins: alias, xfer, irc, charset and
|
||||
logger. It is useless without weechat-curses.
|
||||
currently ships the following plugins: alias, buflist, charset, irc, logger
|
||||
and xfer. It is useless without weechat-curses.
|
||||
|
||||
Package: weechat-plugins
|
||||
Architecture: any
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
usr/share/locale/
|
||||
usr/lib/weechat/plugins/alias.so
|
||||
usr/lib/weechat/plugins/xfer.so
|
||||
usr/lib/weechat/plugins/irc.so
|
||||
usr/lib/weechat/plugins/buflist.so
|
||||
usr/lib/weechat/plugins/charset.so
|
||||
usr/lib/weechat/plugins/irc.so
|
||||
usr/lib/weechat/plugins/logger.so
|
||||
usr/lib/weechat/plugins/xfer.so
|
||||
|
||||
@@ -22,9 +22,10 @@ weechat - the extensible chat client
|
||||
|
||||
== POPIS
|
||||
|
||||
WeeChat (Wee Enhanced Environment for Chat) je svobodný chatovací klient, rychlý
|
||||
a lehký, připraven pro mnoho operačních systémů.
|
||||
Je velmi připůsobitelný a rozšiřitelný s skripty.
|
||||
WeeChat (Wee Enhanced Environment for Chat) je svobodný chatovací klient.
|
||||
Je lehký, plně konfigurovatelný a lehce rozšiřitelný pomocí pluginů a scriptů
|
||||
v obvyklých sciptovacích jazycích.
|
||||
|
||||
|
||||
== VOLBY
|
||||
|
||||
@@ -64,12 +65,19 @@ $HOME/.weechat/alias.conf::
|
||||
$HOME/.weechat/aspell.conf::
|
||||
konfigurační soubor pro _aspell_ plugin
|
||||
|
||||
$HOME/.weechat/buflist.conf::
|
||||
konfigurační soubor pro _buflist_ plugin
|
||||
|
||||
$HOME/.weechat/charset.conf::
|
||||
konfigurační soubor pro _charset_ plugin
|
||||
|
||||
$HOME/.weechat/exec.conf::
|
||||
konfigurační soubor pro _exec_ plugin
|
||||
|
||||
// TRANSLATION MISSING
|
||||
$HOME/.weechat/fifo.conf::
|
||||
configuration file for _fifo_ plugin
|
||||
|
||||
$HOME/.weechat/irc.conf::
|
||||
konfigurační soubor pro _irc_ plugin
|
||||
|
||||
@@ -103,7 +111,7 @@ souboru AUTHORS.adoc).
|
||||
|
||||
Copyright (C) 2003-2017 {author}
|
||||
|
||||
WeeChat je svobodný 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
|
||||
the Free Software Foundation; either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
@@ -168,6 +168,7 @@ _options_ (pointer) +
|
||||
_temp_server_ (integer) +
|
||||
_reloading_from_config_ (integer) +
|
||||
_reloaded_from_config_ (integer) +
|
||||
_addresses_eval_ (string) +
|
||||
_addresses_count_ (integer) +
|
||||
_addresses_array_ (string, array_size: "addresses_count") +
|
||||
_ports_array_ (integer, array_size: "addresses_count") +
|
||||
@@ -456,6 +457,9 @@ _gui_objects_ (pointer) +
|
||||
_prev_bar_window_ (pointer, hdata: "bar_window") +
|
||||
_next_bar_window_ (pointer, hdata: "bar_window") +
|
||||
|
||||
*Update erlaubt:* +
|
||||
_scroll_x_ (integer) +
|
||||
_scroll_y_ (integer) +
|
||||
|
||||
| weechat
|
||||
| [[hdata_buffer]]<<hdata_buffer,buffer>>
|
||||
@@ -541,6 +545,7 @@ _highlight_tags_restrict_array_ (pointer, array_size: "highlight_tags_restric
|
||||
_highlight_tags_ (string) +
|
||||
_highlight_tags_count_ (integer) +
|
||||
_highlight_tags_array_ (pointer, array_size: "highlight_tags_count") +
|
||||
_hotlist_ (pointer, hdata: "hotlist") +
|
||||
_hotlist_max_level_nicks_ (hashtable) +
|
||||
_keys_ (pointer, hdata: "key") +
|
||||
_last_key_ (pointer, hdata: "key") +
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
. charset (13000)
|
||||
. logger (12000)
|
||||
. exec (11000)
|
||||
. trigger (10000)
|
||||
. aspell (9000)
|
||||
. alias (8000)
|
||||
. charset (14000)
|
||||
. logger (13000)
|
||||
. exec (12000)
|
||||
. trigger (11000)
|
||||
. aspell (10000)
|
||||
. alias (9000)
|
||||
. buflist (8000)
|
||||
. fifo (7000)
|
||||
. xfer (6000)
|
||||
. irc (5000)
|
||||
|
||||
@@ -18,19 +18,23 @@
|
||||
|
||||
| failonerror | long |
|
||||
|
||||
| keep_sending_on_error | long |
|
||||
|
||||
| proxy | string |
|
||||
|
||||
| proxyport | long |
|
||||
|
||||
| port | long |
|
||||
|
||||
| pre_proxy | string |
|
||||
|
||||
| httpproxytunnel | long |
|
||||
|
||||
| interface | string |
|
||||
|
||||
| dns_cache_timeout | long |
|
||||
|
||||
| proxytype | long | http, socks4, socks5, socks4a, socks5_hostname, http_1_0
|
||||
| proxytype | long | http, socks4, socks5, socks4a, socks5_hostname, http_1_0, https
|
||||
|
||||
| buffersize | long |
|
||||
|
||||
@@ -278,7 +282,7 @@
|
||||
|
||||
| sslcert | string |
|
||||
|
||||
| sslversion | long | default, tlsv1, sslv2, sslv3
|
||||
| sslversion | long | default, tlsv1, sslv2, sslv3, tlsv1_0, tlsv1_1, tlsv1_2, tlsv1_3
|
||||
|
||||
| ssl_verifypeer | long |
|
||||
|
||||
@@ -330,6 +334,38 @@
|
||||
|
||||
| ssl_falsestart | long |
|
||||
|
||||
| proxy_cainfo | string |
|
||||
|
||||
| proxy_capath | string |
|
||||
|
||||
| proxy_crlfile | string |
|
||||
|
||||
| proxy_keypasswd | string |
|
||||
|
||||
| proxy_pinnedpublickey | string |
|
||||
|
||||
| proxy_sslcert | string |
|
||||
|
||||
| proxy_sslcerttype | string |
|
||||
|
||||
| proxy_sslkey | string |
|
||||
|
||||
| proxy_sslkeytype | string |
|
||||
|
||||
| proxy_sslversion | long | default, tlsv1, sslv2, sslv3, tlsv1_0, tlsv1_1, tlsv1_2, tlsv1_3
|
||||
|
||||
| proxy_ssl_options | long | allow_beast, no_revoke
|
||||
|
||||
| proxy_ssl_verifyhost | long |
|
||||
|
||||
| proxy_ssl_verifypeer | long |
|
||||
|
||||
| proxy_tlsauth_password | string |
|
||||
|
||||
| proxy_tlsauth_type | string |
|
||||
|
||||
| proxy_tlsauth_username | string |
|
||||
|
||||
| ssh_auth_types | mask | none, policy_flag, flag
|
||||
|
||||
| ssh_public_keyfile | string |
|
||||
|
||||
@@ -50,8 +50,32 @@
|
||||
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen
|
||||
** Standardwert: `+lightred+`
|
||||
|
||||
* [[option_aspell.color.suggestions]] *aspell.color.suggestions*
|
||||
** Beschreibung: pass:none[Textfarbe für die Vorschläge der Rechtsschreibkorrektur (Statusbar)]
|
||||
* [[option_aspell.color.suggestion]] *aspell.color.suggestion*
|
||||
** Beschreibung: pass:none[Textfarbe für die Vorschläge der Rechtsschreibkorrektur in der Bar-Item "aspell_suggest"]
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen
|
||||
** Standardwert: `+default+`
|
||||
|
||||
* [[option_aspell.color.suggestion_delimiter_dict]] *aspell.color.suggestion_delimiter_dict*
|
||||
** Beschreibung: pass:none[Textfarbe für das Trennzeichen, im Bar-Item "aspell_suggest", welches zwischen zwei Wörterbücher dargestellt wird]
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen
|
||||
** Standardwert: `+cyan+`
|
||||
|
||||
* [[option_aspell.color.suggestion_delimiter_word]] *aspell.color.suggestion_delimiter_word*
|
||||
** Beschreibung: pass:none[Textfarbe für das Trennzeichen zwischen zwei Wörtern in der Bar-Item "aspell_suggest"]
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname für WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), eine Terminal-Farbnummer oder ein Alias; Attribute können vor eine Farbe gesetzt werden (gilt ausschließlich für die Textfarbe und nicht für den Hintergrund): "*" für fett, "!" für invertiert, "/" für kursiv, "_" für unterstrichen
|
||||
** Standardwert: `+cyan+`
|
||||
|
||||
* [[option_aspell.look.suggestion_delimiter_dict]] *aspell.look.suggestion_delimiter_dict*
|
||||
** Beschreibung: pass:none[Trennzeichen, im Bar-Item "aspell_suggest", welches zwischen zwei Wörterbücher dargestellt wird]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+" / "+`
|
||||
|
||||
* [[option_aspell.look.suggestion_delimiter_word]] *aspell.look.suggestion_delimiter_word*
|
||||
** Beschreibung: pass:none[Trennzeichen, im Bar-Item "aspell_suggest", welches zwischen zwei Wörtern dargestellt wird]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+","+`
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
[[command_buflist_buflist]]
|
||||
* `+buflist+`: Bar-Item mit der Liste von Buffern
|
||||
|
||||
----
|
||||
/buflist bar
|
||||
refresh
|
||||
|
||||
bar: fügt eine "buflist" Bar hinzu
|
||||
refresh: erzwingt eine Aktualisierung des "buflist" Bar-Item
|
||||
|
||||
Jede Zeile die einen Buffer anzeigt wird mittels Zeichenketten-Evaluation dargestellt (siehe /help eval für das Format), dazu werden folgende Optionen genutzt:
|
||||
- buflist.look.display_conditions: Bedingungen um einen Buffer in der Liste darzustellen
|
||||
- buflist.format.buffer: Format für den Buffer, der nicht der aktuell dargestellte Buffer ist
|
||||
- buflist.format.buffer_current: Format für den aktuell dargestellten Buffer
|
||||
|
||||
Die folgenden Variablen können in den obigen Optionen genutzt werden:
|
||||
- buffer data (siehe hdata "buffer" in API Dokumentation für eine vollständige Liste), zum Beispiel:
|
||||
- ${buffer.number}
|
||||
- ${buffer.name}
|
||||
- ${buffer.full_name}
|
||||
- ${buffer.short_name}
|
||||
- ${buffer.nicklist_nicks_count}
|
||||
- irc_server: IRC Serverdaten, ausschließlich genutzt bei einem IRC Buffer (siehe hdata "irc_server" in API Dokumentation)
|
||||
- irc_channel: IRC Channeldaten, ausschließlich genutzt bei einem IRC Channel Buffer (siehe hdata "irc_channel" in API Dokumentation)
|
||||
- zusätzliche Variablen die durch buflist bereitgestellt werden:
|
||||
- ${format_buffer}: der evaluierte Wert der Option buflist.format.buffer; dies kann in der Option buflist.format.buffer_current genutzt werden um zum Beispiel die Hintergrundfarbe zu verändern
|
||||
- ${current_buffer}: ein Boolean ("0" oder "1"), "1" falls es sich um den aktuellen Buffer handelt; dies kann in einer Bedingung verwendet werden: ${if:${current_buffer}?...:...}
|
||||
- ${merged}: ein Boolean ("0" oder "1"), "1" wenn der Buffer mit einem anderen zusammengefügt ist; kann innerhalb einer Bedingung genutzt werden: ${if:${merged}?...:...}
|
||||
- ${format_number}: eingerückte Numer mit Trennzeichen (evaluiert aus Option buflist.format.number)
|
||||
- ${number}: eingerückte Nummer, zum Beispiel " 1", falls die Anzahl der Buffer zwischen 10 und 99 liegt
|
||||
- ${number_displayed}: "1" falls Nummer angezeigt wird, ansonsten "0"
|
||||
- ${indent}: Einrückung für Name (Channel und private Buffer werden eingerückt) (evaluiert aus Option buflist.format.indent)
|
||||
- ${format_nick_prefix}: Nick-Präfix mit entsprechender Farbe für einen Channel (evaluiert aus Option buflist.format.nick_prefix)
|
||||
- ${color_nick_prefix}: Farbe für den Nick-Präfix von einem Channel (wird nur genutzt wenn die Option buflist.look.nick_prefix aktiviert ist)
|
||||
- ${nick_prefix}: der Nick-Präfix für einen Channel (wird nur genutzt falls die Option buflist.look.nick_prefix aktiviert ist)
|
||||
- ${format_name}: der formatierte Name (evaluiert aus Option buflist.format.name)
|
||||
- ${name}: der Kurzname (falls einer gesetzt ist), Ersatzweise wird auf den Originalnamen zurückgegriffen
|
||||
- ${color_hotlist}: die Farbe mit der höchsten Priorität für den entsprechenden Buffer (evaluiert aus Option buflist.format.hotlist_xxx wobei xxx der entsprechende Level ist)
|
||||
- ${format_hotlist}: die formatierte Hotlist (evaluiert aus Option buflist.format.hotlist)
|
||||
- ${hotlist}: die Hotlist in der Rohform
|
||||
- ${hotlist_priority}: "none", "low", "message", "private" oder "highlight"
|
||||
- ${format_lag}: die Verzögerung für einen IRC Server-Buffer, ist leer falls es keine Verzögerung gibt (evaluiert aus Option buflist.format.lag)
|
||||
----
|
||||
@@ -0,0 +1,147 @@
|
||||
//
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
* [[option_buflist.format.buffer]] *buflist.format.buffer*
|
||||
** Beschreibung: pass:none[Format für eine Zeile mit einem Buffer (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${format_name}"+`
|
||||
|
||||
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
|
||||
** Beschreibung: pass:none[Format für die Zeile mit dem ausgewählten Buffer (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${color:,blue}${format_buffer}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
|
||||
** Beschreibung: pass:none[Format der Hotlist (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+" ${color:green}(${hotlist}${color:green})"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
|
||||
** Beschreibung: pass:none[Format für Buffer mit der Benachrichtungsstufe "highlight" (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${color:magenta}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
|
||||
** Beschreibung: pass:none[Format für Buffer mit der Benachrichtungsstufe "low" (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${color:white}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
|
||||
** Beschreibung: pass:none[Format für Buffer mit der Benachrichtungsstufe "message" (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${color:brown}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
|
||||
** Beschreibung: pass:none[Format für Buffer die nicht in der Hotlist angezeigt werden (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${color:default}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
|
||||
** Beschreibung: pass:none[Format für Buffer mit der Benachrichtungsstufe "private" (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${color:green}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
|
||||
** Beschreibung: pass:none[Trennzeichen for counts in hotlist (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${color:default},"+`
|
||||
|
||||
* [[option_buflist.format.indent]] *buflist.format.indent*
|
||||
** Beschreibung: pass:none[Zeichenkette die beim Einrücken von Channel und privaten Buffern angezeigt wird (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+" "+`
|
||||
|
||||
* [[option_buflist.format.lag]] *buflist.format.lag*
|
||||
** Beschreibung: pass:none[Format für die Anzeige der Verzögerungsanzeige für IRC Serverbuffer (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
|
||||
|
||||
* [[option_buflist.format.name]] *buflist.format.name*
|
||||
** Beschreibung: pass:none[Format für den Namen eines Buffers (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${name}"+`
|
||||
|
||||
* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix*
|
||||
** Beschreibung: pass:none[Format des Nick-Präfix für einen Channel (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${color_nick_prefix}${nick_prefix}"+`
|
||||
|
||||
* [[option_buflist.format.number]] *buflist.format.number*
|
||||
** Beschreibung: pass:none[Format für die Darstellung der Buffernummer, hierbei ist die Variable ${number} die eingerückte Nummer (Hinweis: Inhalt wird evaluiert, siehe /help buflist)]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${color:green}${number}${if:${number_displayed}?.: }"+`
|
||||
|
||||
* [[option_buflist.look.auto_scroll]] *buflist.look.auto_scroll*
|
||||
** Beschreibung: pass:none[scrollt automatisch die buflist-Bar um den aktuellen Buffer darzustellen (dies funktioniert ausschließlich wenn die Bar links/rechts positioniert ist und als Darstellung "vertical" verwendet wird); dieser Wert ist eine prozentuale Angabe wo der aktuelle Buffer angezeigt werden soll (-1 = deaktiviert); zum Beispiel wird bei einem Wert von 50 der Buffer in der Mitte der Bar angezeigt, bei 0 wird der Buffer oben und bei 100 am unteren Rand der Bar angezeigt]
|
||||
** Typ: integer
|
||||
** Werte: -1 .. 100
|
||||
** Standardwert: `+50+`
|
||||
|
||||
* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions*
|
||||
** Beschreibung: pass:none[Bedingungen wann ein Buffer dargestellt werden soll (Hinweis: Inhalt ist evaluiert, siehe /help buflist); Beispielsweise werden Server-Buffer versteckt, sofern sie mit dem Core-Buffer zusammengefügt worden sind: "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"${buffer.hidden}==0"+`
|
||||
|
||||
* [[option_buflist.look.enabled]] *buflist.look.enabled*
|
||||
** Beschreibung: pass:none[buflist aktivieren]
|
||||
** Typ: boolesch
|
||||
** Werte: on, off
|
||||
** Standardwert: `+on+`
|
||||
|
||||
* [[option_buflist.look.mouse_jump_visited_buffer]] *buflist.look.mouse_jump_visited_buffer*
|
||||
** Beschreibung: pass:none[ist diese Einstellung aktiviert, kann mit der linken/rechten Maustaste auf dem aktuellen Buffer zum vorherigen/nächsten Buffer gesprungen werden]
|
||||
** Typ: boolesch
|
||||
** Werte: on, off
|
||||
** Standardwert: `+off+`
|
||||
|
||||
* [[option_buflist.look.mouse_move_buffer]] *buflist.look.mouse_move_buffer*
|
||||
** Beschreibung: pass:none[ist diese Einstellung aktiviert, kann mit Mausgesten (Drag & Drop) ein Buffer in der Liste verschoben werden]
|
||||
** Typ: boolesch
|
||||
** Werte: on, off
|
||||
** Standardwert: `+on+`
|
||||
|
||||
* [[option_buflist.look.mouse_wheel]] *buflist.look.mouse_wheel*
|
||||
** Beschreibung: pass:none[ist diese Einstellung aktiviert, kann mit dem Mausrad hoch/runter zum nächsten/vorherigen Buffer in der Liste gesprungen werden]
|
||||
** Typ: boolesch
|
||||
** Werte: on, off
|
||||
** Standardwert: `+on+`
|
||||
|
||||
* [[option_buflist.look.nick_prefix]] *buflist.look.nick_prefix*
|
||||
** Beschreibung: pass:none[holt den Nick-Präfix und die dazugehörige Farbe aus der Nicklist um diese mit der Variable ${nick_prefix} zu nutzen; diese Option ist standardmäßig deaktiviert, da bei einer umfangreichen Nickliste es zu Verzögerungen kommen kann]
|
||||
** Typ: boolesch
|
||||
** Werte: on, off
|
||||
** Standardwert: `+off+`
|
||||
|
||||
* [[option_buflist.look.nick_prefix_empty]] *buflist.look.nick_prefix_empty*
|
||||
** Beschreibung: pass:none[falls der Nick-Präfix aktiviert ist, wird ein Leerzeichen genutzt falls kein Nick-Präfix für den Buffer existiert]
|
||||
** Typ: boolesch
|
||||
** Werte: on, off
|
||||
** Standardwert: `+on+`
|
||||
|
||||
* [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh*
|
||||
** Beschreibung: pass:none[durch Kommata getrennte Liste von zusätzlichen Signalen die dafür sorgen das die Buffer-Liste aktualisiert wird; dies kann nützlich sein falls benutzerdefinierte Variablen genutzt werden und dadurch eine Aktualisierung erforderlich wird]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+""+`
|
||||
|
||||
* [[option_buflist.look.sort]] *buflist.look.sort*
|
||||
** Beschreibung: pass:none[durch Kommata getrennte Liste von Feldern um die Buffer zu sortieren; jedes Feld ist entweder eine hdata Variable von Buffer ("var"), eine hdata Variable vom Typ IRC Server ("irc_server.var") oder eine hdata Variable vom Typ IRC Channel ("irc_channel.var"); wird das "-" Zeichen vor einem Feld angewendet, wird die Ausgabe umgekehrt, um bei einem Vergleich nicht zwischen Groß- und Kleinschreibung zu unterscheiden wird das Zeichen "~" verwendet; Beispiel: "-~short_name" sortiert die Buffer nach ihrem Kurznamen, wobei dies invertierte passiert und nicht zwischen Groß-oder Kleinschreibung unterschieden wird]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"number,-active"+`
|
||||
@@ -16,11 +16,13 @@ target: Servername
|
||||
|
||||
----
|
||||
/allchan [-current] [-exclude=<channel>[,<channel>...]] <command> [<arguments>]
|
||||
[-current] -include=<channel>[,<channel>...] <command> [<arguments>]
|
||||
|
||||
-current: führt einen Befehl aus der an alle Channels des aktuellen Servers gesendet wird
|
||||
-exclude: dient zum Ausschluss ausgewählter Channels (Platzhalter "*" kann verwendet werden)
|
||||
-include: findet Anwendung für ausgewählte Channels (Platzhalter "*" kann verwendet werden)\n
|
||||
command: Befehl der ausgeführt werden soll
|
||||
arguments: Argumente für Befehl (Variablen die genutzt werden können und durch das Äquivalent ersetzt wird: $nick, $channel und $server)
|
||||
arguments: Argumente für Befehl (Variablen die genutzt werden können und durch den entsprechenden Wert ersetzt werden: $nick, $channel und $server)
|
||||
|
||||
Beispiele:
|
||||
führe den Befehl '/me Ich teste gerade etwas...' für alle Channels aus:
|
||||
@@ -29,6 +31,8 @@ Beispiele:
|
||||
/allchan -exclude=#weechat msg * Hallo Welt
|
||||
schicke 'Hallo Welt' an jeden Channel, ausgenommen an den #weechat Channel und Channels die mit #linux beginnen:
|
||||
/allchan -exclude=#weechat,#linux* msg * Hallo Welt
|
||||
schickt den Text 'Hallo' an alle Channels die mit #linux beginnen:
|
||||
/allchan -include=#linux* msg * Hallo
|
||||
----
|
||||
|
||||
[[command_irc_allpv]]
|
||||
@@ -36,19 +40,23 @@ Beispiele:
|
||||
|
||||
----
|
||||
/allpv [-current] [-exclude=<nick>[,<nick>...]] <command> [<arguments>]
|
||||
[-current] -include=<nick>[,<nick>...] <command> [<arguments>]
|
||||
|
||||
-current: führt einen Befehl aus der für alle privaten Buffer, des aktuellen Servers, Anwendung findet
|
||||
-exclude: dient zum Ausschluss ausgewählter Nicks (Platzhalter "*" kann verwendet werden)
|
||||
-include: findet Anwendung für ausgewählte Nicks (Platzhalter "*" kann verwendet werden)
|
||||
command: Befehl der ausgeführt werden soll
|
||||
arguments: Argumente für Befehl (Variablen die genutzt werden können und durch das Äquivalent ersetzt wird: $nick, $channel und $server)
|
||||
arguments: Argumente für Befehl (Variablen die genutzt werden können und durch den entsprechenden Wert ersetzt werden: $nick, $channel und $server)
|
||||
|
||||
Beispiele:
|
||||
führe den Befehl '/me Ich teste gerade etwas...' für alle privaten Buffer aus:
|
||||
/allpv me Ich teste gerade etwas...
|
||||
schicke 'Hallo' an alle, ausgenommen an Nick foo:
|
||||
/allpv -exclude=foo msg * Hallo
|
||||
schicke 'Hallo' an alle, ausgenommen für Nick foo und Nicks die mit bar beginnen:
|
||||
schicke den Text 'Hallo' an alle, ausgenommen für Nick foo und Nicks die mit bar beginnen:
|
||||
/allpv -exclude=foo,bar* msg * Hallo
|
||||
schicke den Text 'Hallo' an alle Nicks die mit bar beginnen:
|
||||
/allpv -include=bar* msg * Hallo
|
||||
schließe alle privaten Buffer:
|
||||
/allpv close
|
||||
----
|
||||
@@ -58,15 +66,17 @@ Beispiele:
|
||||
|
||||
----
|
||||
/allserv [-exclude=<server>[,<server>...]] <command> [<arguments>]
|
||||
-include=<server>[,<server>...] <command> [<arguments>]
|
||||
|
||||
-exclude: dient zum Ausschluss ausgewählter Server (Platzhalter "*" kann verwendet werden)
|
||||
-include: findet Anwendung für ausgewählte Server (Platzhalter "*" kann verwendet werden)
|
||||
command: Befehl der ausgeführt werden soll
|
||||
arguments: Argumente für Befehl (Variablen die genutzt werden können und durch das Äquivalent ersetzt wird: $nick, $channel und $server)
|
||||
arguments: Argumente für Befehl (Variablen die genutzt werden können und durch den entsprechenden Wert ersetzt werden: $nick, $channel und $server)
|
||||
|
||||
Beispiele:
|
||||
ändere den Nick auf allen Servern:
|
||||
/allserv nick newnick
|
||||
setzt den Status, auf allen Servern,auf abwesend:
|
||||
setzt den Status, auf allen Servern, auf abwesend:
|
||||
/allserv away I'm away
|
||||
führt ein whois mit meinem nick auf allen Servern aus:
|
||||
/allserv whois $nick
|
||||
@@ -713,6 +723,7 @@ reason: Grund der Abmeldung
|
||||
add <server> <hostname>[/<port>] [-temp] [-<option>[=<value>]] [-no<option>]
|
||||
copy|rename <server> <new_name>
|
||||
reorder <server> [<server>...]
|
||||
open <server>|-all [<server>...]
|
||||
del|keep <server>
|
||||
deloutq|jump|raw
|
||||
|
||||
@@ -727,6 +738,7 @@ nooption: stellt die Boolean Einstellung auf 'off' (Beispiel: -nossl)
|
||||
copy: erstellt eine Kopie des Servers
|
||||
rename: benennt den Server um
|
||||
reorder: Anordnung der Server ändern
|
||||
open: öffnen den Serverbuffer, ohne eine Verbindung herzustellen
|
||||
keep: übernimmt den Server in die Konfigurationsdatei (nur sinnvoll bei temporär angelegten Servern)
|
||||
del: entfernt einen Server
|
||||
deloutq: löscht bei allen Servern alle ausgehende Nachrichten, die in der Warteschlange stehen (dies betrifft alle Nachrichten die WeeChat gerade sendet)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
----
|
||||
/relay list|listfull|listrelay
|
||||
add <name> <port>
|
||||
del|stop|restart <name>
|
||||
del|start|restart|stop <name>
|
||||
raw
|
||||
sslcertkey
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
listrelay: Auflistung der Relays (Name und Port)
|
||||
add: fügt ein Relay, für ein Protokoll + Name, hinzu
|
||||
del: entfernt Relay für ein Protokoll + Name
|
||||
stop: schließt den Server Socket (Clients bleiben verbunden)
|
||||
start: lausche am Port
|
||||
restart: beendet den Server Socket und lauscht erneut am Port (Clients bleiben verbunden)
|
||||
stop: schließt den Server Socket (Clients bleiben verbunden)
|
||||
name: Name des Relays (siehe Format weiter unten)
|
||||
port: Port der für Relay genutzt werden soll
|
||||
raw: öffnet einen Buffer mit Relay-Rohdaten
|
||||
|
||||
@@ -237,13 +237,7 @@
|
||||
** Standardwert: `+"%h/script"+`
|
||||
|
||||
* [[option_script.scripts.url]] *script.scripts.url*
|
||||
** Beschreibung: pass:none[URL mit dem Dateinamen, welches die Liste der Skripten enthält; standardmäßig wird HTTPS genutzt, siehe Option script.scripts.url_force_https]
|
||||
** Beschreibung: pass:none[URL für Datei mit der Auflistung aller Skripten]
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette
|
||||
** Standardwert: `+"http://weechat.org/files/plugins.xml.gz"+`
|
||||
|
||||
* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https*
|
||||
** Beschreibung: pass:none[HTTPS wird für das Herunterladen der Indexdatei und der Skripten bevorzugt; diese Einstellung sollte nur deaktiviert werden falls Probleme beim Herunterladen auftreten]
|
||||
** Typ: boolesch
|
||||
** Werte: on, off
|
||||
** Standardwert: `+on+`
|
||||
** Standardwert: `+"https://weechat.org/files/plugins.xml.gz"+`
|
||||
|
||||
@@ -72,7 +72,7 @@ Beispiele:
|
||||
clear [<number>|<name>|-merged|-all [<number>|<name>...]]
|
||||
move <number>|-|+
|
||||
swap <number1>|<name1> [<number2>|<name2>]
|
||||
cycle <number>|<name> [<number>|<name>...]]
|
||||
cycle <number>|<name> [<number>|<name>...]
|
||||
merge <number>
|
||||
unmerge [<number>|-all]
|
||||
hide [<number>|<name>|-all [<number>|<name>...]]
|
||||
@@ -274,6 +274,8 @@ expression: Ausdruck welcher verarbeitet werden soll. Variablen im Format ${vari
|
||||
> größer
|
||||
=~ stimmt mit regulärem POSIX Ausdruck überein
|
||||
!~ stimmt NICHT mit regulärem POSIX Ausdruck überein
|
||||
=* stimmt mit Maske überein (Platzhalter "*" ist erlaubt)
|
||||
!* stimmt mit Maske NICHT überein (Platzhalter "*" ist erlaubt)
|
||||
|
||||
Ein Ausdruck gilt als "wahr" sofern das Ergebnis weder NULL, leer und von "0" abweichend ist.
|
||||
Der Vergleich findet zwischen zwei Integer Werten statt, sofern die beiden Ausdrücke gültige Integer-Werte sind.
|
||||
@@ -282,16 +284,19 @@ Um einen Vergleich zwischen zwei Zeichenketten zu erzwingen, müssen die Ausdrü
|
||||
"50" > "100" ==> 1
|
||||
|
||||
Einige Variablen werden im Ausdruck, mittels der Formatierung ${Variable}, ersetzt. Mögliche Variablen sind, nach Reihenfolge ihrer Priorität:
|
||||
1. eine Zeichenkette mit Escapesequenzen (Format: "esc:xxx" oder "\xxx")
|
||||
2. eine Zeichenkette welche Escape-Zeichen besitzt (Format: "esc:xxx" oder "\xxx")
|
||||
1. eine evaluierte Teilzeichenkette (Format: "eval:xxx")
|
||||
2. eine Zeichenkette mit Escapesequenzen (Format: "esc:xxx" oder "\xxx")
|
||||
3. Zeichen welche in einer Zeichenkette nicht dargestellt werden sollen (Format: "hide:Zeichen,Zeichenkette")
|
||||
4. eine Farbe (Format: color:xxx)
|
||||
5. eine Info (Format: "info:name,arguments", Argumente sind optional)
|
||||
6. aktuelles Datum/Uhrzeit (Format: "date" oder "date:format")
|
||||
7. eine Umgebungsvariable (Format: "env:XXX")
|
||||
8. der Name einer Programmoption (Format: file.section.option)
|
||||
9. der Name einer lokalen Variablen eines Buffer
|
||||
10. ein hdata Name/Variable (der Wert wird automatisch als Zeichenkette konvertiert), standardmäßig wird für "window" und "buffer" das aktuelle Fenster/Buffer verwendet.
|
||||
4. 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")
|
||||
5. eine Farbe (Format: "color:xxx", siehe "Anleitung für API Erweiterung", Funktion "color")\n
|
||||
6. eine Info (Format: "info:Name,Argumente", Argumente sind optional)
|
||||
7. aktuelles Datum/Uhrzeit (Format: "date" oder "date:format")
|
||||
8. eine Umgebungsvariable (Format: "env:XXX")
|
||||
9. ein Dreifachoperand (Format: "if:Bedingung?Wert_falls_wahr:Wert_falls_unwahr")
|
||||
10. eine Option (Format: "file.section.option")
|
||||
11. der Name einer lokalen Variablen eines Buffer
|
||||
12. ein 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:
|
||||
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:
|
||||
@@ -302,16 +307,19 @@ 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
|
||||
|
||||
Beispiele (einfache Zeichenketten):
|
||||
/eval -n ${info:version} ==> 0.4.3
|
||||
/eval -n ${env:HOME} ==> /home/user
|
||||
/eval -n ${weechat.look.scroll_amount} ==> 3
|
||||
/eval -n ${window} ==> 0x2549aa0
|
||||
/eval -n ${window.buffer} ==> 0x2549320
|
||||
/eval -n ${window.buffer.full_name} ==> core.weechat
|
||||
/eval -n ${window.buffer.number} ==> 1
|
||||
/eval -n ${\t} ==> <tab>
|
||||
/eval -n ${hide:-,${relay.network.password}} ==> --------
|
||||
/eval -n ${date:%H:%M:%S} ==> 07:46:40
|
||||
/eval -n ${info:version} ==> 0.4.3
|
||||
/eval -n ${env:HOME} ==> /home/user
|
||||
/eval -n ${weechat.look.scroll_amount} ==> 3
|
||||
/eval -n ${window} ==> 0x2549aa0
|
||||
/eval -n ${window.buffer} ==> 0x2549320
|
||||
/eval -n ${window.buffer.full_name} ==> core.weechat
|
||||
/eval -n ${window.buffer.number} ==> 1
|
||||
/eval -n ${\t} ==> <tab>
|
||||
/eval -n ${hide:-,${relay.network.password}} ==> --------
|
||||
/eval -n ${cut:3,+,test} ==> tes+
|
||||
/eval -n ${cut:+3,+,test} ==> te+
|
||||
/eval -n ${date:%H:%M:%S} ==> 07:46:40
|
||||
/eval -n ${if:${info:term_width}>80?big:small} ==> big
|
||||
|
||||
Beispiele (Bedingungen):
|
||||
/eval -n -c ${window.buffer.number} > 2 ==> 0
|
||||
@@ -322,6 +330,7 @@ Beispiele (Bedingungen):
|
||||
/eval -n -c abcd =~ (?-i)^ABC ==> 0
|
||||
/eval -n -c abcd =~ (?-i)^abc ==> 1
|
||||
/eval -n -c abcd !~ abc ==> 0
|
||||
/eval -n -c abcd =* a*d ==> 1
|
||||
----
|
||||
|
||||
[[command_weechat_filter]]
|
||||
@@ -515,7 +524,7 @@ Für Kontext "mouse" (Kontext "cursor" ist auch möglich), hat der zu verwendend
|
||||
item(*): beliebiges Bar-Item
|
||||
item(xxx): Bar-Item mit Namen "xxx"
|
||||
Der Platzhalter "*" kann verwendet werden um mehrere unterschiedliche Mausereignisse auszuwählen.
|
||||
Für den Kontext "mouse" kann ein besonderer Übergabewert für den zu nutzenden Befehl verwendet werden, "hsignal:name". Dieses sendet das hsignal "name" und als Inhalt ein Hashtable als Argument.
|
||||
Für den Kontext "mouse" kann ein besonderer Übergabewert für den zu nutzenden Befehl verwendet werden, "hsignal:name". Dieses sendet das hsignal "name" und als Inhalt ein Hashtable als Argument.
|
||||
Ein weiterer Übergabewert ist "-" und kann genutzt werden um einen Schlüssel zu deaktivieren (der Schlüssel wird bei der Durchführung übersprungen).
|
||||
|
||||
Beispiele:
|
||||
@@ -939,13 +948,13 @@ Beispiele:
|
||||
-1|+1|b#|up|down|left|right [-window <number>]
|
||||
<number>
|
||||
splith|splitv [-window <number>] [<pct>]
|
||||
resize [-window <number>] [+/-]<pct>
|
||||
resize [-window <number>] [h|v][+|-]<pct>
|
||||
balance
|
||||
merge [-window <number>] [all]
|
||||
page_up|page_down [-window <number>]
|
||||
refresh
|
||||
scroll [-window <number>] [+/-]<value>[s|m|h|d|M|y]
|
||||
scroll_horiz [-window <number>] [+/-]<value>[%]
|
||||
scroll [-window <number>] [+|-]<value>[s|m|h|d|M|y]
|
||||
scroll_horiz [-window <number>] [+|-]<value>[%]
|
||||
scroll_up|scroll_down|scroll_top|scroll_bottom|scroll_beyond_end|scroll_previous_highlight|scroll_next_highlight|scroll_unread [-window <number>]
|
||||
swap [-window <number>] [up|down|left|right]
|
||||
zoom [-window <number>]
|
||||
@@ -963,6 +972,7 @@ Beispiele:
|
||||
splith: teilt das aktuelle Fenster horizontal (um den Vorgang rückgängig zu machen: /window merge)
|
||||
splitv: teilt das aktuelle Fenster vertikal (um den Vorgang rückgängig zu machen: /window merge)
|
||||
resize: verändert die Größe des aktuellen Fensters. Die neue Größe des Fensters ist prozentual <pct> zum Stammfensters groß
|
||||
wird "h" oder "v" angegeben, findet eine Größenanpassung des Stammfenster statt, sofern es vom selben Typ ist (horizontal/vertikal)
|
||||
balance: passt die Größe aller Fenster an
|
||||
merge: vereinigt Fenster miteinander (all = alle Fenster vereinigen)
|
||||
page_up: scrollt eine Seite nach oben
|
||||
@@ -979,7 +989,7 @@ scroll_previous_highlight: scrollt zum vorherigen Hightlight
|
||||
scroll_next_highlight: scrollt zum nächsten Highlight
|
||||
scroll_unread: springt zur ersten ungelesenen Zeile in einem Buffer
|
||||
swap: tauscht die Buffer von zwei Fenstern (mit optionaler Angabe für das Zielfenster)
|
||||
zoom: vergrößert ein Fenster auf 100%%
|
||||
zoom: vergrößert ein Fenster auf 100%
|
||||
bare: wechselt zum einfachen Anzeigemodus (optional kann eine Wartezeit, in Sekunden, angegeben werden, wann zum Standardmodus zurück gewechselt werden soll)
|
||||
|
||||
Bei splith und splitv gibt "pct" die neue Größe des Fensters im Verhältnis zur aktuellen Größe an. Zum Beispiel würde ein Wert von 25 bedeuten, dass das neue Fenster nur noch ein Viertel der Größe des alten Fensters besitzt.
|
||||
@@ -995,8 +1005,12 @@ Beispiele:
|
||||
/window scroll -d
|
||||
Fenster #2 wird vergrößert:
|
||||
/window zoom -window 2
|
||||
teilt das Fenster horizontal, wobei das obere Fenster 30%% an Platz zugeteilt bekommt:
|
||||
teilt das Fenster horizontal, wobei das obere Fenster 30% an Platz zugeteilt bekommt:
|
||||
/window splith 30
|
||||
ändert die Größe auf 75% des Stammfensters:
|
||||
/window resize 75
|
||||
die vertikale Aufteilung um 10% vergrößern:
|
||||
/window resize v+10
|
||||
eine Teilung wird rückgängig gemacht:
|
||||
/window merge
|
||||
aktiviert den einfachen Anzeigemodus für zwei Sekunden:
|
||||
|
||||
@@ -410,6 +410,12 @@
|
||||
** Werte: on, off
|
||||
** Standardwert: `+on+`
|
||||
|
||||
* [[option_weechat.completion.nick_case_sensitive]] *weechat.completion.nick_case_sensitive*
|
||||
** Beschreibung: pass:none[Groß-und Kleinschreibung wird bei Vervollständigung von Nicks berücksichtigt]
|
||||
** Typ: boolesch
|
||||
** Werte: on, off
|
||||
** Standardwert: `+off+`
|
||||
|
||||
* [[option_weechat.completion.nick_completer]] *weechat.completion.nick_completer*
|
||||
** Beschreibung: pass:none[fügt eine Zeichenkette hinter die Nick-Vervollständigung ein (sofern ein Nickname das erste Wort in der Kommandozeile ist)]
|
||||
** Typ: Zeichenkette
|
||||
|
||||
@@ -64,12 +64,18 @@ $HOME/.weechat/alias.conf::
|
||||
$HOME/.weechat/aspell.conf::
|
||||
Konfigurationsdatei für _aspell_ Erweiterung
|
||||
|
||||
$HOME/.weechat/buflist.conf::
|
||||
Konfigurationsdatei für _buflist_ Erweiterung
|
||||
|
||||
$HOME/.weechat/charset.conf::
|
||||
Konfigurationsdatei für _charset_ Erweiterung
|
||||
|
||||
$HOME/.weechat/exec.conf::
|
||||
Konfigurationsdatei für _exec_ Erweiterung
|
||||
|
||||
$HOME/.weechat/fifo.conf::
|
||||
Konfigurationsdatei für _fifo_ Erweiterung
|
||||
|
||||
$HOME/.weechat/irc.conf::
|
||||
Konfigurationsdatei für _irc_ Erweiterung
|
||||
|
||||
|
||||
@@ -634,6 +634,12 @@ Die Option _weechat.network.gnutls_ca_file_ sollte auf die Zertifikationsdatei z
|
||||
/set weechat.network.gnutls_ca_file "/etc/ssl/certs/ca-certificates.crt"
|
||||
----
|
||||
|
||||
Hinweis: Falls man homebrew openssl unter OS X installiert hat, empfiehlt sich:
|
||||
|
||||
----
|
||||
/set weechat.network.gnutls_ca_file "/usr/local/etc/openssl/cert.pem"
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Überprüfe, ob die Zertifikationsdatei auf Deinem System installiert wurde (üblicherweise wird
|
||||
diese Datei durch das Paket "ca-certificates" bereitgestellt)
|
||||
@@ -876,9 +882,9 @@ Damit WeeChat weniger Speicher benötigt, solltest Du folgende Tipps umsetzen:
|
||||
|
||||
* nutze die aktuelle Version (man kann davon ausgehen das eine aktuelle Version
|
||||
weniger Speicherlecks besitzt, als eine vorherige Version)
|
||||
* lade keine Erweiterungen die Du nicht benötigst. Zum Beispiel: ASpell, Fifo,
|
||||
Logger, Perl, Python, Ruby, Lua, Tcl, Guile, Javascript, Xfer (wird für DCC
|
||||
benötigst)
|
||||
* lade keine Erweiterungen die Du nicht benötigst. Zum Beispiel: ASpell, Buflist,
|
||||
Fifo, Logger, Perl, Python, Ruby, Lua, Tcl, Guile, Javascript, Xfer (wird für
|
||||
DCC benötigst)
|
||||
* installiere ausschließlich Skripten die Du auch nutzt
|
||||
* falls man SSL *NICHT* nutzt, sollte kein Zertifikat geladen werden. In diesem
|
||||
Fall, einfach den Eintrag in folgender Option leer lassen:
|
||||
|
||||
@@ -92,20 +92,20 @@ Befehls `/save` kann das Sichern der Optionen manuell durchgeführt werden).
|
||||
|
||||
[IMPORTANT]
|
||||
Es wird *nicht empfohlen* die Konfigurationsdateien manuell zu editieren, da WeeChat
|
||||
diese Dateien zu jeder Zeit überschreiben kann (zum Beispiel: <<command_weechat_quit,/quit>>)
|
||||
und man eine veränderte Datei mit dem Befehl <<command_weechat_reload,/reload>> neu
|
||||
laden muss (mit dem Risiko von Datenverlust da Daten kommentarlos überschrieben werden,
|
||||
diese Dateien zu jeder Zeit überschreiben kann (zum Beispiel: <<command_weechat_quit,/quit>>).
|
||||
Außerdem muß eine veränderte Datei manuell mit dem Befehl <<command_weechat_reload,/reload>> neu
|
||||
geladen werden (mit dem Risiko von Datenverlust da Optionen kommentarlos überschrieben werden,
|
||||
bevor man diese ggf. gesichert hat <<command_weechat_save,/save>>). +
|
||||
Man sollte immer den <<command_weechat_set,/set>> Befehl nutzen, da der Befehl die
|
||||
Eingabe prüft und Änderungen sofort wirksam werden.
|
||||
Aus diesen Gründen sollte immer der <<command_weechat_set,/set>> Befehl genutzt werden, da
|
||||
zusätzlich auch die Eingabe auf Plausibilität geprüft wird und Änderungen sofort wirksam werden.
|
||||
|
||||
[[core_vs_plugins]]
|
||||
== Kern (Core) vs Erweiterungen
|
||||
|
||||
Der Kern (core) von WeeChat ist ausschließlich dazu da, Daten auf dem Bildschirm
|
||||
darzustellen, um mit dem Benutzer zu interagieren. Dies bedeutet, WeeChat an sich
|
||||
-also nur WeeChat core- ohne jegliche Erweiterung ist unbrauchbar.
|
||||
(an die treuen User: IRC war ein Teil des Kerns der Versionen ≤ 0.2.6)
|
||||
Der Kern (core) von WeeChat dient ausschließlich dazu um Daten auf dem Bildschirm
|
||||
auszugeben und um mit dem Benutzer zu interagieren. Dies bedeutet das WeeChat,
|
||||
-also der WeeChat core-, ohne jedwede Erweiterung, unbrauchbar ist.
|
||||
(an die treuen User: IRC war Teil des Kerns in den Versionen ≤ 0.2.6)
|
||||
|
||||
Alle Netzwerkprotokolle, z.B. IRC, werden als separate Erweiterung bereit gestellt.
|
||||
|
||||
@@ -131,17 +131,16 @@ Falls man nicht mehr weiter weiß, einfach die Hilfe verwenden:
|
||||
[[irc_server_options]]
|
||||
== Setzen eigener IRC-Server Optionen
|
||||
|
||||
WeeChat verwendet Vorgabewerte für alle Server (so genannte "fall backs"), falls
|
||||
Du keine eigenen Werte für entsprechende Server-Optionen bestimmt haben solltest.
|
||||
Diese Vorgabewerte sind in "irc.server_default.*" hinterlegt.
|
||||
WeeChat verwendet Vorgabewerte für alle Server (so genannte "fall backs"), sofern
|
||||
keine individuellen Werte für die entsprechenden Server-Optionen gesetzt worden sind.
|
||||
Die Vorgabewerte sind in "irc.server_default.*" hinterlegt.
|
||||
|
||||
Für jede Server-Option benutzt WeeChat den entsprechend gesetzten Wert - falls
|
||||
definiert (nicht "null"). Andernfalls verwendet WeeChat die Vorgabewerte
|
||||
Für jede Server-Option benutzt WeeChat den individuellen Wert - falls einer
|
||||
definiert ist (nicht "null"). Andernfalls verwendet WeeChat die Vorgabewerte
|
||||
("irc.server_default.xxx").
|
||||
|
||||
Als Beispiel erwähnt ist die Vorgabe für Nicks, die auf den Un*x Login
|
||||
zurückgreift. Diese Vorgabe kann nun für den freenode-Server mittels folgendem Befehl
|
||||
überschrieben werden:
|
||||
Beispielsweise werden Standard Nicks verwendet (basierend auf dem Un*x Login). Um
|
||||
dies nun für den freenode-Server anzupassen, kann folgender Befehl genutzt werden:
|
||||
|
||||
----
|
||||
/set irc.server.freenode.nicks "meinNick,meinNick2,meinNick3,meinNick4,meinNick5"
|
||||
|
||||
@@ -490,8 +490,7 @@ Liste der Skript API Funktionen:
|
||||
prefix +
|
||||
color +
|
||||
print (für Python: prnt) +
|
||||
print_date_tags (für Python:
|
||||
prnt_date_tags) +
|
||||
print_date_tags (für Python: prnt_date_tags) +
|
||||
print_y (für Python: prnt_y) +
|
||||
log_print
|
||||
|
||||
@@ -510,6 +509,7 @@ Liste der Skript API Funktionen:
|
||||
hook_hsignal_send +
|
||||
hook_config +
|
||||
hook_completion +
|
||||
hook_completion_get_string +
|
||||
hook_completion_list_add +
|
||||
hook_modifier +
|
||||
hook_modifier_exec +
|
||||
@@ -591,6 +591,7 @@ Liste der Skript API Funktionen:
|
||||
infolist_next +
|
||||
infolist_prev +
|
||||
infolist_reset_item_cursor +
|
||||
infolist_search_var +
|
||||
infolist_fields +
|
||||
infolist_integer +
|
||||
infolist_string +
|
||||
@@ -616,6 +617,7 @@ Liste der Skript API Funktionen:
|
||||
hdata_pointer +
|
||||
hdata_time +
|
||||
hdata_hashtable +
|
||||
hdata_compare +
|
||||
hdata_update +
|
||||
hdata_get_string
|
||||
|
||||
@@ -1061,12 +1063,11 @@ xxx,irc_in2_yyy::
|
||||
def join_cb(data, signal, signal_data):
|
||||
# Das Signal lautet: "freenode,irc_in2_join"
|
||||
# signal_data enthält die IRC Nachricht, zum Beispiel: ":nick!user@host JOIN :#channel"
|
||||
nick = weechat.info_get("irc_nick_from_host", signal_data)
|
||||
server = signal.split(",")[0]
|
||||
channel = signal_data.split(":")[-1]
|
||||
buffer = weechat.info_get("irc_buffer", "%s,%s" % (server, channel))
|
||||
msg = weechat.info_get_hashtable("irc_message_parse", {"message": signal_data})
|
||||
buffer = weechat.info_get("irc_buffer", "%s,%s" % (server, msg["channel"]))
|
||||
if buffer:
|
||||
weechat.prnt(buffer, "Holla, %s hat den Channel betreten!" % nick)
|
||||
weechat.prnt(buffer, "%s (%s) ist dem Channel beigetreten!" % (msg["nick"], msg["host"]))
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
# es ist sinnvoll als Server "*" anzugeben um alle JOIN Nachrichten von allen
|
||||
|
||||
+82
-24
@@ -129,9 +129,10 @@ zu kompilieren und welche Pakete optional genutzt werden können.
|
||||
[NOTE]
|
||||
^(1)^ Paketnamen wurden von der Debian GNU/Linux Distribution übernommen.
|
||||
Versionen und Paketnamen können für andere Distributionen abweichend sein. +
|
||||
^(2)^ WeeChat kann auch mit libncurses5-dev kompiliert werden. Dies wird aber
|
||||
*NICHT* empfohlen (es treten dabei Darstellungsfehler mit breiten Zeichen
|
||||
auf). +
|
||||
^(2)^ Es wird empfohlen WeeChat mit libncurses**w**5-dev (das *w* ist
|
||||
entscheidend) zu kompilieren. Eine Kompilierung kann auch mit libncurses5-dev erfolgen,
|
||||
aber dies wird *NICHT* empfohlen:
|
||||
Es können Darstellungsfehler mit breiten Zeichen auftreten. +
|
||||
^(3)^ Gnutls ≥ 3.0.21 wird benötigt um eine IRC SASL Authentifizierung mittels
|
||||
ECDSA-NIST256P-CHALLENGE durchzuführen. +
|
||||
^(4)^ Die empfohlene Version ist 2.7 (alle Skripten laufen mit der Version 2.7,
|
||||
@@ -198,6 +199,9 @@ Liste von häufig verwendeten Optionen:
|
||||
| ENABLE_ASPELL | `ON`, `OFF` | ON |
|
||||
kompiliert <<aspell_plugin,Aspell Erweiterung>>.
|
||||
|
||||
| ENABLE_BUFLIST | `ON`, `OFF` | ON |
|
||||
kompiliert <<buflist_plugin,Buflist Erweiterung>>.
|
||||
|
||||
| ENABLE_CHARSET | `ON`, `OFF` | ON |
|
||||
kompiliert <<charset_plugin,Charset Erweiterung>>.
|
||||
|
||||
@@ -527,8 +531,10 @@ Folgende Dateien findet man im Heimatverzeichnis:
|
||||
| plugins.conf | Konfigurationsdatei für Erweiterungen | möglich, hängt von der Erweiterung/Skript ab.
|
||||
| alias.conf | Konfigurationsdatei: Alias-Erweiterung | möglich, hängt von den Aliases ab.
|
||||
| aspell.conf | Konfiguration für _aspell_-Erweiterung | Nein.
|
||||
| buflist.conf | Konfiguration für _buflist_-Erweiterung | Nein.
|
||||
| charset.conf | Konfiguration für _charset_-Erweiterung | Nein.
|
||||
| exec.conf | Konfiguration für _exec_-Erweiterung | Nein.
|
||||
| fifo.conf | Konfiguration für _fifo_-Erweiterung | Nein.
|
||||
| irc.conf | Konfiguration für _irc_-Erweiterung | *Ja*: Datei kann Passwörter für Server, Nickserv oder Channels enthalten (sofern diese nicht in `sec.conf` gesichert sind).
|
||||
| logger.conf | Konfiguration für _logger_-Erweiterung | Nein.
|
||||
| relay.conf | Konfiguration für _relay_-Erweiterung | Nein.
|
||||
@@ -1479,7 +1485,7 @@ beinhalten. + Diese "tags" können mit dem Befehl `/debug tags` dargestellt werd
|
||||
|
||||
Um Tags als Highlights zu nutzen wird folgende Option verwendet:
|
||||
<<option_weechat.look.highlight_tags,weechat.look.highlight_tags>>.
|
||||
Tags werden durch Kommata getrennt und mehrere Tags können mit
|
||||
Tags werden durch Kommata getrennt und mehrere Tags können mit
|
||||
"+" genutzt werden um ein logischen "und" zu erstellen.
|
||||
|
||||
Zum Beispiel um alle Nachrichten vom Nick "FlashCode" und alle notice-Nachrichten
|
||||
@@ -1584,6 +1590,10 @@ und um eine Hilfe zu erhalten wie man es nutzt: `/help autosetbuffer`.
|
||||
| kbd:[Alt+PgDn] | einige Zeilen im Verlaufsspeicher des Buffer nach unten blättern. | `/window scroll_down`
|
||||
| kbd:[Alt+Home] | springt zur ersten Zeile des Verlaufsspeichers des aktuellen Buffer.s| `/window scroll_top`
|
||||
| kbd:[Alt+End] | springt zur letzten Zeile des Verlaufsspeichers des aktuellen Buffers. | `/window scroll_bottom`
|
||||
| kbd:[F1] | blättert eine Seite in der buflist hoch. | `/bar scroll buflist * -100%`
|
||||
| kbd:[F2] | blättert eine Seite in der buflist runter. | `/bar scroll buflist * +100%`
|
||||
| kbd:[Alt+F1] | springt zum Anfang der buflist. | `/bar scroll buflist * b`
|
||||
| kbd:[Alt+F2] | springt zum Ende der buflist. | `/bar scroll buflist * e`
|
||||
| kbd:[Alt+←] +
|
||||
kbd:[Alt+↑] +
|
||||
kbd:[Ctrl+p] +
|
||||
@@ -1708,6 +1718,12 @@ Diese Tasten werden im Kontext "mouse" verwendet, wenn eine Mausfunktion genutzt
|
||||
| ⇓ | - | chat (script buffer) | fünf Zeilen nach unten blättern, im Script-Buffer. | `/script down 5`
|
||||
| kbd:[Ctrl+⇑] | - | chat | horizontal, nach links scrollen. | `/window scroll_horiz -window ${_window_number} -10%`
|
||||
| kbd:[Ctrl+⇓] | - | chat | horizontal, nach rechts scrollen. | `/window scroll_horiz -window ${_window_number} +10%`
|
||||
| ◾◽◽ | up / left | buflist | verschiebt Buffer in der Reihenfolge nach unten. | Signal `buflist_mouse`.
|
||||
| ◾◽◽ | down / right | buflist | verschiebt Buffer in der Reihenfolge nach oben. | Signal `buflist_mouse`.
|
||||
| ◾◽◽ | - | buflist | wechselt zum Buffer (oder zum vorherigen Buffer, falls der aktuell genutzte Buffer angewählt wurde). | Signal `buflist_mouse`.
|
||||
| ◽◽◾ | - | buflist | wechselt zum nächsten Buffer, falls der aktuell genutzte Buffer angewählt wurde. | Signal `buflist_mouse`.
|
||||
| kbd:[Ctrl+⇑] | - | buflist | wechselt zum vorherigen Buffer. | Signal `buflist_mouse`.
|
||||
| kbd:[Ctrl+⇓] | - | buflist | wechselt zum nächsten Buffer. | Signal `buflist_mouse`.
|
||||
| ◾◽◽ | hoch | Benutzerliste | Benutzerliste um eine Seite nach oben blättern. | `/bar scroll nicklist ${_window_number} -100%`
|
||||
| ◾◽◽ | runter | Benutzerliste | Benutzerliste um eine Seite nach unten blättern. | `/bar scroll nicklist ${_window_number} +100%`
|
||||
| ◾◽◽ | hoch(lang) | Benutzerliste | springt zum Anfang der Benutzerliste. | `/bar scroll nicklist ${_window_number} b`
|
||||
@@ -2033,6 +2049,7 @@ Standarderweiterungen:
|
||||
| Erweiterung | Beschreibung
|
||||
| alias | definiert Alias für Befehle.
|
||||
| aspell | Rechtschreibprüfung für Befehlszeile.
|
||||
| buflist | Bar-Item mit der Liste aller Buffern.
|
||||
| charset | Zeichensatz (de)-kodierung in Buffern.
|
||||
| exec | ausführen von externen Befehlen aus WeeChat heraus.
|
||||
| fifo | FIFO Pipe die zur Fernsteuerung von WeeChat genutzt werden kann.
|
||||
@@ -2082,6 +2099,7 @@ Sektionen:
|
||||
| check | /set aspell.check.* | Optionen um Einstellungen an der Rechtschreibprüfung vorzunehmen.
|
||||
| dict | <<command_aspell_aspell,/aspell setdict>> +
|
||||
/set aspell.dict.* | Wörterbücher für Buffer (Optionen können in Sektion hinzugefügt/entfernt werden).
|
||||
| look | /set aspell.look.* | Erscheinungsbild.
|
||||
| option | /set aspell.option.* | <<aspell_speller_options,Optionen für Rechtschreibprüfung>> (Optionen können in Sektion hinzugefügt/entfernt werden).
|
||||
|===
|
||||
|
||||
@@ -2140,6 +2158,34 @@ Beispiel der Rechtschreibkorrektur, mit zwei Wörterbüchern (`en,de`):
|
||||
└─────────────────────────────────────────────────────────────────────────────────┘
|
||||
....
|
||||
|
||||
[[buflist_plugin]]
|
||||
=== Buflist Erweiterung
|
||||
|
||||
Die Buflist-Erweiterung dient dazu eine Liste der Buffer in einer Bar-Item mit Namen "buflist"
|
||||
darzustellen. +
|
||||
Eine Standardbar, "buflist", wird beim Start automatisch erstellt, mit folgendem Inhalt.
|
||||
|
||||
[[buflist_options]]
|
||||
==== Options (buflist.conf)
|
||||
|
||||
Sektionen:
|
||||
|
||||
[width="100%",cols="3m,6m,16",options="header"]
|
||||
|===
|
||||
| Sektion | Steuerbefehl | Beschreibung
|
||||
| format | /set buflist.format.* | Format für die Darstellung der Bufferliste.
|
||||
| look | /set buflist.look.* | Erscheinungsbild.
|
||||
|===
|
||||
|
||||
Optionen:
|
||||
|
||||
include::autogen/user/buflist_options.adoc[]
|
||||
|
||||
[[buflist_commands]]
|
||||
==== Befehle
|
||||
|
||||
include::autogen/user/buflist_commands.adoc[]
|
||||
|
||||
[[charset_plugin]]
|
||||
=== Charset Erweiterung
|
||||
|
||||
@@ -2468,7 +2514,7 @@ $ openssl req -nodes -newkey rsa:2048 -keyout nick.pem -x509 -days 365 -out nick
|
||||
/msg nickserv cert add
|
||||
----
|
||||
|
||||
Für weiterreichende Informationen lesen Sie bitte: http://www.oftc.net/oftc/NickServ/CertFP
|
||||
Für weiterreichende Informationen lesen Sie bitte: https://www.oftc.net/NickServ/CertFP
|
||||
|
||||
[[irc_sasl_authentication]]
|
||||
==== SASL Authentifizierung
|
||||
@@ -2564,7 +2610,7 @@ und Port müssen dabei an die eigene TOR Konfiguration angepasst werden):
|
||||
Jetzt muss der neue Server hinzufügt werden, zum Beispiel:
|
||||
|
||||
----
|
||||
/server add freenode-tor p4fsi4ockecnea7l.onion
|
||||
/server add freenode-tor freenodeok2gncmy.onion
|
||||
----
|
||||
|
||||
Einen Proxy für TOR anlegen:
|
||||
@@ -2573,11 +2619,14 @@ Einen Proxy für TOR anlegen:
|
||||
/set irc.server.freenode-tor.proxy "tor"
|
||||
----
|
||||
|
||||
Die SASL Authentifikation einstellen:
|
||||
SASL Authentifikation mit ECDSA-NIST256P-CHALLENGE nutzen (siehe Kapitel
|
||||
<<irc_sasl_ecdsa_nist256p_challenge,SASL ECDSA-NIST256P-CHALLENGE>> um einen
|
||||
privaten Schlüssel zu generieren):
|
||||
|
||||
----
|
||||
/set irc.server.freenode-tor.sasl_mechanism ecdsa-nist256p-challenge
|
||||
/set irc.server.freenode-tor.sasl_username "your_nickname"
|
||||
/set irc.server.freenode-tor.sasl_password "your_password"
|
||||
/set irc.server.freenode-tor.sasl_key "%h/ecdsa.pem"
|
||||
----
|
||||
|
||||
Zum Abschluss stellt man eine Verbindung zum Server her:
|
||||
@@ -2586,7 +2635,8 @@ Zum Abschluss stellt man eine Verbindung zum Server her:
|
||||
/connect freenode-tor
|
||||
----
|
||||
|
||||
Um mehr über Freenode und TOR zu erfahren: http://freenode.net/irc_servers.shtml#tor
|
||||
Um mehr über Freenode und TOR zu erfahren:
|
||||
http://freenode.net/kb/answer/chat#accessing-freenode-via-tor
|
||||
|
||||
[[irc_smart_filter_join_part_quit]]
|
||||
==== einfacher Filter für join/part/quit Nachrichten
|
||||
@@ -3001,7 +3051,12 @@ Die Relay-Erweiterung wird genutzt um Daten, mittels unterschiedlicher Protokoll
|
||||
* _irc_: IRC Proxy: um mittels einem oder mehreren IRC-Clients eine Verbindung zu
|
||||
IRC Servern zu unterhalten.
|
||||
* _weechat_: Protokoll welches es erlaubt die Daten mit einer externen Oberfläche
|
||||
zu teilen (zum Beispiel QWeeChat)
|
||||
zu teilen, zum Beispiel:
|
||||
** Glowing Bear (HTML5): https://www.glowing-bear.org/
|
||||
** QWeeChat (Qt): https://weechat.org/download
|
||||
** WeeChat-Android (Android): https://github.com/ubergeek42/weechat-android
|
||||
** weechat.el (Emacs): https://github.com/the-kenny/weechat.el
|
||||
** WeeCloud (Javascript): https://github.com/eirikb/weecloud
|
||||
|
||||
[[relay_options]]
|
||||
==== Optionen (relay.conf)
|
||||
@@ -3528,20 +3583,22 @@ und die Daten in einer Hashtable gesichert:
|
||||
|
||||
[width="100%",cols="3m,2,14",options="header"]
|
||||
|===
|
||||
| Variable | Typ | Beschreibung
|
||||
| server | string | Name des Server (Beispiel: "freenode").
|
||||
| tags | string | Tags in Nachricht (findet selten Verwendung).
|
||||
| message_without_tags | string | Nachricht ohne Tags.
|
||||
| nick | string | Nick.
|
||||
| host | string | Hostname.
|
||||
| command | string | IRC Befehl (Beispiel: "PRIVMSG", "NOTICE", ...).
|
||||
| channel | string | IRC Channel.
|
||||
| arguments | string | Argumente des Befehls (Beinhaltet Wert von _channel_).
|
||||
| text | string | Text (zum Beipiel eine Nachricht eines Users).
|
||||
| pos_command | string | Index von _command_ innerhalb einer Nachricht ("-1" falls _command_ nicht gefunden wird).
|
||||
| pos_arguments | string | Index von_arguments_ innerhalb einer Nachricht ("-1" falls _arguments_ nicht gefunden wird).
|
||||
| pos_channel | string | Index von _channel_ innerhalb einer Nachricht ("-1" falls _channel_ nicht gefunden wird).
|
||||
| pos_text | string | Index von _text_ innerhalb einer Nachricht ("-1" falls _text_ nicht gefunden wird).
|
||||
| Variable | Typ | Beschreibung
|
||||
| irc_server | pointer | Pointer auf IRC Server (Variable in hdata vom Typ "irc_server" kann verwendet werden, wie `${irc_server.name}`).
|
||||
| irc_channel | pointer | Pointer auf IRC Channel (Variable in hdata vom Typ "irc_channel" kann verwendet werden, wie `${irc_channel.name}`).
|
||||
| server | string | Name des Server (Beispiel: "freenode").
|
||||
| tags | string | Tags in Nachricht (findet selten Verwendung).
|
||||
| message_without_tags | string | Nachricht ohne Tags.
|
||||
| nick | string | Nick.
|
||||
| host | string | Hostname.
|
||||
| command | string | IRC Befehl (Beispiel: "PRIVMSG", "NOTICE", ...).
|
||||
| channel | string | IRC Channel.
|
||||
| arguments | string | Argumente des Befehls (Beinhaltet Wert von _channel_).
|
||||
| text | string | Text (zum Beipiel eine Nachricht eines Users).
|
||||
| pos_command | string | Index von _command_ innerhalb einer Nachricht ("-1" falls _command_ nicht gefunden wird).
|
||||
| pos_arguments | string | Index von_arguments_ innerhalb einer Nachricht ("-1" falls _arguments_ nicht gefunden wird).
|
||||
| pos_channel | string | Index von _channel_ innerhalb einer Nachricht ("-1" falls _channel_ nicht gefunden wird).
|
||||
| pos_text | string | Index von _text_ innerhalb einer Nachricht ("-1" falls _text_ nicht gefunden wird).
|
||||
|===
|
||||
|
||||
Sofern es sich bei den Daten um einen Pointer handelt, kann die Variable `tg_signal_data`
|
||||
@@ -3805,5 +3862,6 @@ Unterstützung im IRC findet man auf dem Server _chat.freenode.net_:
|
||||
** _#weechat-fr_ (französisch)
|
||||
* kein offizieller Channel:
|
||||
** _#weechat-de_ (deutsch)
|
||||
** _#weechat-fi_ (finnisch)
|
||||
|
||||
Weitere Möglichkeiten, um mit den Entwicklern in Kontakt zu treten, siehe: https://weechat.org/dev/support
|
||||
|
||||
@@ -90,6 +90,7 @@ PLUGIN_LIST = {
|
||||
'weechat': 'co',
|
||||
'alias': '',
|
||||
'aspell': 'o',
|
||||
'buflist': 'co',
|
||||
'charset': 'o',
|
||||
'exec': 'o',
|
||||
'fifo': 'o',
|
||||
|
||||
@@ -168,6 +168,7 @@ _options_ (pointer) +
|
||||
_temp_server_ (integer) +
|
||||
_reloading_from_config_ (integer) +
|
||||
_reloaded_from_config_ (integer) +
|
||||
_addresses_eval_ (string) +
|
||||
_addresses_count_ (integer) +
|
||||
_addresses_array_ (string, array_size: "addresses_count") +
|
||||
_ports_array_ (integer, array_size: "addresses_count") +
|
||||
@@ -456,6 +457,9 @@ _gui_objects_ (pointer) +
|
||||
_prev_bar_window_ (pointer, hdata: "bar_window") +
|
||||
_next_bar_window_ (pointer, hdata: "bar_window") +
|
||||
|
||||
*Update allowed:* +
|
||||
_scroll_x_ (integer) +
|
||||
_scroll_y_ (integer) +
|
||||
|
||||
| weechat
|
||||
| [[hdata_buffer]]<<hdata_buffer,buffer>>
|
||||
@@ -541,6 +545,7 @@ _highlight_tags_restrict_array_ (pointer, array_size: "highlight_tags_restric
|
||||
_highlight_tags_ (string) +
|
||||
_highlight_tags_count_ (integer) +
|
||||
_highlight_tags_array_ (pointer, array_size: "highlight_tags_count") +
|
||||
_hotlist_ (pointer, hdata: "hotlist") +
|
||||
_hotlist_max_level_nicks_ (hashtable) +
|
||||
_keys_ (pointer, hdata: "key") +
|
||||
_last_key_ (pointer, hdata: "key") +
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
. charset (13000)
|
||||
. logger (12000)
|
||||
. exec (11000)
|
||||
. trigger (10000)
|
||||
. aspell (9000)
|
||||
. alias (8000)
|
||||
. charset (14000)
|
||||
. logger (13000)
|
||||
. exec (12000)
|
||||
. trigger (11000)
|
||||
. aspell (10000)
|
||||
. alias (9000)
|
||||
. buflist (8000)
|
||||
. fifo (7000)
|
||||
. xfer (6000)
|
||||
. irc (5000)
|
||||
|
||||
@@ -18,19 +18,23 @@
|
||||
|
||||
| failonerror | long |
|
||||
|
||||
| keep_sending_on_error | long |
|
||||
|
||||
| proxy | string |
|
||||
|
||||
| proxyport | long |
|
||||
|
||||
| port | long |
|
||||
|
||||
| pre_proxy | string |
|
||||
|
||||
| httpproxytunnel | long |
|
||||
|
||||
| interface | string |
|
||||
|
||||
| dns_cache_timeout | long |
|
||||
|
||||
| proxytype | long | http, socks4, socks5, socks4a, socks5_hostname, http_1_0
|
||||
| proxytype | long | http, socks4, socks5, socks4a, socks5_hostname, http_1_0, https
|
||||
|
||||
| buffersize | long |
|
||||
|
||||
@@ -278,7 +282,7 @@
|
||||
|
||||
| sslcert | string |
|
||||
|
||||
| sslversion | long | default, tlsv1, sslv2, sslv3
|
||||
| sslversion | long | default, tlsv1, sslv2, sslv3, tlsv1_0, tlsv1_1, tlsv1_2, tlsv1_3
|
||||
|
||||
| ssl_verifypeer | long |
|
||||
|
||||
@@ -330,6 +334,38 @@
|
||||
|
||||
| ssl_falsestart | long |
|
||||
|
||||
| proxy_cainfo | string |
|
||||
|
||||
| proxy_capath | string |
|
||||
|
||||
| proxy_crlfile | string |
|
||||
|
||||
| proxy_keypasswd | string |
|
||||
|
||||
| proxy_pinnedpublickey | string |
|
||||
|
||||
| proxy_sslcert | string |
|
||||
|
||||
| proxy_sslcerttype | string |
|
||||
|
||||
| proxy_sslkey | string |
|
||||
|
||||
| proxy_sslkeytype | string |
|
||||
|
||||
| proxy_sslversion | long | default, tlsv1, sslv2, sslv3, tlsv1_0, tlsv1_1, tlsv1_2, tlsv1_3
|
||||
|
||||
| proxy_ssl_options | long | allow_beast, no_revoke
|
||||
|
||||
| proxy_ssl_verifyhost | long |
|
||||
|
||||
| proxy_ssl_verifypeer | long |
|
||||
|
||||
| proxy_tlsauth_password | string |
|
||||
|
||||
| proxy_tlsauth_type | string |
|
||||
|
||||
| proxy_tlsauth_username | string |
|
||||
|
||||
| ssh_auth_types | mask | none, policy_flag, flag
|
||||
|
||||
| ssh_public_keyfile | string |
|
||||
|
||||
@@ -50,8 +50,32 @@
|
||||
** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
|
||||
** default value: `+lightred+`
|
||||
|
||||
* [[option_aspell.color.suggestions]] *aspell.color.suggestions*
|
||||
** description: pass:none[text color for suggestions on a misspelled word (status bar)]
|
||||
* [[option_aspell.color.suggestion]] *aspell.color.suggestion*
|
||||
** description: pass:none[text color for suggestion on a misspelled word in bar item "aspell_suggest"]
|
||||
** type: color
|
||||
** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
|
||||
** default value: `+default+`
|
||||
|
||||
* [[option_aspell.color.suggestion_delimiter_dict]] *aspell.color.suggestion_delimiter_dict*
|
||||
** description: pass:none[text color for delimiters displayed between two dictionaries in bar item "aspell_suggest"]
|
||||
** type: color
|
||||
** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
|
||||
** default value: `+cyan+`
|
||||
|
||||
* [[option_aspell.color.suggestion_delimiter_word]] *aspell.color.suggestion_delimiter_word*
|
||||
** description: pass:none[text color for delimiters displayed between two words in bar item "aspell_suggest"]
|
||||
** type: color
|
||||
** values: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
|
||||
** default value: `+cyan+`
|
||||
|
||||
* [[option_aspell.look.suggestion_delimiter_dict]] *aspell.look.suggestion_delimiter_dict*
|
||||
** description: pass:none[delimiter displayed between two dictionaries in bar item "aspell_suggest"]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+" / "+`
|
||||
|
||||
* [[option_aspell.look.suggestion_delimiter_word]] *aspell.look.suggestion_delimiter_word*
|
||||
** description: pass:none[delimiter displayed between two words in bar item "aspell_suggest"]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+","+`
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
[[command_buflist_buflist]]
|
||||
* `+buflist+`: bar item with list of buffers
|
||||
|
||||
----
|
||||
/buflist bar
|
||||
refresh
|
||||
|
||||
bar: add the "buflist" bar
|
||||
refresh: force the refresh of the "buflist" bar item
|
||||
|
||||
The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options:
|
||||
- buflist.look.display_conditions: conditions to display a buffer in the list
|
||||
- buflist.format.buffer: format for a buffer which is not current buffer
|
||||
- buflist.format.buffer_current: format for the current buffer
|
||||
|
||||
The following variables can be used in these options:
|
||||
- buffer data (see hdata "buffer" in API doc for a complete list), for example:
|
||||
- ${buffer.number}
|
||||
- ${buffer.name}
|
||||
- ${buffer.full_name}
|
||||
- ${buffer.short_name}
|
||||
- ${buffer.nicklist_nicks_count}
|
||||
- irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc)
|
||||
- irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc)
|
||||
- extra variables added by buflist for convenience:
|
||||
- ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
|
||||
- ${current_buffer}: a boolean ("0" or "1"), "1" if this is the current buffer; it can be used in a condition: ${if:${current_buffer}?...:...}
|
||||
- ${merged}: a boolean ("0" or "1"), "1" if the buffer is merged with at least another buffer; it can be used in a condition: ${if:${merged}?...:...}
|
||||
- ${format_number}: indented number with separator (evaluation of option buflist.format.number)
|
||||
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
|
||||
- ${number_displayed}: "1" if the number is displayed, otherwise "0"
|
||||
- ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent)
|
||||
- ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix)
|
||||
- ${color_nick_prefix}: color of nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
|
||||
- ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
|
||||
- ${format_name}: formatted name (evaluation of option buflist.format.name)
|
||||
- ${name}: the short name (if set), with a fallback on the name
|
||||
- ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level)
|
||||
- ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist)
|
||||
- ${hotlist}: the raw hotlist
|
||||
- ${hotlist_priority}: "none", "low", "message", "private" or "highlight"
|
||||
- ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag)
|
||||
----
|
||||
@@ -0,0 +1,147 @@
|
||||
//
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
* [[option_buflist.format.buffer]] *buflist.format.buffer*
|
||||
** description: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${format_name}"+`
|
||||
|
||||
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
|
||||
** description: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${color:,blue}${format_buffer}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
|
||||
** description: pass:none[format for hotlist (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+" ${color:green}(${hotlist}${color:green})"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
|
||||
** description: pass:none[format for a buffer with hotlist level "highlight" (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${color:magenta}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
|
||||
** description: pass:none[format for a buffer with hotlist level "low" (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${color:white}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
|
||||
** description: pass:none[format for a buffer with hotlist level "message" (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${color:brown}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
|
||||
** description: pass:none[format for a buffer not in hotlist (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${color:default}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
|
||||
** description: pass:none[format for a buffer with hotlist level "private" (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${color:green}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
|
||||
** description: pass:none[separator for counts in hotlist (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${color:default},"+`
|
||||
|
||||
* [[option_buflist.format.indent]] *buflist.format.indent*
|
||||
** description: pass:none[string displayed to indent channel and private buffers (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+" "+`
|
||||
|
||||
* [[option_buflist.format.lag]] *buflist.format.lag*
|
||||
** description: pass:none[format for lag on an IRC server buffer (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
|
||||
|
||||
* [[option_buflist.format.name]] *buflist.format.name*
|
||||
** description: pass:none[format for buffer name (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${name}"+`
|
||||
|
||||
* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix*
|
||||
** description: pass:none[format for nick prefix on a channel (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${color_nick_prefix}${nick_prefix}"+`
|
||||
|
||||
* [[option_buflist.format.number]] *buflist.format.number*
|
||||
** description: pass:none[format for buffer number, ${number} is the indented number (note: content is evaluated, see /help buflist)]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${color:green}${number}${if:${number_displayed}?.: }"+`
|
||||
|
||||
* [[option_buflist.look.auto_scroll]] *buflist.look.auto_scroll*
|
||||
** description: pass:none[automatically scroll the buflist bar to always see the current buffer (this works only with a bar on the left/right position with a "vertical" filling); this value is the percent number of lines displayed before the current buffer when scrolling (-1 = disable scroll); for example 50 means that after a scroll, the current buffer is at the middle of bar, 0 means on top of bar, 100 means at bottom of bar]
|
||||
** type: integer
|
||||
** values: -1 .. 100
|
||||
** default value: `+50+`
|
||||
|
||||
* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions*
|
||||
** description: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist); for example to hide server buffers if they are merged with core buffer: "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"${buffer.hidden}==0"+`
|
||||
|
||||
* [[option_buflist.look.enabled]] *buflist.look.enabled*
|
||||
** description: pass:none[enable buflist]
|
||||
** type: boolean
|
||||
** values: on, off
|
||||
** default value: `+on+`
|
||||
|
||||
* [[option_buflist.look.mouse_jump_visited_buffer]] *buflist.look.mouse_jump_visited_buffer*
|
||||
** description: pass:none[if enabled, clicks with left/right buttons on the line with current buffer jump to previous/next visited buffer]
|
||||
** type: boolean
|
||||
** values: on, off
|
||||
** default value: `+off+`
|
||||
|
||||
* [[option_buflist.look.mouse_move_buffer]] *buflist.look.mouse_move_buffer*
|
||||
** description: pass:none[if enabled, mouse gestures (drag & drop) move buffers in list]
|
||||
** type: boolean
|
||||
** values: on, off
|
||||
** default value: `+on+`
|
||||
|
||||
* [[option_buflist.look.mouse_wheel]] *buflist.look.mouse_wheel*
|
||||
** description: pass:none[if enabled, mouse wheel up/down actions jump to previous/next buffer in list]
|
||||
** type: boolean
|
||||
** values: on, off
|
||||
** default value: `+on+`
|
||||
|
||||
* [[option_buflist.look.nick_prefix]] *buflist.look.nick_prefix*
|
||||
** description: pass:none[get the nick prefix and its color from nicklist so that ${nick_prefix} can be used in format; this can be slow on buffers with lot of nicks in nicklist, so this option is disabled by default]
|
||||
** type: boolean
|
||||
** values: on, off
|
||||
** default value: `+off+`
|
||||
|
||||
* [[option_buflist.look.nick_prefix_empty]] *buflist.look.nick_prefix_empty*
|
||||
** description: pass:none[when the nick prefix is enabled, display a space instead if there is no nick prefix on the buffer]
|
||||
** type: boolean
|
||||
** values: on, off
|
||||
** default value: `+on+`
|
||||
|
||||
* [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh*
|
||||
** description: pass:none[comma-separated list of extra signals that are hooked and trigger the refresh of buffers list; this can be useful if some custom variables are used in formats and need specific refresh]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+""+`
|
||||
|
||||
* [[option_buflist.look.sort]] *buflist.look.sort*
|
||||
** description: 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]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"number,-active"+`
|
||||
@@ -16,9 +16,11 @@ target: server name
|
||||
|
||||
----
|
||||
/allchan [-current] [-exclude=<channel>[,<channel>...]] <command> [<arguments>]
|
||||
[-current] -include=<channel>[,<channel>...] <command> [<arguments>]
|
||||
|
||||
-current: execute command for channels of current server only
|
||||
-exclude: exclude some channels (wildcard "*" is allowed)
|
||||
-include: include only some channels (wildcard "*" is allowed)
|
||||
command: command to execute
|
||||
arguments: arguments for command (special variables $nick, $channel and $server are replaced by their value)
|
||||
|
||||
@@ -29,6 +31,8 @@ Examples:
|
||||
/allchan -exclude=#weechat msg * hello
|
||||
say 'hello' everywhere but not on #weechat and channels beginning with #linux:
|
||||
/allchan -exclude=#weechat,#linux* msg * hello
|
||||
say 'hello' on all channels beginning with #linux:
|
||||
/allchan -include=#linux* msg * hello
|
||||
----
|
||||
|
||||
[[command_irc_allpv]]
|
||||
@@ -36,9 +40,11 @@ Examples:
|
||||
|
||||
----
|
||||
/allpv [-current] [-exclude=<nick>[,<nick>...]] <command> [<arguments>]
|
||||
[-current] -include=<nick>[,<nick>...] <command> [<arguments>]
|
||||
|
||||
-current: execute command for private buffers of current server only
|
||||
-exclude: exclude some nicks (wildcard "*" is allowed)
|
||||
-include: include only some nicks (wildcard "*" is allowed)
|
||||
command: command to execute
|
||||
arguments: arguments for command (special variables $nick, $channel and $server are replaced by their value)
|
||||
|
||||
@@ -49,6 +55,8 @@ Examples:
|
||||
/allpv -exclude=foo msg * hello
|
||||
say 'hello' everywhere but not for nick foo and nicks beginning with bar:
|
||||
/allpv -exclude=foo,bar* msg * hello
|
||||
say 'hello' for all nicks beginning with bar:
|
||||
/allpv -include=bar* msg * hello
|
||||
close all private buffers:
|
||||
/allpv close
|
||||
----
|
||||
@@ -58,8 +66,10 @@ Examples:
|
||||
|
||||
----
|
||||
/allserv [-exclude=<server>[,<server>...]] <command> [<arguments>]
|
||||
-include=<server>[,<server>...] <command> [<arguments>]
|
||||
|
||||
-exclude: exclude some servers (wildcard "*" is allowed)
|
||||
-include: include only some servers (wildcard "*" is allowed)
|
||||
command: command to execute
|
||||
arguments: arguments for command (special variables $nick, $channel and $server are replaced by their value)
|
||||
|
||||
@@ -713,6 +723,7 @@ reason: reason
|
||||
add <server> <hostname>[/<port>] [-temp] [-<option>[=<value>]] [-no<option>]
|
||||
copy|rename <server> <new_name>
|
||||
reorder <server> [<server>...]
|
||||
open <server>|-all [<server>...]
|
||||
del|keep <server>
|
||||
deloutq|jump|raw
|
||||
|
||||
@@ -727,6 +738,7 @@ nooption: set boolean option to 'off' (for example: -nossl)
|
||||
copy: duplicate a server
|
||||
rename: rename a server
|
||||
reorder: reorder list of servers
|
||||
open: open the server buffer without connecting
|
||||
keep: keep server in config file (for temporary servers only)
|
||||
del: delete a server
|
||||
deloutq: delete messages out queue for all servers (all messages WeeChat is currently sending)
|
||||
|
||||
@@ -477,7 +477,7 @@
|
||||
** default value: `+300+`
|
||||
|
||||
* [[option_irc.network.lag_refresh_interval]] *irc.network.lag_refresh_interval*
|
||||
** description: pass:none[interval between two refreshs of lag item, when lag is increasing (in seconds)]
|
||||
** description: pass:none[interval between two refreshes of lag item, when lag is increasing (in seconds)]
|
||||
** type: integer
|
||||
** values: 1 .. 3600
|
||||
** default value: `+1+`
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
----
|
||||
/relay list|listfull|listrelay
|
||||
add <name> <port>
|
||||
del|stop|restart <name>
|
||||
del|start|restart|stop <name>
|
||||
raw
|
||||
sslcertkey
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
listrelay: list relays (name and port)
|
||||
add: add a relay (listen on a port)
|
||||
del: remove a relay (clients remain connected)
|
||||
stop: close the server socket (clients remain connected)
|
||||
start: listen on port
|
||||
restart: close the server socket and listen again on port (clients remain connected)
|
||||
stop: close the server socket (clients remain connected)
|
||||
name: relay name (see format below)
|
||||
port: port used for relay
|
||||
raw: open buffer with raw Relay data
|
||||
|
||||
@@ -237,13 +237,7 @@
|
||||
** default value: `+"%h/script"+`
|
||||
|
||||
* [[option_script.scripts.url]] *script.scripts.url*
|
||||
** description: pass:none[URL for file with list of scripts; by default HTTPS is forced, see option script.scripts.url_force_https]
|
||||
** description: pass:none[URL for file with list of scripts]
|
||||
** type: string
|
||||
** values: any string
|
||||
** default value: `+"http://weechat.org/files/plugins.xml.gz"+`
|
||||
|
||||
* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https*
|
||||
** description: pass:none[force use of HTTPS for downloads (index and scripts); you should disable this option only if you have problems with the downloads]
|
||||
** type: boolean
|
||||
** values: on, off
|
||||
** default value: `+on+`
|
||||
** default value: `+"https://weechat.org/files/plugins.xml.gz"+`
|
||||
|
||||
@@ -72,7 +72,7 @@ Examples:
|
||||
clear [<number>|<name>|-merged|-all [<number>|<name>...]]
|
||||
move <number>|-|+
|
||||
swap <number1>|<name1> [<number2>|<name2>]
|
||||
cycle <number>|<name> [<number>|<name>...]]
|
||||
cycle <number>|<name> [<number>|<name>...]
|
||||
merge <number>
|
||||
unmerge [<number>|-all]
|
||||
hide [<number>|<name>|-all [<number>|<name>...]]
|
||||
@@ -274,6 +274,8 @@ expression: expression to evaluate, variables with format ${variable} are replac
|
||||
> greater
|
||||
=~ is matching POSIX extended regex
|
||||
!~ is NOT matching POSIX extended regex
|
||||
=* is matching mask (wildcard "*" is allowed)
|
||||
!* is NOT matching mask (wildcard "*" is allowed)
|
||||
|
||||
An expression is considered as "true" if it is not NULL, not empty, and different from "0".
|
||||
The comparison is made using integers if the two expressions are valid integers.
|
||||
@@ -285,13 +287,16 @@ Some variables are replaced in expression, using the format ${variable}, variabl
|
||||
1. an evaluated sub-string (format: "eval:xxx")
|
||||
2. a string with escaped chars (format: "esc:xxx" or "\xxx")
|
||||
3. a string with chars to hide (format: "hide:char,string")
|
||||
4. a color (format: "color:xxx")
|
||||
5. an info (format: "info:name,arguments", arguments are optional)
|
||||
6. current date/time (format: "date" or "date:format")
|
||||
7. an environment variable (format: "env:XXX")
|
||||
8. an option (format: "file.section.option")
|
||||
9. a local variable in buffer
|
||||
10. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
|
||||
4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
|
||||
or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
|
||||
5. a color (format: "color:xxx", see "Plugin API reference", function "color")
|
||||
6. an info (format: "info:name,arguments", arguments are optional)
|
||||
7. current date/time (format: "date" or "date:format")
|
||||
8. an environment variable (format: "env:XXX")
|
||||
9. a ternary operator (format: "if:condition?value_if_true:value_if_false")
|
||||
10. an option (format: "file.section.option")
|
||||
11. a local variable in buffer
|
||||
12. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
|
||||
Format for hdata can be one of following:
|
||||
hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed)
|
||||
hdata[list].var1.var2...: start with a hdata using a list, for example:
|
||||
@@ -302,16 +307,19 @@ Format for hdata can be one of following:
|
||||
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
|
||||
|
||||
Examples (simple strings):
|
||||
/eval -n ${info:version} ==> 0.4.3
|
||||
/eval -n ${env:HOME} ==> /home/user
|
||||
/eval -n ${weechat.look.scroll_amount} ==> 3
|
||||
/eval -n ${window} ==> 0x2549aa0
|
||||
/eval -n ${window.buffer} ==> 0x2549320
|
||||
/eval -n ${window.buffer.full_name} ==> core.weechat
|
||||
/eval -n ${window.buffer.number} ==> 1
|
||||
/eval -n ${\t} ==> <tab>
|
||||
/eval -n ${hide:-,${relay.network.password}} ==> --------
|
||||
/eval -n ${date:%H:%M:%S} ==> 07:46:40
|
||||
/eval -n ${info:version} ==> 0.4.3
|
||||
/eval -n ${env:HOME} ==> /home/user
|
||||
/eval -n ${weechat.look.scroll_amount} ==> 3
|
||||
/eval -n ${window} ==> 0x2549aa0
|
||||
/eval -n ${window.buffer} ==> 0x2549320
|
||||
/eval -n ${window.buffer.full_name} ==> core.weechat
|
||||
/eval -n ${window.buffer.number} ==> 1
|
||||
/eval -n ${\t} ==> <tab>
|
||||
/eval -n ${hide:-,${relay.network.password}} ==> --------
|
||||
/eval -n ${cut:3,+,test} ==> tes+
|
||||
/eval -n ${cut:+3,+,test} ==> te+
|
||||
/eval -n ${date:%H:%M:%S} ==> 07:46:40
|
||||
/eval -n ${if:${info:term_width}>80?big:small} ==> big
|
||||
|
||||
Examples (conditions):
|
||||
/eval -n -c ${window.buffer.number} > 2 ==> 0
|
||||
@@ -322,6 +330,7 @@ Examples (conditions):
|
||||
/eval -n -c abcd =~ (?-i)^ABC ==> 0
|
||||
/eval -n -c abcd =~ (?-i)^abc ==> 1
|
||||
/eval -n -c abcd !~ abc ==> 0
|
||||
/eval -n -c abcd =* a*d ==> 1
|
||||
----
|
||||
|
||||
[[command_weechat_filter]]
|
||||
@@ -939,13 +948,13 @@ Examples:
|
||||
-1|+1|b#|up|down|left|right [-window <number>]
|
||||
<number>
|
||||
splith|splitv [-window <number>] [<pct>]
|
||||
resize [-window <number>] [+/-]<pct>
|
||||
resize [-window <number>] [h|v][+|-]<pct>
|
||||
balance
|
||||
merge [-window <number>] [all]
|
||||
page_up|page_down [-window <number>]
|
||||
refresh
|
||||
scroll [-window <number>] [+/-]<value>[s|m|h|d|M|y]
|
||||
scroll_horiz [-window <number>] [+/-]<value>[%]
|
||||
scroll [-window <number>] [+|-]<value>[s|m|h|d|M|y]
|
||||
scroll_horiz [-window <number>] [+|-]<value>[%]
|
||||
scroll_up|scroll_down|scroll_top|scroll_bottom|scroll_beyond_end|scroll_previous_highlight|scroll_next_highlight|scroll_unread [-window <number>]
|
||||
swap [-window <number>] [up|down|left|right]
|
||||
zoom [-window <number>]
|
||||
@@ -963,6 +972,7 @@ Examples:
|
||||
splith: split current window horizontally (to undo: /window merge)
|
||||
splitv: split current window vertically (to undo: /window merge)
|
||||
resize: resize window size, new size is <pct> percentage of parent window
|
||||
if "h" or "v" is specified, the resize affects the nearest parent window with a split of this type (horizontal/vertical)
|
||||
balance: balance the sizes of all windows
|
||||
merge: merge window with another (all = keep only one window)
|
||||
page_up: scroll one page up
|
||||
@@ -995,8 +1005,12 @@ Examples:
|
||||
/window scroll -d
|
||||
zoom on window #2:
|
||||
/window zoom -window 2
|
||||
split window horizontally using 30%% of space for the window on top:
|
||||
split window horizontally using 30% of space for the window on top:
|
||||
/window splith 30
|
||||
resize window to 75% of the parent window size:
|
||||
/window resize 75
|
||||
resize vertical split, add 10% in size:
|
||||
/window resize v+10
|
||||
remove the split:
|
||||
/window merge
|
||||
enable bare display for 2 seconds:
|
||||
|
||||
@@ -410,6 +410,12 @@
|
||||
** values: on, off
|
||||
** default value: `+on+`
|
||||
|
||||
* [[option_weechat.completion.nick_case_sensitive]] *weechat.completion.nick_case_sensitive*
|
||||
** description: pass:none[case sensitive completion for nicks]
|
||||
** type: boolean
|
||||
** values: on, off
|
||||
** default value: `+off+`
|
||||
|
||||
* [[option_weechat.completion.nick_completer]] *weechat.completion.nick_completer*
|
||||
** description: pass:none[string inserted after nick completion (when nick is first word on command line)]
|
||||
** type: string
|
||||
|
||||
@@ -64,12 +64,18 @@ $HOME/.weechat/alias.conf::
|
||||
$HOME/.weechat/aspell.conf::
|
||||
configuration file for _aspell_ plugin
|
||||
|
||||
$HOME/.weechat/buflist.conf::
|
||||
configuration file for _buflist_ plugin
|
||||
|
||||
$HOME/.weechat/charset.conf::
|
||||
configuration file for _charset_ plugin
|
||||
|
||||
$HOME/.weechat/exec.conf::
|
||||
configuration file for _exec_ plugin
|
||||
|
||||
$HOME/.weechat/fifo.conf::
|
||||
configuration file for _fifo_ plugin
|
||||
|
||||
$HOME/.weechat/irc.conf::
|
||||
configuration file for _irc_ plugin
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ The main WeeChat directories are:
|
||||
| plugins/ | Plugin and scripting API.
|
||||
| alias/ | Alias plugin.
|
||||
| aspell/ | Aspell plugin.
|
||||
| buflist/ | Buflist plugin.
|
||||
| charset/ | Charset plugin.
|
||||
| exec/ | Exec plugin.
|
||||
| fifo/ | Fifo plugin (FIFO pipe used to remotely send commands to WeeChat).
|
||||
@@ -193,6 +194,12 @@ WeeChat "core" is located in following directories:
|
||||
| weechat-aspell-config.c | Aspell config options (file aspell.conf).
|
||||
| weechat-aspell-info.c | Aspell info/infolists/hdata.
|
||||
| weechat-aspell-speller.c | Spellers management.
|
||||
| buflist/ | Buflist plugin.
|
||||
| buflist.c | Main buflist functions.
|
||||
| buflist-bar-item.c | Buflist bar items.
|
||||
| buflist-command.c | Buflist commands.
|
||||
| buflist-config.c | Buflist config options (file buflist.conf).
|
||||
| buflist-mouse.c | Buflist mouse actions.
|
||||
| charset/ | Charset plugin.
|
||||
| charset.c | Charset functions.
|
||||
| exec/ | Exec plugin.
|
||||
@@ -284,6 +291,7 @@ WeeChat "core" is located in following directories:
|
||||
| script-completion.c | Completions for scripts manager.
|
||||
| script-config.c | Config options for scripts manager (file script.conf).
|
||||
| script-info.c | Script manager info/infolists/hdata.
|
||||
| script-mouse.c | Script mouse actions.
|
||||
| script-repo.c | Download and read repository file.
|
||||
| tcl/ | Tcl plugin.
|
||||
| weechat-tcl.c | Main tcl functions (load/unload scripts, execute tcl code).
|
||||
|
||||
@@ -597,6 +597,12 @@ Set option _weechat.network.gnutls_ca_file_ to file with certificates:
|
||||
/set weechat.network.gnutls_ca_file "/etc/ssl/certs/ca-certificates.crt"
|
||||
----
|
||||
|
||||
Note: if you are running OS X with homebrew openssl installed, you can do:
|
||||
|
||||
----
|
||||
/set weechat.network.gnutls_ca_file "/usr/local/etc/openssl/cert.pem"
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Check that you have this file on your system (commonly brought by package
|
||||
"ca-certificates").
|
||||
@@ -825,8 +831,9 @@ You can try following tips to consume less memory:
|
||||
|
||||
* Use the latest stable version (it is supposed to have less memory leaks than
|
||||
older versions).
|
||||
* Do not load some plugins if you don't use them, for example: aspell, fifo,
|
||||
logger, perl, python, ruby, lua, tcl, guile, javascript, xfer (used for DCC).
|
||||
* Do not load some plugins if you don't use them, for example: aspell, buflist,
|
||||
fifo, logger, perl, python, ruby, lua, tcl, guile, javascript,
|
||||
xfer (used for DCC).
|
||||
* Load only scripts that you really need.
|
||||
* Do not load certificates if SSL is *NOT* used: set empty string in option
|
||||
_weechat.network.gnutls_ca_file_.
|
||||
|
||||
@@ -1955,7 +1955,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
|
||||
|
||||
==== string_eval_expression
|
||||
|
||||
_WeeChat ≥ 0.4.0, updated in 0.4.2, 1.0, 1.1, 1.2 and 1.3._
|
||||
_WeeChat ≥ 0.4.0, updated in 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6 and 1.8._
|
||||
|
||||
Evaluate an expression and return result as a string.
|
||||
Special variables with format `+${variable}+` are expanded (see table below).
|
||||
@@ -1996,7 +1996,7 @@ Arguments:
|
||||
** _extra_: default behavior is to just replace extra variables (_extra_vars_),
|
||||
other behavior can be selected:
|
||||
*** _eval_: extra variables (_extra_vars_) are evaluated themselves before
|
||||
replacing
|
||||
replacing (_WeeChat ≥ 1.6_)
|
||||
** _regex_: a regex used to replace text in _expr_ (which is then not
|
||||
evaluated)
|
||||
** _regex_replace_: the replacement text to use with _regex_, to replace
|
||||
@@ -2008,6 +2008,124 @@ Return value:
|
||||
* evaluated expression (must be freed by calling "free" after use), or NULL
|
||||
if problem (invalid expression or not enough memory)
|
||||
|
||||
List of logical operators that can be used in conditions (by order of priority,
|
||||
from first used to last):
|
||||
|
||||
[width="100%",cols="2,8,4,4",options="header"]
|
||||
|===
|
||||
| Operator | Description | Examples | Results
|
||||
|
||||
| `+&&+` |
|
||||
Logical "and" |
|
||||
`+25 && 77+` +
|
||||
`+25 && 0+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+\|\|+` |
|
||||
Logical "or" |
|
||||
`+25 \|\| 0+` +
|
||||
`+0 \|\| 0+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|===
|
||||
|
||||
List of comparison operators that can be used in conditions (by order of priority,
|
||||
from first used to last):
|
||||
|
||||
[width="100%",cols="2,8,4,4",options="header"]
|
||||
|===
|
||||
| Operator | Description | Examples | Results
|
||||
|
||||
| `+=~+` |
|
||||
Is matching POSIX extended regex (optional flags are allowed, see function <<_string_regcomp,string_regcomp>>) |
|
||||
`+abc def =~ ab.*ef+` +
|
||||
`+abc def =~ y.*z+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+!~+` |
|
||||
Is NOT matching POSIX extended regex (optional flags are allowed, see function <<_string_regcomp,string_regcomp>>) |
|
||||
`+abc def !~ ab.*ef+` +
|
||||
`+abc def !~ y.*z+` |
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+=*+` +
|
||||
(_WeeChat ≥ 1.8_) |
|
||||
Is matching mask where "*" is allowed (see function <<_string_match,string_match>>) |
|
||||
`+abc def =* a*f+` +
|
||||
`+abc def =* y*z+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+!*+` +
|
||||
(_WeeChat ≥ 1.8_) |
|
||||
Is NOT wildcard mask where "*" is allowed (see function <<_string_match,string_match>>) |
|
||||
`+abc def !* a*f+` +
|
||||
`+abc def !* y*z+` |
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+==+` |
|
||||
Equal |
|
||||
`+test == test+` +
|
||||
`+test == string+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+!=+` |
|
||||
Not equal |
|
||||
`+test != test+` +
|
||||
`+test != string+` |
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+<=+` |
|
||||
Less or equal |
|
||||
`+abc <= defghi+` +
|
||||
`+abc <= abc+` +
|
||||
`+defghi <= abc+` +
|
||||
`+15 <= 2+` |
|
||||
`+1+` +
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+0+`
|
||||
|
||||
| `+<+` |
|
||||
Less |
|
||||
`+abc < defghi+` +
|
||||
`+abc < abc+` +
|
||||
`+defghi < abc+` +
|
||||
`+15 < 2+` |
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+0+` +
|
||||
`+0+`
|
||||
|
||||
| `+>=+` |
|
||||
Greater or equal |
|
||||
`+defghi >= abc+` +
|
||||
`+abc >= abc+` +
|
||||
`+abc >= defghi+` +
|
||||
`+15 >= 2+` |
|
||||
`+1+` +
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+>+` |
|
||||
Greater |
|
||||
`+defghi > abc+` +
|
||||
`+abc > abc+` +
|
||||
`+abc > defghi+` +
|
||||
`+15 > 2+` |
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|===
|
||||
|
||||
List of variables expanded in expression (by order of priority, from first
|
||||
expanded to last):
|
||||
|
||||
@@ -2028,25 +2146,62 @@ expanded to last):
|
||||
weechat.look.buffer_time_format)
|
||||
|
||||
| `+${esc:xxx}+` +
|
||||
`+${\xxx}+` |
|
||||
`+${\xxx}+` +
|
||||
(_WeeChat ≥ 1.0_) |
|
||||
String with escaped chars. |
|
||||
`+${esc:prefix\tmessage}+` +
|
||||
`+${\ua9}+` |
|
||||
`+prefix<TAB>message+` +
|
||||
`+©+`
|
||||
|
||||
| `+${hide:x,value}+` |
|
||||
String with hidden chars (all chars in `value` replaced by `x`). |
|
||||
| `+${hide:x,string}+` +
|
||||
(_WeeChat ≥ 1.1_) |
|
||||
String with hidden chars (all chars in `string` replaced by `x`). |
|
||||
`+${hide:*,password}+` |
|
||||
`+********+`
|
||||
|
||||
| `+${re:N}+` |
|
||||
Regex captured group: `0` = whole string matching, `1` to `99` = group
|
||||
captured, `+++` = last group captured. |
|
||||
`+${re:1}+` |
|
||||
`+test+`
|
||||
| `+${cut:max,suffix,string}+` +
|
||||
`+${cut:+max,suffix,string}+` +
|
||||
(_WeeChat ≥ 1.8_) |
|
||||
String with `max` chars, and optional `suffix` if string is cut. +
|
||||
With the format `+max`, the suffix is counted in max length. |
|
||||
`+${cut:4,…,this is a test}+` +
|
||||
`+${cut:+4,…,this is a test}+` +
|
||||
`+${cut:2,>>,こんにちは世界}+` |
|
||||
`+this…+` +
|
||||
`+t…+` +
|
||||
`+こん>>+`
|
||||
|
||||
| `+${color:name}+` |
|
||||
| `+${cutscr:max,suffix,string}+` +
|
||||
`+${cutscr:+max,suffix,string}+` +
|
||||
(_WeeChat ≥ 1.8_) |
|
||||
String with `max` chars displayed on screen, and optional `suffix` if string is cut. +
|
||||
With the format `+max`, the suffix is counted in max length. |
|
||||
`+${cutscr:4,…,this is a test}+` +
|
||||
`+${cutscr:+4,…,this is a test}+` +
|
||||
`+${cutscr:2,>>,こんにちは世界}+` |
|
||||
`+this…+` +
|
||||
`+thi…+` +
|
||||
`+こ>>+`
|
||||
|
||||
| `+${re:N}+` +
|
||||
(_WeeChat ≥ 1.1_) |
|
||||
Regex captured group: `0` = whole string matching, `1` to `99` = group
|
||||
captured, `+++` = last group captured,
|
||||
`#` = index of last group captured (_WeeChat ≥ 1.8_). |
|
||||
`+${re:0}+` +
|
||||
`+${re:1}+` +
|
||||
`+${re:2}+` +
|
||||
`+${re:+++}+` +
|
||||
`+${re:#}+` |
|
||||
`+test1 test2+` +
|
||||
`+test1+` +
|
||||
`+test2+` +
|
||||
`+test2+` +
|
||||
`+2+`
|
||||
|
||||
| `+${color:name}+` +
|
||||
(_WeeChat ≥ 0.4.2_) |
|
||||
WeeChat color code (the name of color has optional attributes),
|
||||
see function <<_color,color>> for supported formats. |
|
||||
`+${color:red}red text+` +
|
||||
@@ -2055,7 +2210,8 @@ expanded to last):
|
||||
`+bold orange text+` (in bold orange)
|
||||
|
||||
| `+${info:name}+` +
|
||||
`+${info:name,arguments}+` |
|
||||
`+${info:name,arguments}+` +
|
||||
(_WeeChat ≥ 0.4.3_) |
|
||||
Info from WeeChat or a plugin, see function
|
||||
<<_info_get,info_get>>. |
|
||||
`+${info:version}+` +
|
||||
@@ -2079,6 +2235,16 @@ expanded to last):
|
||||
`+${env:HOME}+` |
|
||||
`+/home/user+`
|
||||
|
||||
| `+${if:condition}+` +
|
||||
`+${if:condition?true}+`
|
||||
`+${if:condition?true:false}+`
|
||||
(_WeeChat ≥ 1.8_) |
|
||||
Ternary operator with a condition, a value if the condition is true (optional)
|
||||
and another value if the condition is false (optional). If values are not
|
||||
given, "1" or "0" are returned, according to the result of the condition. |
|
||||
`+${if:${info:term_width}>80?big:small}+` |
|
||||
`+big+`
|
||||
|
||||
| `+${sec.data.name}+` |
|
||||
Value of the secured data `name`. |
|
||||
`+${sec.data.freenode_pass}+` |
|
||||
@@ -2169,6 +2335,170 @@ options = {
|
||||
str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, options) # "password=*** password=***"
|
||||
----
|
||||
|
||||
==== string_dyn_alloc
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Allocate a dynamic string, with a variable length. +
|
||||
Internally, a structure is allocated with the string pointer, the allocated size
|
||||
and current length of string.
|
||||
|
||||
Only the pointer to string pointer (_**string_) is used in all the
|
||||
_pass:[string_dyn_*]_ functions.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **weechat_dyn_alloc (int size_alloc);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _size_alloc_: the initial allocated size (must be greater than zero)
|
||||
|
||||
Return value:
|
||||
|
||||
* pointer to the dynamic string
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== string_dyn_copy
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Copy a string in a dynamic string.
|
||||
|
||||
The pointer _*string_ can change if the string is reallocated (if there is
|
||||
not enough space to copy the string).
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_dyn_copy (char **string, const char *new_string);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _string_: pointer to dynamic string
|
||||
* _new_string_: the string to copy
|
||||
|
||||
Return value:
|
||||
|
||||
* 1 if OK, 0 if error
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
if (weechat_dyn_copy (string, "test"))
|
||||
{
|
||||
/* OK */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* error */
|
||||
}
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== string_dyn_concat
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Concatenate a string to a dynamic string.
|
||||
|
||||
The pointer _*string_ can change if the string is reallocated (if there is
|
||||
not enough space to concatenate the string).
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_dyn_concat (char **string, const char *add);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _string_: pointer to dynamic string
|
||||
* _add_: the string to add
|
||||
|
||||
Return value:
|
||||
|
||||
* 1 if OK, 0 if error
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
if (weechat_dyn_copy (string, "test"))
|
||||
{
|
||||
if (weechat_dyn_concat (string, "abc"))
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== string_dyn_free
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Free a dynamic string.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char *weechat_dyn_free (char **string, int free_string);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _string_: pointer to dynamic string
|
||||
* _free_string_: free the string itself; if 0, the content of _*string_ remains
|
||||
valid after the call to this function
|
||||
|
||||
Return value:
|
||||
|
||||
* string pointer if _free_string_ is 0, otherwise NULL
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
if (weechat_dyn_concat (string, "test"))
|
||||
{
|
||||
/* OK */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* error */
|
||||
}
|
||||
/* ... */
|
||||
weechat_dyn_free (string, 1);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
[[utf-8]]
|
||||
=== UTF-8
|
||||
|
||||
@@ -3652,6 +3982,348 @@ weechat.list_free(list)
|
||||
weechat.list_free(list)
|
||||
----
|
||||
|
||||
[[array_lists]]
|
||||
=== Array lists
|
||||
|
||||
Array list functions.
|
||||
|
||||
An array list is a list of pointers with a dynamic size and optional sort.
|
||||
|
||||
==== arraylist_new
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Create a new array list.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
struct t_arraylist *weechat_arraylist_new (int initial_size,
|
||||
int sorted,
|
||||
int allow_duplicates,
|
||||
int (*callback_cmp)(void *data,
|
||||
struct t_arraylist *arraylist,
|
||||
void *pointer1,
|
||||
void *pointer2),
|
||||
void *callback_cmp_data,
|
||||
void (*callback_free)(void *data,
|
||||
struct t_arraylist *arraylist,
|
||||
void *pointer),
|
||||
void *callback_free_data);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _initial_size_: initial size of the array list (not the number of items)
|
||||
* _sorted_: 1 to sort the array list, 0 for no sort
|
||||
* _allow_duplicates_: 1 to allow duplicate entries, 0 to prevent a same entry
|
||||
to be added again
|
||||
* _callback_cmp_: callback used to compare two items (optional), arguments and
|
||||
return value:
|
||||
** _void *data_: pointer
|
||||
** _struct t_arraylist *arraylist_: array list pointer
|
||||
** _void *pointer1_: pointer to first item
|
||||
** _void *pointer2_: pointer to second item
|
||||
** return value:
|
||||
*** negative number if first item is less than second item
|
||||
*** 0 if first item equals second item
|
||||
*** positive number if first item is greater than second item
|
||||
* _callback_cmp_data_: pointer given to callback when it is called by WeeChat
|
||||
* _callback_free_: callback used to free an item (optional), arguments:
|
||||
** _void *data_: pointer
|
||||
** _struct t_arraylist *arraylist_: array list pointer
|
||||
** _void *pointer_: pointer to item
|
||||
* _callback_free_data_: pointer given to callback when it is called by WeeChat
|
||||
|
||||
Return value:
|
||||
|
||||
* pointer to new array list
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int
|
||||
cmp_cb (void *data, struct t_arraylist *arraylist,
|
||||
void *pointer1, void *pointer2)
|
||||
{
|
||||
if (...)
|
||||
return -1;
|
||||
else if (...)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct t_arraylist *list = weechat_arraylist_new (32, 1, 1,
|
||||
&cmp_cb, NULL, NULL, NULL);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== arraylist_size
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Return size of array list (number of item pointers).
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_list_size (struct t_arraylist *arraylist);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _arraylist_: array list pointer
|
||||
|
||||
Return value:
|
||||
|
||||
* size of array list (number of items), 0 if array list is empty
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
weechat_printf (NULL, "size of array list: %d", weechat_arraylist_size (arraylist));
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== arraylist_get
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Return an item pointer by position.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void *weechat_arraylist_get (struct t_arraylist *arraylist, int index);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _arraylist_: array list pointer
|
||||
* _index_: index in list (first pointer is 0)
|
||||
|
||||
Return value:
|
||||
|
||||
* pointer found, NULL if pointer was not found
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void *pointer = weechat_arraylist_get (arraylist, 0); /* first item */
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== arraylist_search
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Search an item in an array list.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void *weechat_arraylist_search (struct t_arraylist *arraylist, void *pointer,
|
||||
int *index, int *index_insert);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _arraylist_: array list pointer
|
||||
* _pointer_: pointer to the item to search in array list
|
||||
* _index_: pointer to integer that will be set to the index found, or -1 if not found
|
||||
(optional)
|
||||
* _index_insert_: pointer to integer that will be set with the index that must be
|
||||
used to insert the element in the arraylist (to keep arraylist sorted) (optional)
|
||||
|
||||
Return value:
|
||||
|
||||
* pointer to item found, NULL if item was not found
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index, index_insert;
|
||||
void *item = weechat_arraylist_search (arraylist, pointer, &index, &index_insert);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== arraylist_insert
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Insert an item in an array list.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_insert (struct t_arraylist *arraylist, int index, void *pointer);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _arraylist_: array list pointer
|
||||
* _index_: position of the item in array list or -1 to add at the end
|
||||
(this argument is used only if the array list is not sorted, it is ignored if
|
||||
the array list is sorted)
|
||||
* _pointer_: pointer to the item to insert
|
||||
|
||||
Return value:
|
||||
|
||||
* index of new item (>= 0), -1 if error.
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index = weechat_arraylist_insert (arraylist, -1, pointer); /* insert at the end if not sorted */
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== arraylist_add
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Add an item in an array list.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_add (struct t_arraylist *arraylist, void *pointer);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _arraylist_: array list pointer
|
||||
* _pointer_: pointer to the item to add
|
||||
|
||||
Return value:
|
||||
|
||||
* index of new item (>= 0), -1 if error.
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index = weechat_arraylist_add (arraylist, pointer);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== arraylist_remove
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Remove an item from an array list.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_remove (struct t_arraylist *arraylist, int index);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _arraylist_: array list pointer
|
||||
* _index_: index of the item to remove
|
||||
|
||||
Return value:
|
||||
|
||||
* index of item removed, -1 if error.
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index_removed = weechat_arraylist_remove (arraylist, index);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== arraylist_clear
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Remove all items from an array list.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_clear (struct t_arraylist *arraylist);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _arraylist_: array list pointer
|
||||
|
||||
Return value:
|
||||
|
||||
* 1 if OK, 0 if error
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
if (weechat_arraylist_clear (arraylist))
|
||||
{
|
||||
/* OK */
|
||||
}
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== arraylist_free
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Free an array list.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void weechat_arraylist_free (struct t_arraylist *arraylist);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _arraylist_: array list pointer
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
weechat_arraylist_free (arraylist);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
[[hashtables]]
|
||||
=== Hashtables
|
||||
|
||||
@@ -5172,7 +5844,13 @@ int weechat_config_option_set (struct t_config_option *option,
|
||||
Arguments:
|
||||
|
||||
* _option_: option pointer
|
||||
* _value_: new value for option
|
||||
* _value_: new value for option, special values are possible according to the
|
||||
type of option:
|
||||
** _boolean_:
|
||||
*** `toggle`: toggle the current value
|
||||
** _integer_ or _color_:
|
||||
*** `++N`: add `N` (any integer) to the current value
|
||||
*** `--N`: subtract `N` (any integer) from the current value
|
||||
* _run_callback_: 1 for calling change callback if value of option is changed,
|
||||
otherwise 0
|
||||
|
||||
@@ -5377,6 +6055,47 @@ weechat.config_option_rename(option, new_name)
|
||||
weechat.config_option_rename(option, "new_name")
|
||||
----
|
||||
|
||||
==== config_option_get_string
|
||||
|
||||
_WeeChat ≥ 1.9._
|
||||
|
||||
Return string value of an option property.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
const char *weechat_config_option_get_string (struct t_config_option *option,
|
||||
const char *property);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _option_: option pointer
|
||||
* _property_: property name:
|
||||
** _name_: option name
|
||||
** _parent_name_: name of parent option
|
||||
** _type_: option type, one of:
|
||||
*** _boolean_
|
||||
*** _integer_
|
||||
*** _string_
|
||||
*** _color_
|
||||
** _description_: option description
|
||||
|
||||
Return value:
|
||||
|
||||
* string value of property
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
const char *type = weechat_config_option_get_string (option, "type");
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
This function is not available in scripting API.
|
||||
|
||||
==== config_option_get_pointer
|
||||
|
||||
Return a pointer on an option property.
|
||||
@@ -6574,7 +7293,7 @@ Functions for key bindings.
|
||||
|
||||
==== key_bind
|
||||
|
||||
_WeeChat ≥ 0.3.6._
|
||||
_WeeChat ≥ 0.3.6, updated in 1.8._
|
||||
|
||||
Add new key bindings.
|
||||
|
||||
@@ -6589,6 +7308,8 @@ Prototype:
|
||||
int weechat_key_bind (const char *context, struct t_hashtable *keys);
|
||||
----
|
||||
|
||||
:key_bind_quiet: __quiet
|
||||
|
||||
Arguments:
|
||||
|
||||
* _context_: context for keys:
|
||||
@@ -6596,7 +7317,9 @@ Arguments:
|
||||
** _search_: search context (when searching text in buffer)
|
||||
** _cursor_: free movement of cursor on screen
|
||||
** _mouse_: keys for mouse events
|
||||
* _keys_: hashtable with key bindings
|
||||
* _keys_: hashtable with key bindings; it can contain following special keys:
|
||||
** _{key_bind_quiet}_: do not display the keys added in core buffer
|
||||
_(WeeChat ≥ 1.8)_
|
||||
|
||||
Return value:
|
||||
|
||||
@@ -7428,17 +8151,13 @@ Arguments:
|
||||
** _const char *command_: the command executed, with its arguments
|
||||
** return value:
|
||||
*** _WEECHAT_RC_OK_
|
||||
*** _WEECHAT_RC_OK_EAT_
|
||||
*** _WEECHAT_RC_OK_EAT_: command will not be executed by WeeChat after callback
|
||||
*** _WEECHAT_RC_ERROR_
|
||||
* _callback_pointer_: pointer given to callback when it is called by WeeChat
|
||||
* _callback_data_: pointer given to callback when it is called by WeeChat;
|
||||
if not NULL, it must have been allocated with malloc (or similar function)
|
||||
and it is automatically freed when the hook is deleted
|
||||
|
||||
[NOTE]
|
||||
Callback can return _WEECHAT_RC_OK_ or _WEECHAT_RC_OK_EAT_ (command will not
|
||||
be executed by WeeChat after callback).
|
||||
|
||||
Return value:
|
||||
|
||||
* pointer to new hook, NULL if error occurred
|
||||
@@ -8498,6 +9217,11 @@ List of signals sent by WeeChat and plugins:
|
||||
String: server name. |
|
||||
Disconnected from server.
|
||||
|
||||
| irc | irc_server_lag_changed +
|
||||
_(WeeChat ≥ 1.8)_ |
|
||||
String: server name. |
|
||||
Lag changed on the server.
|
||||
|
||||
| irc | irc_ignore_removing |
|
||||
Pointer: ignore. |
|
||||
Removing ignore.
|
||||
@@ -11369,7 +12093,7 @@ weechat_buffer_set (my_buffer, "name", "my_new_name");
|
||||
weechat_buffer_set (my_buffer, "localvar_set_toto", "abc");
|
||||
|
||||
/* remove local variable "toto" */
|
||||
weechat_buffer_set (my_buffer, "localvar_del_toto", NULL);
|
||||
weechat_buffer_set (my_buffer, "localvar_del_toto", "");
|
||||
----
|
||||
|
||||
Script (Python):
|
||||
@@ -15310,6 +16034,59 @@ for key in hash:
|
||||
weechat.prnt("", " %s == %s" % (key, hash[key]))
|
||||
----
|
||||
|
||||
==== hdata_compare
|
||||
|
||||
_WeeChat ≥ 1.9._
|
||||
|
||||
Compare a hdata variable of two objects.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_hdata_compare (struct t_hdata *hdata, void *pointer1, void *pointer2, const char *name, int case_sensitive);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
|
||||
* _hdata_: hdata pointer
|
||||
* _pointer1_: pointer to first WeeChat/plugin object
|
||||
* _pointer2_: pointer to second WeeChat/plugin object
|
||||
* _name_: variable name; for arrays, the name can be "N|name" where N is
|
||||
the index in array (starting at 0), for example: "2|name"
|
||||
* _case_sensitive_: 1 for case sensitive comparison of strings, otherwise 0
|
||||
|
||||
Return value:
|
||||
|
||||
* -1 if variable1 < variable2
|
||||
* 0 if variable1 == variable2
|
||||
* 1 if variable1 > variable2
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
struct t_hdata *hdata = weechat_hdata_get ("buffer");
|
||||
struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "freenode.#weechat");
|
||||
struct t_gui_buffer *buffer2 = weechat_buffer_search ("irc", "freenode.#weechat-fr");
|
||||
weechat_printf (NULL, "number comparison = %d",
|
||||
weechat_hdata_compare (hdata, buffer1, buffer2, "number", 0));
|
||||
----
|
||||
|
||||
Script (Python):
|
||||
|
||||
[source,python]
|
||||
----
|
||||
# prototype
|
||||
rc = weechat.hdata_compare(hdata, pointer1, pointer2, name, case_sensitive)
|
||||
|
||||
# example
|
||||
hdata = weechat.hdata_get("buffer")
|
||||
buffer1 = weechat.buffer_search("irc", "freenode.#weechat")
|
||||
buffer2 = weechat.buffer_search("irc", "freenode.#weechat-fr")
|
||||
weechat.prnt("", "number comparison = %d" % weechat.hdata_compare(hdata, buffer1, buffer2, "number", 0))
|
||||
----
|
||||
|
||||
==== hdata_set
|
||||
|
||||
_WeeChat ≥ 0.3.9._
|
||||
|
||||
@@ -477,8 +477,7 @@ List of functions in script API:
|
||||
prefix +
|
||||
color +
|
||||
print (for python: prnt) +
|
||||
print_date_tags (for python:
|
||||
prnt_date_tags) +
|
||||
print_date_tags (for python: prnt_date_tags) +
|
||||
print_y (for python: prnt_y) +
|
||||
log_print
|
||||
|
||||
@@ -497,6 +496,7 @@ List of functions in script API:
|
||||
hook_hsignal_send +
|
||||
hook_config +
|
||||
hook_completion +
|
||||
hook_completion_get_string +
|
||||
hook_completion_list_add +
|
||||
hook_modifier +
|
||||
hook_modifier_exec +
|
||||
@@ -578,6 +578,7 @@ List of functions in script API:
|
||||
infolist_next +
|
||||
infolist_prev +
|
||||
infolist_reset_item_cursor +
|
||||
infolist_search_var +
|
||||
infolist_fields +
|
||||
infolist_integer +
|
||||
infolist_string +
|
||||
@@ -603,6 +604,7 @@ List of functions in script API:
|
||||
hdata_pointer +
|
||||
hdata_time +
|
||||
hdata_hashtable +
|
||||
hdata_compare +
|
||||
hdata_update +
|
||||
hdata_get_string
|
||||
|
||||
@@ -1039,12 +1041,11 @@ xxx,irc_in2_yyy::
|
||||
def join_cb(data, signal, signal_data):
|
||||
# signal is for example: "freenode,irc_in2_join"
|
||||
# signal_data is IRC message, for example: ":nick!user@host JOIN :#channel"
|
||||
nick = weechat.info_get("irc_nick_from_host", signal_data)
|
||||
server = signal.split(",")[0]
|
||||
channel = signal_data.split(":")[-1]
|
||||
buffer = weechat.info_get("irc_buffer", "%s,%s" % (server, channel))
|
||||
msg = weechat.info_get_hashtable("irc_message_parse", {"message": signal_data})
|
||||
buffer = weechat.info_get("irc_buffer", "%s,%s" % (server, msg["channel"]))
|
||||
if buffer:
|
||||
weechat.prnt(buffer, "Eheh, %s has joined this channel!" % nick)
|
||||
weechat.prnt(buffer, "%s (%s) has joined this channel!" % (msg["nick"], msg["host"]))
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
# it is useful here to use "*" as server, to catch JOIN messages on all IRC
|
||||
|
||||
+79
-22
@@ -123,8 +123,9 @@ compile WeeChat.
|
||||
[NOTE]
|
||||
^(1)^ Name comes from the Debian GNU/Linux distribution, versions and package
|
||||
names may be different in different distributions and versions. +
|
||||
^(2)^ WeeChat can compile with libncurses5-dev, but it is *NOT* recommended (you
|
||||
will have display bugs with wide chars). +
|
||||
^(2)^ It is recommended to compile with libncurses**w**5-dev (the *w* is
|
||||
important). WeeChat can compile with libncurses5-dev, but it is *NOT* recommended:
|
||||
you may experience display bugs with wide chars. +
|
||||
^(3)^ Gnutls ≥ 3.0.21 is required for IRC SASL authentication with mechanism
|
||||
ECDSA-NIST256P-CHALLENGE. +
|
||||
^(4)^ Recommended Python version is 2.7 (all scripts run fine with version 2.7,
|
||||
@@ -190,6 +191,9 @@ List of commonly used options:
|
||||
| ENABLE_ASPELL | `ON`, `OFF` | ON |
|
||||
Compile <<aspell_plugin,Aspell plugin>>.
|
||||
|
||||
| ENABLE_BUFLIST | `ON`, `OFF` | ON |
|
||||
Compile <<buflist_plugin,Buflist plugin>>.
|
||||
|
||||
| ENABLE_CHARSET | `ON`, `OFF` | ON |
|
||||
Compile <<charset_plugin,Charset plugin>>.
|
||||
|
||||
@@ -519,8 +523,10 @@ The files in home directory are:
|
||||
| plugins.conf | Plugins configuration file | Possible, depends on plugins/scripts.
|
||||
| alias.conf | Configuration file for _alias_ plugin | Possible, depends on aliases.
|
||||
| aspell.conf | Configuration file for _aspell_ plugin | No.
|
||||
| buflist.conf | Configuration file for _buflist_ plugin | No.
|
||||
| charset.conf | Configuration file for _charset_ plugin | No.
|
||||
| exec.conf | Configuration file for _exec_ plugin | No.
|
||||
| fifo.conf | Configuration file for _fifo_ plugin | No.
|
||||
| irc.conf | Configuration file for _irc_ plugin | *Yes*: it can contain passwords for servers, nickserv and channels (if not stored in `sec.conf`).
|
||||
| logger.conf | Configuration file for _logger_ plugin | No.
|
||||
| relay.conf | Configuration file for _relay_ plugin | No.
|
||||
@@ -1547,6 +1553,10 @@ with `/script install buffer_autoset.py` and get help with `/help autosetbuffer`
|
||||
| kbd:[Alt+PgDn] | Scroll down a few lines in buffer history. | `/window scroll_down`
|
||||
| kbd:[Alt+Home] | Scroll to top of buffer. | `/window scroll_top`
|
||||
| kbd:[Alt+End] | Scroll to bottom of buffer. | `/window scroll_bottom`
|
||||
| kbd:[F1] | Scroll up one page in buflist. | `/bar scroll buflist * -100%`
|
||||
| kbd:[F2] | Scroll down one page in buflist. | `/bar scroll buflist * +100%`
|
||||
| kbd:[Alt+F1] | Go to the beginning of buflist. | `/bar scroll buflist * b`
|
||||
| kbd:[Alt+F2] | Go to the end of buflist. | `/bar scroll buflist * e`
|
||||
| kbd:[Alt+←] +
|
||||
kbd:[Alt+↑] +
|
||||
kbd:[Ctrl+p] +
|
||||
@@ -1671,6 +1681,12 @@ These keys are used in context "mouse", namely when a mouse event occurs.
|
||||
| ⇓ | - | chat (script buffer) | Move 5 lines down in script buffer. | `/script down 5`
|
||||
| kbd:[Ctrl+⇑] | - | chat | Scroll horizontally to the left. | `/window scroll_horiz -window ${_window_number} -10%`
|
||||
| kbd:[Ctrl+⇓] | - | chat | Scroll horizontally to the right. | `/window scroll_horiz -window ${_window_number} +10%`
|
||||
| ◾◽◽ | up / left | buflist | Move buffer to a lower number. | Signal `buflist_mouse`.
|
||||
| ◾◽◽ | down / right | buflist | Move buffer to a higher number. | Signal `buflist_mouse`.
|
||||
| ◾◽◽ | - | buflist | Switch to buffer (previously visited buffer if the buffer is the current one). | Signal `buflist_mouse`.
|
||||
| ◽◽◾ | - | buflist | Switch to next visited buffer if the buffer is the current one. | Signal `buflist_mouse`.
|
||||
| kbd:[Ctrl+⇑] | - | buflist | Switch to previous buffer. | Signal `buflist_mouse`.
|
||||
| kbd:[Ctrl+⇓] | - | buflist | Switch to next buffer. | Signal `buflist_mouse`.
|
||||
| ◾◽◽ | up | nicklist | Scroll up one page in nicklist. | `/bar scroll nicklist ${_window_number} -100%`
|
||||
| ◾◽◽ | down | nicklist | Scroll down one page in nicklist. | `/bar scroll nicklist ${_window_number} +100%`
|
||||
| ◾◽◽ | up (long) | nicklist | Go to the beginning of nicklist. | `/bar scroll nicklist ${_window_number} b`
|
||||
@@ -1984,6 +2000,7 @@ Default plugins are:
|
||||
| Plugin | Description
|
||||
| alias | Define alias for commands.
|
||||
| aspell | Spell checking for command line.
|
||||
| buflist | Bar item with list of buffers.
|
||||
| charset | Charset decoding/encoding for buffers.
|
||||
| exec | Execution of external commands in WeeChat.
|
||||
| fifo | FIFO pipe used to remotely send commands to WeeChat.
|
||||
@@ -2034,6 +2051,7 @@ Sections:
|
||||
| check | /set aspell.check.* | Options to control spell checking.
|
||||
| dict | <<command_aspell_aspell,/aspell setdict>> +
|
||||
/set aspell.dict.* | Dictionaries used by buffer (options can be added/removed in section).
|
||||
| look | /set aspell.look.* | Look and feel.
|
||||
| option | /set aspell.option.* | <<aspell_speller_options,Speller options>> (options can be added/removed in section).
|
||||
|===
|
||||
|
||||
@@ -2090,6 +2108,33 @@ Example of suggestions with English and French dictionaries (`en,fr`):
|
||||
└─────────────────────────────────────────────────────────────────────────────────┘
|
||||
....
|
||||
|
||||
[[buflist_plugin]]
|
||||
=== Buflist plugin
|
||||
|
||||
Buflist plugin displays a list of buffers in a bar item called "buflist". +
|
||||
A default bar "buflist" is created on startup with this item.
|
||||
|
||||
[[buflist_options]]
|
||||
==== Options (buflist.conf)
|
||||
|
||||
Sections:
|
||||
|
||||
[width="100%",cols="3m,6m,16",options="header"]
|
||||
|===
|
||||
| Section | Control command | Description
|
||||
| format | /set buflist.format.* | Formats used to display list of buffers.
|
||||
| look | /set buflist.look.* | Look and feel.
|
||||
|===
|
||||
|
||||
Options:
|
||||
|
||||
include::autogen/user/buflist_options.adoc[]
|
||||
|
||||
[[buflist_commands]]
|
||||
==== Commands
|
||||
|
||||
include::autogen/user/buflist_commands.adoc[]
|
||||
|
||||
[[charset_plugin]]
|
||||
=== Charset plugin
|
||||
|
||||
@@ -2410,7 +2455,7 @@ $ openssl req -nodes -newkey rsa:2048 -keyout nick.pem -x509 -days 365 -out nick
|
||||
/msg nickserv cert add
|
||||
----
|
||||
|
||||
For more information, look at http://www.oftc.net/oftc/NickServ/CertFP
|
||||
For more information, look at https://www.oftc.net/NickServ/CertFP
|
||||
|
||||
[[irc_sasl_authentication]]
|
||||
==== SASL authentication
|
||||
@@ -2502,7 +2547,7 @@ port depend on your TOR configuration):
|
||||
Now, add a new server, for example:
|
||||
|
||||
----
|
||||
/server add freenode-tor p4fsi4ockecnea7l.onion
|
||||
/server add freenode-tor freenodeok2gncmy.onion
|
||||
----
|
||||
|
||||
Set proxy for TOR:
|
||||
@@ -2511,11 +2556,14 @@ Set proxy for TOR:
|
||||
/set irc.server.freenode-tor.proxy "tor"
|
||||
----
|
||||
|
||||
Set SASL authentication:
|
||||
Set SASL authentication with ECDSA-NIST256P-CHALLENGE (see the chapter
|
||||
<<irc_sasl_ecdsa_nist256p_challenge,SASL ECDSA-NIST256P-CHALLENGE>> to generate
|
||||
a private key):
|
||||
|
||||
----
|
||||
/set irc.server.freenode-tor.sasl_mechanism ecdsa-nist256p-challenge
|
||||
/set irc.server.freenode-tor.sasl_username "your_nickname"
|
||||
/set irc.server.freenode-tor.sasl_password "your_password"
|
||||
/set irc.server.freenode-tor.sasl_key "%h/ecdsa.pem"
|
||||
----
|
||||
|
||||
And finally, connection to server:
|
||||
@@ -2524,7 +2572,8 @@ And finally, connection to server:
|
||||
/connect freenode-tor
|
||||
----
|
||||
|
||||
For more info about Freenode and TOR: http://freenode.net/irc_servers.shtml#tor
|
||||
For more info about Freenode and TOR:
|
||||
http://freenode.net/kb/answer/chat#accessing-freenode-via-tor
|
||||
|
||||
[[irc_smart_filter_join_part_quit]]
|
||||
==== Smart filter for join/part/quit messages
|
||||
@@ -2928,7 +2977,12 @@ The Relay plugin is used to relay data via network, using different protocols:
|
||||
* _irc_: IRC proxy: used to share connections to IRC servers with one or many
|
||||
other IRC clients
|
||||
* _weechat_: protocol used by remote interfaces to display and interact with
|
||||
WeeChat (for example QWeeChat or weechat-android)
|
||||
WeeChat, for example:
|
||||
** Glowing Bear (HTML5): https://www.glowing-bear.org/
|
||||
** QWeeChat (Qt): https://weechat.org/download
|
||||
** WeeChat-Android (Android): https://github.com/ubergeek42/weechat-android
|
||||
** weechat.el (Emacs): https://github.com/the-kenny/weechat.el
|
||||
** WeeCloud (Javascript): https://github.com/eirikb/weecloud
|
||||
|
||||
[[relay_options]]
|
||||
==== Options (relay.conf)
|
||||
@@ -3435,20 +3489,22 @@ is added in hashtable:
|
||||
|
||||
[width="100%",cols="3m,2,14",options="header"]
|
||||
|===
|
||||
| Variable | Type | Description
|
||||
| server | string | Name of server (example: "freenode").
|
||||
| tags | string | Tags in message (rarely used).
|
||||
| message_without_tags | string | Message without tags.
|
||||
| nick | string | Nick.
|
||||
| host | string | Hostname.
|
||||
| command | string | IRC command (example: "PRIVMSG", "NOTICE", ...).
|
||||
| channel | string | IRC channel.
|
||||
| arguments | string | Arguments of command (includes value of _channel_).
|
||||
| text | string | Text (for example user message).
|
||||
| pos_command | string | The index of _command_ in message ("-1" if _command_ was not found).
|
||||
| pos_arguments | string | The index of _arguments_ in message ("-1" if _arguments_ was not found).
|
||||
| pos_channel | string | The index of _channel_ in message ("-1" if _channel_ was not found).
|
||||
| pos_text | string | The index of _text_ in message ("-1" if _text_ was not found).
|
||||
| Variable | Type | Description
|
||||
| irc_server | pointer | Pointer to IRC server (variables in hdata of type "irc_server" can be used, like `${irc_server.name}`).
|
||||
| irc_channel | pointer | Pointer to IRC channel (variables in hdata of type "irc_channel" can be used, like `${irc_channel.name}`).
|
||||
| server | string | Name of server (example: "freenode").
|
||||
| tags | string | Tags in message (rarely used).
|
||||
| message_without_tags | string | Message without tags.
|
||||
| nick | string | Nick.
|
||||
| host | string | Hostname.
|
||||
| command | string | IRC command (example: "PRIVMSG", "NOTICE", ...).
|
||||
| channel | string | IRC channel.
|
||||
| arguments | string | Arguments of command (includes value of _channel_).
|
||||
| text | string | Text (for example user message).
|
||||
| pos_command | string | The index of _command_ in message ("-1" if _command_ was not found).
|
||||
| pos_arguments | string | The index of _arguments_ in message ("-1" if _arguments_ was not found).
|
||||
| pos_channel | string | The index of _channel_ in message ("-1" if _channel_ was not found).
|
||||
| pos_text | string | The index of _text_ in message ("-1" if _text_ was not found).
|
||||
|===
|
||||
|
||||
When the data is a pointer, the variable `tg_signal_data` can be used like this
|
||||
@@ -3712,5 +3768,6 @@ For support with IRC, on server _chat.freenode.net_:
|
||||
** _#weechat-fr_ (French)
|
||||
* non-official channels:
|
||||
** _#weechat-de_ (German)
|
||||
** _#weechat-fi_ (Finnish)
|
||||
|
||||
For other ways of support, see: https://weechat.org/dev/support
|
||||
|
||||
@@ -168,6 +168,7 @@ _options_ (pointer) +
|
||||
_temp_server_ (integer) +
|
||||
_reloading_from_config_ (integer) +
|
||||
_reloaded_from_config_ (integer) +
|
||||
_addresses_eval_ (string) +
|
||||
_addresses_count_ (integer) +
|
||||
_addresses_array_ (string, array_size: "addresses_count") +
|
||||
_ports_array_ (integer, array_size: "addresses_count") +
|
||||
@@ -456,6 +457,9 @@ _gui_objects_ (pointer) +
|
||||
_prev_bar_window_ (pointer, hdata: "bar_window") +
|
||||
_next_bar_window_ (pointer, hdata: "bar_window") +
|
||||
|
||||
*Mise à jour autorisée :* +
|
||||
_scroll_x_ (integer) +
|
||||
_scroll_y_ (integer) +
|
||||
|
||||
| weechat
|
||||
| [[hdata_buffer]]<<hdata_buffer,buffer>>
|
||||
@@ -541,6 +545,7 @@ _highlight_tags_restrict_array_ (pointer, array_size: "highlight_tags_restric
|
||||
_highlight_tags_ (string) +
|
||||
_highlight_tags_count_ (integer) +
|
||||
_highlight_tags_array_ (pointer, array_size: "highlight_tags_count") +
|
||||
_hotlist_ (pointer, hdata: "hotlist") +
|
||||
_hotlist_max_level_nicks_ (hashtable) +
|
||||
_keys_ (pointer, hdata: "key") +
|
||||
_last_key_ (pointer, hdata: "key") +
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
. charset (13000)
|
||||
. logger (12000)
|
||||
. exec (11000)
|
||||
. trigger (10000)
|
||||
. aspell (9000)
|
||||
. alias (8000)
|
||||
. charset (14000)
|
||||
. logger (13000)
|
||||
. exec (12000)
|
||||
. trigger (11000)
|
||||
. aspell (10000)
|
||||
. alias (9000)
|
||||
. buflist (8000)
|
||||
. fifo (7000)
|
||||
. xfer (6000)
|
||||
. irc (5000)
|
||||
|
||||
@@ -18,19 +18,23 @@
|
||||
|
||||
| failonerror | long |
|
||||
|
||||
| keep_sending_on_error | long |
|
||||
|
||||
| proxy | string |
|
||||
|
||||
| proxyport | long |
|
||||
|
||||
| port | long |
|
||||
|
||||
| pre_proxy | string |
|
||||
|
||||
| httpproxytunnel | long |
|
||||
|
||||
| interface | string |
|
||||
|
||||
| dns_cache_timeout | long |
|
||||
|
||||
| proxytype | long | http, socks4, socks5, socks4a, socks5_hostname, http_1_0
|
||||
| proxytype | long | http, socks4, socks5, socks4a, socks5_hostname, http_1_0, https
|
||||
|
||||
| buffersize | long |
|
||||
|
||||
@@ -278,7 +282,7 @@
|
||||
|
||||
| sslcert | string |
|
||||
|
||||
| sslversion | long | default, tlsv1, sslv2, sslv3
|
||||
| sslversion | long | default, tlsv1, sslv2, sslv3, tlsv1_0, tlsv1_1, tlsv1_2, tlsv1_3
|
||||
|
||||
| ssl_verifypeer | long |
|
||||
|
||||
@@ -330,6 +334,38 @@
|
||||
|
||||
| ssl_falsestart | long |
|
||||
|
||||
| proxy_cainfo | string |
|
||||
|
||||
| proxy_capath | string |
|
||||
|
||||
| proxy_crlfile | string |
|
||||
|
||||
| proxy_keypasswd | string |
|
||||
|
||||
| proxy_pinnedpublickey | string |
|
||||
|
||||
| proxy_sslcert | string |
|
||||
|
||||
| proxy_sslcerttype | string |
|
||||
|
||||
| proxy_sslkey | string |
|
||||
|
||||
| proxy_sslkeytype | string |
|
||||
|
||||
| proxy_sslversion | long | default, tlsv1, sslv2, sslv3, tlsv1_0, tlsv1_1, tlsv1_2, tlsv1_3
|
||||
|
||||
| proxy_ssl_options | long | allow_beast, no_revoke
|
||||
|
||||
| proxy_ssl_verifyhost | long |
|
||||
|
||||
| proxy_ssl_verifypeer | long |
|
||||
|
||||
| proxy_tlsauth_password | string |
|
||||
|
||||
| proxy_tlsauth_type | string |
|
||||
|
||||
| proxy_tlsauth_username | string |
|
||||
|
||||
| ssh_auth_types | mask | none, policy_flag, flag
|
||||
|
||||
| ssh_public_keyfile | string |
|
||||
|
||||
@@ -50,8 +50,32 @@
|
||||
** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias ; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné
|
||||
** valeur par défaut: `+lightred+`
|
||||
|
||||
* [[option_aspell.color.suggestions]] *aspell.color.suggestions*
|
||||
** description: pass:none[couleur du texte pour les suggestions sur un mot mal orthographié (barre de statut)]
|
||||
* [[option_aspell.color.suggestion]] *aspell.color.suggestion*
|
||||
** description: pass:none[couleur du texte pour la suggestion sur un mot mal orthographié dans l'objet de barre "aspell_suggest"]
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias ; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné
|
||||
** valeur par défaut: `+default+`
|
||||
|
||||
* [[option_aspell.color.suggestion_delimiter_dict]] *aspell.color.suggestion_delimiter_dict*
|
||||
** description: pass:none[couleur du texte pour les séparateurs affichés entre deux dictionnaires dans l'objet de barre "aspell_suggest"]
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias ; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné
|
||||
** valeur par défaut: `+cyan+`
|
||||
|
||||
* [[option_aspell.color.suggestion_delimiter_word]] *aspell.color.suggestion_delimiter_word*
|
||||
** description: pass:none[couleur du texte pour les séparateurs affichés entre deux mots dans l'objet de barre "aspell_suggest"]
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numéro de couleur du terminal ou un alias ; des attributs sont autorisés avant la couleur (seulement pour la couleur du texte, pas le fond) : "*" pour le gras, "!" pour la vidéo inverse, "/" pour l'italique, "_" pour le souligné
|
||||
** valeur par défaut: `+cyan+`
|
||||
|
||||
* [[option_aspell.look.suggestion_delimiter_dict]] *aspell.look.suggestion_delimiter_dict*
|
||||
** description: pass:none[séparateur affiché entre deux dictionnaires dans l'objet de barre "aspell_suggest"]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+" / "+`
|
||||
|
||||
* [[option_aspell.look.suggestion_delimiter_word]] *aspell.look.suggestion_delimiter_word*
|
||||
** description: pass:none[séparateur affiché entre deux mots dans l'objet de barre "aspell_suggest"]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+","+`
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
[[command_buflist_buflist]]
|
||||
* `+buflist+`: objet de barre avec la liste des tampons
|
||||
|
||||
----
|
||||
/buflist bar
|
||||
refresh
|
||||
|
||||
bar : ajouter la barre "buflist"
|
||||
refresh : forcer le rafraichissement de l'objet de barre "buflist"
|
||||
|
||||
Les lignes avec les tampons sont affichées en utilisant l'évaluation de chaînes (voir /help eval pour le format), avec ces options :
|
||||
- buflist.look.display_conditions : conditions pour afficher un tampon dans la liste
|
||||
- buflist.format.buffer : format pour un tampon qui n'est pas le tampon courant
|
||||
- buflist.format.buffer_current: format pour le tampon courant
|
||||
|
||||
Les variables suivantes peuvent être utilisées dans ces options :
|
||||
- données du tampon (voir le hdata "buffer" dans la doc API pour une liste complète), par exemple :
|
||||
- ${buffer.number}
|
||||
- ${buffer.name}
|
||||
- ${buffer.full_name}
|
||||
- ${buffer.short_name}
|
||||
- ${buffer.nicklist_nicks_count}
|
||||
- irc_server: données du serveur IRC, défini seulement sur un tampon IRC (voir le hdata "irc_server" dans la doc API)
|
||||
- irc_channel: données du canal IRC, défini seulement sur un tampon de canal IRC (voir le hdata "irc_channel" dans la doc API)
|
||||
- variables additionnelles ajoutées par buflist pour des raisons pratiques :
|
||||
- ${format_buffer} : la valeur évaluée de l'option buflist.format.buffer ; peut être utilisée dans l'option buflist.format.buffer_current pour juste changer la couleur de fond par exemple
|
||||
- ${current_buffer} : un booléen ("0" ou "1"), "1" s'il s'agit du tampon courant ; cela peut être utilisé dans une condition : ${if:${current_buffer}?...:...}
|
||||
- ${merged} : un booléen ("0" ou "1"), "1" si le tampon est mélangé avec au moins un autre tampon ; cela peut être utilisé dans une condition : ${if:${merged}?...:...}
|
||||
- ${format_number} : numéro indenté avec un séparateur (évaluation de l'option buflist.format.number)
|
||||
- ${number} : numéro indenté, par exemple " 1" s'il y a entre 10 et 99 tampons
|
||||
- ${number_displayed} : "1" si le numéro est affiché, sinon "0"
|
||||
- ${indent} : indentation pour le nom (les tampons de canaux ou privés sont indentés) (évaluation de l'option buflist.format.indent)
|
||||
- ${format_nick_prefix} : le préfixe du pseudo en couleur pour un canal (évaluation de l'option buflist.format.nick_prefix)
|
||||
- ${color_nick_prefix} : la couleur du préfixe du pseudo pour un canal (défini seulement si l'option buflist.look.nick_prefix est activée)
|
||||
- ${nick_prefix} : le préfixe du pseudo pour un canal (défini seulement si l'option buflist.look.nick_prefix est activée)
|
||||
- ${format_name} : le nom formaté (évaluation de l'option buflist.format.name)
|
||||
- ${name} : le nom court (si défini), sinon le nom
|
||||
- ${color_hotlist} : la couleur qui dépend du niveau de hotlist le plus élevé pour le tampon (évaluation de l'option buflist.format.hotlist_xxx où xxx est le niveau)
|
||||
- ${format_hotlist} : la hotlist formatée (évaluation de l'option buflist.format.hotlist)
|
||||
- ${hotlist} : la hotlist brute
|
||||
- ${hotlist_priority} : "none", "low", "message", "private" ou "highlight"
|
||||
- ${format_lag} : le lag pour un tampon de serveur IRC, vide s'il n'y a pas de lag (évaluation de l'option buflist.format.lag)
|
||||
----
|
||||
@@ -0,0 +1,147 @@
|
||||
//
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
* [[option_buflist.format.buffer]] *buflist.format.buffer*
|
||||
** description: pass:none[format pour chaque ligne avec un tampon (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${format_name}"+`
|
||||
|
||||
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
|
||||
** description: pass:none[format pour la ligne avec le tampon courant (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${color:,blue}${format_buffer}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
|
||||
** description: pass:none[format pour la hotlist (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+" ${color:green}(${hotlist}${color:green})"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
|
||||
** description: pass:none[format pour un tampon avec la hotlist de niveau "highlight" (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${color:magenta}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
|
||||
** description: pass:none[format pour un tampon avec la hotlist de niveau "low" (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${color:white}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
|
||||
** description: pass:none[format pour un tampon avec la hotlist de niveau "message" (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${color:brown}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
|
||||
** description: pass:none[format pour un tampon qui n'est pas dans la hotlist (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${color:default}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
|
||||
** description: pass:none[format pour un tampon avec la hotlist de niveau "private" (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${color:green}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
|
||||
** description: pass:none[séparateur pour les compteurs dans la hotlist (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${color:default},"+`
|
||||
|
||||
* [[option_buflist.format.indent]] *buflist.format.indent*
|
||||
** description: pass:none[chaîne affichée pour indenter un tampon de canal ou privé (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+" "+`
|
||||
|
||||
* [[option_buflist.format.lag]] *buflist.format.lag*
|
||||
** description: pass:none[format pour le lag sur un tampon de serveur IRC (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
|
||||
|
||||
* [[option_buflist.format.name]] *buflist.format.name*
|
||||
** description: pass:none[format pour le nom du tampon (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${name}"+`
|
||||
|
||||
* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix*
|
||||
** description: pass:none[format pour un préfixe de pseudo sur un canal (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${color_nick_prefix}${nick_prefix}"+`
|
||||
|
||||
* [[option_buflist.format.number]] *buflist.format.number*
|
||||
** description: pass:none[format pour un numéro de tampon, ${number} est le numéro indenté (note : le contenu est évalué, voir /help buflist)]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${color:green}${number}${if:${number_displayed}?.: }"+`
|
||||
|
||||
* [[option_buflist.look.auto_scroll]] *buflist.look.auto_scroll*
|
||||
** description: pass:none[faire défiler automatiquement la barre buflist pour toujours voir le tampon courant (cela fonctionne seulement avec une barre en position gauche/droite avec un remplissage "vertical") ; cette valeur est un pourcentage de lignes affichées avant le tampon courant lors du défilement (-1 = désactiver le défilement) ; par exemple 50 signifie qu'après un défilement, le tampon courant est au milieu de la barre, 0 signifie en haut de la barre et 100 signifie en bas de la barre]
|
||||
** type: entier
|
||||
** valeurs: -1 .. 100
|
||||
** valeur par défaut: `+50+`
|
||||
|
||||
* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions*
|
||||
** description: pass:none[conditions pour afficher un tampon (note : le contenu est évalué, voir /help buflist) ; par exemple pour cacher les tampons de serveurs s'ils sont fusionnés avec le tampon "core" : "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"${buffer.hidden}==0"+`
|
||||
|
||||
* [[option_buflist.look.enabled]] *buflist.look.enabled*
|
||||
** description: pass:none[activer buflist]
|
||||
** type: booléen
|
||||
** valeurs: on, off
|
||||
** valeur par défaut: `+on+`
|
||||
|
||||
* [[option_buflist.look.mouse_jump_visited_buffer]] *buflist.look.mouse_jump_visited_buffer*
|
||||
** description: pass:none[si activé, les clics avec les boutons gauche/droit sur la ligne avec le tampon courant sautent au tampon visité avant/après]
|
||||
** type: booléen
|
||||
** valeurs: on, off
|
||||
** valeur par défaut: `+off+`
|
||||
|
||||
* [[option_buflist.look.mouse_move_buffer]] *buflist.look.mouse_move_buffer*
|
||||
** description: pass:none[si activé, les gestes de souris (glisser/déposer) déplacent les tampons dans la liste]
|
||||
** type: booléen
|
||||
** valeurs: on, off
|
||||
** valeur par défaut: `+on+`
|
||||
|
||||
* [[option_buflist.look.mouse_wheel]] *buflist.look.mouse_wheel*
|
||||
** description: pass:none[si activé, les actions de roulette de souris haut/bas sautent au tampon précédent/suivant dans la liste]
|
||||
** type: booléen
|
||||
** valeurs: on, off
|
||||
** valeur par défaut: `+on+`
|
||||
|
||||
* [[option_buflist.look.nick_prefix]] *buflist.look.nick_prefix*
|
||||
** description: pass:none[obtenir le préfixe du pseudo et sa couleur depuis la liste de pseudos de telle sorte que ${nick_prefix} puisse être utilisé dans le format ; cela peut être lent sur les tampons avec beaucoup de pseudos dans la liste, donc cette option est désactivée par défaut]
|
||||
** type: booléen
|
||||
** valeurs: on, off
|
||||
** valeur par défaut: `+off+`
|
||||
|
||||
* [[option_buflist.look.nick_prefix_empty]] *buflist.look.nick_prefix_empty*
|
||||
** description: pass:none[lorsque le préfixe de pseudo est activé, afficher un espace à la place s'il n'y a pas de préfixe de pseudo sur le tampon]
|
||||
** type: booléen
|
||||
** valeurs: on, off
|
||||
** valeur par défaut: `+on+`
|
||||
|
||||
* [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh*
|
||||
** description: pass:none[liste de signaux séparés par des virgules qui sont accrochés et déclenchent l'affichage de la liste des tampons ; cela peut être utile si certaines variables personnalisées sont utilisées dans les formats et nécessitent un rafraîchissement particulier]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+""+`
|
||||
|
||||
* [[option_buflist.look.sort]] *buflist.look.sort*
|
||||
** description: pass:none[liste de champs séparés par des virgules pour trier les tampons ; chaque champ est une variable hdata du tampon ("var"), une variable hdata du serveur IRC ("irc_server.var") ou une variable hdata du canal IRC ("irc_channel.var") ; le caractère "-" peut être utilisé pour inverser l'ordre, le caractère "~" peut être utilisé pour effectuer une comparaison insensible à la casse ; exemple : "-~short_name" pour un tri inverse insensible à la casse sur le nom court du tampon]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"number,-active"+`
|
||||
@@ -16,9 +16,11 @@ cible : nom du serveur
|
||||
|
||||
----
|
||||
/allchan [-current] [-exclude=<canal>[,<canal>...]] <commande> [<paramètres>]
|
||||
[-current] [-include=<canal>[,<canal>...]] <commande> [<paramètres>]
|
||||
|
||||
-current : exécuter la commande pour les canaux du serveur courant seulement
|
||||
-exclude : exclure certains canaux (le caractère joker "*" est autorisé)
|
||||
-include : inclure seulement certains canaux (le caractère joker "*" est autorisé)
|
||||
commande : commande à exécuter
|
||||
paramètres : paramètres pour la commande (les variables spéciales $nick, $channel et $server sont remplacées par leur valeur)
|
||||
|
||||
@@ -29,6 +31,8 @@ Exemples :
|
||||
/allchan -exclude=#weechat msg * bonjour
|
||||
dire 'bonjour' partout sauf sur #weechat et les canaux commençant par #linux :
|
||||
/allchan -exclude=#weechat,#linux* msg * bonjour
|
||||
dire 'bonjour' sur tous les canaux commençant par #linux :
|
||||
/allchan -include=#linux* msg * bonjour
|
||||
----
|
||||
|
||||
[[command_irc_allpv]]
|
||||
@@ -36,9 +40,11 @@ Exemples :
|
||||
|
||||
----
|
||||
/allpv [-current] [-exclude=<pseudo>[,<pseudo>...]] <commande> [<paramètres>]
|
||||
[-current] [-include=<pseudo>[,<pseudo>...]] <commande> [<paramètres>]
|
||||
|
||||
-current : exécuter la commande pour les tampons privés du serveur courant seulement
|
||||
-exclude : exclure certains pseudos (le caractère joker "*" est autorisé)
|
||||
-include : inclure seulement certains pseudos (le caractère joker "*" est autorisé)
|
||||
commande : commande à exécuter
|
||||
paramètres : paramètres pour la commande (les variables spéciales $nick, $channel et $server sont remplacées par leur valeur)
|
||||
|
||||
@@ -49,6 +55,8 @@ Exemples :
|
||||
/allpv -exclude=foo msg * bonjour
|
||||
dire 'bonjour' partout sauf pour le pseudo foo et les pseudos commençant par bar :
|
||||
/allpv -exclude=foo,bar* msg * bonjour
|
||||
dire 'bonjour' pour tous les pseudos commençant par bar :
|
||||
/allpv -include=bar* msg * bonjour
|
||||
fermer tous les tampons privés :
|
||||
/allpv close
|
||||
----
|
||||
@@ -58,8 +66,10 @@ Exemples :
|
||||
|
||||
----
|
||||
/allserv [-exclude=<serveur>[,<serveur>...]] <commande> [<paramètres>]
|
||||
[-include=<serveur>[,<serveur>...]] <commande> [<paramètres>]
|
||||
|
||||
-exclude : exclude certains serveurs (le caractère joker "*" est autorisé)
|
||||
-exclude : exclure certains serveurs (le caractère joker "*" est autorisé)
|
||||
-include : inclure seulement certains serveurs (le caractère joker "*" est autorisé)
|
||||
commande : commande à exécuter
|
||||
paramètres : paramètres pour la commande (les variables spéciales $nick, $channel et $server sont remplacées par leur valeur)
|
||||
|
||||
@@ -713,6 +723,7 @@ raison : raison
|
||||
add <serveur> <nom>[/<port>] [-temp] [-<option>[=<valeur>]] [-no<option>]
|
||||
copy|rename <serveur> <nouveau_nom>
|
||||
reorder <serveur> [<serveur>...]
|
||||
open <serveur>|-all [<serveur>...]
|
||||
del|keep <serveur>
|
||||
deloutq|jump|raw
|
||||
|
||||
@@ -727,6 +738,7 @@ nooption : définir l'option booléenne à 'off' (par exemple : -nossl)
|
||||
copy : dupliquer un serveur
|
||||
rename : renommer un serveur
|
||||
reorder : réordonner la liste des serveurs
|
||||
open : ouvrir le tampon du serveur sans s'y connecter
|
||||
keep : garder le serveur dans le fichier de configuration (pour les serveurs temporaires seulement)
|
||||
del : supprimer un serveur
|
||||
deloutq : supprimer la file d'attente des messages sortants pour tous les serveurs (tous les messages que WeeChat est actuellement en train d'envoyer)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
----
|
||||
/relay list|listfull|listrelay
|
||||
add <nom> <port>
|
||||
del|stop|restart <nom>
|
||||
del|start|restart|stop <nom>
|
||||
raw
|
||||
sslcertkey
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
listrelay : lister les relais (nom et port)
|
||||
add : ajouter un relai (écouter sur un port)
|
||||
del : supprimer un relai (les clients restent connectés)
|
||||
stop : fermer le socket serveur (les clients restent connectés)
|
||||
start : écouter sur le port
|
||||
restart : fermer le socket serveur et écouter à nouveau sur le port (les clients restent connectés)
|
||||
stop : fermer le socket serveur (les clients restent connectés)
|
||||
nom : nom du relai (voir le format ci-dessous)
|
||||
port : port utilisé pour le relai
|
||||
raw : ouvrir le tampon avec les données brutes Relay
|
||||
|
||||
@@ -237,13 +237,7 @@
|
||||
** valeur par défaut: `+"%h/script"+`
|
||||
|
||||
* [[option_script.scripts.url]] *script.scripts.url*
|
||||
** description: pass:none[URL pour le fichier avec la liste des scripts ; par défaut HTTPS est forcé, voir l'option script.scripts.url_force_https]
|
||||
** description: pass:none[URL pour le fichier avec la liste des scripts]
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne
|
||||
** valeur par défaut: `+"http://weechat.org/files/plugins.xml.gz"+`
|
||||
|
||||
* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https*
|
||||
** description: pass:none[forcer l'utilisation de HTTPS pour les téléchargements (index et scripts) ; vous ne devriez désactiver cette option que si vous avez des problèmes avec les téléchargements]
|
||||
** type: booléen
|
||||
** valeurs: on, off
|
||||
** valeur par défaut: `+on+`
|
||||
** valeur par défaut: `+"https://weechat.org/files/plugins.xml.gz"+`
|
||||
|
||||
@@ -44,7 +44,7 @@ message : message pour l'absence (si pas de message donné, le statut d'absence
|
||||
default : créer une barre par défaut (toutes les barres par défaut si aucun nom de barre n'est donné)
|
||||
del : supprimer une barre (ou toutes les barres avec -all)
|
||||
set : changer la valeur d'une propriété de la barre
|
||||
option : option à modifier (pour la liste des options, voir /set weechat.bar.<nombarre>.*
|
||||
option : option à modifier (pour la liste des options, voir /set weechat.bar.<nombarre>.*)
|
||||
valeur : nouvelle valeur pour l'option
|
||||
hide : cacher la barre
|
||||
show : montrer une barre cachée
|
||||
@@ -274,6 +274,8 @@ expression : expression à évaluer, les variables avec le format ${variable} s
|
||||
> supérieur
|
||||
=~ correspond à l'expression régulière POSIX étendue
|
||||
!~ ne correspond PAS à l'expression régulière POSIX étendue
|
||||
=* correspond au masque (le caractère joker "*" est autorisé)
|
||||
!= ne correspond PAS au masque (le caractère joker "*" est autorisé)
|
||||
|
||||
Une expression est considérée comme "vraie" si elle est non NULL, non vide, et différente de "0".
|
||||
La comparaison est faite en utilisant des entiers si les deux expressions sont des entiers valides.
|
||||
@@ -285,13 +287,16 @@ Des variables sont remplacées dans l'expression, en utilisant le format ${varia
|
||||
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")
|
||||
3. une chaîne avec des caractères à cacher (format : "hide:caractère,chaîne")
|
||||
4. une couleur (format : "color:xxx")
|
||||
5. une info (format : "info:nom,paramètres", les paramètres sont optionnels)
|
||||
6. la date/heure courante (format : "date" ou "date:format")
|
||||
7. une variable d'environnement (format : "env:XXX")
|
||||
8. une option (format : "fichier.section.option")
|
||||
9. une variable locale du tampon
|
||||
10. 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.
|
||||
4. 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")
|
||||
5. une couleur (format : "color:xxx", voir la "Référence API extension", fonction "color")
|
||||
6. une info (format : "info:nom,paramètres", les paramètres sont optionnels)
|
||||
7. la date/heure courante (format : "date" ou "date:format")
|
||||
8. une variable d'environnement (format : "env:XXX")
|
||||
9. un opérateur ternaire (format : "if:condition?valeur_si_vrai:valeur_si_faux")
|
||||
10. une option (format : "fichier.section.option")
|
||||
11. une variable locale du tampon
|
||||
12. 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 :
|
||||
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 :
|
||||
@@ -302,16 +307,19 @@ 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".
|
||||
|
||||
Exemples (chaînes simples) :
|
||||
/eval -n ${info:version} ==> 0.4.3
|
||||
/eval -n ${env:HOME} ==> /home/user
|
||||
/eval -n ${weechat.look.scroll_amount} ==> 3
|
||||
/eval -n ${window} ==> 0x2549aa0
|
||||
/eval -n ${window.buffer} ==> 0x2549320
|
||||
/eval -n ${window.buffer.full_name} ==> core.weechat
|
||||
/eval -n ${window.buffer.number} ==> 1
|
||||
/eval -n ${\t} ==> <tab>
|
||||
/eval -n ${hide:-,${relay.network.password}} ==> --------
|
||||
/eval -n ${date:%H:%M:%S} ==> 07:46:40
|
||||
/eval -n ${info:version} ==> 0.4.3
|
||||
/eval -n ${env:HOME} ==> /home/user
|
||||
/eval -n ${weechat.look.scroll_amount} ==> 3
|
||||
/eval -n ${window} ==> 0x2549aa0
|
||||
/eval -n ${window.buffer} ==> 0x2549320
|
||||
/eval -n ${window.buffer.full_name} ==> core.weechat
|
||||
/eval -n ${window.buffer.number} ==> 1
|
||||
/eval -n ${\t} ==> <tab>
|
||||
/eval -n ${hide:-,${relay.network.password}} ==> --------
|
||||
/eval -n ${cut:3,+,test} ==> tes+
|
||||
/eval -n ${cut:+3,+,test} ==> te+
|
||||
/eval -n ${date:%H:%M:%S} ==> 07:46:40
|
||||
/eval -n ${if:${info:term_width}>80?big:small} ==> big
|
||||
|
||||
Exemples (conditions) :
|
||||
/eval -n -c ${window.buffer.number} > 2 ==> 0
|
||||
@@ -322,6 +330,7 @@ Exemples (conditions) :
|
||||
/eval -n -c abcd =~ (?-i)^ABC ==> 0
|
||||
/eval -n -c abcd =~ (?-i)^abc ==> 1
|
||||
/eval -n -c abcd !~ abc ==> 0
|
||||
/eval -n -c abcd =* a*d ==> 1
|
||||
----
|
||||
|
||||
[[command_weechat_filter]]
|
||||
@@ -939,13 +948,13 @@ Exemples :
|
||||
-1|+1|b#|up|down|left|right [-window <numéro>]
|
||||
<numéro>
|
||||
splith|splitv [-window <numéro>] [<pct>]
|
||||
resize [-window <numéro>] [+/-]<pct>
|
||||
resize [-window <numéro>] [h|v][+|-]<pct>
|
||||
balance
|
||||
merge [-window <numéro>] [all]
|
||||
page_up|page_down [-window <numéro>]
|
||||
refresh
|
||||
scroll [-window <numéro>] [+/-]<valeur>[s|m|h|d|M|y]
|
||||
scroll_horiz [-window <numéro>] [+/-]<valeur>[%]
|
||||
scroll [-window <numéro>] [+|-]<valeur>[s|m|h|d|M|y]
|
||||
scroll_horiz [-window <numéro>] [+|-]<valeur>[%]
|
||||
scroll_up|scroll_down|scroll_top|scroll_bottom|scroll_beyond_end|scroll_previous_highlight|scroll_next_highlight|scroll_unread [-window <numéro>]
|
||||
swap [-window <numéro>] [up|down|left|right]
|
||||
zoom [-window <numéro>]
|
||||
@@ -962,7 +971,8 @@ Exemples :
|
||||
numéro : numéro de fenêtre (voir /window list)
|
||||
splith : éclater la fenêtre en deux horizontalement (pour défaire : /window merge)
|
||||
splitv : éclater la fenêtre en deux verticalement (pour défaire : /window merge)
|
||||
resize : redimensionner une fenêtre, la nouvelle taille est <pct> pourcentage de la fenêtre parent
|
||||
resize : redimensionner une fenêtre, la nouvelle taille est <pct> pourcentage de la fenêtre parente
|
||||
si "h" ou "v" est spécifié, le redimensionnement affecte la fenêtre parente la plus proche avec un découpage de ce type (horizontal/vertical)
|
||||
balance : équilibrer la taille de toutes les fenêtres
|
||||
merge : fusionner la fenêtre avec une autre
|
||||
page_up : faire défiler d'une page vers le haut
|
||||
@@ -995,8 +1005,12 @@ Exemples :
|
||||
/window scroll -d
|
||||
zoom sur la fenêtre numéro 2 :
|
||||
/window zoom -window 2
|
||||
éclater la fenêtre horizontalement en utilisant 30%% de l'espace pour la fenêtre du haut :
|
||||
éclater la fenêtre horizontalement en utilisant 30% de l'espace pour la fenêtre du haut :
|
||||
/window splith 30
|
||||
redimensionner la fenêtre à 75% de la taille de la fenêtre parente :
|
||||
/window resize 75
|
||||
redimensionner le découpage vertical, ajouter 10% dans la taille :
|
||||
/window resize v+10
|
||||
supprimer l'éclatement :
|
||||
/window merge
|
||||
activer le mode d'affichage dépouillé pendant 2 secondes :
|
||||
|
||||
@@ -410,6 +410,12 @@
|
||||
** valeurs: on, off
|
||||
** valeur par défaut: `+on+`
|
||||
|
||||
* [[option_weechat.completion.nick_case_sensitive]] *weechat.completion.nick_case_sensitive*
|
||||
** description: pass:none[complétion sensible à la casse pour les pseudos]
|
||||
** type: booléen
|
||||
** valeurs: on, off
|
||||
** valeur par défaut: `+off+`
|
||||
|
||||
* [[option_weechat.completion.nick_completer]] *weechat.completion.nick_completer*
|
||||
** description: pass:none[chaîne insérée après la complétion du pseudo (quand le pseudo est le premier mot sur la ligne de commande)]
|
||||
** type: chaîne
|
||||
|
||||
@@ -66,12 +66,18 @@ $HOME/.weechat/alias.conf::
|
||||
$HOME/.weechat/aspell.conf::
|
||||
fichier de configuration pour l'extension _aspell_
|
||||
|
||||
$HOME/.weechat/buflist.conf::
|
||||
fichier de configuration pour l'extension _buflist_
|
||||
|
||||
$HOME/.weechat/charset.conf::
|
||||
fichier de configuration pour l'extension _charset_
|
||||
|
||||
$HOME/.weechat/exec.conf::
|
||||
fichier de configuration pour l'extension _exec_
|
||||
|
||||
$HOME/.weechat/fifo.conf::
|
||||
fichier de configuration pour l'extension _fifo_
|
||||
|
||||
$HOME/.weechat/irc.conf::
|
||||
fichier de configuration pour l'extension _irc_
|
||||
|
||||
|
||||
@@ -70,6 +70,7 @@ Les répertoires principaux de WeeChat sont :
|
||||
| plugins/ | API extension/script.
|
||||
| alias/ | Extension Alias.
|
||||
| aspell/ | Extension Aspell.
|
||||
| buflist/ | Extension Buflist.
|
||||
| charset/ | Extension Charset.
|
||||
| exec/ | Extension Exec.
|
||||
| fifo/ | Extension Fifo (tube FIFO utilisé pour envoyer des commandes à WeeChat).
|
||||
@@ -175,7 +176,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|
||||
|===
|
||||
| Chemin/fichier | Description
|
||||
| plugins/ | Racine des extensions.
|
||||
| plugin.c | Gestion des extensions (chargement/déchargement des librairies C dynamiques).
|
||||
| plugin.c | Gestion des extensions (chargement/déchargement des bibliothèques C dynamiques).
|
||||
| plugin-api.c | Fonctions supplémentaires pour l'API extension (enveloppes autour des fonctions du cœur de WeeChat).
|
||||
| plugin-config.c | Options de configuration des extensions (fichier plugins.conf).
|
||||
| plugin-script.c | Fonctions communes utilisés par les extensions pour les scripts.
|
||||
@@ -195,6 +196,12 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|
||||
| weechat-aspell-config.c | Options de configuration pour Aspell (fichier aspell.conf).
|
||||
| weechat-aspell-info.c | Info/infolists/hdata pour Aspell.
|
||||
| weechat-aspell-speller.c | Gestion des correcteurs orthographiques.
|
||||
| buflist/ | Extension Buflist.
|
||||
| buflist.c | Fonctions principales de Buflist.
|
||||
| buflist-bar-item.c | Objets de barre Buflist.
|
||||
| buflist-command.c | Commandes pour Buflist.
|
||||
| buflist-config.c | Options de configuration pour Buflist (fichier buflist.conf).
|
||||
| buflist-mouse.c | Actions souris pour Buflist.
|
||||
| charset/ | Extension Charset.
|
||||
| charset.c | Fonctions pour Charset.
|
||||
| exec/ | Extension Exec.
|
||||
@@ -286,6 +293,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|
||||
| script-completion.c | Complétions pour le gestionnaire de scripts.
|
||||
| script-config.c | Options de configuration pour le gestionnaire de scripts (fichier script.conf).
|
||||
| script-info.c | Info/infolists/hdata pour le gestionnaire de scripts.
|
||||
| script-mouse.c | Actions souris pour le gestionnaire de scripts.
|
||||
| script-repo.c | Téléchargement et lecture du dépôt de scripts.
|
||||
| tcl/ | Extension Tcl.
|
||||
| weechat-tcl.c | Fonctions principales pour Tcl (chargement/déchargement des scripts, exécution de code Tcl).
|
||||
|
||||
@@ -626,6 +626,13 @@ certificats :
|
||||
/set weechat.network.gnutls_ca_file "/etc/ssl/certs/ca-certificates.crt"
|
||||
----
|
||||
|
||||
Note : si vous êtes sous OS X avec le paquet homebrew openssl installé, vous
|
||||
pouvez lancer :
|
||||
|
||||
----
|
||||
/set weechat.network.gnutls_ca_file "/usr/local/etc/openssl/cert.pem"
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Vérifiez que vous avez bien ce fichier (fourni généralement par le paquet
|
||||
"ca-certificates").
|
||||
@@ -867,8 +874,8 @@ Vous pouvez essayer les astuces suivantes pour consommer moins de mémoire :
|
||||
* Utiliser la dernière version stable (elle est supposée avoir moins de fuites
|
||||
de mémoire que les versions plus anciennes).
|
||||
* Ne pas charger les extensions si vous ne les utilisez pas, par exemple :
|
||||
aspell, fifo, logger, perl, python, ruby, lua, tcl, guile, javascript,
|
||||
xfer (utilisé pour les DCC).
|
||||
aspell, buflist, fifo, logger, perl, python, ruby, lua, tcl, guile,
|
||||
javascript, xfer (utilisé pour les DCC).
|
||||
* Charger uniquement les scripts dont vous avez vraiment besoin.
|
||||
* Ne pas charger les certificats si SSL n'est *PAS* utilisé : affecter une
|
||||
chaîne vide pour l'option _weechat.network.gnutls_ca_file_.
|
||||
|
||||
@@ -1991,7 +1991,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
|
||||
|
||||
==== string_eval_expression
|
||||
|
||||
_WeeChat ≥ 0.4.0, mis à jour dans la 0.4.2, 1.0, 1.1, 1.2 et 1.3._
|
||||
_WeeChat ≥ 0.4.0, mis à jour dans la 0.4.2, 0.4.3, 1.0, 1.1, 1.2, 1.3, 1.6 et 1.8._
|
||||
|
||||
É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
|
||||
@@ -2036,7 +2036,7 @@ Paramètres :
|
||||
** _extra_ : le comportement par défaut est juste de remplacer les variables
|
||||
additionnelles (_extra_vars_), un autre comportement peut être sélectionné :
|
||||
*** _eval_ : les variables additionnelles (_extra_vars_) sont évaluées
|
||||
elles-mêmes avant remplacement
|
||||
elles-mêmes avant remplacement (_WeeChat ≥ 1.6_)
|
||||
** _regex_ : une expression regulière pour remplacer du texte dans _expr_ (qui
|
||||
n'est alors pas évalué)
|
||||
** _regex_replace_ : le texte de remplacement à utiliser avec _regex_, pour
|
||||
@@ -2050,6 +2050,124 @@ Valeur de retour :
|
||||
utilisation), ou NULL si problème (expression invalide ou pas assez de
|
||||
mémoire)
|
||||
|
||||
Liste des opérateurs logiques qui peuvent être utilisés dans les conditions
|
||||
(par ordre de priorité, du premier utilisé au dernier) :
|
||||
|
||||
[width="100%",cols="2,8,4,4",options="header"]
|
||||
|===
|
||||
| Opérateur | Description | Exemples | Résultats
|
||||
|
||||
| `+&&+` |
|
||||
"Et" logique |
|
||||
`+25 && 77+` +
|
||||
`+25 && 0+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+\|\|+` |
|
||||
"Ou" logique |
|
||||
`+25 \|\| 0+` +
|
||||
`+0 \|\| 0+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|===
|
||||
|
||||
Liste des opérateurs de comparaison qui peuvent être utilisés dans les conditions
|
||||
(par ordre de priorité, du premier utilisé au dernier) :
|
||||
|
||||
[width="100%",cols="2,8,4,4",options="header"]
|
||||
|===
|
||||
| Opérateur | Description | Exemples | Résultats
|
||||
|
||||
| `+=~+` |
|
||||
Correspond à l'expression régulière POSIX étendue (des "flags" facultatifs sont autorisés, voir la fonction <<_string_regcomp,string_regcomp>>) |
|
||||
`+abc def =~ ab.*ef+` +
|
||||
`+abc def =~ y.*z+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+!~+` |
|
||||
Ne correspond PAS à l'expression régulière POSIX étendue (des "flags" facultatifs sont autorisés, voir la fonction <<_string_regcomp,string_regcomp>>) |
|
||||
`+abc def !~ ab.*ef+` +
|
||||
`+abc def !~ y.*z+` |
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+=*+` +
|
||||
(_WeeChat ≥ 1.8_) |
|
||||
Correspond au masque où le caractère joker "*" est autorisé (voir la fonction <<_string_match,string_match>>) |
|
||||
`+abc def =* a*f+` +
|
||||
`+abc def =* y*z+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+!*+` +
|
||||
(_WeeChat ≥ 1.8_) |
|
||||
Ne correspond PAS au masque où le caractère joker "*" est autorisé (voir la fonction <<_string_match,string_match>>) |
|
||||
`+abc def !* a*f+` +
|
||||
`+abc def !* y*z+` |
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+==+` |
|
||||
Égal |
|
||||
`+test == test+` +
|
||||
`+test == string+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+!=+` |
|
||||
Non égal |
|
||||
`+test != test+` +
|
||||
`+test != string+` |
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+<=+` |
|
||||
Plus petit ou égal |
|
||||
`+abc <= defghi+` +
|
||||
`+abc <= abc+` +
|
||||
`+defghi <= abc+` +
|
||||
`+15 <= 2+` |
|
||||
`+1+` +
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+0+`
|
||||
|
||||
| `+<+` |
|
||||
Plus petit |
|
||||
`+abc < defghi+` +
|
||||
`+abc < abc+` +
|
||||
`+defghi < abc+` +
|
||||
`+15 < 2+` |
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+0+` +
|
||||
`+0+`
|
||||
|
||||
| `+>=+` |
|
||||
Plus grand ou égal |
|
||||
`+defghi >= abc+` +
|
||||
`+abc >= abc+` +
|
||||
`+abc >= defghi+` +
|
||||
`+15 >= 2+` |
|
||||
`+1+` +
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+>+` |
|
||||
Plus grand |
|
||||
`+defghi > abc+` +
|
||||
`+abc > abc+` +
|
||||
`+abc > defghi+` +
|
||||
`+15 > 2+` |
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|===
|
||||
|
||||
Liste des variables étendues dans l'expression (par ordre de priorité, de la
|
||||
première étendue à la dernière) :
|
||||
|
||||
@@ -2070,26 +2188,63 @@ première étendue à la dernière) :
|
||||
weechat.look.buffer_time_format)
|
||||
|
||||
| `+${esc:xxx}+` +
|
||||
`+${\xxx}+` |
|
||||
`+${\xxx}+` +
|
||||
(_WeeChat ≥ 1.0_) |
|
||||
Chaîne avec caractères échappés. |
|
||||
`+${esc:préfixe\tmessage}+` +
|
||||
`+${\ua9}+` |
|
||||
`+préfixe<TAB>message+` +
|
||||
`+©+`
|
||||
|
||||
| `+${hide:x,valeur}+` |
|
||||
Chaîne avec les caractères masqués (tous les caractères dans `valeur`
|
||||
remplacés par `x`. |
|
||||
| `+${hide:x,chaîne}+` +
|
||||
(_WeeChat ≥ 1.1_) |
|
||||
Chaîne avec les caractères masqués (tous les caractères dans `chaîne`
|
||||
remplacés par `x`). |
|
||||
`+${hide:*,mot_de_passe}+` |
|
||||
`+************+`
|
||||
|
||||
| `+${re:N}+` |
|
||||
Groupe regex capturé : `0` = toute la chaîne correspondante,
|
||||
`1` à `99` = groupe capturé, `+++` = dernier groupe capturé. |
|
||||
`+${re:1}+` |
|
||||
`+test+`
|
||||
| `+${cut:max,suffixe,chaîne}+` +
|
||||
`+${cut:+max,suffixe,chaîne}+` +
|
||||
(_WeeChat ≥ 1.8_) |
|
||||
Chaîne avec `max` caractères, et un `suffixe` facultatif si la chaîne est coupée. +
|
||||
Avec le format `+max`, le suffixe est compté dans la longueur maximale. |
|
||||
`+${cut:4,…,ceci est un test}+` +
|
||||
`+${cut:+4,…,ceci est un test}+` +
|
||||
`+${cut:2,>>,こんにちは世界}+` |
|
||||
`+ceci…+` +
|
||||
`+c…+` +
|
||||
`+こん>>+`
|
||||
|
||||
| `+${color:nom}+` |
|
||||
| `+${cutscr:max,suffixe,chaîne}+` +
|
||||
`+${cutscr:+max,suffixe,chaîne}+` +
|
||||
(_WeeChat ≥ 1.8_) |
|
||||
Chaîne avec `max` caractères affichés à l'écran, et un `suffixe` facultatif si la chaîne est coupée. +
|
||||
Avec le format `+max`, le suffixe est compté dans la longueur maximale. |
|
||||
`+${cutscr:4,…,ceci est un test}+` +
|
||||
`+${cutscr:+4,…,ceci est un test}+` +
|
||||
`+${cutscr:2,>>,こんにちは世界}+` |
|
||||
`+ceci…+` +
|
||||
`+cec…+` +
|
||||
`+こ>>+`
|
||||
|
||||
| `+${re:N}+` +
|
||||
(_WeeChat ≥ 1.1_) |
|
||||
Groupe regex capturé : `0` = toute la chaîne correspondante,
|
||||
`1` à `99` = groupe capturé, `+++` = dernier groupe capturé,
|
||||
`#` = index du dernier groupe capturé (_WeeChat ≥ 1.8_). |
|
||||
`+${re:0}+` +
|
||||
`+${re:1}+` +
|
||||
`+${re:2}+` +
|
||||
`+${re:+++}+` +
|
||||
`+${re:#}+` |
|
||||
`+test1 test2+` +
|
||||
`+test1+` +
|
||||
`+test2+` +
|
||||
`+test2+` +
|
||||
`+2+`
|
||||
|
||||
| `+${color:nom}+` +
|
||||
(_WeeChat ≥ 0.4.2_) |
|
||||
Code couleur WeeChat (le nom de couleur a des attributs facultatifs),
|
||||
voir la fonction <<_color,color>> pour les formats supportés. |
|
||||
`+${color:red}texte rouge+` +
|
||||
@@ -2098,7 +2253,8 @@ première étendue à la dernière) :
|
||||
`+texte orange gras+` (en orange gras)
|
||||
|
||||
| `+${info:nom}+` +
|
||||
`+${info:nom,paramètres}+` |
|
||||
`+${info:nom,paramètres}+` +
|
||||
(_WeeChat ≥ 0.4.3_) |
|
||||
Info de WeeChat ou d'une extension, voir la fonction <<_info_get,info_get>>. |
|
||||
`+${info:version}+` +
|
||||
`+${info:irc_nick_color_name,foo}+` |
|
||||
@@ -2121,6 +2277,17 @@ première étendue à la dernière) :
|
||||
`+${env:HOME}+` |
|
||||
`+/home/user+`
|
||||
|
||||
| `+${if:condition}+` +
|
||||
`+${if:condition?vrai}+`
|
||||
`+${if:condition?vrai:faux}+` +
|
||||
(_WeeChat ≥ 1.8_) |
|
||||
Opérateur ternaire avec une condition, une valeur si la condition est vraie
|
||||
(optionnelle) et une autre valeur si la condition est fausse (optionnelle).
|
||||
Si les valeurs ne sont pas données, "1" ou "0" est retourné, selon le résultat
|
||||
de la condition. |
|
||||
`+${if:${info:term_width}>80?grand:petit}+` |
|
||||
`+grand+`
|
||||
|
||||
| `+${sec.data.nom}+` |
|
||||
Valeur de la donnée sécurisée `nom`. |
|
||||
`+${sec.data.freenode_pass}+` |
|
||||
@@ -2211,6 +2378,170 @@ options = {
|
||||
str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, options) # "password=*** password=***"
|
||||
----
|
||||
|
||||
==== string_dyn_alloc
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Allouer une chaîne dynamique, avec une longueur variable. +
|
||||
De manière interne, une structure est allouée avec le pointeur vers la chaîne,
|
||||
la taille allouée et la longueur courante de la chaîne.
|
||||
|
||||
Seul le pointeur de pointeur de chaîne (_**string_) est utilisé dans toutes les fonctions
|
||||
_pass:[string_dyn_*]_.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **weechat_dyn_alloc (int size_alloc);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _size_alloc_ : la taille initialement allouée (doit être supérieure à zéro)
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* pointeur vers la chaîne dynamique
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== string_dyn_copy
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Copier une chaîne dans une chaîne dynamique.
|
||||
|
||||
Le pointeur _*string_ peut changer si la chaîne est réallouée (s'il n'y a pas
|
||||
assez de place pour copier la chaîne).
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_dyn_copy (char **string, const char *new_string);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _string_ : pointeur vers la chaîne dynamique
|
||||
* _new_string_ : la chaîne à copier
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* 1 si OK, 0 si erreur
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
if (weechat_dyn_copy (string, "test"))
|
||||
{
|
||||
/* OK */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* erreur */
|
||||
}
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== string_dyn_concat
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Concaténer une chaîne dans une chaîne dynamique.
|
||||
|
||||
Le pointeur _*string_ peut changer si la chaîne est réallouée (s'il n'y a pas
|
||||
assez de place pour concaténer la chaîne).
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_dyn_concat (char **string, const char *add);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _string_ : pointeur vers la chaîne dynamique
|
||||
* _add_ : la chaîne à ajouter
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* 1 si OK, 0 si erreur
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
if (weechat_dyn_copy (string, "test"))
|
||||
{
|
||||
if (weechat_dyn_concat (string, "abc"))
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== string_dyn_free
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Libérer une chaîne dynamique.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char *weechat_dyn_free (char **string, int free_string);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _string_ : pointeur vers la chaîne dynamique
|
||||
* _free_string_ : libérer la chaîne elle-même ; si 0, le contenu de _*string_
|
||||
reste valide après l'appel à cette fonction
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* pointeur vers la chaîne si _free_string_ vaut 0, sinon NULL
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
if (weechat_dyn_concat (string, "test"))
|
||||
{
|
||||
/* OK */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* erreur */
|
||||
}
|
||||
/* ... */
|
||||
weechat_dyn_free (string, 1);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
[[utf-8]]
|
||||
=== UTF-8
|
||||
|
||||
@@ -3713,6 +4044,352 @@ weechat.list_free(list)
|
||||
weechat.list_free(list)
|
||||
----
|
||||
|
||||
[[array_lists]]
|
||||
=== Listes avec tableau
|
||||
|
||||
Fonctions pour les listes avec tableau.
|
||||
|
||||
Une liste avec tableau est une liste de pointeurs avec une taille dynamique et un tri optionnel.
|
||||
|
||||
==== arraylist_new
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Créer une nouvelle liste avec tableau.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
struct t_arraylist *weechat_arraylist_new (int initial_size,
|
||||
int sorted,
|
||||
int allow_duplicates,
|
||||
int (*callback_cmp)(void *data,
|
||||
struct t_arraylist *arraylist,
|
||||
void *pointer1,
|
||||
void *pointer2),
|
||||
void *callback_cmp_data,
|
||||
void (*callback_free)(void *data,
|
||||
struct t_arraylist *arraylist,
|
||||
void *pointer),
|
||||
void *callback_free_data);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _initial_size_ : taille initiale de la liste avec tableau (ce n'est pas le nombre d'éléments)
|
||||
* _sorted_ : 1 pour trier la liste avec tableau, 0 pour ne pas trier
|
||||
* _allow_duplicates_ : 1 pour autoriser les entrées dupliquées, 0 pour empêcher
|
||||
une même entrée d'être ajoutée à nouveau
|
||||
* _callback_cmp_ : fonction appelée pour comparer deux éléments (optionnelle),
|
||||
paramètres et valeur de retour :
|
||||
** _void *data_ : pointeur
|
||||
** _struct t_arraylist *arraylist_ : pointeur vers la liste avec tableau
|
||||
** _void *pointer1_ : pointeur vers le premier élément
|
||||
** _void *pointer2_ : pointeur vers le second élément
|
||||
** valeur de retour :
|
||||
*** nombre négatif si le premier élément est inférieur au second élément
|
||||
*** 0 si le premier élément est égal au second élément
|
||||
*** nombre positif si le premier élément est supérieur au second élément
|
||||
* _callback_cmp_data_ : pointeur donné à la fonction de rappel lorsqu'elle est
|
||||
appelée par WeeChat
|
||||
* _callback_free_ : fonction utilisée pour libérer les éléments (optionnelle),
|
||||
paramètres :
|
||||
** _void *data_ : pointeur
|
||||
** _struct t_arraylist *arraylist_ : pointeur vers la liste avec tableau
|
||||
** _void *pointer_ : pointeur vers l'élément
|
||||
* _callback_free_data_ : pointeur donné à la fonction de rappelle lorsqu'elle est
|
||||
appelée par WeeChat
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* pointeur vers la nouvelle liste avec tableau
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int
|
||||
cmp_cb (void *data, struct t_arraylist *arraylist,
|
||||
void *pointer1, void *pointer2)
|
||||
{
|
||||
if (...)
|
||||
return -1;
|
||||
else if (...)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct t_arraylist *list = weechat_arraylist_new (32, 1, 1,
|
||||
&cmp_cb, NULL, NULL, NULL);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== arraylist_size
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Retourner la taille de la liste (nombre de pointeurs vers des éléments).
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_list_size (struct t_arraylist *arraylist);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _arraylist_ : pointeur vers la liste avec tableau
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* taille de la liste avec tableau (nombre d'éléments), 0 si la liste avec tableau est vide
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
weechat_printf (NULL, "size of array list: %d", weechat_arraylist_size (arraylist));
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== arraylist_get
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Retourner un pointeur avec un élément par sa position.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void *weechat_arraylist_get (struct t_arraylist *arraylist, int index);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _arraylist_ : pointeur vers la liste avec tableau
|
||||
* _index_ : index dans la liste (le premier pointeur est 0)
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* pointeur trouvé, NULL si le pointeur n'est pas trouvé
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void *pointer = weechat_arraylist_get (arraylist, 0); /* first item */
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== arraylist_search
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Chercher un élément dans une liste avec tableau.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void *weechat_arraylist_search (struct t_arraylist *arraylist, void *pointer,
|
||||
int *index, int *index_insert);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _arraylist_ : pointeur vers la liste avec tableau
|
||||
* _pointer_ : pointeur vers l'élément à chercher dans la liste avec tableau
|
||||
* _index_ : pointeur vers un entier qui sera défini avec l'index trouvé, ou -1 si non trouvé
|
||||
(optionnel)
|
||||
* _index_insert_ : pointeur vers un entier qui sera défini avec l'index qui doit être utilisé
|
||||
pour insérer un élément dans la liste avec tableau (pour garder la liste avec tableau triée)
|
||||
(optionnel)
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* pointeur vers l'élément trouvé, NULL si l'élément n'est pas trouvé
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index, index_insert;
|
||||
void *item = weechat_arraylist_search (arraylist, pointer, &index, &index_insert);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== arraylist_insert
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Insérer un élément dans une liste avec tableau.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_insert (struct t_arraylist *arraylist, int index, void *pointer);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _arraylist_ : pointeur vers la liste avec tableau
|
||||
* _index_ : position de l'élément dans la liste avec tableau ou -1 pour ajouter
|
||||
l'élément à la fin (ce paramètre est utilisé seulement si la liste avec tableau
|
||||
n'est pas triée, il est ignoré si la liste avec tableau est triée)
|
||||
* _pointeur_ : pointeur vers l'élément à insérer
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* index du nouvel élément (>= 0), -1 si erreur.
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index = weechat_arraylist_insert (arraylist, -1, pointer); /* insert at the end if not sorted */
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== arraylist_add
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Ajouter un élément dans une liste avec tableau.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_add (struct t_arraylist *arraylist, void *pointer);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _arraylist_ : pointeur vers la liste avec tableau
|
||||
* _pointer_ : pointeur vers l'élément à ajouter
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* index du nouvel élément (>= 0), -1 si erreur.
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index = weechat_arraylist_add (arraylist, pointer);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== arraylist_remove
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Supprimer un élément d'une liste avec tableau.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_remove (struct t_arraylist *arraylist, int index);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _arraylist_ : pointeur vers la liste avec tableau
|
||||
* _index_ : index de l'élément à supprimer
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* index de l'élément supprimé, -1 si erreur.
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index_removed = weechat_arraylist_remove (arraylist, index);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== arraylist_clear
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Supprimer tous les éléments d'une liste avec tableau.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_clear (struct t_arraylist *arraylist);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _arraylist_ : pointeur vers la liste avec tableau
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* 1 if OK, 0 if error
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
if (weechat_arraylist_clear (arraylist))
|
||||
{
|
||||
/* OK */
|
||||
}
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== arraylist_free
|
||||
|
||||
_WeeChat ≥ 1.8._
|
||||
|
||||
Supprimer une liste avec tableau.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void weechat_arraylist_free (struct t_arraylist *arraylist);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _arraylist_ : pointeur vers la liste avec tableau
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
weechat_arraylist_free (arraylist);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
[[hashtables]]
|
||||
=== Tables de hachage
|
||||
|
||||
@@ -5264,7 +5941,13 @@ int weechat_config_option_set (struct t_config_option *option,
|
||||
Paramètres :
|
||||
|
||||
* _option_ : pointeur vers l'option
|
||||
* _value_ : nouvelle valeur pour l'option
|
||||
* _value_ : nouvelle valeur pour l'option, des valeurs spéciales sont possibles
|
||||
selon le type de l'option :
|
||||
** _boolean_ :
|
||||
*** `toggle` : basculer la valeur courante
|
||||
** _integer_ ou _color_ :
|
||||
*** `++N` : ajouter `N` (un entier) à la valeur courante
|
||||
*** `--N` : soustraire `N` (un entier) de la valeur courante
|
||||
* _run_callback_ : 1 pour appeler la fonction de rappel si la valeur de
|
||||
l'option est changée, sinon 0
|
||||
|
||||
@@ -5471,6 +6154,47 @@ weechat.config_option_rename(option, new_name)
|
||||
weechat.config_option_rename(option, "nouveau_nom")
|
||||
----
|
||||
|
||||
==== config_option_get_string
|
||||
|
||||
_WeeChat ≥ 1.9._
|
||||
|
||||
Retourner la valeur d'une propriété de l'option sous forme de chaîne.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
const char *weechat_config_option_get_string (struct t_config_option *option,
|
||||
const char *property);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _option_ : pointeur vers l'option
|
||||
* _property_ : nom de la propriété :
|
||||
** _name_ : nom de l'option
|
||||
** _parent_name_ : nom de l'option parente
|
||||
** _type_ : type de l'option, un parmi ceux-ci :
|
||||
*** _boolean_
|
||||
*** _integer_
|
||||
*** _string_
|
||||
*** _color_
|
||||
** _description_ : description de l'option
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* valeur de la propriété, sous forme de chaîne
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
const char *type = weechat_config_option_get_string (option, "type");
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Cette fonction n'est pas disponible dans l'API script.
|
||||
|
||||
==== config_option_get_pointer
|
||||
|
||||
Retourner un pointeur vers une propriété de l'option.
|
||||
@@ -6679,7 +7403,7 @@ Fonctions pour les associations de touches.
|
||||
|
||||
==== key_bind
|
||||
|
||||
_WeeChat ≥ 0.3.6._
|
||||
_WeeChat ≥ 0.3.6, mis à jour dans la 1.8._
|
||||
|
||||
Ajouter de nouvelles associations de touches.
|
||||
|
||||
@@ -6695,6 +7419,8 @@ Prototype :
|
||||
int weechat_key_bind (const char *context, struct t_hashtable *keys);
|
||||
----
|
||||
|
||||
:key_bind_quiet: __quiet
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _context_ : contexte pour les touches :
|
||||
@@ -6703,7 +7429,10 @@ Paramètres :
|
||||
tampon)
|
||||
** _cursor_ : mouvement libre du curseur à l'écran
|
||||
** _mouse_ : touches pour les évènements de souris
|
||||
* _keys_ : table de hachage avec les associations de touches
|
||||
* _keys_ : table de hachage avec les associations de touches ; elle peut contenir
|
||||
les clés spéciales suivantes :
|
||||
** _{key_bind_quiet}_: ne pas afficher les touches ajoutées dans le tampon _core_
|
||||
_(WeeChat ≥ 1.8)_
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
@@ -7560,7 +8289,8 @@ Paramètres :
|
||||
** _const char *command_ : la commande exécutée, avec ses paramètres
|
||||
** valeur de retour :
|
||||
*** _WEECHAT_RC_OK_
|
||||
*** _WEECHAT_RC_OK_EAT_
|
||||
*** _WEECHAT_RC_OK_EAT_ : la commande ne sera pas exécutée par WeeChat après
|
||||
la fonction de rappel
|
||||
*** _WEECHAT_RC_ERROR_
|
||||
* _callback_pointer_ : pointeur donné à la fonction de rappel lorsqu'elle est
|
||||
appelée par WeeChat
|
||||
@@ -7569,10 +8299,6 @@ Paramètres :
|
||||
fonction similaire) et est automatiquement libéré (par free) lorsque le
|
||||
"hook" est supprimé
|
||||
|
||||
[NOTE]
|
||||
La fonction de rappel peut retourner _WEECHAT_RC_OK_ ou _WEECHAT_RC_OK_EAT_ (la
|
||||
commande ne sera pas exécutée par WeeChat après la fonction de rappel).
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* pointeur vers le nouveau "hook", NULL en cas d'erreur
|
||||
@@ -8673,6 +9399,11 @@ Liste des signaux envoyés par WeeChat et les extensions :
|
||||
Chaîne : nom du serveur. |
|
||||
Déconnecté du serveur.
|
||||
|
||||
| irc | irc_server_lag_changed +
|
||||
_(WeeChat ≥ 1.8)_ |
|
||||
Chaîne : nom du serveur. |
|
||||
Le lag a changé sur le serveur.
|
||||
|
||||
| irc | irc_ignore_removing |
|
||||
Pointeur : ignore. |
|
||||
Suppression d'un ignore en cours.
|
||||
@@ -11622,7 +12353,7 @@ weechat_buffer_set (mon_tampon, "name", "nouveau_nom");
|
||||
weechat_buffer_set (mon_tampon, "localvar_set_toto", "abc");
|
||||
|
||||
/* supprimer la variable locale "toto" */
|
||||
weechat_buffer_set (mon_tampon, "localvar_del_toto", NULL);
|
||||
weechat_buffer_set (mon_tampon, "localvar_del_toto", "");
|
||||
----
|
||||
|
||||
Script (Python) :
|
||||
@@ -15640,6 +16371,59 @@ for key in hash:
|
||||
weechat.prnt("", " %s == %s" % (key, hash[key]))
|
||||
----
|
||||
|
||||
==== hdata_compare
|
||||
|
||||
_WeeChat ≥ 1.9._
|
||||
|
||||
Comparer une variable hdata de deux objets.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_hdata_compare (struct t_hdata *hdata, void *pointer1, void *pointer2, const char *name, int case_sensitive);
|
||||
----
|
||||
|
||||
Paramètres :
|
||||
|
||||
* _hdata_ : pointeur vers le hdata
|
||||
* _pointer1_ : pointeur vers le premier objet WeeChat ou d'une extension
|
||||
* _pointer2_ : pointeur vers le second objet WeeChat ou d'une extension
|
||||
* _name_ : nom de la variable ; pour les tableaux, le nom peut être "N|name" où N
|
||||
est un index dans le tableau (démarrant à 0), par exemple : "2|name"
|
||||
* _case_sensitive_ : 1 pour une comparaison tenant compte de la casse pour les chaînes,
|
||||
sinon 0
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* -1 si variable1 < variable2
|
||||
* 0 si variable1 == variable2
|
||||
* 1 si variable1 > variable2
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----
|
||||
struct t_hdata *hdata = weechat_hdata_get ("buffer");
|
||||
struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "freenode.#weechat");
|
||||
struct t_gui_buffer *buffer2 = weechat_buffer_search ("irc", "freenode.#weechat-fr");
|
||||
weechat_printf (NULL, "comparaison de numéro = %d", weechat_hdata_compare (hdata, buffer1, buffer2, "number", 0));
|
||||
----
|
||||
|
||||
Script (Python) :
|
||||
|
||||
[source,python]
|
||||
----
|
||||
# prototype
|
||||
rc = weechat.hdata_compare(hdata, pointer1, pointer2, name, case_sensitive)
|
||||
|
||||
# exemple
|
||||
hdata = weechat.hdata_get("buffer")
|
||||
buffer1 = weechat.buffer_search("irc", "freenode.#weechat")
|
||||
buffer2 = weechat.buffer_search("irc", "freenode.#weechat-fr")
|
||||
weechat.prnt("", "comparaison de numéro = %d" % weechat.hdata_compare(hdata, buffer1, buffer2, "number", 0))
|
||||
----
|
||||
|
||||
==== hdata_set
|
||||
|
||||
_WeeChat ≥ 0.3.9._
|
||||
|
||||
@@ -488,8 +488,7 @@ Liste des fonctions de l'API script :
|
||||
prefix +
|
||||
color +
|
||||
print (pour python : prnt) +
|
||||
print_date_tags (pour python :
|
||||
prnt_date_tags) +
|
||||
print_date_tags (pour python : prnt_date_tags) +
|
||||
print_y (pour python : prnt_y) +
|
||||
log_print
|
||||
|
||||
@@ -508,6 +507,7 @@ Liste des fonctions de l'API script :
|
||||
hook_hsignal_send +
|
||||
hook_config +
|
||||
hook_completion +
|
||||
hook_completion_get_string +
|
||||
hook_completion_list_add +
|
||||
hook_modifier +
|
||||
hook_modifier_exec +
|
||||
@@ -589,6 +589,7 @@ Liste des fonctions de l'API script :
|
||||
infolist_next +
|
||||
infolist_prev +
|
||||
infolist_reset_item_cursor +
|
||||
infolist_search_var +
|
||||
infolist_fields +
|
||||
infolist_integer +
|
||||
infolist_string +
|
||||
@@ -614,6 +615,7 @@ Liste des fonctions de l'API script :
|
||||
hdata_pointer +
|
||||
hdata_time +
|
||||
hdata_hashtable +
|
||||
hdata_compare +
|
||||
hdata_update +
|
||||
hdata_get_string
|
||||
|
||||
@@ -1063,12 +1065,11 @@ xxx,irc_in2_yyy::
|
||||
def join_cb(data, signal, signal_data):
|
||||
# signal est par exemple : "freenode,irc_in2_join"
|
||||
# signal_data est le message IRC, par exemple : ":nick!user@host JOIN :#canal"
|
||||
nick = weechat.info_get("irc_nick_from_host", signal_data)
|
||||
server = signal.split(",")[0]
|
||||
channel = signal_data.split(":")[-1]
|
||||
buffer = weechat.info_get("irc_buffer", "%s,%s" % (server, channel))
|
||||
msg = weechat.info_get_hashtable("irc_message_parse", {"message": signal_data})
|
||||
buffer = weechat.info_get("irc_buffer", "%s,%s" % (server, msg["channel"]))
|
||||
if buffer:
|
||||
weechat.prnt(buffer, "Eheh, %s a rejoint le canal !" % nick)
|
||||
weechat.prnt(buffer, "%s (%s) a rejoint ce canal !" % (msg["nick"], msg["host"]))
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
# il est pratique ici d'utiliser "*" comme serveur, pour intercepter les
|
||||
|
||||
+83
-26
@@ -126,8 +126,10 @@ compiler WeeChat.
|
||||
[NOTE]
|
||||
^(1)^ Le nom provient de la distribution GNU/Linux Debian, la version dans le
|
||||
nom du paquet peut être différente. +
|
||||
^(2)^ WeeChat peut compiler avec libncurses5-dev, mais ce n'est *PAS*
|
||||
recommandé (vous aurez des bugs d'affichage avec les caractères larges). +
|
||||
^(2)^ Il est recommandé de compiler avec libncurses**w**5-dev (le *w* est
|
||||
important). WeeChat peut compiler avec libncurses5-dev, but ce n'est *PAS*
|
||||
recommandé : vous pourriez avoir des bugs d'affichage avec les caractères
|
||||
larges. +
|
||||
^(3)^ Gnutls ≥ 3.0.21 est requis pour l'authentification SASL avec le mécanisme
|
||||
ECDSA-NIST256P-CHALLENGE. +
|
||||
^(4)^ La version recommandée de Python est 2.7 (tous les scripts tournent bien
|
||||
@@ -193,6 +195,9 @@ Liste des options couramment utilisées :
|
||||
| ENABLE_ASPELL | `ON`, `OFF` | ON |
|
||||
Compiler <<aspell_plugin,l'extension Aspell>>.
|
||||
|
||||
| ENABLE_BUFLIST | `ON`, `OFF` | ON |
|
||||
Compiler <<buflist_plugin,l'extension Buflist>>.
|
||||
|
||||
| ENABLE_CHARSET | `ON`, `OFF` | ON |
|
||||
Compiler <<charset_plugin,l'extension Charset>>.
|
||||
|
||||
@@ -529,8 +534,10 @@ Les fichiers dans le répertoire principal sont :
|
||||
| plugins.conf | Fichier de configuration des extensions | Possible, cela dépend des extensions/scripts.
|
||||
| alias.conf | Fichier de configuration de l'extension _alias_ | Possible, cela dépend des alias.
|
||||
| aspell.conf | Fichier de configuration de l'extension _aspell_ | Non.
|
||||
| charset.conf | Fichier de configuration de l'extension _charset_ | Non
|
||||
| exec.conf | Fichier de configuration de l'extension _exec_ | Non
|
||||
| buflist.conf | Fichier de configuration de l'extension _buflist_ | Non.
|
||||
| charset.conf | Fichier de configuration de l'extension _charset_ | Non.
|
||||
| exec.conf | Fichier de configuration de l'extension _exec_ | Non.
|
||||
| fifo.conf | Fichier de configuration de l'extension _fifo_ | Non.
|
||||
| irc.conf | Fichier de configuration de l'extension _irc_ | *Oui*: il peut contenir des mots de passes pour les serveurs, nickserv et les canaux (si non stockés dans `sec.conf`).
|
||||
| logger.conf | Fichier de configuration de l'extension _logger_ | Non.
|
||||
| relay.conf | Fichier de configuration de l'extension _relay_ | Non.
|
||||
@@ -1595,6 +1602,10 @@ avec `/help autosetbuffer`.
|
||||
| kbd:[Alt+PgDn] | Descendre de quelques lignes dans l'historique du tampon. | `/window scroll_down`
|
||||
| kbd:[Alt+Home] | Aller au début du tampon. | `/window scroll_top`
|
||||
| kbd:[Alt+End] | Aller à la fin du tampon. | `/window scroll_bottom`
|
||||
| kbd:[F1] | Monter d'une page dans la liste des tampons. | `/bar scroll buflist * -100%`
|
||||
| kbd:[F2] | Descendre d'une page dans la liste des tampons. | `/bar scroll buflist * +100%`
|
||||
| kbd:[Alt+F1] | Aller au début de la liste des tampons. | `/bar scroll buflist * b`
|
||||
| kbd:[Alt+F2] | Aller à la fin de la liste des tampons. | `/bar scroll buflist * e`
|
||||
| kbd:[Alt+←] +
|
||||
kbd:[Alt+↑] +
|
||||
kbd:[Ctrl+p] +
|
||||
@@ -1721,6 +1732,12 @@ Ces touches sont utilisées dans le contexte "mouse", c'est-à-dire lorsqu'un
|
||||
| ⇓ | - | chat (tampon script) | Descendre de 5 lignes dans le tampon script. | `/script down 5`
|
||||
| kbd:[Ctrl+⇑] | - | chat | Faire défiler horizontalement vers la gauche. | `/window scroll_horiz -window ${_window_number} -10%`
|
||||
| kbd:[Ctrl+⇓] | - | chat | Faire défiler horizontalement vers la droite. | `/window scroll_horiz -window ${_window_number} +10%`
|
||||
| ◾◽◽ | up / left | buflist | Déplacer le tampon vers un numéro inférieur. | Signal `buflist_mouse`.
|
||||
| ◾◽◽ | down / right | buflist | Déplacer le tampon vers un numéro supérieur. | Signal `buflist_mouse`.
|
||||
| ◾◽◽ | - | buflist | Aller au tampon (tampon précédent dans la liste des tampons visités si le tampon est le courant). | Signal `buflist_mouse`.
|
||||
| ◽◽◾ | - | buflist | Aller au tampon suivant dans la liste des tampons visités si le tampon est le courant. | Signal `buflist_mouse`.
|
||||
| kbd:[Ctrl+⇑] | - | buflist | Aller au tampon précédent. | Signal `buflist_mouse`.
|
||||
| kbd:[Ctrl+⇓] | - | buflist | Aller au tampon suivant. | Signal `buflist_mouse`.
|
||||
| ◾◽◽ | up | liste des pseudos | Monter d'une page dans la liste des pseudos. | `/bar scroll nicklist ${_window_number} -100%`
|
||||
| ◾◽◽ | down | liste des pseudos | Descendre d'une page dans la liste des pseudos. | `/bar scroll nicklist ${_window_number} +100%`
|
||||
| ◾◽◽ | up (long) | liste des pseudos | Aller au début de la liste des pseudos. | `/bar scroll nicklist ${_window_number} b`
|
||||
@@ -2050,6 +2067,7 @@ Les extensions par défaut sont :
|
||||
| Extension | Description
|
||||
| alias | Définir des alias pour les commandes.
|
||||
| aspell | Vérification orthographique de la ligne de commande.
|
||||
| buflist | Objet de barre avec la liste des tampons.
|
||||
| charset | Encodage/encodage avec jeu de caractère sur les tampons.
|
||||
| exec | Exécution de commandes externes dans WeeChat.
|
||||
| fifo | Tube FIFO pour envoyer des commandes à distance vers WeeChat.
|
||||
@@ -2101,6 +2119,7 @@ Sections :
|
||||
| check | /set aspell.check.* | Options pour contrôler la vérification orthographique.
|
||||
| dict | <<command_aspell_aspell,/aspell setdict>> +
|
||||
/set aspell.dict.* | Dictionnaires utilisés par tampon (les options peuvent être ajoutées/supprimées dans la section).
|
||||
| look | /set aspell.look.* | Aspect/présentation.
|
||||
| option | /set aspell.option.* | <<aspell_speller_options,Options du vérificateur d'orthographe>> (les options peuvent être ajoutées/supprimées dans la section).
|
||||
|===
|
||||
|
||||
@@ -2158,6 +2177,34 @@ Exemple de suggestions avec des dictionnaires anglais et français (`en,fr`) :
|
||||
└─────────────────────────────────────────────────────────────────────────────────┘
|
||||
....
|
||||
|
||||
[[buflist_plugin]]
|
||||
=== Extension Buflist
|
||||
|
||||
L'extension Buflist affiche une liste des tampons dans un objet de barre appelé
|
||||
"buflist". +
|
||||
Une barre par défaut "buflist" est créée au démarrage avec cet objet de barre.
|
||||
|
||||
[[buflist_options]]
|
||||
==== Options (buflist.conf)
|
||||
|
||||
Sections :
|
||||
|
||||
[width="100%",cols="3m,6m,16",options="header"]
|
||||
|===
|
||||
| Section | Commande de contrôle | Description
|
||||
| format | /set buflist.format.* | Formats utilisés pour l'affichage de la liste des tampons.
|
||||
| look | /set buflist.look.* | Aspect/présentation.
|
||||
|===
|
||||
|
||||
Options :
|
||||
|
||||
include::autogen/user/buflist_options.adoc[]
|
||||
|
||||
[[buflist_commands]]
|
||||
==== Commandes
|
||||
|
||||
include::autogen/user/buflist_commands.adoc[]
|
||||
|
||||
[[charset_plugin]]
|
||||
=== Extension Charset
|
||||
|
||||
@@ -2495,7 +2542,7 @@ $ openssl req -nodes -newkey rsa:2048 -keyout nick.pem -x509 -days 365 -out nick
|
||||
/msg nickserv cert add
|
||||
----
|
||||
|
||||
Pour plus d'informations, consulter http://www.oftc.net/oftc/NickServ/CertFP
|
||||
Pour plus d'informations, consulter https://www.oftc.net/NickServ/CertFP
|
||||
|
||||
[[irc_sasl_authentication]]
|
||||
==== Authentification avec SASL
|
||||
@@ -2510,7 +2557,7 @@ mécanismes :
|
||||
* _dh-aes_ : mot de passe chiffré avec AES (*non sûr*, non recommandé)
|
||||
|
||||
[NOTE]
|
||||
La librairie "gcrypt" est requise lors de la compilation de WeeChat pour
|
||||
La bibliothèque "gcrypt" est requise lors de la compilation de WeeChat pour
|
||||
utiliser le mécanisme "dh-blowfish" (voir <<dependencies,les dépendances>>).
|
||||
|
||||
Les options dans le serveur sont :
|
||||
@@ -2589,7 +2636,7 @@ et port dépend de votre configuration de TOR) :
|
||||
Maintenant, ajoutez un nouveau serveur, par exemple :
|
||||
|
||||
----
|
||||
/server add freenode-tor p4fsi4ockecnea7l.onion
|
||||
/server add freenode-tor freenodeok2gncmy.onion
|
||||
----
|
||||
|
||||
Définissez le proxy pour TOR :
|
||||
@@ -2598,11 +2645,14 @@ Définissez le proxy pour TOR :
|
||||
/set irc.server.freenode-tor.proxy "tor"
|
||||
----
|
||||
|
||||
Définissez l'authentification SASL :
|
||||
Définissez l'authentification SASL avec ECDSA-NIST256P-CHALLENGE (voir le
|
||||
chapitre <<irc_sasl_ecdsa_nist256p_challenge,SASL ECDSA-NIST256P-CHALLENGE>>
|
||||
pour générer une clé privée) :
|
||||
|
||||
----
|
||||
/set irc.server.freenode-tor.sasl_mechanism ecdsa-nist256p-challenge
|
||||
/set irc.server.freenode-tor.sasl_username "votre_pseudo"
|
||||
/set irc.server.freenode-tor.sasl_password "votre_mot_de_passe"
|
||||
/set irc.server.freenode-tor.sasl_key "%h/ecdsa.pem"
|
||||
----
|
||||
|
||||
Et enfin, la connexion au serveur :
|
||||
@@ -2612,7 +2662,7 @@ Et enfin, la connexion au serveur :
|
||||
----
|
||||
|
||||
Pour plus d'informations à propos de Freenode et TOR :
|
||||
http://freenode.net/irc_servers.shtml#tor
|
||||
http://freenode.net/kb/answer/chat#accessing-freenode-via-tor
|
||||
|
||||
[[irc_smart_filter_join_part_quit]]
|
||||
==== Filtre intelligent pour les messages join/part/quit
|
||||
@@ -3022,8 +3072,12 @@ utilisant divers protocoles :
|
||||
|
||||
* _irc_ : proxy IRC : utilisé pour partager la connexions aux serveurs IRC avec
|
||||
un ou plusieurs autres clients IRC
|
||||
* _weechat_ : protocole utilisé par les interfaces distantes (par exemple
|
||||
QWeeChat ou weechat-android).
|
||||
* _weechat_ : protocole utilisé par les interfaces distantes, par exemple :
|
||||
** Glowing Bear (HTML5) : https://www.glowing-bear.org/
|
||||
** QWeeChat (Qt) : https://weechat.org/download
|
||||
** WeeChat-Android (Android) : https://github.com/ubergeek42/weechat-android
|
||||
** weechat.el (Emacs) : https://github.com/the-kenny/weechat.el
|
||||
** WeeCloud (Javascript) : https://github.com/eirikb/weecloud
|
||||
|
||||
[[relay_options]]
|
||||
==== Options (relay.conf)
|
||||
@@ -3553,20 +3607,22 @@ suivantes sont ajoutées dans la table de hachage :
|
||||
|
||||
[width="100%",cols="3m,2,14",options="header"]
|
||||
|===
|
||||
| Variable | Type | Description
|
||||
| server | chaîne | Nom du serveur (exemple : "freenode").
|
||||
| tags | chaîne | Étiquettes dans le message (rarement utilisées).
|
||||
| message_without_tags | chaîne | Message sans les étiquettes.
|
||||
| nick | chaîne | Pseudo.
|
||||
| host | chaîne | Nom d'hôte.
|
||||
| command | chaîne | Commande IRC (exemple : "PRIVMSG", "NOTICE", ...).
|
||||
| channel | chaîne | Canal IRC.
|
||||
| arguments | chaîne | Paramètres de la commande (inclut la valeur de _channel_).
|
||||
| text | chaîne | Texte (par exemple message utilisateur).
|
||||
| pos_command | chaîne | L'index de _command_ dans le message ("-1" si _command_ n'a pas été trouvé).
|
||||
| pos_arguments | chaîne | L'index de _arguments_ dans le message ("-1" si _arguments_ n'a pas été trouvé).
|
||||
| pos_channel | chaîne | L'index de _channel_ dans le message ("-1" si _channel_ n'a pas été trouvé).
|
||||
| pos_text | chaîne | L'index de _text_ dans le message ("-1" si _text_ n'a pas été trouvé).
|
||||
| Variable | Type | Description
|
||||
| irc_server | pointeur | Pointeur vers le serveur IRC (les variables dans le hdata de type "irc_server" peuvent être utilisées, comme `${irc_server.name}`).
|
||||
| irc_channel | pointeur | Pointeur vers le canal IRC (les variables dans le hdata de type "irc_channel" peuvent être utilisées, comme `${irc_channel.name}`).
|
||||
| server | chaîne | Nom du serveur (exemple : "freenode").
|
||||
| tags | chaîne | Étiquettes dans le message (rarement utilisées).
|
||||
| message_without_tags | chaîne | Message sans les étiquettes.
|
||||
| nick | chaîne | Pseudo.
|
||||
| host | chaîne | Nom d'hôte.
|
||||
| command | chaîne | Commande IRC (exemple : "PRIVMSG", "NOTICE", ...).
|
||||
| channel | chaîne | Canal IRC.
|
||||
| arguments | chaîne | Paramètres de la commande (inclut la valeur de _channel_).
|
||||
| text | chaîne | Texte (par exemple message utilisateur).
|
||||
| pos_command | chaîne | L'index de _command_ dans le message ("-1" si _command_ n'a pas été trouvé).
|
||||
| pos_arguments | chaîne | L'index de _arguments_ dans le message ("-1" si _arguments_ n'a pas été trouvé).
|
||||
| pos_channel | chaîne | L'index de _channel_ dans le message ("-1" si _channel_ n'a pas été trouvé).
|
||||
| pos_text | chaîne | L'index de _text_ dans le message ("-1" si _text_ n'a pas été trouvé).
|
||||
|===
|
||||
|
||||
Lorsque la donnée est un pointeur, la variable `tg_signal_data` peut être
|
||||
@@ -3844,5 +3900,6 @@ Pour le support via IRC, sur le serveur _chat.freenode.net_ :
|
||||
** _#weechat-fr_ (Français)
|
||||
* canaux non officiels :
|
||||
** _#weechat-de_ (Allemand)
|
||||
** _#weechat-fi_ (Finnois)
|
||||
|
||||
Pour les autres formes de support, voir : https://weechat.org/dev/support
|
||||
|
||||
@@ -168,6 +168,7 @@ _options_ (pointer) +
|
||||
_temp_server_ (integer) +
|
||||
_reloading_from_config_ (integer) +
|
||||
_reloaded_from_config_ (integer) +
|
||||
_addresses_eval_ (string) +
|
||||
_addresses_count_ (integer) +
|
||||
_addresses_array_ (string, array_size: "addresses_count") +
|
||||
_ports_array_ (integer, array_size: "addresses_count") +
|
||||
@@ -456,6 +457,9 @@ _gui_objects_ (pointer) +
|
||||
_prev_bar_window_ (pointer, hdata: "bar_window") +
|
||||
_next_bar_window_ (pointer, hdata: "bar_window") +
|
||||
|
||||
*Update allowed:* +
|
||||
_scroll_x_ (integer) +
|
||||
_scroll_y_ (integer) +
|
||||
|
||||
| weechat
|
||||
| [[hdata_buffer]]<<hdata_buffer,buffer>>
|
||||
@@ -541,6 +545,7 @@ _highlight_tags_restrict_array_ (pointer, array_size: "highlight_tags_restric
|
||||
_highlight_tags_ (string) +
|
||||
_highlight_tags_count_ (integer) +
|
||||
_highlight_tags_array_ (pointer, array_size: "highlight_tags_count") +
|
||||
_hotlist_ (pointer, hdata: "hotlist") +
|
||||
_hotlist_max_level_nicks_ (hashtable) +
|
||||
_keys_ (pointer, hdata: "key") +
|
||||
_last_key_ (pointer, hdata: "key") +
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
. charset (13000)
|
||||
. logger (12000)
|
||||
. exec (11000)
|
||||
. trigger (10000)
|
||||
. aspell (9000)
|
||||
. alias (8000)
|
||||
. charset (14000)
|
||||
. logger (13000)
|
||||
. exec (12000)
|
||||
. trigger (11000)
|
||||
. aspell (10000)
|
||||
. alias (9000)
|
||||
. buflist (8000)
|
||||
. fifo (7000)
|
||||
. xfer (6000)
|
||||
. irc (5000)
|
||||
|
||||
@@ -18,19 +18,23 @@
|
||||
|
||||
| failonerror | long |
|
||||
|
||||
| keep_sending_on_error | long |
|
||||
|
||||
| proxy | string |
|
||||
|
||||
| proxyport | long |
|
||||
|
||||
| port | long |
|
||||
|
||||
| pre_proxy | string |
|
||||
|
||||
| httpproxytunnel | long |
|
||||
|
||||
| interface | string |
|
||||
|
||||
| dns_cache_timeout | long |
|
||||
|
||||
| proxytype | long | http, socks4, socks5, socks4a, socks5_hostname, http_1_0
|
||||
| proxytype | long | http, socks4, socks5, socks4a, socks5_hostname, http_1_0, https
|
||||
|
||||
| buffersize | long |
|
||||
|
||||
@@ -278,7 +282,7 @@
|
||||
|
||||
| sslcert | string |
|
||||
|
||||
| sslversion | long | default, tlsv1, sslv2, sslv3
|
||||
| sslversion | long | default, tlsv1, sslv2, sslv3, tlsv1_0, tlsv1_1, tlsv1_2, tlsv1_3
|
||||
|
||||
| ssl_verifypeer | long |
|
||||
|
||||
@@ -330,6 +334,38 @@
|
||||
|
||||
| ssl_falsestart | long |
|
||||
|
||||
| proxy_cainfo | string |
|
||||
|
||||
| proxy_capath | string |
|
||||
|
||||
| proxy_crlfile | string |
|
||||
|
||||
| proxy_keypasswd | string |
|
||||
|
||||
| proxy_pinnedpublickey | string |
|
||||
|
||||
| proxy_sslcert | string |
|
||||
|
||||
| proxy_sslcerttype | string |
|
||||
|
||||
| proxy_sslkey | string |
|
||||
|
||||
| proxy_sslkeytype | string |
|
||||
|
||||
| proxy_sslversion | long | default, tlsv1, sslv2, sslv3, tlsv1_0, tlsv1_1, tlsv1_2, tlsv1_3
|
||||
|
||||
| proxy_ssl_options | long | allow_beast, no_revoke
|
||||
|
||||
| proxy_ssl_verifyhost | long |
|
||||
|
||||
| proxy_ssl_verifypeer | long |
|
||||
|
||||
| proxy_tlsauth_password | string |
|
||||
|
||||
| proxy_tlsauth_type | string |
|
||||
|
||||
| proxy_tlsauth_username | string |
|
||||
|
||||
| ssh_auth_types | mask | none, policy_flag, flag
|
||||
|
||||
| ssh_public_keyfile | string |
|
||||
|
||||
@@ -50,8 +50,32 @@
|
||||
** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
|
||||
** valore predefinito: `+lightred+`
|
||||
|
||||
* [[option_aspell.color.suggestions]] *aspell.color.suggestions*
|
||||
** descrizione: pass:none[text color for suggestions on a misspelled word (status bar)]
|
||||
* [[option_aspell.color.suggestion]] *aspell.color.suggestion*
|
||||
** descrizione: pass:none[text color for suggestion on a misspelled word in bar item "aspell_suggest"]
|
||||
** tipo: colore
|
||||
** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
|
||||
** valore predefinito: `+default+`
|
||||
|
||||
* [[option_aspell.color.suggestion_delimiter_dict]] *aspell.color.suggestion_delimiter_dict*
|
||||
** descrizione: pass:none[text color for delimiters displayed between two dictionaries in bar item "aspell_suggest"]
|
||||
** tipo: colore
|
||||
** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
|
||||
** valore predefinito: `+cyan+`
|
||||
|
||||
* [[option_aspell.color.suggestion_delimiter_word]] *aspell.color.suggestion_delimiter_word*
|
||||
** descrizione: pass:none[text color for delimiters displayed between two words in bar item "aspell_suggest"]
|
||||
** tipo: colore
|
||||
** valori: a WeeChat color name (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), a terminal color number or an alias; attributes are allowed before color (for text color only, not background): "*" for bold, "!" for reverse, "/" for italic, "_" for underline
|
||||
** valore predefinito: `+cyan+`
|
||||
|
||||
* [[option_aspell.look.suggestion_delimiter_dict]] *aspell.look.suggestion_delimiter_dict*
|
||||
** descrizione: pass:none[delimiter displayed between two dictionaries in bar item "aspell_suggest"]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+" / "+`
|
||||
|
||||
* [[option_aspell.look.suggestion_delimiter_word]] *aspell.look.suggestion_delimiter_word*
|
||||
** descrizione: pass:none[delimiter displayed between two words in bar item "aspell_suggest"]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+","+`
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
[[command_buflist_buflist]]
|
||||
* `+buflist+`: bar item with list of buffers
|
||||
|
||||
----
|
||||
/buflist bar
|
||||
refresh
|
||||
|
||||
bar: add the "buflist" bar
|
||||
refresh: force the refresh of the "buflist" bar item
|
||||
|
||||
The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options:
|
||||
- buflist.look.display_conditions: conditions to display a buffer in the list
|
||||
- buflist.format.buffer: format for a buffer which is not current buffer
|
||||
- buflist.format.buffer_current: format for the current buffer
|
||||
|
||||
The following variables can be used in these options:
|
||||
- buffer data (see hdata "buffer" in API doc for a complete list), for example:
|
||||
- ${buffer.number}
|
||||
- ${buffer.name}
|
||||
- ${buffer.full_name}
|
||||
- ${buffer.short_name}
|
||||
- ${buffer.nicklist_nicks_count}
|
||||
- irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc)
|
||||
- irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc)
|
||||
- extra variables added by buflist for convenience:
|
||||
- ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
|
||||
- ${current_buffer}: a boolean ("0" or "1"), "1" if this is the current buffer; it can be used in a condition: ${if:${current_buffer}?...:...}
|
||||
- ${merged}: a boolean ("0" or "1"), "1" if the buffer is merged with at least another buffer; it can be used in a condition: ${if:${merged}?...:...}
|
||||
- ${format_number}: indented number with separator (evaluation of option buflist.format.number)
|
||||
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
|
||||
- ${number_displayed}: "1" if the number is displayed, otherwise "0"
|
||||
- ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent)
|
||||
- ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix)
|
||||
- ${color_nick_prefix}: color of nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
|
||||
- ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
|
||||
- ${format_name}: formatted name (evaluation of option buflist.format.name)
|
||||
- ${name}: the short name (if set), with a fallback on the name
|
||||
- ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level)
|
||||
- ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist)
|
||||
- ${hotlist}: the raw hotlist
|
||||
- ${hotlist_priority}: "none", "low", "message", "private" or "highlight"
|
||||
- ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag)
|
||||
----
|
||||
@@ -0,0 +1,147 @@
|
||||
//
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
* [[option_buflist.format.buffer]] *buflist.format.buffer*
|
||||
** descrizione: pass:none[format of each line with a buffer (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${format_name}"+`
|
||||
|
||||
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
|
||||
** descrizione: pass:none[format for the line with current buffer (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${color:,blue}${format_buffer}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
|
||||
** descrizione: pass:none[format for hotlist (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+" ${color:green}(${hotlist}${color:green})"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
|
||||
** descrizione: pass:none[format for a buffer with hotlist level "highlight" (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${color:magenta}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
|
||||
** descrizione: pass:none[format for a buffer with hotlist level "low" (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${color:white}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
|
||||
** descrizione: pass:none[format for a buffer with hotlist level "message" (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${color:brown}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
|
||||
** descrizione: pass:none[format for a buffer not in hotlist (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${color:default}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
|
||||
** descrizione: pass:none[format for a buffer with hotlist level "private" (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${color:green}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
|
||||
** descrizione: pass:none[separator for counts in hotlist (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${color:default},"+`
|
||||
|
||||
* [[option_buflist.format.indent]] *buflist.format.indent*
|
||||
** descrizione: pass:none[string displayed to indent channel and private buffers (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+" "+`
|
||||
|
||||
* [[option_buflist.format.lag]] *buflist.format.lag*
|
||||
** descrizione: pass:none[format for lag on an IRC server buffer (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
|
||||
|
||||
* [[option_buflist.format.name]] *buflist.format.name*
|
||||
** descrizione: pass:none[format for buffer name (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${name}"+`
|
||||
|
||||
* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix*
|
||||
** descrizione: pass:none[format for nick prefix on a channel (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${color_nick_prefix}${nick_prefix}"+`
|
||||
|
||||
* [[option_buflist.format.number]] *buflist.format.number*
|
||||
** descrizione: pass:none[format for buffer number, ${number} is the indented number (note: content is evaluated, see /help buflist)]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${color:green}${number}${if:${number_displayed}?.: }"+`
|
||||
|
||||
* [[option_buflist.look.auto_scroll]] *buflist.look.auto_scroll*
|
||||
** descrizione: pass:none[automatically scroll the buflist bar to always see the current buffer (this works only with a bar on the left/right position with a "vertical" filling); this value is the percent number of lines displayed before the current buffer when scrolling (-1 = disable scroll); for example 50 means that after a scroll, the current buffer is at the middle of bar, 0 means on top of bar, 100 means at bottom of bar]
|
||||
** tipo: intero
|
||||
** valori: -1 .. 100
|
||||
** valore predefinito: `+50+`
|
||||
|
||||
* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions*
|
||||
** descrizione: pass:none[conditions to display a buffer (note: content is evaluated, see /help buflist); for example to hide server buffers if they are merged with core buffer: "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"${buffer.hidden}==0"+`
|
||||
|
||||
* [[option_buflist.look.enabled]] *buflist.look.enabled*
|
||||
** descrizione: pass:none[enable buflist]
|
||||
** tipo: bool
|
||||
** valori: on, off
|
||||
** valore predefinito: `+on+`
|
||||
|
||||
* [[option_buflist.look.mouse_jump_visited_buffer]] *buflist.look.mouse_jump_visited_buffer*
|
||||
** descrizione: pass:none[if enabled, clicks with left/right buttons on the line with current buffer jump to previous/next visited buffer]
|
||||
** tipo: bool
|
||||
** valori: on, off
|
||||
** valore predefinito: `+off+`
|
||||
|
||||
* [[option_buflist.look.mouse_move_buffer]] *buflist.look.mouse_move_buffer*
|
||||
** descrizione: pass:none[if enabled, mouse gestures (drag & drop) move buffers in list]
|
||||
** tipo: bool
|
||||
** valori: on, off
|
||||
** valore predefinito: `+on+`
|
||||
|
||||
* [[option_buflist.look.mouse_wheel]] *buflist.look.mouse_wheel*
|
||||
** descrizione: pass:none[if enabled, mouse wheel up/down actions jump to previous/next buffer in list]
|
||||
** tipo: bool
|
||||
** valori: on, off
|
||||
** valore predefinito: `+on+`
|
||||
|
||||
* [[option_buflist.look.nick_prefix]] *buflist.look.nick_prefix*
|
||||
** descrizione: pass:none[get the nick prefix and its color from nicklist so that ${nick_prefix} can be used in format; this can be slow on buffers with lot of nicks in nicklist, so this option is disabled by default]
|
||||
** tipo: bool
|
||||
** valori: on, off
|
||||
** valore predefinito: `+off+`
|
||||
|
||||
* [[option_buflist.look.nick_prefix_empty]] *buflist.look.nick_prefix_empty*
|
||||
** descrizione: pass:none[when the nick prefix is enabled, display a space instead if there is no nick prefix on the buffer]
|
||||
** tipo: bool
|
||||
** valori: on, off
|
||||
** valore predefinito: `+on+`
|
||||
|
||||
* [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh*
|
||||
** descrizione: pass:none[comma-separated list of extra signals that are hooked and trigger the refresh of buffers list; this can be useful if some custom variables are used in formats and need specific refresh]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+""+`
|
||||
|
||||
* [[option_buflist.look.sort]] *buflist.look.sort*
|
||||
** descrizione: 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]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"number,-active"+`
|
||||
@@ -15,10 +15,12 @@ destinazione: nome server
|
||||
* `+allchan+`: esegue un comando su tutti i canali di tutti i server connessi
|
||||
|
||||
----
|
||||
/allchan [-current] [-exclude=<canale>[,<canale>...]] <comando> [<argomenti>]
|
||||
/allchan [-current] [-exclude=<channel>[,<channel>...]] <command> [<arguments>]
|
||||
[-current] -include=<channel>[,<channel>...] <command> [<arguments>]
|
||||
|
||||
-current: execute command for channels of current server only
|
||||
-exclude: exclude some channels (wildcard "*" is allowed)
|
||||
-include: include only some channels (wildcard "*" is allowed)
|
||||
command: command to execute
|
||||
arguments: arguments for command (special variables $nick, $channel and $server are replaced by their value)
|
||||
|
||||
@@ -29,6 +31,8 @@ Examples:
|
||||
/allchan -exclude=#weechat msg * hello
|
||||
say 'hello' everywhere but not on #weechat and channels beginning with #linux:
|
||||
/allchan -exclude=#weechat,#linux* msg * hello
|
||||
say 'hello' on all channels beginning with #linux:
|
||||
/allchan -include=#linux* msg * hello
|
||||
----
|
||||
|
||||
[[command_irc_allpv]]
|
||||
@@ -36,9 +40,11 @@ Examples:
|
||||
|
||||
----
|
||||
/allpv [-current] [-exclude=<nick>[,<nick>...]] <command> [<arguments>]
|
||||
[-current] -include=<nick>[,<nick>...] <command> [<arguments>]
|
||||
|
||||
-current: execute command for private buffers of current server only
|
||||
-exclude: exclude some nicks (wildcard "*" is allowed)
|
||||
-include: include only some nicks (wildcard "*" is allowed)
|
||||
command: command to execute
|
||||
arguments: arguments for command (special variables $nick, $channel and $server are replaced by their value)
|
||||
|
||||
@@ -49,6 +55,8 @@ Examples:
|
||||
/allpv -exclude=foo msg * hello
|
||||
say 'hello' everywhere but not for nick foo and nicks beginning with bar:
|
||||
/allpv -exclude=foo,bar* msg * hello
|
||||
say 'hello' for all nicks beginning with bar:
|
||||
/allpv -include=bar* msg * hello
|
||||
close all private buffers:
|
||||
/allpv close
|
||||
----
|
||||
@@ -57,9 +65,11 @@ Examples:
|
||||
* `+allserv+`: esegue un comando su tutti i server connessi
|
||||
|
||||
----
|
||||
/allserv [-exclude=<server>[,<server>...]] <comando> [<argomenti>]
|
||||
/allserv [-exclude=<server>[,<server>...]] <command> [<arguments>]
|
||||
-include=<server>[,<server>...] <command> [<arguments>]
|
||||
|
||||
-exclude: exclude some servers (wildcard "*" is allowed)
|
||||
-include: include only some servers (wildcard "*" is allowed)
|
||||
command: command to execute
|
||||
arguments: arguments for command (special variables $nick, $channel and $server are replaced by their value)
|
||||
|
||||
@@ -713,6 +723,7 @@ motivo: motivo
|
||||
add <server> <hostname>[/<port>] [-temp] [-<option>[=<value>]] [-no<option>]
|
||||
copy|rename <server> <new_name>
|
||||
reorder <server> [<server>...]
|
||||
open <server>|-all [<server>...]
|
||||
del|keep <server>
|
||||
deloutq|jump|raw
|
||||
|
||||
@@ -727,6 +738,7 @@ nooption: set boolean option to 'off' (for example: -nossl)
|
||||
copy: duplicate a server
|
||||
rename: rename a server
|
||||
reorder: reorder list of servers
|
||||
open: open the server buffer without connecting
|
||||
keep: keep server in config file (for temporary servers only)
|
||||
del: delete a server
|
||||
deloutq: delete messages out queue for all servers (all messages WeeChat is currently sending)
|
||||
|
||||
@@ -477,7 +477,7 @@
|
||||
** valore predefinito: `+300+`
|
||||
|
||||
* [[option_irc.network.lag_refresh_interval]] *irc.network.lag_refresh_interval*
|
||||
** descrizione: pass:none[intervallo tra due aggiornamenti per l'elemento ritardo, quando è in aumento (in secondi)]
|
||||
** descrizione: pass:none[interval between two refreshes of lag item, when lag is increasing (in seconds)]
|
||||
** tipo: intero
|
||||
** valori: 1 .. 3600
|
||||
** valore predefinito: `+1+`
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
----
|
||||
/relay list|listfull|listrelay
|
||||
add <name> <port>
|
||||
del|stop|restart <name>
|
||||
del|start|restart|stop <name>
|
||||
raw
|
||||
sslcertkey
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
listrelay: list relays (name and port)
|
||||
add: add a relay (listen on a port)
|
||||
del: remove a relay (clients remain connected)
|
||||
stop: close the server socket (clients remain connected)
|
||||
start: listen on port
|
||||
restart: close the server socket and listen again on port (clients remain connected)
|
||||
stop: close the server socket (clients remain connected)
|
||||
name: relay name (see format below)
|
||||
port: port used for relay
|
||||
raw: open buffer with raw Relay data
|
||||
|
||||
@@ -237,13 +237,7 @@
|
||||
** valore predefinito: `+"%h/script"+`
|
||||
|
||||
* [[option_script.scripts.url]] *script.scripts.url*
|
||||
** descrizione: pass:none[URL for file with list of scripts; by default HTTPS is forced, see option script.scripts.url_force_https]
|
||||
** descrizione: pass:none[URL for file with list of scripts]
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa
|
||||
** valore predefinito: `+"http://weechat.org/files/plugins.xml.gz"+`
|
||||
|
||||
* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https*
|
||||
** descrizione: pass:none[force use of HTTPS for downloads (index and scripts); you should disable this option only if you have problems with the downloads]
|
||||
** tipo: bool
|
||||
** valori: on, off
|
||||
** valore predefinito: `+on+`
|
||||
** valore predefinito: `+"https://weechat.org/files/plugins.xml.gz"+`
|
||||
|
||||
@@ -72,7 +72,7 @@ Examples:
|
||||
clear [<number>|<name>|-merged|-all [<number>|<name>...]]
|
||||
move <number>|-|+
|
||||
swap <number1>|<name1> [<number2>|<name2>]
|
||||
cycle <number>|<name> [<number>|<name>...]]
|
||||
cycle <number>|<name> [<number>|<name>...]
|
||||
merge <number>
|
||||
unmerge [<number>|-all]
|
||||
hide [<number>|<name>|-all [<number>|<name>...]]
|
||||
@@ -274,6 +274,8 @@ expression: expression to evaluate, variables with format ${variable} are replac
|
||||
> greater
|
||||
=~ is matching POSIX extended regex
|
||||
!~ is NOT matching POSIX extended regex
|
||||
=* is matching mask (wildcard "*" is allowed)
|
||||
!* is NOT matching mask (wildcard "*" is allowed)
|
||||
|
||||
An expression is considered as "true" if it is not NULL, not empty, and different from "0".
|
||||
The comparison is made using integers if the two expressions are valid integers.
|
||||
@@ -285,13 +287,16 @@ Some variables are replaced in expression, using the format ${variable}, variabl
|
||||
1. an evaluated sub-string (format: "eval:xxx")
|
||||
2. a string with escaped chars (format: "esc:xxx" or "\xxx")
|
||||
3. a string with chars to hide (format: "hide:char,string")
|
||||
4. a color (format: "color:xxx")
|
||||
5. an info (format: "info:name,arguments", arguments are optional)
|
||||
6. current date/time (format: "date" or "date:format")
|
||||
7. an environment variable (format: "env:XXX")
|
||||
8. an option (format: "file.section.option")
|
||||
9. a local variable in buffer
|
||||
10. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
|
||||
4. a string with max chars (format: "cut:max,suffix,string" or "cut:+max,suffix,string")
|
||||
or max chars displayed on screen (format: "cutscr:max,suffix,string" or "cutscr:+max,suffix,string")
|
||||
5. a color (format: "color:xxx", see "Plugin API reference", function "color")
|
||||
6. an info (format: "info:name,arguments", arguments are optional)
|
||||
7. current date/time (format: "date" or "date:format")
|
||||
8. an environment variable (format: "env:XXX")
|
||||
9. a ternary operator (format: "if:condition?value_if_true:value_if_false")
|
||||
10. an option (format: "file.section.option")
|
||||
11. a local variable in buffer
|
||||
12. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
|
||||
Format for hdata can be one of following:
|
||||
hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed)
|
||||
hdata[list].var1.var2...: start with a hdata using a list, for example:
|
||||
@@ -302,16 +307,19 @@ Format for hdata can be one of following:
|
||||
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
|
||||
|
||||
Examples (simple strings):
|
||||
/eval -n ${info:version} ==> 0.4.3
|
||||
/eval -n ${env:HOME} ==> /home/user
|
||||
/eval -n ${weechat.look.scroll_amount} ==> 3
|
||||
/eval -n ${window} ==> 0x2549aa0
|
||||
/eval -n ${window.buffer} ==> 0x2549320
|
||||
/eval -n ${window.buffer.full_name} ==> core.weechat
|
||||
/eval -n ${window.buffer.number} ==> 1
|
||||
/eval -n ${\t} ==> <tab>
|
||||
/eval -n ${hide:-,${relay.network.password}} ==> --------
|
||||
/eval -n ${date:%H:%M:%S} ==> 07:46:40
|
||||
/eval -n ${info:version} ==> 0.4.3
|
||||
/eval -n ${env:HOME} ==> /home/user
|
||||
/eval -n ${weechat.look.scroll_amount} ==> 3
|
||||
/eval -n ${window} ==> 0x2549aa0
|
||||
/eval -n ${window.buffer} ==> 0x2549320
|
||||
/eval -n ${window.buffer.full_name} ==> core.weechat
|
||||
/eval -n ${window.buffer.number} ==> 1
|
||||
/eval -n ${\t} ==> <tab>
|
||||
/eval -n ${hide:-,${relay.network.password}} ==> --------
|
||||
/eval -n ${cut:3,+,test} ==> tes+
|
||||
/eval -n ${cut:+3,+,test} ==> te+
|
||||
/eval -n ${date:%H:%M:%S} ==> 07:46:40
|
||||
/eval -n ${if:${info:term_width}>80?big:small} ==> big
|
||||
|
||||
Examples (conditions):
|
||||
/eval -n -c ${window.buffer.number} > 2 ==> 0
|
||||
@@ -322,6 +330,7 @@ Examples (conditions):
|
||||
/eval -n -c abcd =~ (?-i)^ABC ==> 0
|
||||
/eval -n -c abcd =~ (?-i)^abc ==> 1
|
||||
/eval -n -c abcd !~ abc ==> 0
|
||||
/eval -n -c abcd =* a*d ==> 1
|
||||
----
|
||||
|
||||
[[command_weechat_filter]]
|
||||
@@ -939,13 +948,13 @@ Esempi:
|
||||
-1|+1|b#|up|down|left|right [-window <number>]
|
||||
<number>
|
||||
splith|splitv [-window <number>] [<pct>]
|
||||
resize [-window <number>] [+/-]<pct>
|
||||
resize [-window <number>] [h|v][+|-]<pct>
|
||||
balance
|
||||
merge [-window <number>] [all]
|
||||
page_up|page_down [-window <number>]
|
||||
refresh
|
||||
scroll [-window <number>] [+/-]<value>[s|m|h|d|M|y]
|
||||
scroll_horiz [-window <number>] [+/-]<value>[%]
|
||||
scroll [-window <number>] [+|-]<value>[s|m|h|d|M|y]
|
||||
scroll_horiz [-window <number>] [+|-]<value>[%]
|
||||
scroll_up|scroll_down|scroll_top|scroll_bottom|scroll_beyond_end|scroll_previous_highlight|scroll_next_highlight|scroll_unread [-window <number>]
|
||||
swap [-window <number>] [up|down|left|right]
|
||||
zoom [-window <number>]
|
||||
@@ -963,6 +972,7 @@ Esempi:
|
||||
splith: split current window horizontally (to undo: /window merge)
|
||||
splitv: split current window vertically (to undo: /window merge)
|
||||
resize: resize window size, new size is <pct> percentage of parent window
|
||||
if "h" or "v" is specified, the resize affects the nearest parent window with a split of this type (horizontal/vertical)
|
||||
balance: balance the sizes of all windows
|
||||
merge: merge window with another (all = keep only one window)
|
||||
page_up: scroll one page up
|
||||
@@ -995,8 +1005,12 @@ Examples:
|
||||
/window scroll -d
|
||||
zoom on window #2:
|
||||
/window zoom -window 2
|
||||
split window horizontally using 30%% of space for the window on top:
|
||||
split window horizontally using 30% of space for the window on top:
|
||||
/window splith 30
|
||||
resize window to 75% of the parent window size:
|
||||
/window resize 75
|
||||
resize vertical split, add 10% in size:
|
||||
/window resize v+10
|
||||
remove the split:
|
||||
/window merge
|
||||
enable bare display for 2 seconds:
|
||||
|
||||
@@ -410,6 +410,12 @@
|
||||
** valori: on, off
|
||||
** valore predefinito: `+on+`
|
||||
|
||||
* [[option_weechat.completion.nick_case_sensitive]] *weechat.completion.nick_case_sensitive*
|
||||
** descrizione: pass:none[case sensitive completion for nicks]
|
||||
** tipo: bool
|
||||
** valori: on, off
|
||||
** valore predefinito: `+off+`
|
||||
|
||||
* [[option_weechat.completion.nick_completer]] *weechat.completion.nick_completer*
|
||||
** descrizione: pass:none[stringa inserita dopo il completamento del nick (quando il nick è la prima parola sulla riga di comando)]
|
||||
** tipo: stringa
|
||||
|
||||
@@ -50,6 +50,7 @@ example:
|
||||
|
||||
irc://mynick@[2001:db8:0:85a3::ac1f:8001]:6668/#test
|
||||
|
||||
// TRANSLATION MISSING
|
||||
== FILES
|
||||
|
||||
$HOME/.weechat/weechat.conf::
|
||||
@@ -58,7 +59,6 @@ $HOME/.weechat/weechat.conf::
|
||||
$HOME/.weechat/plugins.conf::
|
||||
plugins configuration file
|
||||
|
||||
// TRANSLATION MISSING
|
||||
$HOME/.weechat/sec.conf::
|
||||
configuration file with secured data
|
||||
|
||||
@@ -68,12 +68,18 @@ $HOME/.weechat/alias.conf::
|
||||
$HOME/.weechat/aspell.conf::
|
||||
configuration file for _aspell_ plugin
|
||||
|
||||
$HOME/.weechat/buflist.conf::
|
||||
configuration file for _buflist_ plugin
|
||||
|
||||
$HOME/.weechat/charset.conf::
|
||||
configuration file for _charset_ plugin
|
||||
|
||||
$HOME/.weechat/exec.conf::
|
||||
configuration file for _exec_ plugin
|
||||
|
||||
$HOME/.weechat/fifo.conf::
|
||||
configuration file for _fifo_ plugin
|
||||
|
||||
$HOME/.weechat/irc.conf::
|
||||
configuration file for _irc_ plugin
|
||||
|
||||
|
||||
@@ -641,6 +641,13 @@ Impostare l'opzione _weechat.network.gnutls_ca_file_ con il file dei certificati
|
||||
/set weechat.network.gnutls_ca_file "/etc/ssl/certs/ca-certificates.crt"
|
||||
----
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Note: if you are running OS X with homebrew openssl installed, you can do:
|
||||
|
||||
----
|
||||
/set weechat.network.gnutls_ca_file "/usr/local/etc/openssl/cert.pem"
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
Verificare la presenza di questo file sul sistema (solitamente installato dal
|
||||
pacchetto "ca-certificates").
|
||||
@@ -882,8 +889,8 @@ Esistono diversi trucchi per ottimizzare l'uso della memoria:
|
||||
|
||||
* utilizzare l'ultima versione stabile (si suppone che abbia meno falle di memoria
|
||||
rispetto le versioni precedenti)
|
||||
* non caricare alcuni plugin se non vengono utilizzati, ad esempio: aspell, fifo,
|
||||
logger, perl, python, ruby, lua, tcl, guile, javascript, xfer (usato per DCC)
|
||||
* non caricare alcuni plugin se non vengono utilizzati, ad esempio: aspell, buflist,
|
||||
fifo, logger, perl, python, ruby, lua, tcl, guile, javascript, xfer (usato per DCC)
|
||||
* caricare solo gli script veramente necessari
|
||||
* non caricare i certificati se SSL *NON* viene usato: usare una stringa vuota nell'opzione
|
||||
_weechat.network.gnutls_ca_file_
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -491,9 +491,11 @@ Elenco di funzioni nelle API per gli script:
|
||||
| visualizzazione |
|
||||
prefix +
|
||||
color +
|
||||
// TRANSLATION MISSING
|
||||
print (for python: prnt) +
|
||||
print_date_tags (for python:
|
||||
prnt_date_tags) +
|
||||
// TRANSLATION MISSING
|
||||
print_date_tags (for python: prnt_date_tags) +
|
||||
// TRANSLATION MISSING
|
||||
print_y (for python: prnt_y) +
|
||||
log_print
|
||||
|
||||
@@ -512,6 +514,7 @@ Elenco di funzioni nelle API per gli script:
|
||||
hook_hsignal_send +
|
||||
hook_config +
|
||||
hook_completion +
|
||||
hook_completion_get_string +
|
||||
hook_completion_list_add +
|
||||
hook_modifier +
|
||||
hook_modifier_exec +
|
||||
@@ -593,6 +596,7 @@ Elenco di funzioni nelle API per gli script:
|
||||
infolist_next +
|
||||
infolist_prev +
|
||||
infolist_reset_item_cursor +
|
||||
infolist_search_var +
|
||||
infolist_fields +
|
||||
infolist_integer +
|
||||
infolist_string +
|
||||
@@ -618,6 +622,7 @@ Elenco di funzioni nelle API per gli script:
|
||||
hdata_pointer +
|
||||
hdata_time +
|
||||
hdata_hashtable +
|
||||
hdata_compare +
|
||||
hdata_update +
|
||||
hdata_get_string
|
||||
|
||||
@@ -1066,12 +1071,11 @@ xxx,irc_in2_yyy::
|
||||
def join_cb(data, signal, signal_data):
|
||||
# signal è per esempio: "freenode,irc_in2_join"
|
||||
# signal_data è il messaggio IRC message, ad esempio: ":nick!user@host JOIN :#channel"
|
||||
nick = weechat.info_get("irc_nick_from_host", signal_data)
|
||||
server = signal.split(",")[0]
|
||||
channel = signal_data.split(":")[-1]
|
||||
buffer = weechat.info_get("irc_buffer", "%s,%s" % (server, channel))
|
||||
msg = weechat.info_get_hashtable("irc_message_parse", {"message": signal_data})
|
||||
buffer = weechat.info_get("irc_buffer", "%s,%s" % (server, msg["channel"]))
|
||||
if buffer:
|
||||
weechat.prnt(buffer, "Eheh, %s has joined this channel!" % nick)
|
||||
weechat.prnt(buffer, "%s (%s) has joined this channel!" % (msg["nick"], msg["host"]))
|
||||
return weechat.WEECHAT_RC_OK
|
||||
|
||||
# può essere utile qui utilizzare "*" come server, per catturare
|
||||
|
||||
+96
-26
@@ -148,8 +148,11 @@ compilare WeeChat.
|
||||
[NOTE]
|
||||
^(1)^ Il nome viene dalla distribuzione Debian GNU/Linux, nomi e versioni dei pacchetti
|
||||
potrebbero essere differenti in versioni e distribuzioni differenti. +
|
||||
^(2)^ WeeChat può essere compilato con libncurses5-dev, ma *NON* è raccomandato
|
||||
(potrebbero verificarsi bug di visualizzazione). +
|
||||
// TRANSLATION MISSING
|
||||
^(2)^ It is recommended to compile with libncurses**w**5-dev (the *w* is
|
||||
important). WeeChat can compile with libncurses5-dev, but it is *NOT* recommended:
|
||||
you may experience display bugs with wide chars. +
|
||||
// TRANSLATION MISSING
|
||||
^(3)^ Gnutls ≥ 3.0.21 is required for IRC SASL authentication with mechanism
|
||||
ECDSA-NIST256P-CHALLENGE. +
|
||||
^(4)^ La versione raccomandata di Python è la 2.7 (tutti gli script funzionano
|
||||
@@ -219,6 +222,9 @@ List of commonly used options:
|
||||
| ENABLE_ASPELL | `ON`, `OFF` | ON |
|
||||
Compile <<aspell_plugin,Aspell plugin>>.
|
||||
|
||||
| ENABLE_BUFLIST | `ON`, `OFF` | ON |
|
||||
Compile <<buflist_plugin,Buflist plugin>>.
|
||||
|
||||
| ENABLE_CHARSET | `ON`, `OFF` | ON |
|
||||
Compile <<charset_plugin,Charset plugin>>.
|
||||
|
||||
@@ -557,8 +563,10 @@ The files in home directory are:
|
||||
| plugins.conf | Plugins configuration file | Possible, depends on plugins/scripts.
|
||||
| alias.conf | Configuration file for _alias_ plugin | Possible, depends on aliases.
|
||||
| aspell.conf | Configuration file for _aspell_ plugin | No.
|
||||
| buflist.conf | Configuration file for _buflist_ plugin | No.
|
||||
| charset.conf | Configuration file for _charset_ plugin | No.
|
||||
| exec.conf | Configuration file for _exec_ plugin | No.
|
||||
| fifo.conf | Configuration file for _fifo_ plugin | No.
|
||||
| irc.conf | Configuration file for _irc_ plugin | *Yes*: it can contain passwords for servers, nickserv and channels (if not stored in `sec.conf`).
|
||||
| logger.conf | Configuration file for _logger_ plugin | No.
|
||||
| relay.conf | Configuration file for _relay_ plugin | No.
|
||||
@@ -1627,6 +1635,14 @@ with `/script install buffer_autoset.py` and get help with `/help autosetbuffer`
|
||||
| kbd:[Alt+PgDn] | Scorre di qualche riga in basso nella cronologia del buffer. | `/window scroll_down`
|
||||
| kbd:[Alt+Home] | Scorre in cima al buffer. | `/window scroll_top`
|
||||
| kbd:[Alt+End] | Scorre alla fine del del buffer. | `/window scroll_bottom`
|
||||
// TRANSLATION MISSING
|
||||
| kbd:[F1] | Scroll up one page in buflist. | `/bar scroll buflist * -100%`
|
||||
// TRANSLATION MISSING
|
||||
| kbd:[F2] | Scroll down one page in buflist. | `/bar scroll buflist * +100%`
|
||||
// TRANSLATION MISSING
|
||||
| kbd:[Alt+F1] | Go to the beginning of buflist. | `/bar scroll buflist * b`
|
||||
// TRANSLATION MISSING
|
||||
| kbd:[Alt+F2] | Go to the end of buflist. | `/bar scroll buflist * e`
|
||||
| kbd:[Alt+←] +
|
||||
kbd:[Alt+↑] +
|
||||
kbd:[Ctrl+p] +
|
||||
@@ -1761,6 +1777,18 @@ evento del mouse.
|
||||
| ⇓ | - | chat (script buffer) | Move 5 lines down in script buffer. | `/script down 5`
|
||||
| kbd:[Ctrl+⇑] | - | chat | Scroll horizontally to the left. | `/window scroll_horiz -window ${_window_number} -10%`
|
||||
| kbd:[Ctrl+⇓] | - | chat | Scroll horizontally to the right. | `/window scroll_horiz -window ${_window_number} +10%`
|
||||
// TRANSLATION MISSING
|
||||
| ◾◽◽ | up / left | buflist | Move buffer to a lower number. | Signal `buflist_mouse`.
|
||||
// TRANSLATION MISSING
|
||||
| ◾◽◽ | down / right | buflist | Move buffer to a higher number. | Signal `buflist_mouse`.
|
||||
// TRANSLATION MISSING
|
||||
| ◾◽◽ | - | buflist | Switch to buffer (previously visited buffer if the buffer is the current one). | Signal `buflist_mouse`.
|
||||
// TRANSLATION MISSING
|
||||
| ◽◽◾ | - | buflist | Switch to next visited buffer if the buffer is the current one. | Signal `buflist_mouse`.
|
||||
// TRANSLATION MISSING
|
||||
| kbd:[Ctrl+⇑] | - | buflist | Switch to previous buffer. | Signal `buflist_mouse`.
|
||||
// TRANSLATION MISSING
|
||||
| kbd:[Ctrl+⇓] | - | buflist | Switch to next buffer. | Signal `buflist_mouse`.
|
||||
| ◾◽◽ | su | lista nick | Scorre di una pagina in alto nella lista nick. | `/bar scroll nicklist ${_window_number} -100%`
|
||||
| ◾◽◽ | giù | lista nick | Scorre di una pagina in basso nella lista nick. | `/bar scroll nicklist ${_window_number} +100%`
|
||||
| ◾◽◽ | up (lungo) | lista nick | Sposta all'inizio della lista nick. | `/bar scroll nicklist ${_window_number} b`
|
||||
@@ -2088,6 +2116,8 @@ I plugin predefiniti sono:
|
||||
| Plugin | Descrizione
|
||||
| alias | Definisce gli alias per i comandi.
|
||||
| aspell | Controllo ortografico per la riga di comando.
|
||||
// TRANSLATION MISSING
|
||||
| buflist | Bar item with list of buffers.
|
||||
| charset | Set di caratteri per la codifica/decodifica nei buffer.
|
||||
// TRANSLATION MISSING
|
||||
| exec | Execution of external commands in WeeChat.
|
||||
@@ -2143,6 +2173,7 @@ Sections:
|
||||
| check | /set aspell.check.* | Options to control spell checking.
|
||||
| dict | <<command_aspell_aspell,/aspell setdict>> +
|
||||
/set aspell.dict.* | Dictionaries used by buffer (options can be added/removed in section).
|
||||
| look | /set aspell.look.* | Look and feel.
|
||||
| option | /set aspell.option.* | <<aspell_speller_options,Opzioni ortografiche>> (options can be added/removed in section).
|
||||
|===
|
||||
|
||||
@@ -2201,6 +2232,37 @@ Example of suggestions with English and French dictionaries (`en,fr`):
|
||||
└─────────────────────────────────────────────────────────────────────────────────┘
|
||||
....
|
||||
|
||||
[[buflist_plugin]]
|
||||
=== Plugin Buflist
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Buflist plugin displays a list of buffers in a bar item called "buflist". +
|
||||
A default bar "buflist" is created on startup with this item.
|
||||
|
||||
[[buflist_options]]
|
||||
==== Options (buflist.conf)
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Sections:
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[width="100%",cols="3m,6m,16",options="header"]
|
||||
|===
|
||||
| Section | Control command | Description
|
||||
| format | /set buflist.format.* | Formats used to display list of buffers.
|
||||
| look | /set buflist.look.* | Look and feel.
|
||||
|===
|
||||
|
||||
// TRANSLATION MISSING
|
||||
Options:
|
||||
|
||||
include::autogen/user/buflist_options.adoc[]
|
||||
|
||||
[[buflist_commands]]
|
||||
==== Comandi
|
||||
|
||||
include::autogen/user/buflist_commands.adoc[]
|
||||
|
||||
[[charset_plugin]]
|
||||
=== Plugin Charset
|
||||
|
||||
@@ -2547,7 +2609,7 @@ $ openssl req -nodes -newkey rsa:2048 -keyout nick.pem -x509 -days 365 -out nick
|
||||
/msg nickserv cert add
|
||||
----
|
||||
|
||||
Per maggiori informazioni consultare http://www.oftc.net/oftc/NickServ/CertFP
|
||||
Per maggiori informazioni consultare https://www.oftc.net/NickServ/CertFP
|
||||
|
||||
[[irc_sasl_authentication]]
|
||||
==== Autenticazione SASL
|
||||
@@ -2649,7 +2711,7 @@ host/IP e porta dipendono dalla propria configurazione di TOR):
|
||||
Now, add a new server, for example:
|
||||
|
||||
----
|
||||
/server add freenode-tor p4fsi4ockecnea7l.onion
|
||||
/server add freenode-tor freenodeok2gncmy.onion
|
||||
----
|
||||
|
||||
Impostare il proxy per TOR:
|
||||
@@ -2658,11 +2720,15 @@ Impostare il proxy per TOR:
|
||||
/set irc.server.freenode-tor.proxy "tor"
|
||||
----
|
||||
|
||||
Impostare l'autenticazione SASL:
|
||||
// TRANSLATION MISSING
|
||||
Set SASL authentication with ECDSA-NIST256P-CHALLENGE (see the chapter
|
||||
<<irc_sasl_ecdsa_nist256p_challenge,SASL ECDSA-NIST256P-CHALLENGE>> to generate
|
||||
a private key):
|
||||
|
||||
----
|
||||
/set irc.server.freenode-tor.sasl_mechanism ecdsa-nist256p-challenge
|
||||
/set irc.server.freenode-tor.sasl_username "your_nickname"
|
||||
/set irc.server.freenode-tor.sasl_password "your_password"
|
||||
/set irc.server.freenode-tor.sasl_key "%h/ecdsa.pem"
|
||||
----
|
||||
|
||||
E alla fine, connettersi al server:
|
||||
@@ -2672,7 +2738,7 @@ E alla fine, connettersi al server:
|
||||
----
|
||||
|
||||
Per maggiori informazioni su Freenode e TOR:
|
||||
http://freenode.net/irc_servers.shtml#tor
|
||||
http://freenode.net/kb/answer/chat#accessing-freenode-via-tor
|
||||
|
||||
[[irc_smart_filter_join_part_quit]]
|
||||
==== Filtro smart per i messaggi di entrata/uscita/disconnessione
|
||||
@@ -3099,7 +3165,12 @@ protocolli differenti:
|
||||
* _irc_: proxy IRC: usato per condividere le connessioni ai server IRC con uno
|
||||
o più client IRC
|
||||
* _weechat_: protocollo usato dalle interfacce remote per mostrare ed interagire
|
||||
con WeeChat (ad esempio QWeeChat)
|
||||
con WeeChat, ad esempio:
|
||||
** Glowing Bear (HTML5): https://www.glowing-bear.org/
|
||||
** QWeeChat (Qt): https://weechat.org/download
|
||||
** WeeChat-Android (Android): https://github.com/ubergeek42/weechat-android
|
||||
** weechat.el (Emacs): https://github.com/the-kenny/weechat.el
|
||||
** WeeCloud (Javascript): https://github.com/eirikb/weecloud
|
||||
|
||||
[[relay_options]]
|
||||
==== Opzioni (relay.conf)
|
||||
@@ -3622,24 +3693,22 @@ is added in hashtable:
|
||||
|
||||
[width="100%",cols="3m,2,14",options="header"]
|
||||
|===
|
||||
| Variable | Type | Description
|
||||
| server | string | Name of server (example: "freenode").
|
||||
| tags | string | Tags in message (rarely used).
|
||||
| message_without_tags | string | Message without tags.
|
||||
| nick | string | Nick.
|
||||
| host | string | Hostname.
|
||||
| command | string | IRC command (example: "PRIVMSG", "NOTICE", ...).
|
||||
| channel | string | IRC channel.
|
||||
| arguments | string | Arguments of command (includes value of _channel_).
|
||||
| text | string | Text (for example user message).
|
||||
// TRANSLATION MISSING
|
||||
| pos_command | string | The index of _command_ in message ("-1" if _command_ was not found).
|
||||
// TRANSLATION MISSING
|
||||
| pos_arguments | string | The index of _arguments_ in message ("-1" if _arguments_ was not found).
|
||||
// TRANSLATION MISSING
|
||||
| pos_channel | string | The index of _channel_ in message ("-1" if _channel_ was not found).
|
||||
// TRANSLATION MISSING
|
||||
| pos_text | string | The index of _text_ in message ("-1" if _text_ was not found).
|
||||
| Variable | Type | Description
|
||||
| irc_server | pointer | Pointer to IRC server (variables in hdata of type "irc_server" can be used, like `${irc_server.name}`).
|
||||
| irc_channel | pointer | Pointer to IRC channel (variables in hdata of type "irc_channel" can be used, like `${irc_channel.name}`).
|
||||
| server | string | Name of server (example: "freenode").
|
||||
| tags | string | Tags in message (rarely used).
|
||||
| message_without_tags | string | Message without tags.
|
||||
| nick | string | Nick.
|
||||
| host | string | Hostname.
|
||||
| command | string | IRC command (example: "PRIVMSG", "NOTICE", ...).
|
||||
| channel | string | IRC channel.
|
||||
| arguments | string | Arguments of command (includes value of _channel_).
|
||||
| text | string | Text (for example user message).
|
||||
| pos_command | string | The index of _command_ in message ("-1" if _command_ was not found).
|
||||
| pos_arguments | string | The index of _arguments_ in message ("-1" if _arguments_ was not found).
|
||||
| pos_channel | string | The index of _channel_ in message ("-1" if _channel_ was not found).
|
||||
| pos_text | string | The index of _text_ in message ("-1" if _text_ was not found).
|
||||
|===
|
||||
|
||||
When the data is a pointer, the variable `tg_signal_data` can be used like this
|
||||
@@ -3909,6 +3978,7 @@ For support with IRC, on server _chat.freenode.net_:
|
||||
** _#weechat-fr_ (French)
|
||||
* non-official channels:
|
||||
** _#weechat-de_ (German)
|
||||
** _#weechat-fi_ (Finlandese)
|
||||
|
||||
// TRANSLATION MISSING
|
||||
For other ways of support, see: https://weechat.org/dev/support
|
||||
|
||||
@@ -168,6 +168,7 @@ _options_ (pointer) +
|
||||
_temp_server_ (integer) +
|
||||
_reloading_from_config_ (integer) +
|
||||
_reloaded_from_config_ (integer) +
|
||||
_addresses_eval_ (string) +
|
||||
_addresses_count_ (integer) +
|
||||
_addresses_array_ (string, array_size: "addresses_count") +
|
||||
_ports_array_ (integer, array_size: "addresses_count") +
|
||||
@@ -456,6 +457,9 @@ _gui_objects_ (pointer) +
|
||||
_prev_bar_window_ (pointer, hdata: "bar_window") +
|
||||
_next_bar_window_ (pointer, hdata: "bar_window") +
|
||||
|
||||
*更新可能な変数:* +
|
||||
_scroll_x_ (integer) +
|
||||
_scroll_y_ (integer) +
|
||||
|
||||
| weechat
|
||||
| [[hdata_buffer]]<<hdata_buffer,buffer>>
|
||||
@@ -541,6 +545,7 @@ _highlight_tags_restrict_array_ (pointer, array_size: "highlight_tags_restric
|
||||
_highlight_tags_ (string) +
|
||||
_highlight_tags_count_ (integer) +
|
||||
_highlight_tags_array_ (pointer, array_size: "highlight_tags_count") +
|
||||
_hotlist_ (pointer, hdata: "hotlist") +
|
||||
_hotlist_max_level_nicks_ (hashtable) +
|
||||
_keys_ (pointer, hdata: "key") +
|
||||
_last_key_ (pointer, hdata: "key") +
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
. charset (13000)
|
||||
. logger (12000)
|
||||
. exec (11000)
|
||||
. trigger (10000)
|
||||
. aspell (9000)
|
||||
. alias (8000)
|
||||
. charset (14000)
|
||||
. logger (13000)
|
||||
. exec (12000)
|
||||
. trigger (11000)
|
||||
. aspell (10000)
|
||||
. alias (9000)
|
||||
. buflist (8000)
|
||||
. fifo (7000)
|
||||
. xfer (6000)
|
||||
. irc (5000)
|
||||
|
||||
@@ -18,19 +18,23 @@
|
||||
|
||||
| failonerror | long |
|
||||
|
||||
| keep_sending_on_error | long |
|
||||
|
||||
| proxy | string |
|
||||
|
||||
| proxyport | long |
|
||||
|
||||
| port | long |
|
||||
|
||||
| pre_proxy | string |
|
||||
|
||||
| httpproxytunnel | long |
|
||||
|
||||
| interface | string |
|
||||
|
||||
| dns_cache_timeout | long |
|
||||
|
||||
| proxytype | long | http, socks4, socks5, socks4a, socks5_hostname, http_1_0
|
||||
| proxytype | long | http, socks4, socks5, socks4a, socks5_hostname, http_1_0, https
|
||||
|
||||
| buffersize | long |
|
||||
|
||||
@@ -278,7 +282,7 @@
|
||||
|
||||
| sslcert | string |
|
||||
|
||||
| sslversion | long | default, tlsv1, sslv2, sslv3
|
||||
| sslversion | long | default, tlsv1, sslv2, sslv3, tlsv1_0, tlsv1_1, tlsv1_2, tlsv1_3
|
||||
|
||||
| ssl_verifypeer | long |
|
||||
|
||||
@@ -330,6 +334,38 @@
|
||||
|
||||
| ssl_falsestart | long |
|
||||
|
||||
| proxy_cainfo | string |
|
||||
|
||||
| proxy_capath | string |
|
||||
|
||||
| proxy_crlfile | string |
|
||||
|
||||
| proxy_keypasswd | string |
|
||||
|
||||
| proxy_pinnedpublickey | string |
|
||||
|
||||
| proxy_sslcert | string |
|
||||
|
||||
| proxy_sslcerttype | string |
|
||||
|
||||
| proxy_sslkey | string |
|
||||
|
||||
| proxy_sslkeytype | string |
|
||||
|
||||
| proxy_sslversion | long | default, tlsv1, sslv2, sslv3, tlsv1_0, tlsv1_1, tlsv1_2, tlsv1_3
|
||||
|
||||
| proxy_ssl_options | long | allow_beast, no_revoke
|
||||
|
||||
| proxy_ssl_verifyhost | long |
|
||||
|
||||
| proxy_ssl_verifypeer | long |
|
||||
|
||||
| proxy_tlsauth_password | string |
|
||||
|
||||
| proxy_tlsauth_type | string |
|
||||
|
||||
| proxy_tlsauth_username | string |
|
||||
|
||||
| ssh_auth_types | mask | none, policy_flag, flag
|
||||
|
||||
| ssh_public_keyfile | string |
|
||||
|
||||
@@ -50,8 +50,32 @@
|
||||
** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、端末色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_"
|
||||
** デフォルト値: `+lightred+`
|
||||
|
||||
* [[option_aspell.color.suggestions]] *aspell.color.suggestions*
|
||||
** 説明: pass:none[スペルミスのある単語に対する修正候補に付ける色 (ステータスバー)]
|
||||
* [[option_aspell.color.suggestion]] *aspell.color.suggestion*
|
||||
** 説明: pass:none[バー要素 "aspell_suggest" 内のスペルミスのある単語に対する修正候補に付ける色]
|
||||
** タイプ: 色
|
||||
** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、端末色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_"
|
||||
** デフォルト値: `+default+`
|
||||
|
||||
* [[option_aspell.color.suggestion_delimiter_dict]] *aspell.color.suggestion_delimiter_dict*
|
||||
** 説明: pass:none[バー要素 "aspell_suggest" 内の 2 つの辞書間の区切り文字に付ける色]
|
||||
** タイプ: 色
|
||||
** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、端末色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_"
|
||||
** デフォルト値: `+cyan+`
|
||||
|
||||
* [[option_aspell.color.suggestion_delimiter_word]] *aspell.color.suggestion_delimiter_word*
|
||||
** 説明: pass:none[バー要素 "aspell_suggest" 内の 2 つの単語間の区切り文字に付ける色]
|
||||
** タイプ: 色
|
||||
** 値: WeeChat の色名 (default、black、(dark)gray、white、(light)red、(light)green、brown、yellow、(light)blue、(light)magenta、(light)cyan) 、端末色番号またはその別名; 色の前に属性を置くことができます (テキスト前景色のみ、背景色は出来ません): 太字は "*"、反転は "!"、イタリックは "/"、下線は "_"
|
||||
** デフォルト値: `+cyan+`
|
||||
|
||||
* [[option_aspell.look.suggestion_delimiter_dict]] *aspell.look.suggestion_delimiter_dict*
|
||||
** 説明: pass:none[バー要素 "aspell_suggest" 内の 2 つの辞書間の区切り文字]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+" / "+`
|
||||
|
||||
* [[option_aspell.look.suggestion_delimiter_word]] *aspell.look.suggestion_delimiter_word*
|
||||
** 説明: pass:none[バー要素 "aspell_suggest" 内の 2 つの単語間の区切り文字]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+","+`
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
[[command_buflist_buflist]]
|
||||
* `+buflist+`: バッファのリストを表示するバー要素
|
||||
|
||||
----
|
||||
/buflist bar
|
||||
refresh
|
||||
|
||||
bar: add the "buflist" bar
|
||||
refresh: force the refresh of the "buflist" bar item
|
||||
|
||||
The lines with buffers are displayed using string evaluation (see /help eval for the format), with these options:
|
||||
- buflist.look.display_conditions: conditions to display a buffer in the list
|
||||
- buflist.format.buffer: format for a buffer which is not current buffer
|
||||
- buflist.format.buffer_current: format for the current buffer
|
||||
|
||||
The following variables can be used in these options:
|
||||
- buffer data (see hdata "buffer" in API doc for a complete list), for example:
|
||||
- ${buffer.number}
|
||||
- ${buffer.name}
|
||||
- ${buffer.full_name}
|
||||
- ${buffer.short_name}
|
||||
- ${buffer.nicklist_nicks_count}
|
||||
- irc_server: IRC server data, defined only on an IRC buffer (see hdata "irc_server" in API doc)
|
||||
- irc_channel: IRC channel data, defined only on an IRC channel buffer (see hdata "irc_channel" in API doc)
|
||||
- extra variables added by buflist for convenience:
|
||||
- ${format_buffer}: the evaluated value of option buflist.format.buffer; this can be used in option buflist.format.buffer_current to just change the background color for example
|
||||
- ${current_buffer}: a boolean ("0" or "1"), "1" if this is the current buffer; it can be used in a condition: ${if:${current_buffer}?...:...}
|
||||
- ${merged}: a boolean ("0" or "1"), "1" if the buffer is merged with at least another buffer; it can be used in a condition: ${if:${merged}?...:...}
|
||||
- ${format_number}: indented number with separator (evaluation of option buflist.format.number)
|
||||
- ${number}: indented number, for example " 1" if there are between 10 and 99 buffers
|
||||
- ${number_displayed}: "1" if the number is displayed, otherwise "0"
|
||||
- ${indent}: indentation for name (channel and private buffers are indented) (evaluation of option buflist.format.indent)
|
||||
- ${format_nick_prefix}: colored nick prefix for a channel (evaluation of option buflist.format.nick_prefix)
|
||||
- ${color_nick_prefix}: color of nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
|
||||
- ${nick_prefix}: nick prefix for a channel (set only if the option buflist.look.nick_prefix is enabled)
|
||||
- ${format_name}: formatted name (evaluation of option buflist.format.name)
|
||||
- ${name}: the short name (if set), with a fallback on the name
|
||||
- ${color_hotlist}: the color depending on the highest hotlist level for the buffer (evaluation of option buflist.format.hotlist_xxx where xxx is the level)
|
||||
- ${format_hotlist}: the formatted hotlist (evaluation of option buflist.format.hotlist)
|
||||
- ${hotlist}: the raw hotlist
|
||||
- ${hotlist_priority}: "none", "low", "message", "private" or "highlight"
|
||||
- ${format_lag}: the lag for an IRC server buffer, empty if there's no lag (evaluation of option buflist.format.lag)
|
||||
----
|
||||
@@ -0,0 +1,147 @@
|
||||
//
|
||||
// This file is auto-generated by script docgen.py.
|
||||
// DO NOT EDIT BY HAND!
|
||||
//
|
||||
* [[option_buflist.format.buffer]] *buflist.format.buffer*
|
||||
** 説明: pass:none[各バッファの表示書式 (注意: 値は評価されます、/help eval を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${format_number}${indent}${format_nick_prefix}${color_hotlist}${format_name}"+`
|
||||
|
||||
* [[option_buflist.format.buffer_current]] *buflist.format.buffer_current*
|
||||
** 説明: pass:none[現在のバッファの表示書式 (注意: 値は評価されます、/help eval を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${color:,blue}${format_buffer}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist]] *buflist.format.hotlist*
|
||||
** 説明: pass:none[ホットリストの表示書式 (注意: 値は評価されます、/help eval を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+" ${color:green}(${hotlist}${color:green})"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_highlight]] *buflist.format.hotlist_highlight*
|
||||
** 説明: pass:none[ホットリストレベルが "highlight" のバッファの表示書式 (注意: 値は評価されます、/help eval を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${color:magenta}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_low]] *buflist.format.hotlist_low*
|
||||
** 説明: pass:none[ホットリストレベルが "low" のバッファの表示書式 (注意: 値は評価されます、/help eval を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${color:white}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_message]] *buflist.format.hotlist_message*
|
||||
** 説明: pass:none[ホットリストレベルが "message" のバッファの表示書式 (注意: 値は評価されます、/help eval を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${color:brown}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_none]] *buflist.format.hotlist_none*
|
||||
** 説明: pass:none[ホットリストにないバッファの表示書式 (注意: 値は評価されます、/help eval を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${color:default}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_private]] *buflist.format.hotlist_private*
|
||||
** 説明: pass:none[ホットリストレベルが "private" のバッファの表示書式 (注意: 値は評価されます、/help eval を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${color:green}"+`
|
||||
|
||||
* [[option_buflist.format.hotlist_separator]] *buflist.format.hotlist_separator*
|
||||
** 説明: pass:none[ホットリスト内のカウンタを示す区切り文字 (注意: 値は評価されます、/help eval を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${color:default},"+`
|
||||
|
||||
* [[option_buflist.format.indent]] *buflist.format.indent*
|
||||
** 説明: pass:none[indent チャンネルとプライベートバッファに表示される文字列 (注意: 値は評価されます、/help buflist を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+" "+`
|
||||
|
||||
* [[option_buflist.format.lag]] *buflist.format.lag*
|
||||
** 説明: pass:none[IRC サーババッファの遅延時間の表示書式 (注意: 値は評価されます、/help eval を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+" ${color:green}[${color:brown}${lag}${color:green}]"+`
|
||||
|
||||
* [[option_buflist.format.name]] *buflist.format.name*
|
||||
** 説明: pass:none[format for buffer name (note: content is evaluated, see /help buflist)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${name}"+`
|
||||
|
||||
* [[option_buflist.format.nick_prefix]] *buflist.format.nick_prefix*
|
||||
** 説明: pass:none[チャンネルにおけるニックネームプレフィックス書式 (注意: 値は評価されます、/help buflist を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${color_nick_prefix}${nick_prefix}"+`
|
||||
|
||||
* [[option_buflist.format.number]] *buflist.format.number*
|
||||
** 説明: pass:none[バッファ番号の表示書式、${number} はインデント済み番号です (注意: 値は評価されます、/help eval を参照してください)]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${color:green}${number}${if:${number_displayed}?.: }"+`
|
||||
|
||||
* [[option_buflist.look.auto_scroll]] *buflist.look.auto_scroll*
|
||||
** 説明: pass:none[現在のバッファが常にバーの中に表示されるように自動的にバッファリストバーをスクロールします (この機能はフィリングが "vertical" に設定された左右にあるバーでのみ機能します); 設定値は現在のバーよりも前に表示される行数のパーセント値です (-1 = 自動スクロールを無効化); 例えば値を 50 に設定した場合、現在のバッファがバーの中央に位置するように自動スクロールされます。0 に設定した場合はバーの最初、100 に設定した場合はバーの最後を意味します]
|
||||
** タイプ: 整数
|
||||
** 値: -1 .. 100
|
||||
** デフォルト値: `+50+`
|
||||
|
||||
* [[option_buflist.look.display_conditions]] *buflist.look.display_conditions*
|
||||
** 説明: pass:none[バッファの表示条件 (注意: 値は評価されます、/help eval を参照してください); サーババッファがコアバッファにマージされている場合にサーババッファを隠す例: "${buffer.hidden}==0 && ((${type}!=server && ${buffer.full_name}!=core.weechat) || ${buffer.active}==1)"]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"${buffer.hidden}==0"+`
|
||||
|
||||
* [[option_buflist.look.enabled]] *buflist.look.enabled*
|
||||
** 説明: pass:none[buflist を有効化します]
|
||||
** タイプ: ブール
|
||||
** 値: on, off
|
||||
** デフォルト値: `+on+`
|
||||
|
||||
* [[option_buflist.look.mouse_jump_visited_buffer]] *buflist.look.mouse_jump_visited_buffer*
|
||||
** 説明: pass:none[有効の場合、現在のバッファを示す行で左または右ボタンをクリックすることで一つ前または次の訪問済みバッファに移動します]
|
||||
** タイプ: ブール
|
||||
** 値: on, off
|
||||
** デフォルト値: `+off+`
|
||||
|
||||
* [[option_buflist.look.mouse_move_buffer]] *buflist.look.mouse_move_buffer*
|
||||
** 説明: pass:none[有効の場合、リスト内でマウスジェスチャ (ドラッグ & ドロップ) することでバッファを移動します]
|
||||
** タイプ: ブール
|
||||
** 値: on, off
|
||||
** デフォルト値: `+on+`
|
||||
|
||||
* [[option_buflist.look.mouse_wheel]] *buflist.look.mouse_wheel*
|
||||
** 説明: pass:none[有効の場合、マウスのホイールアップまたはダウンすることでリスト内の一つ前または次のバッファに移動します]
|
||||
** タイプ: ブール
|
||||
** 値: on, off
|
||||
** デフォルト値: `+on+`
|
||||
|
||||
* [[option_buflist.look.nick_prefix]] *buflist.look.nick_prefix*
|
||||
** 説明: pass:none[ニックネームリスト内のニックネームのプレフィックスと色を取得します。このオプションを有効化することで、書式内で ${nick_prefix} を使えるようになります。しかしながら、ニックネームリスト内に多くのニックネームがある場合に動作が遅くなる可能性がありますので、このオプションはデフォルトで無効化されています]
|
||||
** タイプ: ブール
|
||||
** 値: on, off
|
||||
** デフォルト値: `+off+`
|
||||
|
||||
* [[option_buflist.look.nick_prefix_empty]] *buflist.look.nick_prefix_empty*
|
||||
** 説明: pass:none[ニックネームプレフィックスが有効化された状態で、そのバッファで対象のニックネームにプレフィックスが付かない場合に、プレフィックスの代わりに空白を表示します]
|
||||
** タイプ: ブール
|
||||
** 値: on, off
|
||||
** デフォルト値: `+on+`
|
||||
|
||||
* [[option_buflist.look.signals_refresh]] *buflist.look.signals_refresh*
|
||||
** 説明: pass:none[フックされてバッファの再読込トリガになる追加シグナルのコンマ区切りリスト; これは一部のカスタム変数が書式内で使われており、明示的に再読込が必要な場合に便利です]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+""+`
|
||||
|
||||
* [[option_buflist.look.sort]] *buflist.look.sort*
|
||||
** 説明: pass:none[バッファをソートする際に考慮するフィールドのコンマ区切りリスト; 各フィールドはバッファの hdata 変数 ("var")、IRC サーバの hdata 変数 ("irc_server.var")、IRC チャンネルの hdata 変数 ("irc_channel.var") のどれかです; フィールドの先頭に "-" 文字を付けることでソート順を逆にすることも可能です。大文字小文字を区別せずに比較を行うには "~" 文字を使います; 例: "-~short_name" バッファの短縮名を使い、大文字小文字を区別せずにソートして、順番を逆にします]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"number,-active"+`
|
||||
@@ -16,19 +16,23 @@ target: サーバ名
|
||||
|
||||
----
|
||||
/allchan [-current] [-exclude=<channel>[,<channel>...]] <command> [<arguments>]
|
||||
[-current] -include=<channel>[,<channel>...] <command> [<arguments>]
|
||||
|
||||
-current: 現在のサーバ上のチャンネルに対してコマンドを実行
|
||||
-exclude: 一部のチャンネルを除外 (ワイルドカード "*" を使うことができます)
|
||||
-exclude: 一部のチャンネルを除く全てのチャンネルに対してコマンドを実行 (ワイルドカード "*" を使うことができます)
|
||||
-include: 一部のチャンネルに対してコマンドを実行 (ワイルドカード "*" を使うことができます)
|
||||
command: 実行するコマンド
|
||||
arguments: コマンドの引数 (特殊変数 $nick、$channel、$server はそれぞれの値に置き換えられます)
|
||||
|
||||
例:
|
||||
全てのチャンネルに対して '/me is testing' を実行:
|
||||
/allchan me is testing
|
||||
#weechat 以外の全てのチャンネルで 'hello' と発言:
|
||||
チャンネル名が #weechat のチャンネルを除く全てのチャンネルに対して 'hello' と発言:
|
||||
/allchan -exclude=#weechat msg * hello
|
||||
#weechat と #linux で始まるチャンネルを除く全てのチャンネルで 'hello' と発言:
|
||||
チャンネル名が #weechat と #linux で始まるチャンネルを除く全てのチャンネルに対して 'hello' と発言:
|
||||
/allchan -exclude=#weechat,#linux* msg * hello
|
||||
チャンネル名が #linux で始まるチャンネルに対して 'hello' と発言:
|
||||
/allchan -include=#linux* msg * hello
|
||||
----
|
||||
|
||||
[[command_irc_allpv]]
|
||||
@@ -36,19 +40,23 @@ arguments: コマンドの引数 (特殊変数 $nick、$channel、$server はそ
|
||||
|
||||
----
|
||||
/allpv [-current] [-exclude=<nick>[,<nick>...]] <command> [<arguments>]
|
||||
[-current] -include=<nick>[,<nick>...] <command> [<arguments>]
|
||||
|
||||
-current: 現在のサーバ上のプライベートバッファに対してコマンドを実行
|
||||
-exclude: 一部のニックネームを除外 (ワイルドカード "*" を使うことができます)
|
||||
-current: 現在のサーバ上の全てのプライベートバッファに対してコマンドを実行
|
||||
-exclude: 一部のニックネームを除外した全てのプライベートバッファに対してコマンドを実行 (ワイルドカード "*" を使うことができます)
|
||||
-include: 一部のニックネームのプライベートバッファに対してコマンドを実行 (ワイルドカード "*" を使うことができます)
|
||||
command: 実行するコマンド
|
||||
arguments: コマンドの引数 (特殊変数 $nick、$channel、$server はそれぞれの値に置き換えられます)
|
||||
|
||||
例:
|
||||
全てのプライベートバッファに対して '/me is testing' を実行:
|
||||
/allpv me is testing
|
||||
ニックネーム foo を除く全てのプライベートバッファで 'hello' と発言:
|
||||
ニックネーム foo を除く全てのプライベートバッファに対して 'hello' と発言:
|
||||
/allpv -exclude=foo msg * hello
|
||||
ニックネーム foo と bar で始まるニックネームを除く全てのチャンネルで 'hello' と発言:
|
||||
ニックネームが foo と bar で始まるニックネームを除く全てのプライベートバッファに対して 'hello' と発言:
|
||||
/allpv -exclude=foo,bar* msg * hello
|
||||
ニックネームが bar で始まるニックネームのプライベートバッファに対して 'hello' と発言:
|
||||
/allpv -include=bar* msg * hello
|
||||
全てのプライベートバッファを閉じる:
|
||||
/allpv close
|
||||
----
|
||||
@@ -58,17 +66,19 @@ arguments: コマンドの引数 (特殊変数 $nick、$channel、$server はそ
|
||||
|
||||
----
|
||||
/allserv [-exclude=<server>[,<server>...]] <command> [<arguments>]
|
||||
-include=<server>[,<server>...] <command> [<arguments>]
|
||||
|
||||
-exclude: いくつかのサーバを除外 (ワイルドカード "*" を使うことができます)
|
||||
-exclude: 一部のサーバを除く全てのサーバに対してコマンドを実行 (ワイルドカード "*" を使うことができます)
|
||||
-include: 一部のサーバのみに対してコマンドを実行 (ワイルドカード "*" を使うことができます)
|
||||
command: 実行するコマンド
|
||||
arguments: コマンドの引数 (特殊変数 $nick、$channel、$server はそれぞれの値に置き換えられます)
|
||||
|
||||
例:
|
||||
全てのサーバでニックネーム変更:
|
||||
全てのサーバに対してニックネーム変更:
|
||||
/allserv nick newnick
|
||||
全てのサーバで離席状態を変更:
|
||||
全てのサーバに対して離席状態を変更:
|
||||
/allserv away I'm away
|
||||
すべてのサーバで自分のニックネームに対して whois を実行:
|
||||
全てのサーバに対して自分のニックネームに関する whois を実行:
|
||||
/allserv whois $nick
|
||||
----
|
||||
|
||||
@@ -713,20 +723,22 @@ reason: 理由
|
||||
add <server> <hostname>[/<port>] [-temp] [-<option>[=<value>]] [-no<option>]
|
||||
copy|rename <server> <new_name>
|
||||
reorder <server> [<server>...]
|
||||
open <server>|-all [<server>...]
|
||||
del|keep <server>
|
||||
deloutq|jump|raw
|
||||
|
||||
list: サーバをリストアップ (引数無しでは、リストが表示される)
|
||||
list: サーバをリストアップ (引数無しでは、リストが表示されます)
|
||||
listfull: 詳細情報を含めてサーバをリストアップ
|
||||
add: 新しいサーバを追加
|
||||
server: サーバ名、内部的な利用と表示に利用
|
||||
hostname: サーバのホスト名か IP アドレス、ポート番号は任意 (デフォルト: 6667)、複数のアドレスはコンマで区切る
|
||||
hostname: サーバのホスト名か IP アドレス、ポート番号は任意 (デフォルト: 6667)、複数のアドレスはコンマで区切ってください
|
||||
-temp: 一時的なサーバを追加 (保存されない)
|
||||
option: サーバのオプションを設定 (ブールオプションでは値が無視される)
|
||||
option: サーバのオプションを設定 (ブールオプションでは値が無視されます)
|
||||
nooption: ブールオプションを 'off' に設定 (例: -nossl)
|
||||
copy: サーバを複製
|
||||
rename: サーバをリネーム
|
||||
reorder: サーバリストにおける順番を入れ替える
|
||||
reorder: サーバリストにおける順番を入れ替えます
|
||||
open: 接続せずにサーババッファを開く
|
||||
keep: 設定ファイルにサーバを保存 (一時的なサーバ用)
|
||||
del: サーバを削除
|
||||
deloutq: 全てのサーバにメッセージの削除を要求 (WeeChat が送信している全てのメッセージ)
|
||||
|
||||
@@ -477,7 +477,7 @@
|
||||
** デフォルト値: `+300+`
|
||||
|
||||
* [[option_irc.network.lag_refresh_interval]] *irc.network.lag_refresh_interval*
|
||||
** 説明: pass:none[遅延時間が増加する場合、遅延要素の 2 回のリフレッシュの間のインターバル (秒単位)]
|
||||
** 説明: pass:none[遅延時間が増加した際の、遅延要素の 2 回のリフレッシュの間のインターバル (秒単位)]
|
||||
** タイプ: 整数
|
||||
** 値: 1 .. 3600
|
||||
** デフォルト値: `+1+`
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
----
|
||||
/relay list|listfull|listrelay
|
||||
add <name> <port>
|
||||
del|stop|restart <name>
|
||||
del|start|restart|stop <name>
|
||||
raw
|
||||
sslcertkey
|
||||
|
||||
@@ -17,8 +17,9 @@
|
||||
listrelay: リレーをリストアップ (名前とポート番号)
|
||||
add: リレーを追加 (ポートで接続を待ち受ける)
|
||||
del: リレーを削除 (クライアントとの接続は保持)
|
||||
stop: サーバソケットを閉じる (クライアントとの接続は保持)
|
||||
start: ポートリッスンを開始する
|
||||
restart: サーバソケットを閉じて同じポートで接続を待つ (クライアントとの接続は保持)
|
||||
stop: サーバソケットを閉じる (クライアントとの接続は保持)
|
||||
name: リレー名 (以下の書式を参照)
|
||||
port: リレーが使うポートの番号
|
||||
raw: 生リレーデータを表示するバッファを開く
|
||||
|
||||
@@ -237,13 +237,7 @@
|
||||
** デフォルト値: `+"%h/script"+`
|
||||
|
||||
* [[option_script.scripts.url]] *script.scripts.url*
|
||||
** 説明: pass:none[スクリプトのリストを含むファイルの URL; デフォルトは強制的に HTTPS を使用、オプション script.scripts.url_force_https を参照]
|
||||
** 説明: pass:none[スクリプトのリストを含むファイルの URL]
|
||||
** タイプ: 文字列
|
||||
** 値: 未制約文字列
|
||||
** デフォルト値: `+"http://weechat.org/files/plugins.xml.gz"+`
|
||||
|
||||
* [[option_script.scripts.url_force_https]] *script.scripts.url_force_https*
|
||||
** 説明: pass:none[ダウンロード (インデックスおよびスクリプト) の際に HTTPS を使うことを強制する; ダウンロードに問題がある場合のみこのオプションを無効化してください]
|
||||
** タイプ: ブール
|
||||
** 値: on, off
|
||||
** デフォルト値: `+on+`
|
||||
** デフォルト値: `+"https://weechat.org/files/plugins.xml.gz"+`
|
||||
|
||||
@@ -72,7 +72,7 @@ message: 離席メッセージ (メッセージが無い場合は、離席状態
|
||||
clear [<number>|<name>|-merged|-all [<number>|<name>...]]
|
||||
move <number>|-|+
|
||||
swap <number1>|<name1> [<number2>|<name2>]
|
||||
cycle <number>|<name> [<number>|<name>...]]
|
||||
cycle <number>|<name> [<number>|<name>...]
|
||||
merge <number>
|
||||
unmerge [<number>|-all]
|
||||
hide [<number>|<name>|-all [<number>|<name>...]]
|
||||
@@ -272,8 +272,10 @@ expression: 評価する式、${variable} 型の書式の変数は置換され
|
||||
< より少ない
|
||||
>= 以上
|
||||
> より大きい
|
||||
=~ 正規表現にマッチ
|
||||
!~ 正規表現にマッチしない
|
||||
=~ POSIX 拡張正規表現にマッチ
|
||||
!~ POSIX 拡張正規表現にマッチしない
|
||||
=* マスクにマッチ (ワイルドカード "*" を使えます)
|
||||
!* マスクにマッチしない (ワイルドカード "*" を使えます)
|
||||
|
||||
式が NULL でない場合、空でない場合、"0" でない場合、式は "真" と評価されます。
|
||||
両方の式が有効な整数である場合、比較は整数を使って行われます。
|
||||
@@ -285,13 +287,16 @@ expression: 評価する式、${variable} 型の書式の変数は置換され
|
||||
1. 評価済みのサブ文字列 (書式: "eval:xxx")
|
||||
2. エスケープ文字を含む文字列 (書式: "esc:xxx" または "\xxx")
|
||||
3. 隠す文字を含む文字列 (書式: "hide:char,string")
|
||||
4. 色 (書式: "color:xxx")
|
||||
5. 情報 (書式: "info:name,arguments"、arguments は任意)
|
||||
6. 現在の日付/時刻 (書式: "date" または "date:format")
|
||||
7. 環境変数 (書式: "env:XXX")
|
||||
8. オプション (書式: "file.section.option")
|
||||
9. バッファのローカル変数
|
||||
10. hdata の名前/変数 (値は自動的に文字列に変換されます)、デフォルトでは "window" と "buffer" は現在のウィンドウ/バッファを指します。
|
||||
4. 最大文字数を指定した文字列 (書式: "cut:max,suffix,string" または "cut:+max,suffix,string")
|
||||
または最大文字表示幅を指定した文字列 (書式: "cutscr:max,suffix,string" または "cutscr:+max,suffix,string")
|
||||
5. 色 (書式: "color:xxx"、"プラグイン API リファレンス" の "color" 関数を参照してください)
|
||||
6. 情報 (書式: "info:name,arguments"、arguments は任意)
|
||||
7. 現在の日付/時刻 (書式: "date" または "date:format")
|
||||
8. 環境変数 (書式: "env:XXX")
|
||||
9. 三項演算子 (書式: "if:condition?value_if_true:value_if_false")
|
||||
10. オプション (書式: "file.section.option")
|
||||
11. バッファのローカル変数
|
||||
12. hdata の名前/変数 (値は自動的に文字列に変換されます)、デフォルトでは "window" と "buffer" は現在のウィンドウ/バッファを指します。
|
||||
hdata の書式は以下の 1 つです:
|
||||
hdata.var1.var2...: hdata (ポインタは既知) で開始し、1 個ずつ変数を続ける (他の hdata を続けることも可能)
|
||||
hdata[list].var1.var2...: リストを使う hdata で開始する、例:
|
||||
@@ -302,16 +307,19 @@ hdata の書式は以下の 1 つです:
|
||||
hdata と変数の名前については、"プラグイン API リファレンス" の "weechat_hdata_get" 関数を参照してください。
|
||||
|
||||
例 (単純な文字列):
|
||||
/eval -n ${info:version} ==> 0.4.3
|
||||
/eval -n ${env:HOME} ==> /home/user
|
||||
/eval -n ${weechat.look.scroll_amount} ==> 3
|
||||
/eval -n ${window} ==> 0x2549aa0
|
||||
/eval -n ${window.buffer} ==> 0x2549320
|
||||
/eval -n ${window.buffer.full_name} ==> core.weechat
|
||||
/eval -n ${window.buffer.number} ==> 1
|
||||
/eval -n ${\t} ==> <tab>
|
||||
/eval -n ${hide:-,${relay.network.password}} ==> --------
|
||||
/eval -n ${date:%H:%M:%S} ==> 07:46:40
|
||||
/eval -n ${info:version} ==> 0.4.3
|
||||
/eval -n ${env:HOME} ==> /home/user
|
||||
/eval -n ${weechat.look.scroll_amount} ==> 3
|
||||
/eval -n ${window} ==> 0x2549aa0
|
||||
/eval -n ${window.buffer} ==> 0x2549320
|
||||
/eval -n ${window.buffer.full_name} ==> core.weechat
|
||||
/eval -n ${window.buffer.number} ==> 1
|
||||
/eval -n ${\t} ==> <tab>
|
||||
/eval -n ${hide:-,${relay.network.password}} ==> --------
|
||||
/eval -n ${cut:3,+,test} ==> tes+
|
||||
/eval -n ${cut:+3,+,test} ==> te+
|
||||
/eval -n ${date:%H:%M:%S} ==> 07:46:40
|
||||
/eval -n ${if:${info:term_width}>80?big:small} ==> big
|
||||
|
||||
例 (条件):
|
||||
/eval -n -c ${window.buffer.number} > 2 ==> 0
|
||||
@@ -322,6 +330,7 @@ hdata と変数の名前については、"プラグイン API リファレン
|
||||
/eval -n -c abcd =~ (?-i)^ABC ==> 0
|
||||
/eval -n -c abcd =~ (?-i)^abc ==> 1
|
||||
/eval -n -c abcd !~ abc ==> 0
|
||||
/eval -n -c abcd =* a*d ==> 1
|
||||
----
|
||||
|
||||
[[command_weechat_filter]]
|
||||
@@ -939,13 +948,13 @@ command: 実行するコマンド (コマンドが '/' で始まらない場合
|
||||
-1|+1|b#|up|down|left|right [-window <number>]
|
||||
<number>
|
||||
splith|splitv [-window <number>] [<pct>]
|
||||
resize [-window <number>] [+/-]<pct>
|
||||
resize [-window <number>] [h|v][+|-]<pct>
|
||||
balance
|
||||
merge [-window <number>] [all]
|
||||
page_up|page_down [-window <number>]
|
||||
refresh
|
||||
scroll [-window <number>] [+/-]<value>[s|m|h|d|M|y]
|
||||
scroll_horiz [-window <number>] [+/-]<value>[%]
|
||||
scroll [-window <number>] [+|-]<value>[s|m|h|d|M|y]
|
||||
scroll_horiz [-window <number>] [+|-]<value>[%]
|
||||
scroll_up|scroll_down|scroll_top|scroll_bottom|scroll_beyond_end|scroll_previous_highlight|scroll_next_highlight|scroll_unread [-window <number>]
|
||||
swap [-window <number>] [up|down|left|right]
|
||||
zoom [-window <number>]
|
||||
@@ -963,6 +972,7 @@ command: 実行するコマンド (コマンドが '/' で始まらない場合
|
||||
splith: 現在のウィンドウを水平分割 (/window merge で元に戻る)
|
||||
splitv: 現在のウィンドウを垂直分割 (/window merge で元に戻る)
|
||||
resize: ウィンドウサイズの変更、新しいサイズは親ウィンドウの <pct> パーセントで指定
|
||||
"h" または "v" を指定した場合、最近接の親ウィンドウの横幅または縦幅を変更
|
||||
balance: 全てのウィンドウのサイズを均等にする
|
||||
merge: ウィンドウを他のものをマージする (all = 一つのウィンドウにまとめる)
|
||||
page_up: 1 ページ分上方向にスクロール
|
||||
@@ -995,8 +1005,12 @@ splith と splitv に関しては、pct は新しいウィンドウのパーセ
|
||||
/window scroll -d
|
||||
ウィンドウ #2 を拡大:
|
||||
/window zoom -window 2
|
||||
ウィンドウを水平分割 (上側ウィンドウの縦幅は現在のウィンドウの縦幅の 30%%):
|
||||
ウィンドウを水平分割 (上側ウィンドウの縦幅は現在のウィンドウの縦幅の 30%):
|
||||
/window splith 30
|
||||
ウィンドウサイズを親ウィンドウサイズの 75% に変更:
|
||||
/window resize 75
|
||||
ウィンドウサイズの横幅を 10% 増やす:
|
||||
/window resize v+10
|
||||
分割を元に戻す:
|
||||
/window merge
|
||||
最小限表示を 2 秒間有効にする:
|
||||
|
||||
@@ -410,6 +410,12 @@
|
||||
** 値: on, off
|
||||
** デフォルト値: `+on+`
|
||||
|
||||
* [[option_weechat.completion.nick_case_sensitive]] *weechat.completion.nick_case_sensitive*
|
||||
** 説明: pass:none[大文字小文字を区別したニックネーム補完]
|
||||
** タイプ: ブール
|
||||
** 値: on, off
|
||||
** デフォルト値: `+off+`
|
||||
|
||||
* [[option_weechat.completion.nick_completer]] *weechat.completion.nick_completer*
|
||||
** 説明: pass:none[ニックネーム補完の後に追加する文字列 (ニックネームがコマンドラインの最初にある場合)]
|
||||
** タイプ: 文字列
|
||||
|
||||
@@ -64,12 +64,18 @@ $HOME/.weechat/alias.conf::
|
||||
$HOME/.weechat/aspell.conf::
|
||||
_aspell_ プラグイン用の設定ファイル
|
||||
|
||||
$HOME/.weechat/buflist.conf::
|
||||
_buflist_ プラグイン用の設定ファイル
|
||||
|
||||
$HOME/.weechat/charset.conf::
|
||||
_charset_ プラグイン用の設定ファイル
|
||||
|
||||
$HOME/.weechat/exec.conf::
|
||||
_exec_ プラグイン用の設定ファイル
|
||||
|
||||
$HOME/.weechat/fifo.conf::
|
||||
_fifo_ プラグイン用の設定ファイル
|
||||
|
||||
$HOME/.weechat/irc.conf::
|
||||
_irc_ プラグイン用の設定ファイル
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@ qweechat::
|
||||
| plugins/ | プラグインとスクリプト向け API
|
||||
| alias/ | alias プラグイン
|
||||
| aspell/ | aspell プラグイン
|
||||
| buflist/ | buflist プラグイン
|
||||
| charset/ | charset プラグイン
|
||||
| exec/ | exec プラグイン
|
||||
| fifo/ | fifo プラグイン (WeeChat にコマンドを送信する FIFO パイプ)
|
||||
@@ -199,6 +200,12 @@ WeeChat "core" は以下のディレクトリに配置されています:
|
||||
| weechat-aspell-config.c | aspell 設定オプション (aspell.conf ファイル)
|
||||
| weechat-aspell-info.c | aspell の情報/インフォリスト/hdata
|
||||
| weechat-aspell-speller.c | スペルチェッカ管理
|
||||
| buflist/ | buflist プラグイン
|
||||
| buflist.c | buflist の主要関数
|
||||
| buflist-bar-item.c | buflist バー要素
|
||||
| buflist-command.c | buflist コマンド
|
||||
| buflist-config.c | buflist 設定オプション (buflist.conf ファイル)
|
||||
| buflist-mouse.c | buflist マウス動作
|
||||
| charset/ | charset プラグイン
|
||||
| charset.c | charset 関数
|
||||
| exec/ | exec プラグイン
|
||||
@@ -290,6 +297,7 @@ WeeChat "core" は以下のディレクトリに配置されています:
|
||||
| script-completion.c | スクリプトマネージャ用の補完
|
||||
| script-config.c | スクリプトマネージャ用の設定オプション (script.conf ファイル)
|
||||
| script-info.c | スクリプトマネージャの情報/インフォリスト/hdata
|
||||
| script-mouse.c | スクリプトマネージャのマウス動作
|
||||
| script-repo.c | リポジトリファイルのダウンロードとロード
|
||||
| tcl/ | tcl プラグイン
|
||||
| weechat-tcl.c | tcl の主要関数 (スクリプトのロード/アンロード、tcl コードの実行)
|
||||
|
||||
@@ -599,6 +599,12 @@ gnutls ハンドシェイクに関するエラーの場合、Diffie-Hellman キ
|
||||
/set weechat.network.gnutls_ca_file "/etc/ssl/certs/ca-certificates.crt"
|
||||
----
|
||||
|
||||
注意: OS X 上で homebrew を使って openssl をインストールした場合には、以下のコマンドを実行してください:
|
||||
|
||||
----
|
||||
/set weechat.network.gnutls_ca_file "/usr/local/etc/openssl/cert.pem"
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
設定したファイルが自分のシステムに存在することを確認してください
|
||||
(一般に "ca-certificates" パッケージで提供されます)。
|
||||
@@ -828,7 +834,7 @@ OpenBSD では、プラグインファイル名の末尾が ".so.0.0" です (Li
|
||||
* 最新の安定版を使う
|
||||
(古いバージョンよりもメモリリークの可能性が減ると思われます)
|
||||
* 使わないプラグインのロードを禁止する、例えば:
|
||||
aspell、fifo、logger、perl、python、ruby、lua、tcl、guile、javascript、xfer (DCC で使用)
|
||||
aspell、buflist、fifo、logger、perl、python、ruby、lua、tcl、guile、javascript、xfer (DCC で使用)
|
||||
* 本当に必要なスクリプトだけをロード
|
||||
* SSL を *使わない* なら、証明書を読み込まないでください: オプション
|
||||
_weechat.network.gnutls_ca_file_ に空文字列を設定してください。
|
||||
|
||||
@@ -1961,7 +1961,7 @@ str3 = weechat.string_input_for_buffer("//test") # "/test"
|
||||
|
||||
==== string_eval_expression
|
||||
|
||||
_WeeChat バージョン 0.4.0 以上で利用可、バージョン 0.4.2、1.0、1.1、1.2、1.3 で更新。_
|
||||
_WeeChat バージョン 0.4.0 以上で利用可、バージョン 0.4.2、0.4.3、1.0、1.1、1.2、1.3、1.6、1.8 で更新。_
|
||||
|
||||
式を評価して文字列として返す。`+${variable}+`
|
||||
という書式で書かれた特殊変数は展開されます (以下の表を参照)。
|
||||
@@ -2002,7 +2002,7 @@ char *weechat_string_eval_expression (const char *expr,
|
||||
** _extra_: デフォルトの挙動では追加変数 (_extra_vars_)
|
||||
を単純に置換するだけですが、この挙動を変更します。設定可能な値は以下です:
|
||||
*** _eval_: 置換前に追加変数 (_extra_vars_)
|
||||
を評価します
|
||||
を評価します (_WeeChat バージョン 1.6 以上で利用可_)
|
||||
** _regex_: _expr_ のテキストを置換する正規表現
|
||||
(この場合 _expr_ は評価されません)
|
||||
** _regex_replace_: _regex_ と一緒に使われる置換テキスト、_expr_
|
||||
@@ -2014,6 +2014,124 @@ char *weechat_string_eval_expression (const char *expr,
|
||||
* 評価された式 (使用後には必ず "free" を呼び出して領域を開放してください)、失敗した場合は
|
||||
NULL (式が不正な場合やメモリが不足している場合)
|
||||
|
||||
条件に使える論理演算子のリスト
|
||||
(上から優先順位の高い順):
|
||||
|
||||
[width="100%",cols="2,8,4,4",options="header"]
|
||||
|===
|
||||
| 演算子 | 説明 | 例 | 結果
|
||||
|
||||
| `+&&+` |
|
||||
論理積 |
|
||||
`+25 && 77+` +
|
||||
`+25 && 0+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+\|\|+` |
|
||||
論理和 |
|
||||
`+25 \|\| 0+` +
|
||||
`+0 \|\| 0+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|===
|
||||
|
||||
条件に使える比較演算子のリスト
|
||||
(上から優先順位の高い順):
|
||||
|
||||
[width="100%",cols="2,8,4,4",options="header"]
|
||||
|===
|
||||
| 演算子 | 説明 | 例 | 結果
|
||||
|
||||
| `+=~+` |
|
||||
POSIX 拡張正規表現にマッチ (任意でフラグを指定することも可能です、関数 <<_string_regcomp,string_regcomp>> を確認してください) |
|
||||
`+abc def =~ ab.*ef+` +
|
||||
`+abc def =~ y.*z+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+!~+` |
|
||||
POSIX 拡張正規表現にマッチしない (任意でフラグを指定することも可能です、関数 <<_string_regcomp,string_regcomp>> を確認してください) |
|
||||
`+abc def !~ ab.*ef+` +
|
||||
`+abc def !~ y.*z+` |
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+=*+` +
|
||||
(_WeeChat バージョン 1.8 以上で利用可_) |
|
||||
マスクにマッチ、"*" を指定できます (関数 <<_string_match,string_match>> を確認してください) |
|
||||
`+abc def =* a*f+` +
|
||||
`+abc def =* y*z+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+!*+` +
|
||||
(_WeeChat バージョン 1.8 以上で利用可_) |
|
||||
マスクにマッチしない、"*" を指定できます (関数 <<_string_match,string_match>> を確認してください) |
|
||||
`+abc def !* a*f+` +
|
||||
`+abc def !* y*z+` |
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+==+` |
|
||||
等しい |
|
||||
`+test == test+` +
|
||||
`+test == string+` |
|
||||
`+1+` +
|
||||
`+0+`
|
||||
|
||||
| `+!=+` |
|
||||
等しくない |
|
||||
`+test != test+` +
|
||||
`+test != string+` |
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+<=+` |
|
||||
以下 |
|
||||
`+abc <= defghi+` +
|
||||
`+abc <= abc+` +
|
||||
`+defghi <= abc+` +
|
||||
`+15 <= 2+` |
|
||||
`+1+` +
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+0+`
|
||||
|
||||
| `+<+` |
|
||||
より小さい |
|
||||
`+abc < defghi+` +
|
||||
`+abc < abc+` +
|
||||
`+defghi < abc+` +
|
||||
`+15 < 2+` |
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+0+` +
|
||||
`+0+`
|
||||
|
||||
| `+>=+` |
|
||||
以上 |
|
||||
`+defghi >= abc+` +
|
||||
`+abc >= abc+` +
|
||||
`+abc >= defghi+` +
|
||||
`+15 >= 2+` |
|
||||
`+1+` +
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|
||||
| `+>+` |
|
||||
より大きい |
|
||||
`+defghi > abc+` +
|
||||
`+abc > abc+` +
|
||||
`+abc > defghi+` +
|
||||
`+15 > 2+` |
|
||||
`+1+` +
|
||||
`+0+` +
|
||||
`+0+` +
|
||||
`+1+`
|
||||
|===
|
||||
|
||||
式中で展開される変数のリスト
|
||||
(優先度の高い順、展開順の早いものを上に遅いものを下に):
|
||||
|
||||
@@ -2034,25 +2152,62 @@ char *weechat_string_eval_expression (const char *expr,
|
||||
内に色コードが存在する場合色付き)
|
||||
|
||||
| `+${esc:xxx}+` +
|
||||
`+${\xxx}+` |
|
||||
`+${\xxx}+` +
|
||||
(_WeeChat バージョン 1.0 以上で利用可_) |
|
||||
エスケープ文字を含む文字列 |
|
||||
`+${esc:prefix\tmessage}+` +
|
||||
`+${\ua9}+` |
|
||||
`+prefix<TAB>message+` +
|
||||
`+©+`
|
||||
|
||||
| `+${hide:x,value}+` |
|
||||
隠す文字を含むテキスト (`value` に含まれる文字をすべて `x` で置換) |
|
||||
| `+${hide:x,string}+` +
|
||||
(_WeeChat バージョン 1.1 以上で利用可_) |
|
||||
隠す文字を含むテキスト (`string` に含まれる文字をすべて `x` で置換) |
|
||||
`+${hide:*,password}+` |
|
||||
`+********+`
|
||||
|
||||
| `+${re:N}+` |
|
||||
正規表現のキャプチャグループ: `0` = マッチするすべての文字列、`1` から `99` =
|
||||
キャプチャされたグループ、`+++` = 最後にキャプチャされたグループ |
|
||||
`+${re:1}+` |
|
||||
`+test+`
|
||||
| `+${cut:max,suffix,string}+` +
|
||||
`+${cut:+max,suffix,string}+` +
|
||||
(_WeeChat バージョン 1.8 以上で利用可_) |
|
||||
`string` の先頭 `max` 文字とオプションの `suffix` 文字 (`string` の文字数が `max` 文字を超える場合) +
|
||||
`+max` を使った場合、`max` 文字にはサフィックスの文字数も含まれます。|
|
||||
`+${cut:4,…,this is a test}+` +
|
||||
`+${cut:+4,…,this is a test}+` +
|
||||
`+${cut:2,>>,こんにちは世界}+` |
|
||||
`+this…+` +
|
||||
`+t…+` +
|
||||
`+こん>>+`
|
||||
|
||||
| `+${color:name}+` |
|
||||
| `+${cutscr:max,suffix,string}+` +
|
||||
`+${cutscr:+max,suffix,string}+` +
|
||||
(_WeeChat バージョン 1.8 以上で利用可_) |
|
||||
`string` の先頭 `max` 文字 (半角文字幅換算) とオプションの `suffix` 文字 (`string` の文字数が `max` 文字を超える場合) +
|
||||
`+max` を使った場合、`max` 文字にはサフィックスの文字数も含まれます。|
|
||||
`+${cutscr:4,…,this is a test}+` +
|
||||
`+${cutscr:+4,…,this is a test}+` +
|
||||
`+${cutscr:2,>>,こんにちは世界}+` |
|
||||
`+this…+` +
|
||||
`+thi…+` +
|
||||
`+こ>>+`
|
||||
|
||||
| `+${re:N}+` +
|
||||
(_WeeChat バージョン 1.1 以上で利用可_) |
|
||||
正規表現のキャプチャグループ: `0` = マッチするすべての文字列、`1` から `99` =
|
||||
キャプチャされたグループ、`+++` = 最後にキャプチャされたグループ、
|
||||
`#` = 最後にキャプチャされたグループのインデックス番号 (_WeeChat バージョン 1.8 以上で利用可_) |
|
||||
`+${re:0}+` +
|
||||
`+${re:1}+` +
|
||||
`+${re:2}+` +
|
||||
`+${re:+++}+` +
|
||||
`+${re:#}+` |
|
||||
`+test1 test2+` +
|
||||
`+test1+` +
|
||||
`+test2+` +
|
||||
`+test2+` +
|
||||
`+2+`
|
||||
|
||||
| `+${color:name}+` +
|
||||
(_WeeChat バージョン 0.4.2 以上で利用可_) |
|
||||
WeeChat 色コード (色名部分はオプション属性をとることも可能です),
|
||||
書式を確認するには関数 <<_color,color>> をご確認ください |
|
||||
`+${color:red}red text+` +
|
||||
@@ -2061,7 +2216,8 @@ char *weechat_string_eval_expression (const char *expr,
|
||||
`+bold orange text+` (太字オレンジ色で)
|
||||
|
||||
| `+${info:name}+` +
|
||||
`+${info:name,arguments}+` |
|
||||
`+${info:name,arguments}+` +
|
||||
(_WeeChat バージョン 0.4.3 以上で利用可_) |
|
||||
WeeChat またはプラグインのインフォ、<<_info_get,info_get>>
|
||||
を参照 |
|
||||
`+${info:version}+` +
|
||||
@@ -2085,6 +2241,16 @@ char *weechat_string_eval_expression (const char *expr,
|
||||
`+${env:HOME}+` |
|
||||
`+/home/user+`
|
||||
|
||||
| `+${if:condition}+` +
|
||||
`+${if:condition?true}+`
|
||||
`+${if:condition?true:false}+` +
|
||||
(_WeeChat バージョン 1.8 以上で利用可_) |
|
||||
条件、条件が真の場合の値 (任意)、条件が偽の場合の値 (任意)
|
||||
からなる三項演算子。値を指定しなかった場合、条件の評価結果に応じて
|
||||
"1" または "0" が返されます |
|
||||
`+${if:${info:term_width}>80?big:small}+` |
|
||||
`+big+`
|
||||
|
||||
| `+${sec.data.name}+` |
|
||||
セキュアデータ `name` の値 |
|
||||
`+${sec.data.freenode_pass}+` |
|
||||
@@ -2175,6 +2341,169 @@ options = {
|
||||
str5 = weechat.string_eval_expression("password=abc password=def", {}, {}, options) # "password=*** password=***"
|
||||
----
|
||||
|
||||
==== string_dyn_alloc
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
可変長の動的文字列を確保します。 +
|
||||
内部では、文字列ポインタ、確保されたサイズ、現在の文字列長の情報からなる構造体が確保されます。
|
||||
|
||||
すべての _pass:[string_dyn_*]_ 関数は文字列ポインタへのポインタ
|
||||
(_**string_) のみを使います。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **weechat_dyn_alloc (int size_alloc);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _size_alloc_: 初期確保サイズ (必ずゼロより大きい値を指定してください)
|
||||
|
||||
戻り値:
|
||||
|
||||
* 動的文字列へのポインタ
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== string_dyn_copy
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
動的文字列内に文字列をコピーします。
|
||||
|
||||
文字列が再確保された場合 (文字列をコピーするのに十分なサイズが確保されていなかった場合)
|
||||
にはポインタ _*string_ が変わる可能性があります。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_dyn_copy (char **string, const char *new_string);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _string_: 動的文字列へのポインタ
|
||||
* _new_string_: コピーする文字列
|
||||
|
||||
戻り値:
|
||||
|
||||
* 成功した場合は 1、失敗した場合は 0
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
if (weechat_dyn_copy (string, "test"))
|
||||
{
|
||||
/* 成功 */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* 失敗 */
|
||||
}
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== string_dyn_concat
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
動的文字列に文字列を連結します。
|
||||
|
||||
文字列が再確保された場合 (文字列を連結するのに十分なサイズが確保されていなかった場合)
|
||||
にはポインタ _*string_ が変わる可能性があります。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_dyn_concat (char **string, const char *add);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _string_: 動的文字列へのポインタ
|
||||
* _add_: 連結する文字列
|
||||
|
||||
戻り値:
|
||||
|
||||
* 成功した場合は 1、失敗した場合は 0
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
if (weechat_dyn_copy (string, "test"))
|
||||
{
|
||||
if (weechat_dyn_concat (string, "abc"))
|
||||
{
|
||||
/* ... */
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== string_dyn_free
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
動的文字列を解放します。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char *weechat_dyn_free (char **string, int free_string);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _string_: 動的文字列へのポインタ
|
||||
* _free_string_: 文字列の解放; 0 を指定することで、この関数を呼び出した後でも
|
||||
_*string_ が指すアドレスのメモリを確保したままにできます。
|
||||
|
||||
戻り値:
|
||||
|
||||
* _free_string_ が 0 の場合には文字列ポインタ、それ以外の場合は NULL
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
char **string = weechat_dyn_alloc (256);
|
||||
if (weechat_dyn_concat (string, "test"))
|
||||
{
|
||||
/* 成功 */
|
||||
}
|
||||
else
|
||||
{
|
||||
/* 失敗 */
|
||||
}
|
||||
/* ... */
|
||||
weechat_dyn_free (string, 1);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
[[utf-8]]
|
||||
=== UTF-8
|
||||
|
||||
@@ -3658,6 +3987,348 @@ weechat.list_free(list)
|
||||
weechat.list_free(list)
|
||||
----
|
||||
|
||||
[[array_lists]]
|
||||
=== 配列リスト
|
||||
|
||||
配列リスト関数。
|
||||
|
||||
配列リストとはサイズ可変でソート可能なポインタのリストです。
|
||||
|
||||
==== arraylist_new
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
新しい配列リストを作成します。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
struct t_arraylist *weechat_arraylist_new (int initial_size,
|
||||
int sorted,
|
||||
int allow_duplicates,
|
||||
int (*callback_cmp)(void *data,
|
||||
struct t_arraylist *arraylist,
|
||||
void *pointer1,
|
||||
void *pointer2),
|
||||
void *callback_cmp_data,
|
||||
void (*callback_free)(void *data,
|
||||
struct t_arraylist *arraylist,
|
||||
void *pointer),
|
||||
void *callback_free_data);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _initial_size_: 配列リストの初期サイズ (要素数ではありません)
|
||||
* _sorted_: 1 の場合には配列リストをソートし、0 の場合にはソートしません
|
||||
* _allow_duplicates_: 1 の場合にはエントリの重複を許可し、0
|
||||
の場合にはエントリが重複して追加されることを防ぎます
|
||||
* _callback_cmp_: 2 つの要素を比較する際に使われるコールバック
|
||||
(任意)、引数と戻り値は以下:
|
||||
** _void *data_: ポインタ
|
||||
** _struct t_arraylist *arraylist_: 配列リストポインタ
|
||||
** _void *pointer1_: 1 番目の要素へのポインタ
|
||||
** _void *pointer2_: 2 番目の要素へのポインタ
|
||||
** 戻り値:
|
||||
*** 1 番目の要素が 2 番目の要素よりも小さければ負数
|
||||
*** 1 番目の要素が 2 番目の要素と同じならばゼロ
|
||||
*** 1 番目の要素が 2 番目の要素よりも大きければ正数
|
||||
* _callback_cmp_data_: WeeChat がコールバックを呼び出す際に、コールバックに渡すポインタ
|
||||
* _callback_free_: 要素を解放する際に使われるコールバック (任意)、引数は以下:
|
||||
** _void *data_: ポインタ
|
||||
** _struct t_arraylist *arraylist_: 配列リストポインタ
|
||||
** _void *pointer_: 要素へのポインタ
|
||||
* _callback_free_data_: WeeChat がコールバックを呼び出す際に、コールバックに渡すポインタ
|
||||
|
||||
戻り値:
|
||||
|
||||
* 新しい配列リストへのポインタ
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int
|
||||
cmp_cb (void *data, struct t_arraylist *arraylist,
|
||||
void *pointer1, void *pointer2)
|
||||
{
|
||||
if (...)
|
||||
return -1;
|
||||
else if (...)
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
struct t_arraylist *list = weechat_arraylist_new (32, 1, 1,
|
||||
&cmp_cb, NULL, NULL, NULL);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== arraylist_size
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
配列リストのサイズ (要素ポインタの数) を返します。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_list_size (struct t_arraylist *arraylist);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _arraylist_: 配列リストポインタ
|
||||
|
||||
戻り値:
|
||||
|
||||
* 配列リストのサイズ (要素の数)、0 は配列リストが空であることを意味します
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
weechat_printf (NULL, "size of array list: %d", weechat_arraylist_size (arraylist));
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== arraylist_get
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
指定された位置の要素ポインタを返します。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void *weechat_arraylist_get (struct t_arraylist *arraylist, int index);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _arraylist_: 配列リストポインタ
|
||||
* _index_: リストのインデックス番号 (インデックス番号は 0 から始まります)
|
||||
|
||||
戻り値:
|
||||
|
||||
* ポインタが見つかった場合はそのポインタ、見つからなかった場合は NULL
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void *pointer = weechat_arraylist_get (arraylist, 0); /* first item */
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== arraylist_search
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
配列リストから要素を検索します。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void *weechat_arraylist_search (struct t_arraylist *arraylist, void *pointer,
|
||||
int *index, int *index_insert);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _arraylist_: 配列リストポインタ
|
||||
* _pointer_: 配列リストから検索する要素へのポインタ
|
||||
* _index_: 要素が見つかった場合はそのインデックス番号を示す整数へのポインタ、見つからなかった場合は
|
||||
-1 (任意)
|
||||
* _index_insert_: _arraylist_ に要素を挿入するために使われるインデックス番号を示す整数へのポインタ
|
||||
(これは _arraylist_ のソート状態を保存する目的で使います) (任意)
|
||||
|
||||
戻り値:
|
||||
|
||||
* 要素が見つかったにはその要素へのポインタ、見つからなかった場合は NULL
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index, index_insert;
|
||||
void *item = weechat_arraylist_search (arraylist, pointer, &index, &index_insert);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== arraylist_insert
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
配列リストに要素を挿入します。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_insert (struct t_arraylist *arraylist, int index, void *pointer);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _arraylist_: 配列リストポインタ
|
||||
* _index_:
|
||||
配列リストにおける要素の挿入位置または末尾に挿入することを意味する -1
|
||||
(この引数は配列リストがソート済みでない場合にのみ使われ、配列リストがソートされている場合には無視されます)
|
||||
* _pointer_: 挿入する要素へのポインタ
|
||||
|
||||
戻り値:
|
||||
|
||||
* 成功した場合には挿入された要素のインデックス番号 (0 以上)、失敗した場合には -1。
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index = weechat_arraylist_insert (arraylist, -1, pointer); /* 未ソートの配列リストに対しては要素を末尾に挿入します */
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== arraylist_add
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
配列リストに要素を追加します。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_add (struct t_arraylist *arraylist, void *pointer);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _arraylist_: 配列リストポインタ
|
||||
* _pointer_: 追加する要素へのポインタ
|
||||
|
||||
戻り値:
|
||||
|
||||
* 成功した場合には追加された要素のインデックス番号 (0 以上)、失敗した場合には -1。
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index = weechat_arraylist_add (arraylist, pointer);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== arraylist_remove
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
配列リストから要素を削除します。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_remove (struct t_arraylist *arraylist, int index);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _arraylist_: 配列リストポインタ
|
||||
* _index_: 削除する要素のインデックス番号
|
||||
|
||||
戻り値:
|
||||
|
||||
* 成功した場合には削除された要素のインデックス番号、失敗した場合には -1。
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int index_removed = weechat_arraylist_remove (arraylist, index);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== arraylist_clear
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
配列リストからすべての要素を削除します。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_arraylist_clear (struct t_arraylist *arraylist);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _arraylist_: 配列リストポインタ
|
||||
|
||||
戻り値:
|
||||
|
||||
* 成功した場合には 1、失敗した場合には 0
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
if (weechat_arraylist_clear (arraylist))
|
||||
{
|
||||
/* 成功 */
|
||||
}
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== arraylist_free
|
||||
|
||||
_WeeChat バージョン 1.8 以上で利用可_
|
||||
|
||||
配列リストを解放します。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
void weechat_arraylist_free (struct t_arraylist *arraylist);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _arraylist_: 配列リストポインタ
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
weechat_arraylist_free (arraylist);
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
[[hashtables]]
|
||||
=== ハッシュテーブル
|
||||
|
||||
@@ -5177,7 +5848,13 @@ int weechat_config_option_set (struct t_config_option *option,
|
||||
引数:
|
||||
|
||||
* _option_: オプションへのポインタ
|
||||
* _value_: オプションの新しい値
|
||||
* _value_:
|
||||
オプションの新しい値、オプションのタイプによって以下の特殊値を取ることも可能です:
|
||||
** _ブール型_:
|
||||
*** `toggle`: 現在の値を切り替える
|
||||
** _整数型_ または _色_:
|
||||
*** `++N`: 現在の値に `N` (任意の整数) を加える
|
||||
*** `--N`: 現在の値から `N` (任意の整数) を引く
|
||||
* _run_callback_: オプションが変更された際に、_callback_change_ コールバックを呼び出す場合は
|
||||
1、呼び出さない場合は 0
|
||||
|
||||
@@ -5382,6 +6059,47 @@ weechat.config_option_rename(option, new_name)
|
||||
weechat.config_option_rename(option, "new_name")
|
||||
----
|
||||
|
||||
==== config_option_get_string
|
||||
|
||||
_WeeChat バージョン 1.9 以上で利用可。_
|
||||
|
||||
オプションプロパティの文字列値を返す。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
const char *weechat_config_option_get_string (struct t_config_option *option,
|
||||
const char *property);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _option_: オプションへのポインタ
|
||||
* _property_: プロパティ名:
|
||||
** _name_: オプション名
|
||||
** _parent_name_: 親オプション名
|
||||
** _type_: オプション型、以下のリストのどれか 1 つ:
|
||||
*** _boolean_
|
||||
*** _integer_
|
||||
*** _string_
|
||||
*** _color_
|
||||
** _description_: オプションの説明
|
||||
|
||||
戻り値:
|
||||
|
||||
* プロパティの文字列値
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
const char *type = weechat_config_option_get_string (option, "type");
|
||||
----
|
||||
|
||||
[NOTE]
|
||||
スクリプト API ではこの関数を利用できません。
|
||||
|
||||
==== config_option_get_pointer
|
||||
|
||||
あるオプションのプロパティへのポインタを返す。
|
||||
@@ -6579,7 +7297,7 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_UNSET_ERROR:
|
||||
|
||||
==== key_bind
|
||||
|
||||
_WeeChat バージョン 0.3.6 以上で利用可。_
|
||||
_WeeChat バージョン 0.3.6 以上で利用可、バージョン 1.8 で更新。_
|
||||
|
||||
新しいキー割り当てを追加。
|
||||
|
||||
@@ -6595,6 +7313,8 @@ _WeeChat バージョン 0.3.6 以上で利用可。_
|
||||
int weechat_key_bind (const char *context, struct t_hashtable *keys);
|
||||
----
|
||||
|
||||
:key_bind_quiet: __quiet
|
||||
|
||||
引数:
|
||||
|
||||
* _context_: キーのコンテキスト:
|
||||
@@ -6602,7 +7322,9 @@ int weechat_key_bind (const char *context, struct t_hashtable *keys);
|
||||
** _search_: 検索コンテキスト (バッファ中のテキストを検索中)
|
||||
** _cursor_: 画面上のカーソルを自由に移動
|
||||
** _mouse_: マウスイベント用のキー
|
||||
* _keys_: キー割り当てを収めたハッシュテーブル
|
||||
* _keys_: キー割り当てを収めたハッシュテーブル; 以下の特殊キーを収めることが可能です:
|
||||
** _{key_bind_quiet}_: コアバッファに追加されたキーを表示しない
|
||||
_(WeeChat バージョン 1.8 以上で利用可)_
|
||||
|
||||
戻り値:
|
||||
|
||||
@@ -7433,17 +8155,13 @@ struct t_hook *weechat_hook_command_run (const char *command,
|
||||
** _const char *command_: 実行するコマンド、引数付き
|
||||
** 戻り値:
|
||||
*** _WEECHAT_RC_OK_
|
||||
*** _WEECHAT_RC_OK_EAT_
|
||||
*** _WEECHAT_RC_OK_EAT_: コールバックの後にコマンドを実行しない
|
||||
*** _WEECHAT_RC_ERROR_
|
||||
* _callback_pointer_: WeeChat が _callback_ コールバックを呼び出す際にコールバックに渡すポインタ
|
||||
* _callback_data_: WeeChat が _callback_ コールバックを呼び出す際にコールバックに渡すポインタ;
|
||||
このポインタが NULL でない場合、このポインタは malloc (または類似の関数)
|
||||
によって割り当てられたものでなければいけません。さらに、このポインタはここで作成したフックが削除された時点で自動的に開放されます
|
||||
|
||||
[NOTE]
|
||||
コールバックは _WEECHAT_RC_OK_ または _WEECHAT_RC_OK_EAT_
|
||||
(コールバックの後にコマンドを実行しない) を返すことができます。
|
||||
|
||||
戻り値:
|
||||
|
||||
* 新しいフックへのポインタ、エラーが起きた場合は NULL
|
||||
@@ -8504,6 +9222,11 @@ WeeChat とプラグインが送信するシグナルのリスト:
|
||||
String: サーバ名 |
|
||||
サーバから切断された
|
||||
|
||||
| irc | irc_server_lag_changed +
|
||||
_(WeeChat バージョン 1.8 以上で利用可)_ |
|
||||
String: サーバ名 |
|
||||
指定したサーバの遅延時間が変化
|
||||
|
||||
| irc | irc_ignore_removing |
|
||||
Pointer: 無視 |
|
||||
無視条件を削除中
|
||||
@@ -9292,7 +10015,7 @@ struct t_hook *weechat_hook_hsignal (const char *signal,
|
||||
void *callback_data);
|
||||
----
|
||||
|
||||
Arguments:
|
||||
引数:
|
||||
|
||||
* _signal_: キャッチするシグナル、ワイルドカード `+*+` を使うことができます
|
||||
(優先度の設定が可能、<<hook_priority,フックの優先度>>に関する注意を参照)
|
||||
@@ -11372,7 +12095,7 @@ weechat_buffer_set (my_buffer, "name", "my_new_name");
|
||||
weechat_buffer_set (my_buffer, "localvar_set_toto", "abc");
|
||||
|
||||
/* remove local variable "toto" */
|
||||
weechat_buffer_set (my_buffer, "localvar_del_toto", NULL);
|
||||
weechat_buffer_set (my_buffer, "localvar_del_toto", "");
|
||||
----
|
||||
|
||||
スクリプト (Python) での使用例:
|
||||
@@ -15313,6 +16036,59 @@ for key in hash:
|
||||
weechat.prnt("", " %s == %s" % (key, hash[key]))
|
||||
----
|
||||
|
||||
==== hdata_compare
|
||||
|
||||
_WeeChat バージョン 1.9 以上で利用可。_
|
||||
|
||||
2 つのオブジェクトの hdata 変数を比較。
|
||||
|
||||
プロトタイプ:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
int weechat_hdata_compare (struct t_hdata *hdata, void *pointer1, void *pointer2, const char *name, int case_sensitive);
|
||||
----
|
||||
|
||||
引数:
|
||||
|
||||
* _hdata_: hdata へのポインタ
|
||||
* _pointer1_: 1 番目の WeeChat およびプラグインオブジェクトへのポインタ
|
||||
* _pointer2_: 2 番目の WeeChat およびプラグインオブジェクトへのポインタ
|
||||
* _name_: 変数名; 配列の場合、変数名を "N|name" のように指定できます。ここで
|
||||
N は配列のインデックス番号です (番号は 0 から始まります)。例: "2|name"
|
||||
* _case_sensitive_: 大文字小文字を区別する場合 1、それ以外の場合 0
|
||||
|
||||
戻り値:
|
||||
|
||||
* variable1 < variable2 の場合は -1
|
||||
* variable1 == variable2 の場合は 0
|
||||
* variable1 > variable2 の場合は 1
|
||||
|
||||
C 言語での使用例:
|
||||
|
||||
[source,C]
|
||||
----
|
||||
struct t_hdata *hdata = weechat_hdata_get ("buffer");
|
||||
struct t_gui_buffer *buffer1 = weechat_buffer_search ("irc", "freenode.#weechat");
|
||||
struct t_gui_buffer *buffer2 = weechat_buffer_search ("irc", "freenode.#weechat-fr");
|
||||
weechat_printf (NULL, "number comparison = %d",
|
||||
weechat_hdata_compare (hdata, buffer1, buffer2, "number", 0));
|
||||
----
|
||||
|
||||
スクリプト (Python) での使用例:
|
||||
|
||||
[source,python]
|
||||
----
|
||||
# プロトタイプ
|
||||
rc = weechat.hdata_compare(hdata, pointer1, pointer2, name, case_sensitive)
|
||||
|
||||
# 例
|
||||
hdata = weechat.hdata_get("buffer")
|
||||
buffer1 = weechat.buffer_search("irc", "freenode.#weechat")
|
||||
buffer2 = weechat.buffer_search("irc", "freenode.#weechat-fr")
|
||||
weechat.prnt("", "number comparison = %d" % weechat.hdata_compare(hdata, buffer1, buffer2, "number", 0))
|
||||
----
|
||||
|
||||
==== hdata_set
|
||||
|
||||
_WeeChat バージョン 0.3.9 以上で利用可。_
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user