mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
Compare commits
841 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d4ed290a37 | |||
| a98568788b | |||
| 215fdfc0a7 | |||
| deedaed1f9 | |||
| fb220e1afd | |||
| afd7e08691 | |||
| 0fb0b3bb07 | |||
| ecec47c633 | |||
| 3f64975a72 | |||
| b970962bdb | |||
| d56e46908f | |||
| 8b19d3b0a4 | |||
| fcf439dfa0 | |||
| e4a2a6d3f2 | |||
| 7051d7e08b | |||
| 36d09a2ba6 | |||
| ee799c9032 | |||
| 797d3c0db2 | |||
| 91223591e9 | |||
| f50b91a6d9 | |||
| d2d490146c | |||
| f587a9dcaf | |||
| 54b0753aab | |||
| d189ca7f19 | |||
| 86d8bec433 | |||
| 53db79aa5f | |||
| b994a645e3 | |||
| 64f17761f1 | |||
| 3bdb31bbf6 | |||
| 7f1f9462f4 | |||
| 9fbc81dc54 | |||
| 4550c3e33a | |||
| 7e2b9ffa9a | |||
| 04f817814f | |||
| 0315c53a9e | |||
| 3aeaa70e64 | |||
| 66e633e27e | |||
| 436bbeceff | |||
| c307087e2d | |||
| 51a1149852 | |||
| d74993a42c | |||
| 51464e400f | |||
| 1c5e6c3fc2 | |||
| e563dfc903 | |||
| befbcceb7f | |||
| 56f9ad68fb | |||
| 328f86affc | |||
| f4dc30ec58 | |||
| 23291acb7b | |||
| b802681230 | |||
| 3687ce0f0f | |||
| 1211510ded | |||
| 07871f123f | |||
| a0cf82d4a6 | |||
| 13291b6b9a | |||
| 76d652a513 | |||
| ff9b698665 | |||
| d5c985eb11 | |||
| b29f464322 | |||
| 171a9a9fc4 | |||
| d7bc041098 | |||
| 43a118ac47 | |||
| e540d7a2cf | |||
| 6948aea626 | |||
| 5dbb96b66a | |||
| 4fdcbf8f93 | |||
| e4b70ad252 | |||
| d7fd2b7b0b | |||
| 73cf57742e | |||
| bf7b8484cd | |||
| 86f51b66b3 | |||
| 1400b6c197 | |||
| c71978c0b3 | |||
| 4c38ce050b | |||
| 5520ed1950 | |||
| ad35aef1f4 | |||
| 88f0070674 | |||
| 7683287f71 | |||
| 33adaef85c | |||
| 6f3c804379 | |||
| 617b4e4dee | |||
| ea1eb76b2d | |||
| ad12925d6c | |||
| a5fcf898b9 | |||
| 14d544be39 | |||
| 3e994996c6 | |||
| 3341b9a2d2 | |||
| 815640b840 | |||
| acd3d91318 | |||
| ef5f4d8ee6 | |||
| d40217d1e6 | |||
| 17b593325a | |||
| 3456e848da | |||
| 723232ac35 | |||
| 5f5f9f35e7 | |||
| 86a6c4f5ff | |||
| 3082c2e4e5 | |||
| 062109e33d | |||
| fd88c9a45b | |||
| a8c4d5604e | |||
| ef4c657157 | |||
| 0c29e5a630 | |||
| 77a0dbfd44 | |||
| afa42ec851 | |||
| 8da86431da | |||
| 3d7f988973 | |||
| 5ed21d7dad | |||
| 54eff44d74 | |||
| 83d760deae | |||
| 5147b19e51 | |||
| 50959eeb01 | |||
| ac2ed69c0b | |||
| 2f7f707df0 | |||
| 94e5de4836 | |||
| 38f9a5587f | |||
| 6432711798 | |||
| 81c23a5134 | |||
| 6336c22293 | |||
| 6658122b03 | |||
| 7e8f8b5178 | |||
| d00e334738 | |||
| f48b0bae2e | |||
| d3d18cd4c2 | |||
| cead39b52f | |||
| 7d88e53182 | |||
| 8fe741e057 | |||
| b6ef936cca | |||
| 7c2bae9faf | |||
| 2b48eba784 | |||
| 5969f9faf6 | |||
| b70b484f5f | |||
| b250d71608 | |||
| 94457f8313 | |||
| 0cd0e7be6a | |||
| 2ececc1184 | |||
| b8bef1c3e1 | |||
| d9e56c3df8 | |||
| dc28050b8b | |||
| f53e7fb9ef | |||
| d34eb40187 | |||
| 2cbbb677f3 | |||
| f7267bc992 | |||
| 147d5b3f88 | |||
| da4881959e | |||
| 5e963c7546 | |||
| 41d8e06394 | |||
| 52d1245bad | |||
| 961dc515a0 | |||
| 73ec7c0641 | |||
| c60a5fde14 | |||
| 0bbae498c9 | |||
| 4c79e870af | |||
| dc4df8b9aa | |||
| 6bc11571b5 | |||
| d1b71a8562 | |||
| 19a6591410 | |||
| 25e0809c55 | |||
| e8d0399623 | |||
| c41d73e417 | |||
| 1532efea6d | |||
| 9bf2d51493 | |||
| 27ae6ca789 | |||
| 916c59d8f0 | |||
| 37bdf6586b | |||
| 13e9381e19 | |||
| b94e4af67e | |||
| 431d9ad64a | |||
| f5bbe35cfb | |||
| b82ce33c6c | |||
| 87a683ebdb | |||
| f048ea9eac | |||
| fc0fb05ec0 | |||
| 835e0b9549 | |||
| 507f172dae | |||
| fc595afd08 | |||
| 2f5305dc82 | |||
| 9f2b9c4ea9 | |||
| aea8421e49 | |||
| 81834c45ae | |||
| 01d2887b13 | |||
| 8b30d9a7d7 | |||
| 92327871d2 | |||
| b2556f99f4 | |||
| ec6372f4df | |||
| abb74ac178 | |||
| 71329fd595 | |||
| 106fe6ca7c | |||
| 630f2e2e7c | |||
| eb0b01f62a | |||
| fb00b7055c | |||
| 58b1f5c62b | |||
| d663070b02 | |||
| 8ff7d63744 | |||
| 5eb3bca47b | |||
| d0478bdc04 | |||
| d7fc65e282 | |||
| 0d737349be | |||
| dc94251b33 | |||
| 306155aa48 | |||
| 238f8cbc7e | |||
| fa043644cb | |||
| e06b3c1d7e | |||
| 5b052532ec | |||
| 18bce9e8c4 | |||
| 886042a875 | |||
| fca4ee28e0 | |||
| 7c37eced93 | |||
| a413d16038 | |||
| 440907e1cd | |||
| cb08473bdc | |||
| 71ef7e286c | |||
| 2a234b3bfe | |||
| 6442b938eb | |||
| c8d2b4448a | |||
| 3918efd8e9 | |||
| 4decd2c386 | |||
| 323ab8810e | |||
| fc6003c74e | |||
| ae54c3ef65 | |||
| b38c00bb0d | |||
| 20a7affb70 | |||
| 150e6ecd82 | |||
| 87ef578ad2 | |||
| ef5f197a4a | |||
| 250db946b0 | |||
| f0160bf5ab | |||
| 7d51a1331b | |||
| 22b335ce86 | |||
| f26f73f283 | |||
| 323c9e2bfe | |||
| 894df0e9e6 | |||
| ead76532de | |||
| da2f506f2e | |||
| e42e811c95 | |||
| 889450fb31 | |||
| 3c11e09c30 | |||
| 616daecdd0 | |||
| 9b4fd66de7 | |||
| b42f7a400e | |||
| 9e814860ae | |||
| a2a71b4d33 | |||
| 7d6b8f6943 | |||
| 3b4a5bbb09 | |||
| 58b7ec59e9 | |||
| 518b9ab381 | |||
| a9e48d33c6 | |||
| 1ff001994c | |||
| 234a37df6f | |||
| 6bcc6ef65f | |||
| d5e6c94246 | |||
| 63b6dee311 | |||
| 34697cf5ce | |||
| 2534976281 | |||
| c3f2252385 | |||
| 83e3e6973c | |||
| c56389d12e | |||
| 12717ff689 | |||
| d8569ffe27 | |||
| 62c99f8938 | |||
| a3f733d29a | |||
| c9c402d202 | |||
| 7ce1e8c05f | |||
| 0be2d45f6a | |||
| 4e0cc14b79 | |||
| c18d8ecc1d | |||
| dd454dfc50 | |||
| 1f0d8d3849 | |||
| c248aa42ce | |||
| 2832ef333e | |||
| 5543bc236b | |||
| 953ede1200 | |||
| c2ff484995 | |||
| b8048b1666 | |||
| e33ed57b47 | |||
| 790ce13843 | |||
| 4ecf2cb6b8 | |||
| d23a7a6105 | |||
| da12df6b73 | |||
| 3176e2a6b7 | |||
| 4555f9a58a | |||
| e261cadce3 | |||
| 3e49b73117 | |||
| 898213b4f2 | |||
| e6646d1ef1 | |||
| 69d47b68f5 | |||
| 48d2c5fd01 | |||
| 1c53d3d466 | |||
| 4ab11b7705 | |||
| 8032ca1433 | |||
| ac69288ed7 | |||
| 0930976456 | |||
| d5bfe35245 | |||
| 90a42ee213 | |||
| 6981f9f204 | |||
| b9f1145d03 | |||
| f3a8068109 | |||
| 1ffc96955e | |||
| 8316745061 | |||
| b18190b4c0 | |||
| 753475f530 | |||
| 237b07575b | |||
| dacd29b1d7 | |||
| cfcadd155d | |||
| e5285c5545 | |||
| 538b95d405 | |||
| 1bfd744249 | |||
| cd20c0e843 | |||
| 16245f44ae | |||
| 2f8393d504 | |||
| d0298b4738 | |||
| c34d26dd70 | |||
| 96e225ac39 | |||
| e570d76c53 | |||
| 5f0eebc0df | |||
| 3a3dec985d | |||
| 7051dd4351 | |||
| c0116febe5 | |||
| 1094e70de2 | |||
| 08545facb6 | |||
| 2c4ede614e | |||
| 8c6e6bb383 | |||
| c9d4dd48a0 | |||
| af41184889 | |||
| a89d5302fd | |||
| b61dca7d2d | |||
| 4232123ca3 | |||
| 6d7dd46015 | |||
| 93c0ee57c8 | |||
| 5433d25889 | |||
| 3ed6726625 | |||
| 8143d44e44 | |||
| 0dab9b9257 | |||
| 07ef353b1b | |||
| 234244f8d5 | |||
| 063aa86978 | |||
| 93d73d234f | |||
| df3232fc80 | |||
| d05b83d03f | |||
| 0009732f78 | |||
| e637e0de1c | |||
| 58c873809b | |||
| 8eed89c43c | |||
| 1b669cd13c | |||
| f854db17ff | |||
| 72b2242135 | |||
| b066f713d7 | |||
| 63313468c9 | |||
| d9ba00223b | |||
| ae5b74549c | |||
| 222cb4876e | |||
| dc22d70dd4 | |||
| 949f860267 | |||
| e2ae308e3b | |||
| 767ea84909 | |||
| 665773b119 | |||
| 21a958423e | |||
| 1c09118fe1 | |||
| 47c1128fb9 | |||
| 1038f0de24 | |||
| 5acbfe9b7d | |||
| 7980a6d100 | |||
| f630c36af0 | |||
| 8e4ce78c97 | |||
| b2d9ad9e22 | |||
| c48485bc46 | |||
| f48e6ee81d | |||
| 87eb6cc7e1 | |||
| 8c372c0c01 | |||
| def60c1e1c | |||
| 08651ba820 | |||
| bff910cae3 | |||
| 0861716ae1 | |||
| 627862218a | |||
| 285a6b8ce4 | |||
| be8e94f3cd | |||
| db7ecc1af1 | |||
| 74a4b3e249 | |||
| be78d185ea | |||
| 58067431de | |||
| 87e84d9053 | |||
| 902332c3e6 | |||
| 0b82429b39 | |||
| 8b2165d441 | |||
| fca2412424 | |||
| d279a80733 | |||
| 4444addf4d | |||
| 4ce74403dc | |||
| 1db29cb1ed | |||
| d8baabd250 | |||
| 4348036e2e | |||
| 93ec10b563 | |||
| cd0486d5bb | |||
| b4f28ed2d4 | |||
| 323f80e914 | |||
| 56903738b5 | |||
| 6d45a69f39 | |||
| 34f2e6cdd0 | |||
| a6e859b7ff | |||
| 103bddcc50 | |||
| 76a64e1280 | |||
| 75c01e8c8d | |||
| e8ce75f20c | |||
| 47f7518c1f | |||
| 9a9a262ea1 | |||
| 7fb3ca6686 | |||
| e98a32373e | |||
| 69d3787b5e | |||
| aa6cbf911e | |||
| cf1c4a689d | |||
| 48568edfe0 | |||
| d7b26e88b8 | |||
| 0407a08888 | |||
| ff3fd38086 | |||
| 847208f196 | |||
| f6ef908740 | |||
| f2bd5d773b | |||
| 6cbb35c644 | |||
| 372e7306bc | |||
| 927a50e366 | |||
| d0c00f7db2 | |||
| 9783256649 | |||
| 8106db400d | |||
| 4d617d0e01 | |||
| acbf1ddfcf | |||
| 999262cbf2 | |||
| 7b674c2618 | |||
| 1efa9d6b08 | |||
| 1fe23d9233 | |||
| 5cfee46b59 | |||
| 75195d32da | |||
| d475c16671 | |||
| 6ecd9e66bf | |||
| 9d37159a6b | |||
| aa54d3653c | |||
| b32f8662bc | |||
| f9520b971e | |||
| 776b908431 | |||
| 58a4dc757d | |||
| 229259b8c2 | |||
| 1d808a1f1c | |||
| 2bc290b6ed | |||
| f6cace609c | |||
| 1da89711a7 | |||
| 675c3279ac | |||
| 7341d670b3 | |||
| 38bf51ccfb | |||
| d74fc99fe1 | |||
| 51d24fd2da | |||
| 9a661aecd0 | |||
| 85f565f6c1 | |||
| 7cae4b276d | |||
| 8e390939f9 | |||
| ca6035f754 | |||
| 5b4820ab06 | |||
| 68d87f2b80 | |||
| ceb6a007ff | |||
| 59b06c96de | |||
| a1cbe63a42 | |||
| e15b369aa7 | |||
| 9f4cbe599b | |||
| 8b6480272a | |||
| 84c526ac20 | |||
| f08b6beeda | |||
| 4116f62dd8 | |||
| 5b62cb6451 | |||
| 36be7ac1ff | |||
| ac04215164 | |||
| 4d130d6b06 | |||
| 44197397ef | |||
| b2a5d5995b | |||
| 683fa2f585 | |||
| a008e8a423 | |||
| 0e777fef4e | |||
| da4c24152b | |||
| 32e3e76dd3 | |||
| a336a26fc6 | |||
| be3e487bd6 | |||
| e282f77eee | |||
| 286122b0c3 | |||
| 7a28bb95e2 | |||
| a215a4581c | |||
| 86a910884b | |||
| 41f96c6494 | |||
| 0835d043de | |||
| d0babe8679 | |||
| 61ce24cf46 | |||
| cf2e7f4691 | |||
| 86d68a87d5 | |||
| 0c3eaa9ba2 | |||
| 5e47c6453e | |||
| 5ccbdca0c9 | |||
| ea90809e6c | |||
| d4b8685551 | |||
| 5ba7a72d90 | |||
| db5afcde92 | |||
| b0cfdeff94 | |||
| ff9d580ef5 | |||
| 2475f20cb7 | |||
| 3a6ac9ee76 | |||
| 4ab35ad44a | |||
| 55d936d63a | |||
| 0a5222f5d6 | |||
| f4b29093ca | |||
| cf3e24cda8 | |||
| d8987a1678 | |||
| 8260963932 | |||
| 45c8bab9b8 | |||
| 768534c606 | |||
| 7ca62883cf | |||
| 8ab1825b80 | |||
| 369917f1bc | |||
| 7370e04017 | |||
| 9663f79746 | |||
| e0b7d2a645 | |||
| 99bb1454a4 | |||
| caa7af253a | |||
| 36300c763d | |||
| e3ffef457f | |||
| 6d11468059 | |||
| 6b19987e7f | |||
| d91039ebd0 | |||
| 2e6249588f | |||
| 847ce17718 | |||
| 15e2da3aac | |||
| ca22e49041 | |||
| 764b309e92 | |||
| c0402bce52 | |||
| 9fe5fa23a0 | |||
| e8a335a3e3 | |||
| e9983821e7 | |||
| b25a9b11a0 | |||
| f5038bccbc | |||
| 20b2bdedc2 | |||
| 95366c37b7 | |||
| 80bb54fed8 | |||
| 68d452b559 | |||
| 357b7e0d55 | |||
| d8106f863a | |||
| 2e570c599b | |||
| 8280a3b65b | |||
| f7cf044f33 | |||
| 98aca3343a | |||
| d9ee4a3c13 | |||
| 19d84e975e | |||
| c33a28cfca | |||
| 145423c11f | |||
| 4865fe07e2 | |||
| cc163a0e7e | |||
| 17e7796669 | |||
| 83c4b940a6 | |||
| 8c1379e820 | |||
| e86e558f3f | |||
| 718a317cfb | |||
| c275f9d994 | |||
| 9285afc3e2 | |||
| c7d21a3ea6 | |||
| 1b54cd24ed | |||
| d3a9e4e74b | |||
| 8fd4a80af8 | |||
| 091a17b138 | |||
| e89d6d69ad | |||
| 3c9eb6dcac | |||
| 8e9692809d | |||
| 6388d36858 | |||
| 8198aade2e | |||
| ca6e483cdc | |||
| 547e2b934e | |||
| 07deaf97ec | |||
| daef5971ae | |||
| 04aea1bcb5 | |||
| 4b7be27028 | |||
| 68c70e5538 | |||
| 865dd61d31 | |||
| b53f3c2db8 | |||
| 56698151db | |||
| 1285a7d391 | |||
| 36b62cfc5e | |||
| d97fed80cb | |||
| 80ca209e70 | |||
| d302294723 | |||
| 60422ca6b1 | |||
| 9d3388b09e | |||
| d10af1037b | |||
| 10b4fffaca | |||
| c48dee3211 | |||
| cf726265d1 | |||
| 8b2cdf3032 | |||
| 3523b5e4e2 | |||
| c6c420c698 | |||
| cfe34388fb | |||
| 3eaa1a3a6e | |||
| de88cd3b58 | |||
| b88582c7ec | |||
| cab9496a70 | |||
| c0c837b1be | |||
| 7c30dbcf05 | |||
| d665e2d489 | |||
| 16346255f1 | |||
| 2a7f557f05 | |||
| 8e8e982af6 | |||
| 883c12dec2 | |||
| ad5fde5966 | |||
| 119664d090 | |||
| 97ede70307 | |||
| c26ff6c51b | |||
| 9e34a0e917 | |||
| befcd09d63 | |||
| 8aba934c50 | |||
| 3b88065266 | |||
| ce2c4b74a2 | |||
| d3d0948e2e | |||
| 68dce2b47a | |||
| b45d2105a5 | |||
| 74c63c0541 | |||
| 770d87c3d6 | |||
| 099e11d7b8 | |||
| 8af3a4cef8 | |||
| 7226b005e9 | |||
| 45509e1cd1 | |||
| cdb4823fad | |||
| 82f0b3b121 | |||
| e6409355b6 | |||
| e2675f5afe | |||
| e6388c1d1a | |||
| 9779f56125 | |||
| 818a4c95a9 | |||
| 8f43dceedf | |||
| 05c60a2292 | |||
| 798c7a5262 | |||
| 732f24b6ba | |||
| 0fc0071297 | |||
| e8b73aa711 | |||
| 33232f3f05 | |||
| 5e5278b6a3 | |||
| eee806370b | |||
| f8b2e1d525 | |||
| 82a2f764bc | |||
| 680e7dc95f | |||
| a0b7220d23 | |||
| 48a92276e5 | |||
| e483113345 | |||
| ea11623793 | |||
| 107650d7d7 | |||
| 2555c378a2 | |||
| 6e7df56592 | |||
| 9250d769fd | |||
| 5bdbcae892 | |||
| 11faf85402 | |||
| ca07c03bf3 | |||
| 18364586d9 | |||
| 669f1894e6 | |||
| 45a1b9b20e | |||
| a414fb9da5 | |||
| bd7c503e7b | |||
| eaace4acdb | |||
| 328aa8f202 | |||
| 244595d94f | |||
| 61d7a4c678 | |||
| 3e579c94f6 | |||
| 7184d34371 | |||
| 9a8010eead | |||
| 3fd298bfbe | |||
| 7c1586e8ff | |||
| 1c30fe9b0a | |||
| 9c016af6fb | |||
| 08d5839fa1 | |||
| b11e2b82f4 | |||
| 85b9d72e37 | |||
| 4511996b84 | |||
| 93646c0b24 | |||
| 5ddd786332 | |||
| 9731f5a8e6 | |||
| 6e19e9d8b2 | |||
| 9f6caa4e03 | |||
| 74cc16ef07 | |||
| 1fc8c551d8 | |||
| 764fb7c4ad | |||
| c1b34b0ff5 | |||
| 328fc3845e | |||
| 524c813485 | |||
| 2dea224a38 | |||
| 84f65e1339 | |||
| 24fbeaf36e | |||
| d1013b31bd | |||
| 945782195f | |||
| 06771e66fb | |||
| d83167b586 | |||
| cd4d958e82 | |||
| 254ecbf4c6 | |||
| ad6ec011bd | |||
| 26e16fdea7 | |||
| 50a9c88b79 | |||
| 97e81e197d | |||
| 488b3f8e7b | |||
| 3160d2accd | |||
| fea5b868ee | |||
| 6dccc3181a | |||
| 16dac7193b | |||
| 4503dbb013 | |||
| fb57abbadf | |||
| bc675bd270 | |||
| 0f8fede68a | |||
| 958863b4a8 | |||
| d9e1b545b4 | |||
| 1bf4e466f9 | |||
| de4231c842 | |||
| 19cb459685 | |||
| 51dfb1fb78 | |||
| fec71ae30c | |||
| 99b4f9a98d | |||
| 17fc815da9 | |||
| ba746dcb1b | |||
| 90c23ef418 | |||
| bca7c7438a | |||
| 709b2b5796 | |||
| ec78084f49 | |||
| 5eb64b2dfa | |||
| 977b3581fa | |||
| 00578a70e1 | |||
| ffd7cc90fb | |||
| 8223da0fe6 | |||
| 453e60ed23 | |||
| e29332ead6 | |||
| 139787b26f | |||
| 0bcae707fc | |||
| e0ac58a26a | |||
| 423f609828 | |||
| 94312b6622 | |||
| 66f9b1762a | |||
| c627743b29 | |||
| f482b611a1 | |||
| b450ccdb6c | |||
| d42d837924 | |||
| fc7b00562c | |||
| 0e9f841974 | |||
| 58e6e41948 | |||
| 8f2bcb1a09 | |||
| 2202cd9f85 | |||
| 7fb77aabfa | |||
| 8fee9c1778 | |||
| 17eedc35e2 | |||
| 57b19b6c74 | |||
| 7415eaa1f1 | |||
| 42c8f86533 | |||
| dcd62f7ee6 | |||
| 7f93f81a82 | |||
| 358b8ad2a6 | |||
| e1d7459660 | |||
| e3b8a6d21a | |||
| 9a7c45e7f6 | |||
| 87f2bb0a23 | |||
| 90ed422afd | |||
| aee09ad0a0 | |||
| 9f67ae369c | |||
| c0fbb5aaf5 | |||
| 67d4c96de3 | |||
| 9e5bfd70a8 | |||
| a0cac1a5dd | |||
| c30949b411 | |||
| e6cd8c9519 | |||
| 89e162fced | |||
| 4c68c4cd48 | |||
| 1aa5b46ba5 | |||
| 80def4a36b | |||
| d97467ff67 | |||
| 05464f866b | |||
| 4e0ffd18c2 | |||
| 6fdf39165a | |||
| 5e2091e802 | |||
| c28696e602 | |||
| 0505a0ff76 | |||
| 4ef3011ea9 | |||
| 08895863d9 | |||
| fd1899aa12 | |||
| 3eb4b203f2 | |||
| 969376c88a | |||
| 17381d983f | |||
| 631ca3f8df | |||
| a464135f39 | |||
| ef107fd66d | |||
| d3ceabf5de | |||
| 02ea93e88f | |||
| 824c172984 | |||
| 759ffc3d21 | |||
| 6534919868 | |||
| 02847246b2 | |||
| 2b702f21d3 | |||
| fc16a4c141 | |||
| 1cf65df089 | |||
| 01103cb02a | |||
| 6908eec160 | |||
| cfd4ab909f | |||
| 554892131d | |||
| a15ae18c81 | |||
| 7ed85f3ed3 | |||
| df4acd5d3d | |||
| bb83685ac6 | |||
| 91961433e3 | |||
| 9aa0a94156 | |||
| 970f20af31 | |||
| 62d0347d4b | |||
| 5564baf424 | |||
| 315f769ab2 | |||
| 5f62eb1f2b | |||
| 143f694fe2 | |||
| 230c436dd4 | |||
| b3f34ecf33 | |||
| 3253500d15 | |||
| fce44675c4 | |||
| 0ab7c20f0d | |||
| b36c6c2e26 | |||
| 9b969be1f9 | |||
| 954a7462c0 | |||
| 434c1ee3c4 | |||
| 6bb4d64512 | |||
| 4572e46ced | |||
| c1130446eb | |||
| 9f44a1087b | |||
| 08ad5be78d | |||
| cba7c764da | |||
| c3fd7e4e44 | |||
| 62f769e736 | |||
| d4ca32832e | |||
| c5a1744c09 | |||
| 99d42ba297 | |||
| fca21cac3f | |||
| dfef851516 | |||
| 584f54d443 | |||
| ed79b8c2e9 | |||
| 1f6a7e23ad | |||
| 452a20c05e | |||
| bf19d0482c | |||
| 27b3b50fa9 | |||
| 237955efcc | |||
| cd5ffb21cb | |||
| a79c3b6141 | |||
| e215e6b7ae | |||
| cba83f08a2 | |||
| fa2a87b2e5 | |||
| 9f3a68ed15 | |||
| 94f906fd8a |
@@ -0,0 +1,30 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2024 Emil Velikov <emil.l.velikov@gmail.com>
|
||||||
|
# SPDX-FileCopyrightText: 2024-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
#
|
||||||
|
# To use this config on you editor, follow the instructions at:
|
||||||
|
# https://editorconfig.org
|
||||||
|
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
insert_final_newline = true
|
||||||
|
indent_size = 4
|
||||||
|
indent_style = space
|
||||||
|
tab_width = 8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
|
[{*.{c,cpp,h}}]
|
||||||
|
max_line_length = 80
|
||||||
|
|
||||||
|
[{CMakeLists.txt,*.cmake}]
|
||||||
|
max_line_length = 80
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.html]
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.yml]
|
||||||
|
indent_size = 2
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2013-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
# files/directories excluded from tarballs
|
# files/directories excluded from tarballs
|
||||||
|
|
||||||
.git* export-ignore
|
.git* export-ignore
|
||||||
|
|||||||
@@ -1 +1,5 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2019-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
custom: https://weechat.org/donate/
|
custom: https://weechat.org/donate/
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
name: Bug report
|
name: Bug report
|
||||||
description: Create a bug report
|
description: Create a bug report
|
||||||
labels: ["bug"]
|
labels: ["bug"]
|
||||||
@@ -9,7 +13,7 @@ body:
|
|||||||
Before submitting a bug, please check that it has not already been reported by searching in [open and closed bugs](https://github.com/weechat/weechat/issues?q=is%3Aissue+label%3Abug).
|
Before submitting a bug, please check that it has not already been reported by searching in [open and closed bugs](https://github.com/weechat/weechat/issues?q=is%3Aissue+label%3Abug).
|
||||||
If you don't use the latest version, please try if possible with the latest stable release to be sure the issue is still present and report the issue on this version.
|
If you don't use the latest version, please try if possible with the latest stable release to be sure the issue is still present and report the issue on this version.
|
||||||
|
|
||||||
**IMPORTANT**: please do not report any security issue here, see [CONTRIBUTING.md](https://github.com/weechat/weechat/blob/master/CONTRIBUTING.md#security-reports).
|
**IMPORTANT**: please do not report any security issue here, see [CONTRIBUTING.md](https://github.com/weechat/weechat/blob/main/CONTRIBUTING.md#security-reports).
|
||||||
|
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: bug-description
|
id: bug-description
|
||||||
@@ -87,7 +91,7 @@ body:
|
|||||||
attributes:
|
attributes:
|
||||||
label: What OS/distribution are you using?
|
label: What OS/distribution are you using?
|
||||||
description: Name of the operating system and its version.
|
description: Name of the operating system and its version.
|
||||||
placeholder: Debian 12, Ubuntu 24.04, MacOS 14, ...
|
placeholder: Debian 12, Ubuntu 24.04, macOS 14, ...
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
@@ -1 +1,5 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2020-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
blank_issues_enabled: false
|
blank_issues_enabled: false
|
||||||
|
|||||||
+4
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
name: Feature request
|
name: Feature request
|
||||||
description: Request a new feature / enhancement
|
description: Request a new feature / enhancement
|
||||||
labels: ["feature"]
|
labels: ["feature"]
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2023-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
name: Question
|
name: Question
|
||||||
description: Ask a question
|
description: Ask a question
|
||||||
labels: ["question"]
|
labels: ["question"]
|
||||||
@@ -10,6 +14,8 @@ body:
|
|||||||
- please read the [FAQ](https://weechat.org/doc/weechat/faq) and [documentation](https://weechat.org/doc/weechat/)
|
- please read the [FAQ](https://weechat.org/doc/weechat/faq) and [documentation](https://weechat.org/doc/weechat/)
|
||||||
- please ask on #weechat channel (on server irc.libera.chat).
|
- please ask on #weechat channel (on server irc.libera.chat).
|
||||||
|
|
||||||
|
**IMPORTANT**: please do not report any security issue here, see [CONTRIBUTING.md](https://github.com/weechat/weechat/blob/main/CONTRIBUTING.md#security-reports).
|
||||||
|
|
||||||
- type: textarea
|
- type: textarea
|
||||||
id: question
|
id: question
|
||||||
attributes:
|
attributes:
|
||||||
+319
-66
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2020-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -7,13 +11,21 @@ on:
|
|||||||
- cron: '22 9 * * 2'
|
- cron: '22 9 * * 2'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
WEECHAT_DEPENDENCIES: >-
|
CHECK_DEPS_UBUNTU: >-
|
||||||
|
curl
|
||||||
|
gettext
|
||||||
|
hunspell
|
||||||
|
hunspell-en-us
|
||||||
|
hunspell-fr
|
||||||
|
pipx
|
||||||
|
shellcheck
|
||||||
|
WEECHAT_DEPS_UBUNTU: >-
|
||||||
asciidoctor
|
asciidoctor
|
||||||
|
build-essential
|
||||||
cmake
|
cmake
|
||||||
curl
|
curl
|
||||||
devscripts
|
devscripts
|
||||||
equivs
|
equivs
|
||||||
flake8
|
|
||||||
gem2deb
|
gem2deb
|
||||||
guile-3.0-dev
|
guile-3.0-dev
|
||||||
lcov
|
lcov
|
||||||
@@ -24,7 +36,7 @@ env:
|
|||||||
libcurl4-gnutls-dev
|
libcurl4-gnutls-dev
|
||||||
libgcrypt20-dev
|
libgcrypt20-dev
|
||||||
libgnutls28-dev
|
libgnutls28-dev
|
||||||
liblua5.3-dev
|
liblua5.4-dev
|
||||||
libncurses-dev
|
libncurses-dev
|
||||||
libperl-dev
|
libperl-dev
|
||||||
libphp-embed
|
libphp-embed
|
||||||
@@ -33,51 +45,100 @@ env:
|
|||||||
libzstd-dev
|
libzstd-dev
|
||||||
ninja-build
|
ninja-build
|
||||||
php-dev
|
php-dev
|
||||||
|
pipx
|
||||||
pkgconf
|
pkgconf
|
||||||
pylint
|
|
||||||
python3-bandit
|
|
||||||
python3-dev
|
python3-dev
|
||||||
python3-pip
|
|
||||||
ruby-pygments.rb
|
ruby-pygments.rb
|
||||||
shellcheck
|
|
||||||
tcl8.6-dev
|
tcl8.6-dev
|
||||||
zlib1g-dev
|
zlib1g-dev
|
||||||
|
WEECHAT_DEPS_REDHAT: >-
|
||||||
|
asciidoctor
|
||||||
|
aspell-devel
|
||||||
|
cjson-devel
|
||||||
|
clang
|
||||||
|
cmake
|
||||||
|
cpputest-devel
|
||||||
|
gcc
|
||||||
|
gettext
|
||||||
|
glibc-langpack-en
|
||||||
|
gnutls-devel
|
||||||
|
guile30-devel
|
||||||
|
libcurl-devel
|
||||||
|
libgcrypt-devel
|
||||||
|
libzstd-devel
|
||||||
|
lua-devel
|
||||||
|
ncurses-devel
|
||||||
|
perl-devel
|
||||||
|
php-devel
|
||||||
|
php-embedded
|
||||||
|
python-devel
|
||||||
|
ruby-devel
|
||||||
|
sudo
|
||||||
|
tcl-devel
|
||||||
|
zlib-devel
|
||||||
|
WEECHAT_DEPS_FREEBSD: >-
|
||||||
|
aspell
|
||||||
|
cmake
|
||||||
|
cpputest
|
||||||
|
curl
|
||||||
|
gcc
|
||||||
|
gettext
|
||||||
|
git
|
||||||
|
gnutls
|
||||||
|
guile3
|
||||||
|
libargon2
|
||||||
|
libcjson
|
||||||
|
libgcrypt
|
||||||
|
libiconv
|
||||||
|
llvm
|
||||||
|
lua54
|
||||||
|
ncurses
|
||||||
|
perl5
|
||||||
|
php83
|
||||||
|
pkgconf
|
||||||
|
python3
|
||||||
|
ruby
|
||||||
|
rubygem-asciidoctor
|
||||||
|
sudo
|
||||||
|
tcl86
|
||||||
|
zstd
|
||||||
|
WEECHAT_DEPS_MACOS: >-
|
||||||
|
asciidoctor
|
||||||
|
aspell
|
||||||
|
cjson
|
||||||
|
guile
|
||||||
|
lua
|
||||||
|
pkg-config
|
||||||
|
ruby
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
tests_linux:
|
checks:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- ubuntu-22.04
|
- ubuntu-24.04
|
||||||
config:
|
|
||||||
- { name: "gcc", cc: "gcc", cxx: "g++", buildargs: "" }
|
|
||||||
- { name: "gcc_ninja", cc: "gcc", cxx: "g++", buildargs: "-G Ninja" }
|
|
||||||
- { name: "gcc_no_nls", cc: "gcc", cxx: "g++", buildargs: "-DENABLE_NLS=OFF -DENABLE_DOC=OFF" }
|
|
||||||
- { name: "gcc_no_zstd", cc: "gcc", cxx: "g++", buildargs: "-DENABLE_ZSTD=OFF -DENABLE_DOC=OFF" }
|
|
||||||
- { name: "gcc_no_cjson", cc: "gcc", cxx: "g++", buildargs: "-DENABLE_CJSON=OFF -DENABLE_DOC=OFF" }
|
|
||||||
- { name: "gcc_coverage", cc: "gcc", cxx: "g++", buildargs: "-DENABLE_CODE_COVERAGE=ON" }
|
|
||||||
- { name: "clang", cc: "clang", cxx: "clang++", buildargs: "" }
|
|
||||||
|
|
||||||
name: "Tests: ${{ matrix.config.name }} on ${{ matrix.os }}"
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPENDENCIES }}
|
sudo apt-get --yes --no-install-recommends install ${{ env.CHECK_DEPS_UBUNTU }}
|
||||||
# uninstall php imagick as is causes a crash when loading php plugin (see #2009)
|
pipx install msgcheck ruff
|
||||||
sudo apt-get --yes purge php8.1-imagick
|
cargo install --version 0.0.11 poexam
|
||||||
sudo -H pip3 install --ignore-installed msgcheck
|
|
||||||
|
|
||||||
- name: Check gettext files
|
- name: Check gettext files (msgcheck)
|
||||||
run: msgcheck po/*.po
|
run: msgcheck po/*.po
|
||||||
|
|
||||||
|
- name: Check gettext files (poexam)
|
||||||
|
run: poexam check --file-stats --rule-stats
|
||||||
|
|
||||||
- name: Check shell and Python scripts
|
- name: Check shell and Python scripts
|
||||||
run: ./tools/check_scripts.sh
|
run: ./tools/check_scripts.sh
|
||||||
|
|
||||||
@@ -87,12 +148,70 @@ jobs:
|
|||||||
- name: Check Curl symbols
|
- name: Check Curl symbols
|
||||||
run: curl --silent --show-error --fail --retry 10 https://raw.githubusercontent.com/curl/curl/master/docs/libcurl/symbols-in-versions | ./tools/check_curl_symbols.py
|
run: curl --silent --show-error --fail --retry 10 https://raw.githubusercontent.com/curl/curl/master/docs/libcurl/symbols-in-versions | ./tools/check_curl_symbols.py
|
||||||
|
|
||||||
|
install:
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-24.04
|
||||||
|
config:
|
||||||
|
- name: "gcc"
|
||||||
|
cc: "gcc"
|
||||||
|
cxx: "g++"
|
||||||
|
buildargs: "-DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON"
|
||||||
|
- name: "gcc_ninja"
|
||||||
|
cc: "gcc"
|
||||||
|
cxx: "g++"
|
||||||
|
buildargs: "-G Ninja -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON"
|
||||||
|
- name: "gcc_release_hardened"
|
||||||
|
cc: "gcc"
|
||||||
|
cxx: "g++"
|
||||||
|
buildargs: "-DENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=\"-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3\" -DCMAKE_CXX_FLAGS=\"-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3\""
|
||||||
|
- name: "gcc_no_nls"
|
||||||
|
cc: "gcc"
|
||||||
|
cxx: "g++"
|
||||||
|
buildargs: "-DENABLE_MAN=ON -DENABLE_TESTS=ON -DENABLE_NLS=OFF"
|
||||||
|
- name: "gcc_no_zstd"
|
||||||
|
cc: "gcc"
|
||||||
|
cxx: "g++"
|
||||||
|
buildargs: "-DENABLE_TESTS=ON -DENABLE_ZSTD=OFF"
|
||||||
|
- name: "gcc_no_cjson"
|
||||||
|
cc: "gcc"
|
||||||
|
cxx: "g++"
|
||||||
|
buildargs: "-DENABLE_TESTS=ON -DENABLE_CJSON=OFF"
|
||||||
|
- name: "gcc_no_perl_multiplicity"
|
||||||
|
cc: "gcc"
|
||||||
|
cxx: "g++"
|
||||||
|
buildargs: "-DENABLE_TESTS=ON -DCMAKE_C_FLAGS=\"-DNO_PERL_MULTIPLICITY=1\""
|
||||||
|
- name: "gcc_coverage"
|
||||||
|
cc: "gcc"
|
||||||
|
cxx: "g++"
|
||||||
|
buildargs: "-DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON -DENABLE_CODE_COVERAGE=ON"
|
||||||
|
- name: "clang"
|
||||||
|
cc: "clang"
|
||||||
|
cxx: "clang++"
|
||||||
|
buildargs: "-DENABLE_CODE_COVERAGE=ON -DENABLE_FUZZ=ON"
|
||||||
|
|
||||||
|
name: "install (${{ matrix.os }}, ${{ matrix.config.name }})"
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update -qq
|
||||||
|
sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPS_UBUNTU }}
|
||||||
|
# uninstall php imagick as is causes a crash when loading php plugin (see #2009)
|
||||||
|
sudo apt-get --yes purge php8.3-imagick
|
||||||
|
pipx install schemathesis
|
||||||
|
|
||||||
- name: Build and run tests
|
- name: Build and run tests
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.config.cc }}
|
CC: ${{ matrix.config.cc }}
|
||||||
CXX: ${{ matrix.config.cxx }}
|
CXX: ${{ matrix.config.cxx }}
|
||||||
BUILDARGS: ${{ matrix.config.buildargs }}
|
run: ./tools/build_test.sh ${{ matrix.config.buildargs }}
|
||||||
run: ./tools/build_test.sh
|
|
||||||
|
|
||||||
- name: Run WeeChat
|
- name: Run WeeChat
|
||||||
env:
|
env:
|
||||||
@@ -111,15 +230,16 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RELAY_PASSWORD: test
|
RELAY_PASSWORD: test
|
||||||
run: |
|
run: |
|
||||||
sudo -H pip3 install --ignore-installed schemathesis
|
|
||||||
weechat-headless \
|
weechat-headless \
|
||||||
--dir /tmp/weechat-test-api \
|
--dir /tmp/weechat-test-api \
|
||||||
--run-command '/set relay.network.password "${{ env.RELAY_PASSWORD }}"' \
|
--run-command '/set relay.network.password "${{ env.RELAY_PASSWORD }}"' \
|
||||||
|
--run-command '/set relay.network.password_hash_iterations 100' \
|
||||||
|
--run-command '/set relay.network.max_clients 0' \
|
||||||
--run-command '/relay add api 9000' \
|
--run-command '/relay add api 9000' \
|
||||||
--daemon \
|
--daemon \
|
||||||
;
|
;
|
||||||
sleep 5
|
sleep 5
|
||||||
./tools/test_relay_api.sh http://localhost:9000
|
schemathesis run --url http://localhost:9000/api ./src/plugins/relay/api/weechat-relay-api.yaml
|
||||||
echo '*/quit' >/tmp/weechat-test-api/weechat_fifo_*
|
echo '*/quit' >/tmp/weechat-test-api/weechat_fifo_*
|
||||||
|
|
||||||
- name: Code coverage
|
- name: Code coverage
|
||||||
@@ -133,54 +253,185 @@ jobs:
|
|||||||
lcov --list coverage.info
|
lcov --list coverage.info
|
||||||
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo 'Codecov error'
|
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo 'Codecov error'
|
||||||
|
|
||||||
tests_macos:
|
install_fedora:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- macos-12
|
- ubuntu-24.04
|
||||||
config:
|
config:
|
||||||
- { name: "gcc", cc: "gcc", cxx: "g++" }
|
- name: "gcc"
|
||||||
- { name: "clang", cc: "clang", cxx: "clang++" }
|
cc: "gcc"
|
||||||
|
cxx: "g++"
|
||||||
|
buildargs: "-DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON"
|
||||||
|
- name: "clang"
|
||||||
|
cc: "clang"
|
||||||
|
cxx: "clang++"
|
||||||
|
buildargs: "-DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON -DENABLE_CODE_COVERAGE=ON -DENABLE_FUZZ=ON"
|
||||||
|
|
||||||
name: "Tests: ${{ matrix.config.name }} on ${{ matrix.os }}"
|
name: "install (fedora:43, ${{ matrix.config.name }})"
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
container:
|
||||||
|
image: fedora:43
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: dnf install -y ${{ env.WEECHAT_DEPS_REDHAT }}
|
||||||
|
|
||||||
|
- name: Build and run tests
|
||||||
|
env:
|
||||||
|
CC: ${{ matrix.config.cc }}
|
||||||
|
CXX: ${{ matrix.config.cxx }}
|
||||||
|
run: ./tools/build_test.sh ${{ matrix.config.buildargs }}
|
||||||
|
|
||||||
|
- name: Run WeeChat
|
||||||
|
env:
|
||||||
|
TERM: xterm-256color
|
||||||
|
run: |
|
||||||
|
weechat --help
|
||||||
|
weechat-curses --help
|
||||||
|
weechat --version
|
||||||
|
weechat --build-info
|
||||||
|
weechat --colors
|
||||||
|
weechat --license
|
||||||
|
weechat --run-command "/debug dirs;/debug libs" --run-command "/quit"
|
||||||
|
|
||||||
|
install_rockylinux:
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-24.04
|
||||||
|
config:
|
||||||
|
- name: "gcc"
|
||||||
|
cc: "gcc"
|
||||||
|
cxx: "g++"
|
||||||
|
buildargs: "-DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON"
|
||||||
|
- name: "clang"
|
||||||
|
cc: "clang"
|
||||||
|
cxx: "clang++"
|
||||||
|
buildargs: "-DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON -DENABLE_CODE_COVERAGE=ON -DENABLE_FUZZ=ON"
|
||||||
|
|
||||||
|
name: "install (rockylinux:9, ${{ matrix.config.name }})"
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
container:
|
||||||
|
image: rockylinux:9
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
dnf install -y epel-release dnf-plugins-core
|
||||||
|
dnf config-manager --set-enabled crb
|
||||||
|
# pin a working ruby stream (ruby:4.0 has broken module metadata on Rocky 9.8)
|
||||||
|
dnf module enable -y ruby:3.3
|
||||||
|
dnf install -y ${{ env.WEECHAT_DEPS_REDHAT }}
|
||||||
|
|
||||||
|
- name: Build and run tests
|
||||||
|
env:
|
||||||
|
CC: ${{ matrix.config.cc }}
|
||||||
|
CXX: ${{ matrix.config.cxx }}
|
||||||
|
run: ./tools/build_test.sh ${{ matrix.config.buildargs }}
|
||||||
|
|
||||||
|
- name: Run WeeChat
|
||||||
|
env:
|
||||||
|
TERM: xterm-256color
|
||||||
|
run: |
|
||||||
|
weechat --help
|
||||||
|
weechat-curses --help
|
||||||
|
weechat --version
|
||||||
|
weechat --build-info
|
||||||
|
weechat --colors
|
||||||
|
weechat --license
|
||||||
|
weechat --run-command "/debug dirs;/debug libs" --run-command "/quit"
|
||||||
|
|
||||||
|
install_freebsd:
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-24.04
|
||||||
|
config:
|
||||||
|
# - name: "gcc"
|
||||||
|
# cc: "gcc"
|
||||||
|
# cxx: "g++"
|
||||||
|
# buildargs: "-DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON"
|
||||||
|
- name: "clang"
|
||||||
|
cc: "clang"
|
||||||
|
cxx: "clang++"
|
||||||
|
buildargs: "-DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_TESTS=ON -DENABLE_CODE_COVERAGE=ON -DENABLE_FUZZ=ON"
|
||||||
|
|
||||||
|
name: "install (freebsd, ${{ matrix.config.name }})"
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Install dependencies, build and run tests, run WeeChat
|
||||||
|
uses: vmactions/freebsd-vm@v1
|
||||||
|
env:
|
||||||
|
CC: ${{ matrix.config.cc }}
|
||||||
|
CXX: ${{ matrix.config.cxx }}
|
||||||
|
TERM: xterm-256color
|
||||||
|
with:
|
||||||
|
envs: "CC CXX TERM"
|
||||||
|
usesh: true
|
||||||
|
prepare: pkg install -y ${{ env.WEECHAT_DEPS_FREEBSD }}
|
||||||
|
run: |
|
||||||
|
./tools/build_test.sh ${{ matrix.config.buildargs }}
|
||||||
|
weechat --help
|
||||||
|
weechat-curses --help
|
||||||
|
weechat --version
|
||||||
|
weechat --build-info
|
||||||
|
weechat --colors
|
||||||
|
weechat --license
|
||||||
|
weechat --run-command "/debug dirs;/debug libs" --run-command "/quit"
|
||||||
|
|
||||||
|
install_macos:
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os:
|
||||||
|
- macos-14
|
||||||
|
config:
|
||||||
|
- name: "gcc"
|
||||||
|
cc: "gcc"
|
||||||
|
cxx: "g++"
|
||||||
|
buildargs: "-DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_DOC_INCOMPLETE=ON -DENABLE_PHP=OFF -DENABLE_TESTS=OFF"
|
||||||
|
- name: "clang"
|
||||||
|
cc: "clang"
|
||||||
|
cxx: "clang++"
|
||||||
|
buildargs: "-DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_DOC_INCOMPLETE=ON -DENABLE_PHP=OFF -DENABLE_TESTS=OFF"
|
||||||
|
|
||||||
|
name: "install (${{ matrix.os }}, ${{ matrix.config.name }})"
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Setup Homebrew
|
- name: Setup Homebrew
|
||||||
id: setup-homebrew
|
id: setup-homebrew
|
||||||
uses: Homebrew/actions/setup-homebrew@master
|
uses: Homebrew/actions/setup-homebrew@main
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
brew update
|
brew update
|
||||||
# temporary fix, see: https://github.com/actions/setup-python/issues/577
|
brew install ${{ env.WEECHAT_DEPS_MACOS }}
|
||||||
rm -f \
|
|
||||||
/usr/local/bin/2to3 \
|
|
||||||
/usr/local/bin/idle3 \
|
|
||||||
/usr/local/bin/pydoc3 \
|
|
||||||
/usr/local/bin/python3 \
|
|
||||||
/usr/local/bin/python3-config \
|
|
||||||
/usr/local/bin/2to3-3.11 \
|
|
||||||
/usr/local/bin/idle3.11 \
|
|
||||||
/usr/local/bin/pydoc3.11 \
|
|
||||||
/usr/local/bin/python3.11 \
|
|
||||||
/usr/local/bin/python3.11-config \
|
|
||||||
;
|
|
||||||
brew install asciidoctor cjson guile lua pkg-config ruby
|
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
env:
|
env:
|
||||||
CC: ${{ matrix.config.cc }}
|
CC: ${{ matrix.config.cc }}
|
||||||
CXX: ${{ matrix.config.cxx }}
|
CXX: ${{ matrix.config.cxx }}
|
||||||
run: |
|
RUN_TESTS: "0"
|
||||||
mkdir build-tmp && cd build-tmp
|
JOBS: "2"
|
||||||
cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_DOC_INCOMPLETE=ON -DENABLE_PHP=OFF
|
run: ./tools/build_test.sh ${{ matrix.config.buildargs }}
|
||||||
make VERBOSE=1 -j2
|
|
||||||
sudo make install
|
|
||||||
|
|
||||||
- name: Run WeeChat
|
- name: Run WeeChat
|
||||||
env:
|
env:
|
||||||
@@ -199,25 +450,24 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os:
|
os:
|
||||||
- ubuntu-22.04
|
- ubuntu-24.04
|
||||||
|
|
||||||
name: "Build Debian on ${{ matrix.os }}"
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPENDENCIES }}
|
sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPS_UBUNTU }}
|
||||||
|
|
||||||
- name: Test Debian patches
|
- name: Test Debian patches
|
||||||
run: ./tools/build_debian.sh test-patches
|
run: ./tools/build_debian.sh test-patches
|
||||||
|
|
||||||
- name: Build Debian packages
|
- name: Build Debian packages
|
||||||
run: ./tools/build_debian.sh devel ubuntu/jammy
|
run: ./tools/build_debian.sh devel ubuntu/noble
|
||||||
|
|
||||||
- name: Install Debian packages
|
- name: Install Debian packages
|
||||||
run: sudo dpkg -i ../weechat-devel*.deb
|
run: sudo dpkg -i ../weechat-devel*.deb
|
||||||
@@ -232,10 +482,14 @@ jobs:
|
|||||||
weechat --build-info
|
weechat --build-info
|
||||||
weechat --run-command "/debug dirs;/debug libs" --run-command "/quit"
|
weechat --run-command "/debug dirs;/debug libs" --run-command "/quit"
|
||||||
|
|
||||||
codeql-analysis:
|
codeql_analysis:
|
||||||
|
|
||||||
name: CodeQL
|
strategy:
|
||||||
runs-on: ubuntu-latest
|
matrix:
|
||||||
|
os:
|
||||||
|
- ubuntu-24.04
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
actions: read
|
actions: read
|
||||||
@@ -245,15 +499,14 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -qq
|
sudo apt-get update -qq
|
||||||
sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPENDENCIES }}
|
sudo apt-get --yes --no-install-recommends install ${{ env.WEECHAT_DEPS_UBUNTU }}
|
||||||
# uninstall php imagick as is causes a crash when loading php plugin (see #2009)
|
# uninstall php imagick as is causes a crash when loading php plugin (see #2009)
|
||||||
sudo apt-get --yes purge php8.1-imagick
|
sudo apt-get --yes purge php8.3-imagick
|
||||||
sudo -H pip3 install --ignore-installed msgcheck
|
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3
|
uses: github/codeql-action/init@v3
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2025-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
name: REUSE Compliance Check
|
||||||
|
|
||||||
|
on:
|
||||||
|
- push
|
||||||
|
- pull_request
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
|
||||||
|
test:
|
||||||
|
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: REUSE Compliance Check
|
||||||
|
uses: fsfe/reuse-action@v4
|
||||||
+3
-1
@@ -1,4 +1,6 @@
|
|||||||
# ignored files for Git
|
# SPDX-FileCopyrightText: 2007-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
/build
|
/build
|
||||||
/builddir
|
/builddir
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2014-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
#
|
||||||
# Map author and committer names and email addresses to canonical real names
|
# Map author and committer names and email addresses to canonical real names
|
||||||
# and email addresses.
|
# and email addresses.
|
||||||
#
|
#
|
||||||
|
|||||||
+281
@@ -0,0 +1,281 @@
|
|||||||
|
Atheme
|
||||||
|
Autojoin
|
||||||
|
Charset
|
||||||
|
Diffie-Hellman
|
||||||
|
Esc
|
||||||
|
FlashCode
|
||||||
|
GnuTLS
|
||||||
|
Hashtable
|
||||||
|
Helleu
|
||||||
|
IPs
|
||||||
|
Sébastien
|
||||||
|
WeeChat
|
||||||
|
Xfer
|
||||||
|
abc
|
||||||
|
ack
|
||||||
|
acks
|
||||||
|
addcompletion
|
||||||
|
addinput
|
||||||
|
addoff
|
||||||
|
addraw
|
||||||
|
addreplace
|
||||||
|
addreplacecompletion
|
||||||
|
addword
|
||||||
|
algo
|
||||||
|
allchan
|
||||||
|
allpv
|
||||||
|
alnum
|
||||||
|
andrew
|
||||||
|
ansi
|
||||||
|
api
|
||||||
|
args
|
||||||
|
argsN
|
||||||
|
aspell
|
||||||
|
autoconnect
|
||||||
|
autojoin
|
||||||
|
autoload
|
||||||
|
autoloaded
|
||||||
|
autoreconnect
|
||||||
|
autorejoin
|
||||||
|
bg
|
||||||
|
bindctxt
|
||||||
|
bitlbee
|
||||||
|
bkl
|
||||||
|
blocksize
|
||||||
|
bool
|
||||||
|
buflist
|
||||||
|
cJSON
|
||||||
|
calc
|
||||||
|
ccc
|
||||||
|
charset
|
||||||
|
charsets
|
||||||
|
chghost
|
||||||
|
chmod
|
||||||
|
cleartext
|
||||||
|
clientinfo
|
||||||
|
cmd
|
||||||
|
codepoint
|
||||||
|
concat
|
||||||
|
cond
|
||||||
|
config
|
||||||
|
crypted
|
||||||
|
ctcp
|
||||||
|
ctrl
|
||||||
|
ctrl-
|
||||||
|
ctrl-c
|
||||||
|
ctrl-h
|
||||||
|
ctrl-n
|
||||||
|
ctrl-x
|
||||||
|
ctrl-y
|
||||||
|
cutscr
|
||||||
|
cxx
|
||||||
|
darkgray
|
||||||
|
deinit
|
||||||
|
deldict
|
||||||
|
deloutq
|
||||||
|
delvar
|
||||||
|
dhkey
|
||||||
|
dirs
|
||||||
|
dlclose
|
||||||
|
eg
|
||||||
|
enum
|
||||||
|
enums
|
||||||
|
env
|
||||||
|
esc
|
||||||
|
eval
|
||||||
|
fd
|
||||||
|
ffff
|
||||||
|
fg
|
||||||
|
fifo
|
||||||
|
flashcode
|
||||||
|
flashtux
|
||||||
|
freebsd
|
||||||
|
fset
|
||||||
|
fsync
|
||||||
|
gcrypt
|
||||||
|
getrlimit
|
||||||
|
getrusage
|
||||||
|
gnutls
|
||||||
|
grayscale
|
||||||
|
gui
|
||||||
|
gzip
|
||||||
|
halfop
|
||||||
|
halfops
|
||||||
|
hashtable
|
||||||
|
hdata
|
||||||
|
hh
|
||||||
|
horiz
|
||||||
|
hostname
|
||||||
|
hostnames
|
||||||
|
hotlist
|
||||||
|
hsignal
|
||||||
|
http
|
||||||
|
https
|
||||||
|
hup
|
||||||
|
ident
|
||||||
|
ie
|
||||||
|
il
|
||||||
|
inclose
|
||||||
|
infolist
|
||||||
|
infolists
|
||||||
|
infos
|
||||||
|
installremove
|
||||||
|
irc
|
||||||
|
ison
|
||||||
|
javascript
|
||||||
|
json
|
||||||
|
kf
|
||||||
|
kickban
|
||||||
|
killall
|
||||||
|
lengthscr
|
||||||
|
libera
|
||||||
|
libgcrypt
|
||||||
|
libs
|
||||||
|
lightblue
|
||||||
|
lightcyan
|
||||||
|
lightgreen
|
||||||
|
lightmagenta
|
||||||
|
lightred
|
||||||
|
linux
|
||||||
|
listdefault
|
||||||
|
listdict
|
||||||
|
listdiff
|
||||||
|
listfull
|
||||||
|
listitems
|
||||||
|
listrelay
|
||||||
|
listvar
|
||||||
|
lua
|
||||||
|
mallinfo
|
||||||
|
malloc
|
||||||
|
mirc
|
||||||
|
modelist
|
||||||
|
msg
|
||||||
|
msgN
|
||||||
|
msgbuffer
|
||||||
|
multiline
|
||||||
|
ncurses
|
||||||
|
newbuffer
|
||||||
|
nf
|
||||||
|
nickbot
|
||||||
|
nicklist
|
||||||
|
nickserv
|
||||||
|
nl
|
||||||
|
noautoload
|
||||||
|
nobg
|
||||||
|
nocl
|
||||||
|
noflush
|
||||||
|
nohelp
|
||||||
|
nojoin
|
||||||
|
noln
|
||||||
|
nonblock
|
||||||
|
nooption
|
||||||
|
norc
|
||||||
|
nostdin
|
||||||
|
nosw
|
||||||
|
noswitch
|
||||||
|
notls
|
||||||
|
num
|
||||||
|
oc
|
||||||
|
oerr
|
||||||
|
oftc
|
||||||
|
ok
|
||||||
|
ol
|
||||||
|
osinfo
|
||||||
|
outqueue
|
||||||
|
ovh
|
||||||
|
paramN
|
||||||
|
params
|
||||||
|
perl
|
||||||
|
permessage-deflate
|
||||||
|
pgdn
|
||||||
|
pgup
|
||||||
|
pid
|
||||||
|
prev
|
||||||
|
privmsg
|
||||||
|
ptr
|
||||||
|
pv
|
||||||
|
py
|
||||||
|
quickstart
|
||||||
|
rc
|
||||||
|
realname
|
||||||
|
recv
|
||||||
|
reinitializing
|
||||||
|
reop
|
||||||
|
resetall
|
||||||
|
resetctxt
|
||||||
|
revindex
|
||||||
|
revscr
|
||||||
|
rgb
|
||||||
|
rlimit
|
||||||
|
rusage
|
||||||
|
rw-rw-r--
|
||||||
|
sasl
|
||||||
|
setauto
|
||||||
|
setdict
|
||||||
|
setname
|
||||||
|
setnew
|
||||||
|
setrlimit
|
||||||
|
setvar
|
||||||
|
signon
|
||||||
|
skipempty
|
||||||
|
sockaddr
|
||||||
|
splith
|
||||||
|
splitv
|
||||||
|
stderr
|
||||||
|
stdin
|
||||||
|
stdout
|
||||||
|
strcasecmp
|
||||||
|
strftime
|
||||||
|
strftimeval
|
||||||
|
strlen
|
||||||
|
sublist
|
||||||
|
subplugin
|
||||||
|
sw
|
||||||
|
sys
|
||||||
|
tThe
|
||||||
|
tcl
|
||||||
|
tg
|
||||||
|
tls
|
||||||
|
tlscertkey
|
||||||
|
toggleautoload
|
||||||
|
togglecmd
|
||||||
|
toto
|
||||||
|
totp
|
||||||
|
truncature
|
||||||
|
un
|
||||||
|
unalias
|
||||||
|
unban
|
||||||
|
unbindctxt
|
||||||
|
undef
|
||||||
|
unescaped
|
||||||
|
unhide
|
||||||
|
unhold
|
||||||
|
unicode
|
||||||
|
unix
|
||||||
|
unmark
|
||||||
|
unmerge
|
||||||
|
unzoom
|
||||||
|
uptime
|
||||||
|
url
|
||||||
|
urlserver
|
||||||
|
usec
|
||||||
|
userhost-in-names
|
||||||
|
usr
|
||||||
|
util
|
||||||
|
valgrind
|
||||||
|
versiongit
|
||||||
|
waitpid
|
||||||
|
wcswidth
|
||||||
|
wctype
|
||||||
|
wcwidth
|
||||||
|
websocket
|
||||||
|
websockets
|
||||||
|
weechat
|
||||||
|
whois
|
||||||
|
www
|
||||||
|
xdigit
|
||||||
|
xfer
|
||||||
|
xyz
|
||||||
|
yy
|
||||||
|
zlib
|
||||||
|
zstd
|
||||||
+612
@@ -0,0 +1,612 @@
|
|||||||
|
Atheme
|
||||||
|
Autojoin
|
||||||
|
Curl
|
||||||
|
Curses
|
||||||
|
Debug
|
||||||
|
Dec
|
||||||
|
Diffie-Hellman
|
||||||
|
Filter
|
||||||
|
FlashCode
|
||||||
|
GnuTLS
|
||||||
|
Guile
|
||||||
|
Helleu
|
||||||
|
IPs
|
||||||
|
Lag
|
||||||
|
Ping
|
||||||
|
Protocol
|
||||||
|
Relay
|
||||||
|
Remote
|
||||||
|
Reop
|
||||||
|
Tab
|
||||||
|
Trigger
|
||||||
|
Triggers
|
||||||
|
Typing
|
||||||
|
URLs
|
||||||
|
Wallops
|
||||||
|
WeeChat
|
||||||
|
Xfer
|
||||||
|
account
|
||||||
|
account-
|
||||||
|
account-notify
|
||||||
|
account-tag
|
||||||
|
ack
|
||||||
|
acks
|
||||||
|
add
|
||||||
|
addcompletion
|
||||||
|
addinput
|
||||||
|
addoff
|
||||||
|
addraw
|
||||||
|
addreplace
|
||||||
|
addreplacecompletion
|
||||||
|
addresse
|
||||||
|
addword
|
||||||
|
align
|
||||||
|
all
|
||||||
|
allchan
|
||||||
|
allow
|
||||||
|
allowed
|
||||||
|
allpv
|
||||||
|
alnum
|
||||||
|
alt
|
||||||
|
alt-c
|
||||||
|
alt-k
|
||||||
|
alt-s
|
||||||
|
alt-v
|
||||||
|
alt-z
|
||||||
|
andrew
|
||||||
|
ansi
|
||||||
|
apply
|
||||||
|
area
|
||||||
|
args
|
||||||
|
argsN
|
||||||
|
aspell
|
||||||
|
attributes
|
||||||
|
auth
|
||||||
|
autoconnect
|
||||||
|
autojoin
|
||||||
|
autoload
|
||||||
|
autorejoin
|
||||||
|
away
|
||||||
|
away-notify
|
||||||
|
backspace
|
||||||
|
bare
|
||||||
|
bash
|
||||||
|
beep
|
||||||
|
before
|
||||||
|
beginning
|
||||||
|
beyond
|
||||||
|
bg
|
||||||
|
bin
|
||||||
|
bind
|
||||||
|
bindctxt
|
||||||
|
bitlbee
|
||||||
|
bkl
|
||||||
|
blue
|
||||||
|
bold
|
||||||
|
bool
|
||||||
|
boolean
|
||||||
|
both
|
||||||
|
bottom
|
||||||
|
bracketed
|
||||||
|
brown
|
||||||
|
buflist
|
||||||
|
cJSON
|
||||||
|
calc
|
||||||
|
callbacks
|
||||||
|
cap-notify
|
||||||
|
capabilities
|
||||||
|
capability
|
||||||
|
ccc
|
||||||
|
cert
|
||||||
|
certs
|
||||||
|
changed
|
||||||
|
channel
|
||||||
|
charset
|
||||||
|
charsets
|
||||||
|
check
|
||||||
|
chghost
|
||||||
|
chmod
|
||||||
|
cipher
|
||||||
|
clear
|
||||||
|
clientinfo
|
||||||
|
clipboard
|
||||||
|
cmd
|
||||||
|
color
|
||||||
|
colors
|
||||||
|
command
|
||||||
|
commands
|
||||||
|
complete
|
||||||
|
completion
|
||||||
|
concat
|
||||||
|
cond
|
||||||
|
confirm
|
||||||
|
connect
|
||||||
|
connected
|
||||||
|
connecting
|
||||||
|
control
|
||||||
|
copy
|
||||||
|
core
|
||||||
|
count
|
||||||
|
crypt
|
||||||
|
ctcp
|
||||||
|
ctrl
|
||||||
|
ctrl-
|
||||||
|
ctrl-c
|
||||||
|
ctrl-h
|
||||||
|
ctrl-n
|
||||||
|
ctrl-x
|
||||||
|
ctrl-y
|
||||||
|
curl
|
||||||
|
current
|
||||||
|
cursor
|
||||||
|
cut
|
||||||
|
cutscr
|
||||||
|
cxx
|
||||||
|
d'ignore
|
||||||
|
d'infolist
|
||||||
|
daemon
|
||||||
|
darkgray
|
||||||
|
days
|
||||||
|
debug
|
||||||
|
decode
|
||||||
|
decrypt
|
||||||
|
default
|
||||||
|
define
|
||||||
|
deinit
|
||||||
|
del
|
||||||
|
deldict
|
||||||
|
delete
|
||||||
|
deloutq
|
||||||
|
delvar
|
||||||
|
desc
|
||||||
|
describe
|
||||||
|
dhkey
|
||||||
|
dict
|
||||||
|
diff
|
||||||
|
dim
|
||||||
|
dir
|
||||||
|
dirs
|
||||||
|
disable
|
||||||
|
discard
|
||||||
|
disconnect
|
||||||
|
disconnected
|
||||||
|
display
|
||||||
|
displayed
|
||||||
|
dlclose
|
||||||
|
doc-gen
|
||||||
|
down
|
||||||
|
download
|
||||||
|
draft
|
||||||
|
dummy
|
||||||
|
dump
|
||||||
|
eat
|
||||||
|
echo-message
|
||||||
|
edge
|
||||||
|
emphasized
|
||||||
|
empty
|
||||||
|
enable
|
||||||
|
enabled
|
||||||
|
end
|
||||||
|
enum
|
||||||
|
error
|
||||||
|
esc
|
||||||
|
eval
|
||||||
|
example
|
||||||
|
exclude
|
||||||
|
exec
|
||||||
|
extended-join
|
||||||
|
external
|
||||||
|
exts
|
||||||
|
fail
|
||||||
|
failed
|
||||||
|
fast
|
||||||
|
fd
|
||||||
|
ffff
|
||||||
|
fifo
|
||||||
|
filter
|
||||||
|
fingerprint
|
||||||
|
first
|
||||||
|
flashcode
|
||||||
|
flashtux
|
||||||
|
foo
|
||||||
|
formatted
|
||||||
|
free
|
||||||
|
freebsd
|
||||||
|
fset
|
||||||
|
fsync
|
||||||
|
gcrypt
|
||||||
|
get
|
||||||
|
getrlimit
|
||||||
|
getrusage
|
||||||
|
ghost
|
||||||
|
giga-octets
|
||||||
|
git
|
||||||
|
glitch
|
||||||
|
gnutls
|
||||||
|
grab
|
||||||
|
group
|
||||||
|
gzip
|
||||||
|
halfop
|
||||||
|
halfops
|
||||||
|
handshake
|
||||||
|
hash
|
||||||
|
hashtable
|
||||||
|
hdata
|
||||||
|
he
|
||||||
|
headless
|
||||||
|
help
|
||||||
|
here
|
||||||
|
hexa
|
||||||
|
hh
|
||||||
|
hidden
|
||||||
|
hide
|
||||||
|
highest
|
||||||
|
highlight
|
||||||
|
highlights
|
||||||
|
history
|
||||||
|
hold
|
||||||
|
hook
|
||||||
|
hooks
|
||||||
|
horiz
|
||||||
|
host
|
||||||
|
hotlist
|
||||||
|
hsignal
|
||||||
|
hup
|
||||||
|
ident
|
||||||
|
identify
|
||||||
|
ids
|
||||||
|
ignored
|
||||||
|
inclose
|
||||||
|
include
|
||||||
|
indent
|
||||||
|
infolist
|
||||||
|
infolistes
|
||||||
|
infolists
|
||||||
|
init
|
||||||
|
install
|
||||||
|
installremove
|
||||||
|
int
|
||||||
|
integer
|
||||||
|
interval
|
||||||
|
invite-notify
|
||||||
|
irc
|
||||||
|
ison
|
||||||
|
iterations
|
||||||
|
javascript
|
||||||
|
join
|
||||||
|
json
|
||||||
|
jump
|
||||||
|
keep
|
||||||
|
key
|
||||||
|
keys
|
||||||
|
kf
|
||||||
|
kickban
|
||||||
|
kill
|
||||||
|
killall
|
||||||
|
l'autojoin
|
||||||
|
l'id
|
||||||
|
lag
|
||||||
|
last
|
||||||
|
layout
|
||||||
|
leave
|
||||||
|
left
|
||||||
|
legacy
|
||||||
|
length
|
||||||
|
lengthscr
|
||||||
|
level
|
||||||
|
lib
|
||||||
|
libera
|
||||||
|
libgcrypt
|
||||||
|
libs
|
||||||
|
lightblue
|
||||||
|
lightcyan
|
||||||
|
lightgreen
|
||||||
|
lightmagenta
|
||||||
|
lightred
|
||||||
|
limit
|
||||||
|
line
|
||||||
|
lines
|
||||||
|
linux
|
||||||
|
list
|
||||||
|
listdefault
|
||||||
|
listdict
|
||||||
|
listdiff
|
||||||
|
listen
|
||||||
|
listfull
|
||||||
|
listitems
|
||||||
|
listrelay
|
||||||
|
listvar
|
||||||
|
load
|
||||||
|
logger
|
||||||
|
loggers
|
||||||
|
lower
|
||||||
|
lowest
|
||||||
|
ls
|
||||||
|
lua
|
||||||
|
mallinfo
|
||||||
|
malloc
|
||||||
|
marked
|
||||||
|
mask
|
||||||
|
memory
|
||||||
|
merge
|
||||||
|
merged
|
||||||
|
meta
|
||||||
|
meta-
|
||||||
|
method
|
||||||
|
mirc
|
||||||
|
missing
|
||||||
|
modified
|
||||||
|
mouse
|
||||||
|
move
|
||||||
|
msg
|
||||||
|
msgN
|
||||||
|
msgbuffer
|
||||||
|
multi-prefix
|
||||||
|
multiline
|
||||||
|
my
|
||||||
|
n-
|
||||||
|
name
|
||||||
|
names
|
||||||
|
ncurses
|
||||||
|
near
|
||||||
|
network
|
||||||
|
newbuffer
|
||||||
|
newline
|
||||||
|
next
|
||||||
|
nf
|
||||||
|
nick
|
||||||
|
nickbot
|
||||||
|
nicklist
|
||||||
|
nicks
|
||||||
|
nickserv
|
||||||
|
no-connect
|
||||||
|
noautoload
|
||||||
|
nobg
|
||||||
|
nocl
|
||||||
|
noflush
|
||||||
|
nohelp
|
||||||
|
nojoin
|
||||||
|
noln
|
||||||
|
nonblock
|
||||||
|
nooption
|
||||||
|
norc
|
||||||
|
nosh
|
||||||
|
nostdin
|
||||||
|
nosw
|
||||||
|
noswitch
|
||||||
|
notify
|
||||||
|
notls
|
||||||
|
null
|
||||||
|
num
|
||||||
|
number
|
||||||
|
numeric
|
||||||
|
object
|
||||||
|
oerr
|
||||||
|
of
|
||||||
|
offline
|
||||||
|
oftc
|
||||||
|
ok
|
||||||
|
ol
|
||||||
|
ops
|
||||||
|
osinfo
|
||||||
|
ovh
|
||||||
|
paramN
|
||||||
|
params
|
||||||
|
parted
|
||||||
|
pass
|
||||||
|
passphrase
|
||||||
|
password
|
||||||
|
password-store
|
||||||
|
paste
|
||||||
|
path
|
||||||
|
paused
|
||||||
|
pct
|
||||||
|
pending
|
||||||
|
perl
|
||||||
|
permessage-deflate
|
||||||
|
pgdn
|
||||||
|
pgup
|
||||||
|
pid
|
||||||
|
ping
|
||||||
|
pong
|
||||||
|
pos
|
||||||
|
prefix
|
||||||
|
prev
|
||||||
|
previous
|
||||||
|
print
|
||||||
|
priority
|
||||||
|
private
|
||||||
|
privmsg
|
||||||
|
property
|
||||||
|
ptr
|
||||||
|
py
|
||||||
|
quit
|
||||||
|
quoted
|
||||||
|
rafraichie
|
||||||
|
rafraichir
|
||||||
|
rafraichissement
|
||||||
|
random
|
||||||
|
raw
|
||||||
|
rc
|
||||||
|
realname
|
||||||
|
reconnect
|
||||||
|
recreate
|
||||||
|
recv
|
||||||
|
red
|
||||||
|
redirected
|
||||||
|
redo
|
||||||
|
refresh
|
||||||
|
regex
|
||||||
|
register
|
||||||
|
relay
|
||||||
|
reload
|
||||||
|
remote
|
||||||
|
remove
|
||||||
|
rename
|
||||||
|
renumber
|
||||||
|
reorder
|
||||||
|
rep
|
||||||
|
repeat
|
||||||
|
reply
|
||||||
|
req
|
||||||
|
reset
|
||||||
|
resetall
|
||||||
|
resetctxt
|
||||||
|
resize
|
||||||
|
restart
|
||||||
|
restore
|
||||||
|
return
|
||||||
|
rev
|
||||||
|
revindex
|
||||||
|
revscr
|
||||||
|
rgb
|
||||||
|
right
|
||||||
|
rlimit
|
||||||
|
root
|
||||||
|
ruby
|
||||||
|
run
|
||||||
|
run-command
|
||||||
|
runtime
|
||||||
|
rusage
|
||||||
|
rw-rw-r--
|
||||||
|
réinit
|
||||||
|
safe
|
||||||
|
sasl
|
||||||
|
save
|
||||||
|
scheme
|
||||||
|
screen
|
||||||
|
scroll
|
||||||
|
search
|
||||||
|
secure
|
||||||
|
selected
|
||||||
|
send
|
||||||
|
server
|
||||||
|
server-time
|
||||||
|
setauto
|
||||||
|
setdict
|
||||||
|
setname
|
||||||
|
setnew
|
||||||
|
setrlimit
|
||||||
|
setvar
|
||||||
|
sh
|
||||||
|
share
|
||||||
|
shift
|
||||||
|
shift-
|
||||||
|
shift-Tab
|
||||||
|
size
|
||||||
|
skipempty
|
||||||
|
sockaddr
|
||||||
|
sorted
|
||||||
|
space
|
||||||
|
speaking
|
||||||
|
spell
|
||||||
|
split
|
||||||
|
splith
|
||||||
|
splitv
|
||||||
|
ss
|
||||||
|
start
|
||||||
|
status
|
||||||
|
stderr
|
||||||
|
stdin
|
||||||
|
stdout
|
||||||
|
str
|
||||||
|
strcasecmp
|
||||||
|
strftime
|
||||||
|
strftimeval
|
||||||
|
strip
|
||||||
|
strlen
|
||||||
|
sucks
|
||||||
|
suffix
|
||||||
|
suggest
|
||||||
|
sum
|
||||||
|
sw
|
||||||
|
switch
|
||||||
|
sys
|
||||||
|
tLe
|
||||||
|
tab
|
||||||
|
target
|
||||||
|
tcl
|
||||||
|
term
|
||||||
|
text
|
||||||
|
tg
|
||||||
|
time
|
||||||
|
timeout
|
||||||
|
timer
|
||||||
|
tiny
|
||||||
|
title
|
||||||
|
tls
|
||||||
|
tlscertkey
|
||||||
|
to
|
||||||
|
toggle
|
||||||
|
toggleautoload
|
||||||
|
togglecmd
|
||||||
|
topic
|
||||||
|
totp
|
||||||
|
trigger
|
||||||
|
triggers
|
||||||
|
trim
|
||||||
|
typing
|
||||||
|
téra-octets
|
||||||
|
unalias
|
||||||
|
unavailable
|
||||||
|
unban
|
||||||
|
unbind
|
||||||
|
unbindctxt
|
||||||
|
undef
|
||||||
|
undo
|
||||||
|
unhide
|
||||||
|
unicode
|
||||||
|
unix
|
||||||
|
unload
|
||||||
|
unmerge
|
||||||
|
unread
|
||||||
|
unset
|
||||||
|
up
|
||||||
|
update
|
||||||
|
upper
|
||||||
|
url
|
||||||
|
urlserver
|
||||||
|
usec
|
||||||
|
userhost-in-names
|
||||||
|
username
|
||||||
|
users
|
||||||
|
usr
|
||||||
|
util
|
||||||
|
valer
|
||||||
|
valgrind
|
||||||
|
verbose
|
||||||
|
verify
|
||||||
|
versiongit
|
||||||
|
visited
|
||||||
|
voice
|
||||||
|
wait
|
||||||
|
waiting
|
||||||
|
waitpid
|
||||||
|
wallops
|
||||||
|
wcswidth
|
||||||
|
wctype
|
||||||
|
wcwidth
|
||||||
|
websocket
|
||||||
|
websockets
|
||||||
|
weechat
|
||||||
|
where
|
||||||
|
white
|
||||||
|
whitespace
|
||||||
|
whois
|
||||||
|
width
|
||||||
|
window
|
||||||
|
windows
|
||||||
|
without
|
||||||
|
word
|
||||||
|
words
|
||||||
|
xdigit
|
||||||
|
xfer
|
||||||
|
xxx
|
||||||
|
xyz
|
||||||
|
yellow
|
||||||
|
yes
|
||||||
|
yy
|
||||||
|
zero
|
||||||
|
zlib
|
||||||
|
zstd
|
||||||
|
Échap
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
[check]
|
||||||
|
select = [
|
||||||
|
"checks",
|
||||||
|
]
|
||||||
|
ignore = [
|
||||||
|
"acronyms",
|
||||||
|
"brackets",
|
||||||
|
"double-quotes",
|
||||||
|
"double-words",
|
||||||
|
"functions",
|
||||||
|
"html-tags",
|
||||||
|
"paths",
|
||||||
|
"unchanged",
|
||||||
|
"urls",
|
||||||
|
]
|
||||||
|
path_words = "."
|
||||||
|
langs = [
|
||||||
|
"en_US",
|
||||||
|
"fr",
|
||||||
|
]
|
||||||
+13
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
-->
|
||||||
|
|
||||||
# WeeChat Authors
|
# WeeChat Authors
|
||||||
|
|
||||||
## Developers
|
## Developers
|
||||||
@@ -23,11 +29,13 @@ Alphabetically:
|
|||||||
- Asakura
|
- Asakura
|
||||||
- Bazerka
|
- Bazerka
|
||||||
- Benoit Papillault (benoit)
|
- Benoit Papillault (benoit)
|
||||||
|
- Caleb Josue Ruiz Torres
|
||||||
- Chris Hills
|
- Chris Hills
|
||||||
- Christian Duerr
|
- Christian Duerr
|
||||||
- Christian Heinz
|
- Christian Heinz
|
||||||
- Christopher O'Neill (deltafire)
|
- Christopher O'Neill (deltafire)
|
||||||
- coypoop
|
- coypoop
|
||||||
|
- Daniel Lublin
|
||||||
- Danilo Spinella
|
- Danilo Spinella
|
||||||
- David Flatz
|
- David Flatz
|
||||||
- Dmitry Kobylin
|
- Dmitry Kobylin
|
||||||
@@ -39,6 +47,7 @@ Alphabetically:
|
|||||||
- Elizabeth Myers (Elizacat)
|
- Elizabeth Myers (Elizacat)
|
||||||
- Elián Hanisch (m4v)
|
- Elián Hanisch (m4v)
|
||||||
- Emanuele Giaquinta
|
- Emanuele Giaquinta
|
||||||
|
- Emil Velikov
|
||||||
- Emir Sarı
|
- Emir Sarı
|
||||||
- emk
|
- emk
|
||||||
- Érico Nogueira
|
- Érico Nogueira
|
||||||
@@ -55,18 +64,21 @@ Alphabetically:
|
|||||||
- Ivan Pešić
|
- Ivan Pešić
|
||||||
- Ivan Sichmann Freitas
|
- Ivan Sichmann Freitas
|
||||||
- Jakub Jirutka
|
- Jakub Jirutka
|
||||||
|
- James C. Morey
|
||||||
- Jan Palus
|
- Jan Palus
|
||||||
- Jason A. Donenfeld (zx2c4)
|
- Jason A. Donenfeld (zx2c4)
|
||||||
- JD Horelick (jdhore)
|
- JD Horelick (jdhore)
|
||||||
- jesopo
|
- jesopo
|
||||||
- Jim Ramsay (lack)
|
- Jim Ramsay (lack)
|
||||||
- Jiri Golembiovsky (GolemJ)
|
- Jiri Golembiovsky (GolemJ)
|
||||||
|
- Joe Hermaszewski
|
||||||
- Joey Pabalinas (alyptik)
|
- Joey Pabalinas (alyptik)
|
||||||
- Johan Rylander
|
- Johan Rylander
|
||||||
- Johannes Kuhn
|
- Johannes Kuhn
|
||||||
- Joram Schrijver
|
- Joram Schrijver
|
||||||
- Jos Ahrens
|
- Jos Ahrens
|
||||||
- Joseph Kichline
|
- Joseph Kichline
|
||||||
|
- Josh Soref
|
||||||
- Juan Francisco Cantero Hurtado
|
- Juan Francisco Cantero Hurtado
|
||||||
- Julien Louis (ptitlouis)
|
- Julien Louis (ptitlouis)
|
||||||
- Karthik K
|
- Karthik K
|
||||||
@@ -153,6 +165,7 @@ Alphabetically:
|
|||||||
- Wojciech Kwolek
|
- Wojciech Kwolek
|
||||||
- W. Trevor King
|
- W. Trevor King
|
||||||
- Yannick Palanque
|
- Yannick Palanque
|
||||||
|
- Yiheng Cao
|
||||||
- ZethJack
|
- ZethJack
|
||||||
- Ørjan Malde
|
- Ørjan Malde
|
||||||
|
|
||||||
|
|||||||
+382
-25
@@ -1,5 +1,360 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
-->
|
||||||
|
|
||||||
# WeeChat ChangeLog
|
# WeeChat ChangeLog
|
||||||
|
|
||||||
|
## Version 4.10.0 (under dev)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- core: add condition on connected relay api clients in default value of option weechat.look.hotlist_add_conditions
|
||||||
|
- core: add `/mute` in default command for key `Alt`+`=` (toggle filters)
|
||||||
|
- relay/api: add field "last_read_line_id" in GET /api/buffers
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- core: add `/theme` command with subcommands `list`, `apply`, `reset`, `save`, `rename`, `delete`, `info`, automatic backup of current themable options before apply, and built-in "light" theme
|
||||||
|
- core: detect terminal background on first start and automatically apply the built-in "light" theme when a light terminal is detected
|
||||||
|
- core: add `themable` flag on configuration options (auto-set for color options; explicit opt-in for string options containing `${color:...}` references via the `type|themable` syntax)
|
||||||
|
- core: add option weechat.look.theme (informational, set by `/theme apply`)
|
||||||
|
- core: add option weechat.look.theme_backup (boolean, default `on`)
|
||||||
|
- api: add function `theme_register` (available to plugins and to all script languages)
|
||||||
|
- fset: add filter `t:themable` (matches every themable option regardless of type)
|
||||||
|
- relay: add option relay.network.unix_socket_permissions ([#2317](https://github.com/weechat/weechat/issues/2317))
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core: fix option weechat.look.color_real_white not applied when color is "white" on 16+ colors terminals ([#1742](https://github.com/weechat/weechat/issues/1742))
|
||||||
|
- api: fix infinite loop in function string_replace when the search string is empty
|
||||||
|
- irc: fix tag in message with list of names when joining a channel
|
||||||
|
- fset: remove error displayed in core buffer when clicking with the mouse below the last option displayed
|
||||||
|
- irc: limit size of data received from the server to prevent memory exhaustion
|
||||||
|
- irc: fix out-of-bounds read on incoming DCC command with a quoted filename ending the message ([#2322](https://github.com/weechat/weechat/issues/2322))
|
||||||
|
- relay: limit size of decompressed websocket frame with permessage-deflate to prevent memory exhaustion ([GHSA-v2v4-45wm-5cr3](https://github.com/weechat/weechat/security/advisories/GHSA-v2v4-45wm-5cr3))
|
||||||
|
- relay: limit size of received websocket frame and HTTP body to prevent memory exhaustion
|
||||||
|
- relay: limit size of partial message received while reading an HTTP request to prevent memory exhaustion
|
||||||
|
- relay: fix timing attack on password authentication ([GHSA-vhv8-g2r9-cwcc](https://github.com/weechat/weechat/security/advisories/GHSA-vhv8-g2r9-cwcc))
|
||||||
|
- relay: fix out-of-bounds read in dump of data ([#2324](https://github.com/weechat/weechat/issues/2324))
|
||||||
|
- api, relay: fix timing attack on TOTP validation ([GHSA-vhv8-g2r9-cwcc](https://github.com/weechat/weechat/security/advisories/GHSA-vhv8-g2r9-cwcc))
|
||||||
|
- xfer: replace directory separator in remote nick by underscore in download filename to prevent writing the file outside the download directory ([#2321](https://github.com/weechat/weechat/issues/2321))
|
||||||
|
- xfer: fix out-of-bounds read when receiving empty line in DCC chat ([#2323](https://github.com/weechat/weechat/issues/2323))
|
||||||
|
|
||||||
|
## Version 4.9.2 (2026-06-07)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- api: fix infinite loop in function string_replace when the search string is empty
|
||||||
|
- irc: limit size of data received from the server to prevent memory exhaustion
|
||||||
|
- irc: fix out-of-bounds read on incoming DCC command with a quoted filename ending the message ([#2322](https://github.com/weechat/weechat/issues/2322))
|
||||||
|
- relay: limit size of received websocket frame and HTTP body to prevent memory exhaustion
|
||||||
|
- relay: limit size of partial message received while reading an HTTP request to prevent memory exhaustion
|
||||||
|
- relay: fix out-of-bounds read in dump of data ([#2324](https://github.com/weechat/weechat/issues/2324))
|
||||||
|
- xfer: replace directory separator in remote nick by underscore in download filename to prevent writing the file outside the download directory ([#2321](https://github.com/weechat/weechat/issues/2321))
|
||||||
|
- xfer: fix out-of-bounds read when receiving empty line in DCC chat ([#2323](https://github.com/weechat/weechat/issues/2323))
|
||||||
|
|
||||||
|
## Version 4.9.1 (2026-05-31)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core: fix option weechat.look.color_real_white not applied when color is "white" on 16+ colors terminals ([#1742](https://github.com/weechat/weechat/issues/1742))
|
||||||
|
- irc: fix tag in message with list of names when joining a channel
|
||||||
|
- relay: limit size of decompressed websocket frame with permessage-deflate to prevent memory exhaustion ([GHSA-v2v4-45wm-5cr3](https://github.com/weechat/weechat/security/advisories/GHSA-v2v4-45wm-5cr3))
|
||||||
|
- relay: fix timing attack on password authentication ([GHSA-vhv8-g2r9-cwcc](https://github.com/weechat/weechat/security/advisories/GHSA-vhv8-g2r9-cwcc))
|
||||||
|
- api, relay: fix timing attack on TOTP validation ([GHSA-vhv8-g2r9-cwcc](https://github.com/weechat/weechat/security/advisories/GHSA-vhv8-g2r9-cwcc))
|
||||||
|
|
||||||
|
## Version 4.9.0 (2026-03-29)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- core: add option `-e` to evaluate all commands before executing them in command `/eval`
|
||||||
|
- xfer: evaluate option xfer.network.own_ip
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- typing: add option typing.look.item_text ([#2305](https://github.com/weechat/weechat/issues/2305))
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core: fix crash with `/eval` when the current buffer is closed in a command
|
||||||
|
- core: fix buffer size in function util_parse_time, causing buffer overflow error in unit tests
|
||||||
|
- irc: fix display of CTCP query sent multiple times to the same user when capability echo-message is enabled ([#2309](https://github.com/weechat/weechat/issues/2309))
|
||||||
|
- irc: fix unit of server option `anti_flood` from seconds to milliseconds in output of `/server listfull`
|
||||||
|
- irc: fix creation of irc.msgbuffer option without a server name
|
||||||
|
- irc: ignore self join if the channel is already joined ([#2291](https://github.com/weechat/weechat/issues/2291))
|
||||||
|
- relay/api: fix memory leaks in resources "ping" and "sync"
|
||||||
|
- relay/api: fix memory leak in receive of message from remote WeeChat
|
||||||
|
|
||||||
|
## Version 4.8.2 (2026-03-06)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- irc: ignore self join if the channel is already joined ([#2291](https://github.com/weechat/weechat/issues/2291))
|
||||||
|
- relay/api: fix memory leaks in resources "ping" and "sync"
|
||||||
|
- relay/api: fix memory leak in receive of message from remote WeeChat
|
||||||
|
|
||||||
|
## Version 4.8.1 (2025-12-01)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core: fix buffer size in function util_parse_time, causing buffer overflow error in unit tests
|
||||||
|
- irc: fix creation of irc.msgbuffer option without a server name
|
||||||
|
|
||||||
|
## Version 4.8.0 (2025-11-30)
|
||||||
|
|
||||||
|
_If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
|
||||||
|
- irc: remove temporary servers and option irc.look.temporary_servers
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- api: add support of date like ISO 8601 but with spaces and lower `t` and `z` in function util_parse_time ([#886](https://github.com/weechat/weechat/issues/886))
|
||||||
|
- irc: request and perform SASL authentication when the server advertises SASL support with message "CAP NEW" ([#2277](https://github.com/weechat/weechat/issues/2277))
|
||||||
|
- irc: send SASL username with mechanism EXTERNAL ([#2270](https://github.com/weechat/weechat/issues/2270))
|
||||||
|
- logger: change default time format to `%@%F %T.%fZ` (UTC) ([#886](https://github.com/weechat/weechat/issues/886))
|
||||||
|
- logger: use function util_parse_time to parse date/time in log files ([#886](https://github.com/weechat/weechat/issues/886))
|
||||||
|
- relay/api: return an error 400 (Bad Request) when URL parameters "colors", "nicks", "lines" and "lines_free" have an invalid value
|
||||||
|
- relay/api: return an error 401 (Unauthorized) when header "x-weechat-totp" has an invalid value
|
||||||
|
- xfer: add buffer local variable "server" in DCC CHAT buffers
|
||||||
|
- core, irc, relay: add tag "tls" in gnutls messages
|
||||||
|
- irc: add tags "irc_cap" and "log3" in client capability request and SASL not supported messages
|
||||||
|
- build: require Curl ≥ 7.68.0 ([#2268](https://github.com/weechat/weechat/issues/2268))
|
||||||
|
- build: require GnuTLS ≥ 3.6.3 ([#2268](https://github.com/weechat/weechat/issues/2268))
|
||||||
|
- build: require libgcrypt ≥ 1.8.0 ([#2268](https://github.com/weechat/weechat/issues/2268))
|
||||||
|
- build: require Enchant v2 ([#2268](https://github.com/weechat/weechat/issues/2268))
|
||||||
|
- build: require Lua ≥ 5.3 ([#2268](https://github.com/weechat/weechat/issues/2268))
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- core: add option weechat.completion.cycle
|
||||||
|
- core: add hdata for hooks
|
||||||
|
- api: add functions util_parse_int, util_parse_long and util_parse_longlong
|
||||||
|
- buflist: add variable `${index_displayed}`
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core: display an error message in case of invalid parameters in commands `/bar`, `/buffer`, `/cursor`, `/print` and `/window`
|
||||||
|
- api: fix file descriptor leak in hook_url when a timeout occurs or if the hook is removed during the transfer ([#2284](https://github.com/weechat/weechat/issues/2284))
|
||||||
|
- api: fix parsing of date/times with timezone offset in function util_parse_time
|
||||||
|
- irc: fix warning on creation of irc.msgbuffer option when the server name contains upper case letters ([#2281](https://github.com/weechat/weechat/issues/2281))
|
||||||
|
- irc: display a warning for each unknown or invalid server option in commands `/connect` and `/server`
|
||||||
|
- irc: fix colors in messages 367 (ban mask), 728 (quiet mask) and MODE ([#2286](https://github.com/weechat/weechat/issues/2286))
|
||||||
|
- irc: fix reset of color when multiple modes are set with command `/mode`
|
||||||
|
- relay/api: fix crash when an invalid HTTP request is received from a client
|
||||||
|
- relay/api: return HTTP error 404 instead of 400 when the buffer is not found in resources completion and input
|
||||||
|
- relay/api: return HTTP error 400 in case of invalid body in resource ping
|
||||||
|
|
||||||
|
## Version 4.7.2 (2025-11-23)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- api: fix file descriptor leak in hook_url when a timeout occurs or if the hook is removed during the transfer ([#2284](https://github.com/weechat/weechat/issues/2284))
|
||||||
|
- irc: fix colors in messages 367 (ban mask), 728 (quiet mask) and MODE ([#2286](https://github.com/weechat/weechat/issues/2286))
|
||||||
|
- irc: fix reset of color when multiple modes are set with command `/mode`
|
||||||
|
|
||||||
|
## Version 4.7.1 (2025-08-16)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- relay/api: fix crash when an invalid HTTP request is received from a client
|
||||||
|
|
||||||
|
## Version 4.7.0 (2025-07-19)
|
||||||
|
|
||||||
|
_If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- **breaking:** core: fix buffer overflow in function utf8_next_char and return NULL for empty string
|
||||||
|
- **breaking:** core: fix integer overflow and return "unsigned long" in function util_version_number
|
||||||
|
- core: write configuration files on disk only if there are changes ([#2250](https://github.com/weechat/weechat/issues/2250))
|
||||||
|
- core: always enable partial completion for templates in option weechat.completion.partial_completion_templates, add option weechat.completion.partial_completion_auto_expand to expand word on new completion ([#2253](https://github.com/weechat/weechat/issues/2253))
|
||||||
|
- core: add script name in output of `/debug hooks <plugin>`
|
||||||
|
- relay/api: return HTTP error 405 (Method Not Allowed) when the method received is not allowed
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- core: add support of specifier `%@` for UTC time in function util_strftimeval
|
||||||
|
- api: add function file_compare
|
||||||
|
- irc: add support of strikethrough text in IRC messages ([#2248](https://github.com/weechat/weechat/issues/2248))
|
||||||
|
- buflist: add variables `${number_zero}` and `${number_zero2}` (zero-padded buffer number)
|
||||||
|
- tests: add fuzz testing ([#1462](https://github.com/weechat/weechat/issues/1462))
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core: fix write of weechat.log to stdout with `weechat-headless --stdout` ([#2247](https://github.com/weechat/weechat/issues/2247))
|
||||||
|
- core: add refresh of window title on buffer switch, when option weechat.look.window_title is set
|
||||||
|
- core: consider all keys are safe in cursor context ([#2244](https://github.com/weechat/weechat/issues/2244))
|
||||||
|
- core: fix integer overflow with decimal numbers in calculation of expression
|
||||||
|
- core: fix integer overflow in base32 encoding/decoding
|
||||||
|
- core: fix buffer overflow in function util_parse_time
|
||||||
|
- core: fix buffer overflow in function eval_syntax_highlight_colorize
|
||||||
|
- core: fix buffer overflow in function eval_string_base_encode
|
||||||
|
- core: fix memory leak in function util_parse_delay
|
||||||
|
- irc: display nick changes and quit messages when option irc.look.ignore_tag_messages is enabled ([#2241](https://github.com/weechat/weechat/issues/2241))
|
||||||
|
- perl: fix build when multiplicity is not available ([#2243](https://github.com/weechat/weechat/issues/2243))
|
||||||
|
- relay/api: reject any invalid or unknown password hash algorithm in handshake resource
|
||||||
|
- relay/api: process HTTP request received as soon as a NULL char is received
|
||||||
|
- relay/weechat: fix empty buffers in client when WeeChat is running on Solaris/illumos
|
||||||
|
- build: fix build on Solaris/illumos ([#2251](https://github.com/weechat/weechat/issues/2251))
|
||||||
|
|
||||||
|
## Version 4.6.3 (2025-05-11)
|
||||||
|
|
||||||
|
_If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core: fix integer overflow with decimal numbers in calculation of expression
|
||||||
|
- core: fix integer overflow in base32 encoding/decoding
|
||||||
|
- core: fix integer overflow in function util_version_number
|
||||||
|
- core: fix buffer overflow in function util_parse_time
|
||||||
|
- core: fix buffer overflow in function eval_syntax_highlight_colorize
|
||||||
|
- core: fix buffer overflow in function eval_string_base_encode
|
||||||
|
- core: fix buffer overflow in function eval_string_range_chars
|
||||||
|
- core: fix memory leak in function util_parse_delay
|
||||||
|
|
||||||
|
## Version 4.6.2 (2025-04-18)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core: fix write of weechat.log to stdout with `weechat-headless --stdout` ([#2247](https://github.com/weechat/weechat/issues/2247))
|
||||||
|
- core: add refresh of window title on buffer switch, when option weechat.look.window_title is set
|
||||||
|
|
||||||
|
## Version 4.6.1 (2025-04-09)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core: consider all keys are safe in cursor context ([#2244](https://github.com/weechat/weechat/issues/2244))
|
||||||
|
- irc: display nick changes and quit messages when option irc.look.ignore_tag_messages is enabled ([#2241](https://github.com/weechat/weechat/issues/2241))
|
||||||
|
- perl: fix build when multiplicity is not available ([#2243](https://github.com/weechat/weechat/issues/2243))
|
||||||
|
|
||||||
|
## Version 4.6.0 (2025-03-23)
|
||||||
|
|
||||||
|
_If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- core: add option `-v` to display upgrades in command `/version`
|
||||||
|
- api: add property `keep_spaces_right` in function hook_set to keep trailing spaces in command arguments
|
||||||
|
- core, irc, alias, xfer: keep spaces at the end of some commands, where trailing spaces are important
|
||||||
|
- irc: add option `-connected` in command `/server list|listfull`
|
||||||
|
- buflist: apply option buflist.look.nick_prefix_empty also on private and list buffers
|
||||||
|
- xfer: compute speed and ETA with microsecond precision ([#665](https://github.com/weechat/weechat/issues/665))
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- core: add command `/pipe`
|
||||||
|
- core: add option `whitespace` in command `/debug`, add options weechat.look.whitespace_char and weechat.look.tab_whitespace_char ([#947](https://github.com/weechat/weechat/issues/947))
|
||||||
|
- core: add option weechat.completion.nick_ignore_words ([#1143](https://github.com/weechat/weechat/issues/1143))
|
||||||
|
- spell: add CMake options ASPELL_DICT_DIR and ENCHANT_MYSPELL_DICT_DIR to override dictionaries locations ([#1174](https://github.com/weechat/weechat/issues/1174))
|
||||||
|
- api: add function completion_set
|
||||||
|
- relay/api: add resource `POST /api/completion` ([#2207](https://github.com/weechat/weechat/issues/2207))
|
||||||
|
- relay/api: add default key `Alt`+`Ctrl`+`l` (L) to toggle between remote and local commands on remote buffers, add option `togglecmd` in command `/remote`, add options relay.api.remote_input_cmd_local and relay.api.remote_input_cmd_remote ([#2148](https://github.com/weechat/weechat/issues/2148))
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- relay: fix crash after `/upgrade` when relay clients are connected
|
||||||
|
- core: save configuration files as UTF-8 when the locale is wrong
|
||||||
|
- api: fix creation of empty buffer in function infolist_new_var_buffer
|
||||||
|
- core: fix build with gcc 15 ([#2229](https://github.com/weechat/weechat/issues/2229), [#2230](https://github.com/weechat/weechat/issues/2230))
|
||||||
|
- core: fix detection of dl library ([#2218](https://github.com/weechat/weechat/issues/2218))
|
||||||
|
- logger: fix path displayed when the logs directory can not be created
|
||||||
|
- perl: fix build with Perl < 5.7.29 ([#2219](https://github.com/weechat/weechat/issues/2219), [#2220](https://github.com/weechat/weechat/issues/2220))
|
||||||
|
- python: enable subinterpreters ([#2222](https://github.com/weechat/weechat/issues/2222))
|
||||||
|
|
||||||
|
## Version 4.5.2 (2025-02-20)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core: fix build with gcc 15 ([#2229](https://github.com/weechat/weechat/issues/2229), [#2230](https://github.com/weechat/weechat/issues/2230))
|
||||||
|
|
||||||
|
## Version 4.5.1 (2024-12-23)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- relay: fix crash after `/upgrade` when relay clients are connected
|
||||||
|
- api: fix creation of empty buffer in function infolist_new_var_buffer
|
||||||
|
- core: fix detection of dl library ([#2218](https://github.com/weechat/weechat/issues/2218))
|
||||||
|
- logger: fix path displayed when the logs directory can not be created
|
||||||
|
- perl: fix build with Perl < 5.7.29 ([#2219](https://github.com/weechat/weechat/issues/2219), [#2220](https://github.com/weechat/weechat/issues/2220))
|
||||||
|
|
||||||
|
## Version 4.5.0 (2024-12-15)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- api: return the buffer input callback return code in functions command and command_options
|
||||||
|
- api: add special value `-` (hyphen-minus) in options of function command_options to prevent execution of commands
|
||||||
|
- api: add property `hotlist_conditions` in function buffer_set
|
||||||
|
- api: add support of flags in functions hook_signal_send and hook_hsignal_send
|
||||||
|
- relay/api: allow array with multiple requests in websocket frame received from client
|
||||||
|
- relay/api: support passing authentication in sub protocol header ([#2205](https://github.com/weechat/weechat/issues/2205))
|
||||||
|
- relay/api: combine request headers with the same name ([#2206](https://github.com/weechat/weechat/issues/2206))
|
||||||
|
- core, plugins: simplify help on parameters that can be repeated in commands
|
||||||
|
- core: add optional hook types in command `/debug hooks`
|
||||||
|
- php: add detection of PHP 8.3 and 8.4
|
||||||
|
- ruby: fix detection of Ruby on macOS 14, require CMake ≥ 3.18 ([#1156](https://github.com/weechat/weechat/issues/1156))
|
||||||
|
- build: require Curl ≥ 7.47.0 ([#2195](https://github.com/weechat/weechat/issues/2195))
|
||||||
|
- build: require GnuTLS ≥ 3.3.0 ([#2193](https://github.com/weechat/weechat/issues/2193))
|
||||||
|
|
||||||
|
### Added
|
||||||
|
|
||||||
|
- relay: display connection status in input prompt of remote buffers, if not connected or if fetching data from remote
|
||||||
|
- irc: add option irc.look.notice_nicks_disable_notify
|
||||||
|
- irc: add infos "irc_ptr_server", "irc_ptr_channel" and "irc_ptr_nick"
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core, plugins: fix integer overflow in loops ([#2178](https://github.com/weechat/weechat/issues/2178), [CVE-2024-46613](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-46613))
|
||||||
|
- irc: decode IRC colors only when displaying messages in buffer, store nick info with IRC colors (host, account, real name)
|
||||||
|
- irc: do not strip trailing spaces from incoming IRC messages
|
||||||
|
- irc: fix crash on /list buffer when a filter is set ([#2197](https://github.com/weechat/weechat/issues/2197))
|
||||||
|
- script: fix crash on /script buffer when a filter is set ([#2214](https://github.com/weechat/weechat/issues/2214), [#2215](https://github.com/weechat/weechat/issues/2215))
|
||||||
|
- exec: fix unexpected execution of command with `/exec -o` when the command starts with two command chars ([#2199](https://github.com/weechat/weechat/issues/2199))
|
||||||
|
- relay/api: fix empty nicklist in remote buffers after connection or reconnection
|
||||||
|
- relay/api: reply HTTP 400 (Bad Request) when the body received is not a dict in websocket data
|
||||||
|
- core: fix too many sorts of hotlist when buffers are moved ([#2097](https://github.com/weechat/weechat/issues/2097))
|
||||||
|
- core: always send the signal "buffer_switch", even when the buffer is opening ([#2198](https://github.com/weechat/weechat/issues/2198))
|
||||||
|
- core, plugins: abort upgrade immediately if any upgrade file fails to be written
|
||||||
|
- core: reload all plugins with command `/plugin reload *`
|
||||||
|
- relay, xfer: fix letters with actions displayed on top of buffer
|
||||||
|
- perl: fix crash when unloading Perl scripts with Perl 5.38 ([#2209](https://github.com/weechat/weechat/issues/2209), [#2213](https://github.com/weechat/weechat/issues/2213))
|
||||||
|
- lua: fix compilation on Fedora with Lua < 5.2.0 ([#2173](https://github.com/weechat/weechat/issues/2173), [#2174](https://github.com/weechat/weechat/issues/2174))
|
||||||
|
- core: fix build on Darwin ([#2216](https://github.com/weechat/weechat/issues/2216))
|
||||||
|
- core: fix build on Android ([#2180](https://github.com/weechat/weechat/issues/2180))
|
||||||
|
|
||||||
|
## Version 4.4.4 (2024-11-30)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- script: fix crash on /script buffer when a filter is set ([#2214](https://github.com/weechat/weechat/issues/2214), [#2215](https://github.com/weechat/weechat/issues/2215))
|
||||||
|
- core: fix too many sorts of hotlist when buffers are moved ([#2097](https://github.com/weechat/weechat/issues/2097))
|
||||||
|
- relay, xfer: fix letters with actions displayed on top of buffer
|
||||||
|
- build: fix detection of Ruby on macOS 14, require CMake ≥ 3.18 ([#1156](https://github.com/weechat/weechat/issues/1156))
|
||||||
|
- perl: fix crash when unloading Perl scripts with Perl 5.38 ([#2209](https://github.com/weechat/weechat/issues/2209), [#2213](https://github.com/weechat/weechat/issues/2213))
|
||||||
|
|
||||||
|
## Version 4.4.3 (2024-10-30)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- irc: fix crash on /list buffer when a filter is set ([#2197](https://github.com/weechat/weechat/issues/2197))
|
||||||
|
- core: always send the signal "buffer_switch", even when the buffer is opening ([#2198](https://github.com/weechat/weechat/issues/2198))
|
||||||
|
- core: fix build on Android ([#2180](https://github.com/weechat/weechat/issues/2180))
|
||||||
|
|
||||||
|
## Version 4.4.2 (2024-09-08)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- core, plugins: fix integer overflow in loops ([#2178](https://github.com/weechat/weechat/issues/2178), [CVE-2024-46613](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-46613))
|
||||||
|
|
||||||
|
## Version 4.4.1 (2024-08-19)
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- lua: fix compilation on Fedora with Lua < 5.2.0 ([#2173](https://github.com/weechat/weechat/issues/2173), [#2174](https://github.com/weechat/weechat/issues/2174))
|
||||||
|
|
||||||
## Version 4.4.0 (2024-08-17)
|
## Version 4.4.0 (2024-08-17)
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
@@ -83,7 +438,7 @@
|
|||||||
- relay/api: disconnect cleanly when the remote is quitting ([#2168](https://github.com/weechat/weechat/issues/2168))
|
- relay/api: disconnect cleanly when the remote is quitting ([#2168](https://github.com/weechat/weechat/issues/2168))
|
||||||
- relay: fix websocket permessage-deflate extension when the client doesn't send the max window bits parameters ([#1549](https://github.com/weechat/weechat/issues/1549))
|
- relay: fix websocket permessage-deflate extension when the client doesn't send the max window bits parameters ([#1549](https://github.com/weechat/weechat/issues/1549))
|
||||||
- relay: fix allocation and reinit of field "client_context_takeover" in websocket deflate structure ([#1549](https://github.com/weechat/weechat/issues/1549))
|
- relay: fix allocation and reinit of field "client_context_takeover" in websocket deflate structure ([#1549](https://github.com/weechat/weechat/issues/1549))
|
||||||
- spell: improve error displayed when a word can not be added to the dictionary ([#2144](https://github.com/weechat/weechat/issues/2144))
|
- spell: improve error displayed when a word cannot be added to the dictionary ([#2144](https://github.com/weechat/weechat/issues/2144))
|
||||||
- core: fix completion of command `/item refresh`
|
- core: fix completion of command `/item refresh`
|
||||||
- lua: remote string "Lua" from Lua version in output of `/debug libs`
|
- lua: remote string "Lua" from Lua version in output of `/debug libs`
|
||||||
- core: fix detection of libgcrypt ≥ 1.11 ([debian #1071960](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071960))
|
- core: fix detection of libgcrypt ≥ 1.11 ([debian #1071960](https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1071960))
|
||||||
@@ -179,7 +534,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- core: display a specific message when the value of option is unchanged after `/set` command
|
- core: display a specific message when the value of option is unchanged after `/set` command
|
||||||
- core: add variable `${highlight}` in option weechat.look.buffer_time_format ([#2079](https://github.com/weechat/weechat/issues/2079))
|
- core: add variable `${highlight}` in option weechat.look.buffer_time_format ([#2079](https://github.com/weechat/weechat/issues/2079))
|
||||||
- core: reintroduce help on the variables and operators in `/help eval` ([#2005](https://github.com/weechat/weechat/issues/2005))
|
- core: reintroduce help on the variables and operators in `/help eval` ([#2005](https://github.com/weechat/weechat/issues/2005))
|
||||||
- core: allow case insensitive search of partial buffer name with `(?i)name` in command `/buffer`
|
- core: allow case-insensitive search of partial buffer name with `(?i)name` in command `/buffer`
|
||||||
- core: use function util_strftimeval in evaluation of expression `date:xxx`
|
- core: use function util_strftimeval in evaluation of expression `date:xxx`
|
||||||
- fset: allow filename starting with "~" in command `/fset -export`
|
- fset: allow filename starting with "~" in command `/fset -export`
|
||||||
- irc: store lag in channel and private buffers (local variable "lag"), in addition to the server buffer
|
- irc: store lag in channel and private buffers (local variable "lag"), in addition to the server buffer
|
||||||
@@ -328,7 +683,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- irc: display messages 730/731 (monitored nicks online/offline) even if command `/notify` was not used ([#2049](https://github.com/weechat/weechat/issues/2049))
|
- irc: display messages 730/731 (monitored nicks online/offline) even if command `/notify` was not used ([#2049](https://github.com/weechat/weechat/issues/2049))
|
||||||
- irc: remove trailing "\r\n" in signals "irc_out" and "irc_outtags" when messages are queued
|
- irc: remove trailing "\r\n" in signals "irc_out" and "irc_outtags" when messages are queued
|
||||||
- irc: fix target buffer of IRC message 337 (whois reply: "is hiding their idle time")
|
- irc: fix target buffer of IRC message 337 (whois reply: "is hiding their idle time")
|
||||||
- irc: revert compute of nick colors to case sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032))
|
- irc: revert compute of nick colors to case-sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032))
|
||||||
- relay: close properly connection with the IRC client in case of server disconnection ([#2038](https://github.com/weechat/weechat/issues/2038))
|
- relay: close properly connection with the IRC client in case of server disconnection ([#2038](https://github.com/weechat/weechat/issues/2038))
|
||||||
- ruby: fix use of NULL variable when displaying exception
|
- ruby: fix use of NULL variable when displaying exception
|
||||||
|
|
||||||
@@ -374,7 +729,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
|
|
||||||
- core: fix crash when a custom bar item name is already used by a default bar item ([#2034](https://github.com/weechat/weechat/issues/2034))
|
- core: fix crash when a custom bar item name is already used by a default bar item ([#2034](https://github.com/weechat/weechat/issues/2034))
|
||||||
- core: fix random timeouts when a lot of concurrent processes are launched with hook_process ([#2033](https://github.com/weechat/weechat/issues/2033))
|
- core: fix random timeouts when a lot of concurrent processes are launched with hook_process ([#2033](https://github.com/weechat/weechat/issues/2033))
|
||||||
- irc: revert compute of nick colors to case sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032))
|
- irc: revert compute of nick colors to case-sensitive way, deprecate again infos "irc_nick_color" and "irc_nick_color_name" ([#194](https://github.com/weechat/weechat/issues/194), [#2032](https://github.com/weechat/weechat/issues/2032))
|
||||||
|
|
||||||
### Build
|
### Build
|
||||||
|
|
||||||
@@ -406,7 +761,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- fset: allow long type name in type filter
|
- fset: allow long type name in type filter
|
||||||
- irc: add count for all nick modes in output of `/names` ([#97](https://github.com/weechat/weechat/issues/97), [#2020](https://github.com/weechat/weechat/issues/2020))
|
- irc: add count for all nick modes in output of `/names` ([#97](https://github.com/weechat/weechat/issues/97), [#2020](https://github.com/weechat/weechat/issues/2020))
|
||||||
- irc: add count and mode filter in command `/names` ([#98](https://github.com/weechat/weechat/issues/98))
|
- irc: add count and mode filter in command `/names` ([#98](https://github.com/weechat/weechat/issues/98))
|
||||||
- irc: compute color in case insensitive way, reintroduce infos "irc_nick_color" and "irc_nick_color_name", add support of server name ([#194](https://github.com/weechat/weechat/issues/194))
|
- irc: compute color in case-insensitive way, reintroduce infos "irc_nick_color" and "irc_nick_color_name", add support of server name ([#194](https://github.com/weechat/weechat/issues/194))
|
||||||
- irc: add buffer for /list reply, add options irc.color.list_buffer_line_selected, irc.color.list_buffer_line_selected_bg, irc.look.list_buffer_sort, irc.look.list_buffer_scroll_horizontal, irc.look.new_list_position, irc.look.list_buffer_topic_strip_colors ([#1972](https://github.com/weechat/weechat/issues/1972))
|
- irc: add buffer for /list reply, add options irc.color.list_buffer_line_selected, irc.color.list_buffer_line_selected_bg, irc.look.list_buffer_sort, irc.look.list_buffer_scroll_horizontal, irc.look.new_list_position, irc.look.list_buffer_topic_strip_colors ([#1972](https://github.com/weechat/weechat/issues/1972))
|
||||||
- irc: display commands 716/717 in private buffer (if present) ([#146](https://github.com/weechat/weechat/issues/146))
|
- irc: display commands 716/717 in private buffer (if present) ([#146](https://github.com/weechat/weechat/issues/146))
|
||||||
- irc: create default options irc.ctcp.* when file irc.conf is created ([#1974](https://github.com/weechat/weechat/issues/1974))
|
- irc: create default options irc.ctcp.* when file irc.conf is created ([#1974](https://github.com/weechat/weechat/issues/1974))
|
||||||
@@ -607,7 +962,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- core: display similar command names when a command is unknown ([#1877](https://github.com/weechat/weechat/issues/1877))
|
- core: display similar command names when a command is unknown ([#1877](https://github.com/weechat/weechat/issues/1877))
|
||||||
- core: rename option weechat.color.status_name_ssl to weechat.color.status_name_tls ([#1903](https://github.com/weechat/weechat/issues/1903))
|
- core: rename option weechat.color.status_name_ssl to weechat.color.status_name_tls ([#1903](https://github.com/weechat/weechat/issues/1903))
|
||||||
- core: add option weechat.color.status_name_insecure to display buffer name with a specific color when not connected with TLS to the server
|
- core: add option weechat.color.status_name_insecure to display buffer name with a specific color when not connected with TLS to the server
|
||||||
- core, plugins: make many identifiers case sensitive ([#1872](https://github.com/weechat/weechat/issues/1872), [#398](https://github.com/weechat/weechat/issues/398), [bug #32213](https://savannah.nongnu.org/bugs/?32213))
|
- core, plugins: make many identifiers case-sensitive ([#1872](https://github.com/weechat/weechat/issues/1872), [#398](https://github.com/weechat/weechat/issues/398), [bug #32213](https://savannah.nongnu.org/bugs/?32213))
|
||||||
- core: add item "mouse_status" in default status bar, change default color to lightgreen
|
- core: add item "mouse_status" in default status bar, change default color to lightgreen
|
||||||
- core, trigger: add options weechat.color.chat_status_disabled and weechat.color.chat_status_enabled, remove options trigger.color.trigger and trigger.color.trigger_disabled, add enabled/disabled status color in output of `/filter list` ([#1820](https://github.com/weechat/weechat/issues/1820))
|
- core, trigger: add options weechat.color.chat_status_disabled and weechat.color.chat_status_enabled, remove options trigger.color.trigger and trigger.color.trigger_disabled, add enabled/disabled status color in output of `/filter list` ([#1820](https://github.com/weechat/weechat/issues/1820))
|
||||||
- core: add completions "filters_names_disabled" and "filters_names_enabled", used in completion of `/filter disable` and `/filter enable`
|
- core: add completions "filters_names_disabled" and "filters_names_enabled", used in completion of `/filter disable` and `/filter enable`
|
||||||
@@ -675,7 +1030,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- irc: fix join of channels in "autojoin" server option on first connection to server if auto reconnection is performed ([#1873](https://github.com/weechat/weechat/issues/1873))
|
- irc: fix join of channels in "autojoin" server option on first connection to server if auto reconnection is performed ([#1873](https://github.com/weechat/weechat/issues/1873))
|
||||||
- irc: update autojoin option with redirected channels when autojoin_dynamic is enabled ([#1898](https://github.com/weechat/weechat/issues/1898))
|
- irc: update autojoin option with redirected channels when autojoin_dynamic is enabled ([#1898](https://github.com/weechat/weechat/issues/1898))
|
||||||
- irc: update secure data when server autojoin option contains `${sec.data.xxx}` and option autojoin_dynamic is enabled ([#1934](https://github.com/weechat/weechat/issues/1934))
|
- irc: update secure data when server autojoin option contains `${sec.data.xxx}` and option autojoin_dynamic is enabled ([#1934](https://github.com/weechat/weechat/issues/1934))
|
||||||
- irc: don't switch to buffer of joined channel if it was not manually joined nor present in server autojoin option
|
- irc: don't switch to buffer of joined channel if it was neither manually joined nor present in server autojoin option
|
||||||
- irc: fix target buffer for commands 432/433 (erroneous nickname/nickname already in use) when the nickname looks like a channel
|
- irc: fix target buffer for commands 432/433 (erroneous nickname/nickname already in use) when the nickname looks like a channel
|
||||||
- irc: display command 437 on server buffer when nickname cannot change while banned on channel ([#88](https://github.com/weechat/weechat/issues/88))
|
- irc: display command 437 on server buffer when nickname cannot change while banned on channel ([#88](https://github.com/weechat/weechat/issues/88))
|
||||||
- irc: add messages 415 (cannot send message to channel) and 742 (mode cannot be set)
|
- irc: add messages 415 (cannot send message to channel) and 742 (mode cannot be set)
|
||||||
@@ -749,7 +1104,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- core: keep terminal title unchanged when option weechat.look.window_title is set to empty value ([#1835](https://github.com/weechat/weechat/issues/1835), [#1836](https://github.com/weechat/weechat/issues/1836))
|
- core: keep terminal title unchanged when option weechat.look.window_title is set to empty value ([#1835](https://github.com/weechat/weechat/issues/1835), [#1836](https://github.com/weechat/weechat/issues/1836))
|
||||||
- core: fix crash when setting invalid color in option with null value ([#1844](https://github.com/weechat/weechat/issues/1844))
|
- core: fix crash when setting invalid color in option with null value ([#1844](https://github.com/weechat/weechat/issues/1844))
|
||||||
- api: do not check conditions defined in option weechat.look.hotlist_add_conditions when adding buffer in hotlist with function buffer_set
|
- api: do not check conditions defined in option weechat.look.hotlist_add_conditions when adding buffer in hotlist with function buffer_set
|
||||||
- api: fix function strcmp_ignore_chars with case sensitive comparison and wide chars starting with the same byte
|
- api: fix function strcmp_ignore_chars with case-sensitive comparison and wide chars starting with the same byte
|
||||||
- api: send NULL values to config section callbacks in scripting API ([#1843](https://github.com/weechat/weechat/issues/1843))
|
- api: send NULL values to config section callbacks in scripting API ([#1843](https://github.com/weechat/weechat/issues/1843))
|
||||||
- api: fix function string_cut when there are non printable chars in suffix
|
- api: fix function string_cut when there are non printable chars in suffix
|
||||||
- api: do not expect any return value in callbacks "callback_change" and "callback_delete" of function config_new_option (scripting API)
|
- api: do not expect any return value in callbacks "callback_change" and "callback_delete" of function config_new_option (scripting API)
|
||||||
@@ -1184,7 +1539,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- core: add flag "input_multiline" in buffer ([#984](https://github.com/weechat/weechat/issues/984), [#1063](https://github.com/weechat/weechat/issues/1063))
|
- core: add flag "input_multiline" in buffer ([#984](https://github.com/weechat/weechat/issues/984), [#1063](https://github.com/weechat/weechat/issues/1063))
|
||||||
- core: add a scalable WeeChat logo (SVG) ([#1454](https://github.com/weechat/weechat/issues/1454), [#1456](https://github.com/weechat/weechat/issues/1456))
|
- core: add a scalable WeeChat logo (SVG) ([#1454](https://github.com/weechat/weechat/issues/1454), [#1456](https://github.com/weechat/weechat/issues/1456))
|
||||||
- core: add base 16/32/64 encoding/decoding in evaluation of expressions with `base_encode:base,xxx` and `base_decode:base,xxx`
|
- core: add base 16/32/64 encoding/decoding in evaluation of expressions with `base_encode:base,xxx` and `base_decode:base,xxx`
|
||||||
- core: add case sensitive wildcard matching comparison operator (`+==*+` and `+!!*+`) and case sensitive/insensitive include comparison operators (`+==-+`, `+!!-+`, `+=-+`, `+!-+`) in evaluation of expressions
|
- core: add case-sensitive wildcard matching comparison operator (`+==*+` and `+!!*+`) and case-sensitive/insensitive include comparison operators (`+==-+`, `+!!-+`, `+=-+`, `+!-+`) in evaluation of expressions
|
||||||
- core: add default key `Alt`+`Shift`+`N` to toggle nicklist bar
|
- core: add default key `Alt`+`Shift`+`N` to toggle nicklist bar
|
||||||
- core: add command line option `--stdout` in weechat-headless binary to log to stdout rather than ~/.weechat/weechat.log ([#1475](https://github.com/weechat/weechat/issues/1475), [#1477](https://github.com/weechat/weechat/issues/1477))
|
- core: add command line option `--stdout` in weechat-headless binary to log to stdout rather than ~/.weechat/weechat.log ([#1475](https://github.com/weechat/weechat/issues/1475), [#1477](https://github.com/weechat/weechat/issues/1477))
|
||||||
- core: reload configuration files on SIGHUP ([#1476](https://github.com/weechat/weechat/issues/1476))
|
- core: reload configuration files on SIGHUP ([#1476](https://github.com/weechat/weechat/issues/1476))
|
||||||
@@ -1365,7 +1720,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- core: fix build on Alpine
|
- core: fix build on Alpine
|
||||||
- core: remove file FindTCL.cmake
|
- core: remove file FindTCL.cmake
|
||||||
- core: display an error on missing dependency in CMake ([#916](https://github.com/weechat/weechat/issues/916), [#956](https://github.com/weechat/weechat/issues/956))
|
- core: display an error on missing dependency in CMake ([#916](https://github.com/weechat/weechat/issues/916), [#956](https://github.com/weechat/weechat/issues/956))
|
||||||
- debian: disable Javascript plugin on Debian Sid and Ubuntu Eoan
|
- debian: disable JavaScript plugin on Debian Sid and Ubuntu Eoan
|
||||||
- debian: build with Guile 2.2
|
- debian: build with Guile 2.2
|
||||||
- guile: add support of Guile 2.2, disable `/guile eval` ([#1098](https://github.com/weechat/weechat/issues/1098))
|
- guile: add support of Guile 2.2, disable `/guile eval` ([#1098](https://github.com/weechat/weechat/issues/1098))
|
||||||
- python: add detection of Python 3.8
|
- python: add detection of Python 3.8
|
||||||
@@ -1415,7 +1770,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
### Build
|
### Build
|
||||||
|
|
||||||
- core: fix compilation with autotools on FreeBSD 12.0
|
- core: fix compilation with autotools on FreeBSD 12.0
|
||||||
- debian: disable Javascript plugin on Debian Buster/Bullseye ([#1374](https://github.com/weechat/weechat/issues/1374))
|
- debian: disable JavaScript plugin on Debian Buster/Bullseye ([#1374](https://github.com/weechat/weechat/issues/1374))
|
||||||
- python: compile with Python 3 by default
|
- python: compile with Python 3 by default
|
||||||
- python: use pkg-config to detect Python ([#1382](https://github.com/weechat/weechat/issues/1382))
|
- python: use pkg-config to detect Python ([#1382](https://github.com/weechat/weechat/issues/1382))
|
||||||
|
|
||||||
@@ -1446,7 +1801,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- core: don't execute command scheduled by `/repeat` and `/wait` if the buffer does not exist any more
|
- core: don't execute command scheduled by `/repeat` and `/wait` if the buffer does not exist anymore
|
||||||
- core: set max length to 4096 for `/secure passphrase` ([#1323](https://github.com/weechat/weechat/issues/1323))
|
- core: set max length to 4096 for `/secure passphrase` ([#1323](https://github.com/weechat/weechat/issues/1323))
|
||||||
- core: refilter only affected buffers on filter change ([#1309](https://github.com/weechat/weechat/issues/1309), [#1311](https://github.com/weechat/weechat/issues/1311))
|
- core: refilter only affected buffers on filter change ([#1309](https://github.com/weechat/weechat/issues/1309), [#1311](https://github.com/weechat/weechat/issues/1311))
|
||||||
- fset: fix slow refresh of fset buffer during `/reload` ([#1313](https://github.com/weechat/weechat/issues/1313))
|
- fset: fix slow refresh of fset buffer during `/reload` ([#1313](https://github.com/weechat/weechat/issues/1313))
|
||||||
@@ -1470,7 +1825,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- core: fix value of libdir in file weechat.pc ([#1341](https://github.com/weechat/weechat/issues/1341), [#1342](https://github.com/weechat/weechat/issues/1342))
|
- core: fix value of libdir in file weechat.pc ([#1341](https://github.com/weechat/weechat/issues/1341), [#1342](https://github.com/weechat/weechat/issues/1342))
|
||||||
- core: fix generation of man page weechat-headless with autotools
|
- core: fix generation of man page weechat-headless with autotools
|
||||||
- core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage options (CMake ≥ 3.0 is now required)
|
- core: add CMake option "ENABLE_CODE_COVERAGE" to compile with code coverage options (CMake ≥ 3.0 is now required)
|
||||||
- core: fix compilation on Mac OS ([#1308](https://github.com/weechat/weechat/issues/1308))
|
- core: fix compilation on macOS ([#1308](https://github.com/weechat/weechat/issues/1308))
|
||||||
- lua: add detection of Lua 5.3 with autotools
|
- lua: add detection of Lua 5.3 with autotools
|
||||||
- ruby: add detection of Ruby 2.6 ([#1346](https://github.com/weechat/weechat/issues/1346))
|
- ruby: add detection of Ruby 2.6 ([#1346](https://github.com/weechat/weechat/issues/1346))
|
||||||
- tests: fix compilation of tests on FreeBSD
|
- tests: fix compilation of tests on FreeBSD
|
||||||
@@ -1727,7 +2082,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- buflist: add option buflist.look.auto_scroll ([#332](https://github.com/weechat/weechat/issues/332))
|
- buflist: add option buflist.look.auto_scroll ([#332](https://github.com/weechat/weechat/issues/332))
|
||||||
- buflist: add keys `F1` / `F2`, `Alt`+`F1` / `Alt`+`F2` to scroll the buflist bar
|
- buflist: add keys `F1` / `F2`, `Alt`+`F1` / `Alt`+`F2` to scroll the buflist bar
|
||||||
- buflist: display a warning when the script "buffers.pl" is loaded
|
- 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 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 ([#1020](https://github.com/weechat/weechat/issues/1020))
|
- buflist: add variable `${format_name}` in bar item evaluation and option buflist.format.name ([#1020](https://github.com/weechat/weechat/issues/1020))
|
||||||
- buflist: add variables `${current_buffer}` and `${merged}` (booleans "0" / "1") in bar item evaluation
|
- buflist: add variables `${current_buffer}` and `${merged}` (booleans "0" / "1") in bar item evaluation
|
||||||
- relay: add option `start` in command `/relay`
|
- relay: add option `start` in command `/relay`
|
||||||
@@ -1943,7 +2298,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- irc: evaluate content of server option "addresses"
|
- irc: evaluate content of server option "addresses"
|
||||||
- irc: move option irc.network.alternate_nick into servers (irc.server.xxx.nicks_alternate) ([#633](https://github.com/weechat/weechat/issues/633))
|
- irc: move option irc.network.alternate_nick into servers (irc.server.xxx.nicks_alternate) ([#633](https://github.com/weechat/weechat/issues/633))
|
||||||
- irc: use current channel and current server channels first in completions "irc_server_channels" and "irc_channels" ([task #12923](https://savannah.nongnu.org/task/?12923), [#260](https://github.com/weechat/weechat/issues/260), [#392](https://github.com/weechat/weechat/issues/392))
|
- irc: use current channel and current server channels first in completions "irc_server_channels" and "irc_channels" ([task #12923](https://savannah.nongnu.org/task/?12923), [#260](https://github.com/weechat/weechat/issues/260), [#392](https://github.com/weechat/weechat/issues/392))
|
||||||
- logger: display system error when the log file can not be written ([#541](https://github.com/weechat/weechat/issues/541))
|
- logger: display system error when the log file cannot be written ([#541](https://github.com/weechat/weechat/issues/541))
|
||||||
- relay: add option relay.irc.backlog_since_last_message ([#347](https://github.com/weechat/weechat/issues/347))
|
- relay: add option relay.irc.backlog_since_last_message ([#347](https://github.com/weechat/weechat/issues/347))
|
||||||
- script: add option script.scripts.download_timeout
|
- script: add option script.scripts.download_timeout
|
||||||
- script: add completion with languages and extensions, support search by language/extension in `/script search`
|
- script: add completion with languages and extensions, support search by language/extension in `/script search`
|
||||||
@@ -1952,7 +2307,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
|
|
||||||
- core: fix execution of empty command name ("/" and "/ " are not valid commands)
|
- core: fix execution of empty command name ("/" and "/ " are not valid commands)
|
||||||
- core: fix memory leak when using multiple `-d` or `-r` in command line arguments
|
- core: fix memory leak when using multiple `-d` or `-r` in command line arguments
|
||||||
- core: don't complain any more about "tmux" and "tmux-256color" $TERM values when WeeChat is running under Tmux ([#519](https://github.com/weechat/weechat/issues/519))
|
- core: don't complain anymore about "tmux" and "tmux-256color" $TERM values when WeeChat is running under Tmux ([#519](https://github.com/weechat/weechat/issues/519))
|
||||||
- core: fix truncated messages after a word with a length of zero on screen (for example a zero width space: U+200B) ([bug #40985](https://savannah.nongnu.org/bugs/?40985), [#502](https://github.com/weechat/weechat/issues/502))
|
- core: fix truncated messages after a word with a length of zero on screen (for example a zero width space: U+200B) ([bug #40985](https://savannah.nongnu.org/bugs/?40985), [#502](https://github.com/weechat/weechat/issues/502))
|
||||||
- api: fix handle of invalid escape in function string_convert_escaped_chars
|
- api: fix handle of invalid escape in function string_convert_escaped_chars
|
||||||
- alias: do not allow slashes and spaces in alias name ([#646](https://github.com/weechat/weechat/issues/646))
|
- alias: do not allow slashes and spaces in alias name ([#646](https://github.com/weechat/weechat/issues/646))
|
||||||
@@ -2047,7 +2402,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- core: add a welcome message on first WeeChat run ([#318](https://github.com/weechat/weechat/issues/318))
|
- core: add a welcome message on first WeeChat run ([#318](https://github.com/weechat/weechat/issues/318))
|
||||||
- core: add options weechat.look.word_chars_{highlight|input} ([#55](https://github.com/weechat/weechat/issues/55), [task #9459](https://savannah.nongnu.org/task/?9459))
|
- core: add options weechat.look.word_chars_{highlight|input} ([#55](https://github.com/weechat/weechat/issues/55), [task #9459](https://savannah.nongnu.org/task/?9459))
|
||||||
- core: remove WeeChat version from config files ([#407](https://github.com/weechat/weechat/issues/407))
|
- core: remove WeeChat version from config files ([#407](https://github.com/weechat/weechat/issues/407))
|
||||||
- core: display a warning on startup if the locale can not be set ([#373](https://github.com/weechat/weechat/issues/373))
|
- core: display a warning on startup if the locale cannot be set ([#373](https://github.com/weechat/weechat/issues/373))
|
||||||
- core: allow "*" as plugin name in command `/plugin reload` to reload all plugins with options
|
- core: allow "*" as plugin name in command `/plugin reload` to reload all plugins with options
|
||||||
- core: add option `-s` in command `/eval` to split expression before evaluating it (no more split by default) ([#324](https://github.com/weechat/weechat/issues/324))
|
- core: add option `-s` in command `/eval` to split expression before evaluating it (no more split by default) ([#324](https://github.com/weechat/weechat/issues/324))
|
||||||
- core: add priority in plugins to initialize them in order
|
- core: add priority in plugins to initialize them in order
|
||||||
@@ -2235,7 +2590,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- core: mute all buffers by default in command `/mute` (replace option -all by -core)
|
- core: mute all buffers by default in command `/mute` (replace option -all by -core)
|
||||||
- api: allow value "-1" for property "hotlist" in function buffer_set (to remove a buffer from hotlist)
|
- api: allow value "-1" for property "hotlist" in function buffer_set (to remove a buffer from hotlist)
|
||||||
- api: add option "buffer_flush" in function hook_process_hashtable
|
- api: add option "buffer_flush" in function hook_process_hashtable
|
||||||
- api: add support of case insensitive search and search by buffer full name in function buffer_search ([bug #34318](https://savannah.nongnu.org/bugs/?34318))
|
- api: add support of case-insensitive search and search by buffer full name in function buffer_search ([bug #34318](https://savannah.nongnu.org/bugs/?34318))
|
||||||
- api: add option "detached" in function hook_process_hashtable
|
- api: add option "detached" in function hook_process_hashtable
|
||||||
- api: add option "signal" in function hook_set to send a signal to the child process
|
- api: add option "signal" in function hook_set to send a signal to the child process
|
||||||
- api: add support of nested variables in function string_eval_expression and command `/eval` ([#35](https://github.com/weechat/weechat/issues/35))
|
- api: add support of nested variables in function string_eval_expression and command `/eval` ([#35](https://github.com/weechat/weechat/issues/35))
|
||||||
@@ -2451,7 +2806,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- irc: fix groups in channel nicklist when reconnecting to a server that supports more nick prefixes than the previously connected server
|
- irc: fix groups in channel nicklist when reconnecting to a server that supports more nick prefixes than the previously connected server
|
||||||
- irc: fix auto-switch to channel buffer when doing `/join channel` (without "#")
|
- irc: fix auto-switch to channel buffer when doing `/join channel` (without "#")
|
||||||
- logger: fix memory leaks in backlog
|
- logger: fix memory leaks in backlog
|
||||||
- logger: replace backslashs in name by logger replacement char under Cygwin ([bug #41207](https://savannah.nongnu.org/bugs/?41207))
|
- logger: replace backslashes in name by logger replacement char under Cygwin ([bug #41207](https://savannah.nongnu.org/bugs/?41207))
|
||||||
- lua: fix crash on calls to callbacks during load of script
|
- lua: fix crash on calls to callbacks during load of script
|
||||||
- python: fix load of scripts with Python ≥ 3.3
|
- python: fix load of scripts with Python ≥ 3.3
|
||||||
- relay: fix memory leak on unload of relay plugin
|
- relay: fix memory leak on unload of relay plugin
|
||||||
@@ -2925,7 +3280,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- irc: add options irc.look.highlight_{server|channel|pv} to customize or disable default nick highlight ([task #11128](https://savannah.nongnu.org/task/?11128))
|
- irc: add options irc.look.highlight_{server|channel|pv} to customize or disable default nick highlight ([task #11128](https://savannah.nongnu.org/task/?11128))
|
||||||
- irc: use redirection to get channel modes after update of modes on channel, display output of `/mode #channel`, allow `/mode` without argument (display modes of current channel or user modes on server buffer)
|
- irc: use redirection to get channel modes after update of modes on channel, display output of `/mode #channel`, allow `/mode` without argument (display modes of current channel or user modes on server buffer)
|
||||||
- irc: add optional server in info "irc_is_channel" (before channel name) ([bug #35124](https://savannah.nongnu.org/bugs/?35124)), add optional server in info_hashtable "irc_message_parse"
|
- irc: add optional server in info "irc_is_channel" (before channel name) ([bug #35124](https://savannah.nongnu.org/bugs/?35124)), add optional server in info_hashtable "irc_message_parse"
|
||||||
- irc: add case insensitive string comparison based on casemapping of server (rfc1459, strict-rfc1459, ascii) ([bug #34239](https://savannah.nongnu.org/bugs/?34239))
|
- irc: add case-insensitive string comparison based on casemapping of server (rfc1459, strict-rfc1459, ascii) ([bug #34239](https://savannah.nongnu.org/bugs/?34239))
|
||||||
- irc: add option irc.color.mirc_remap to remap mirc colors in messages to WeeChat colors
|
- irc: add option irc.color.mirc_remap to remap mirc colors in messages to WeeChat colors
|
||||||
- irc: allow URL "irc://" in command `/connect`
|
- irc: allow URL "irc://" in command `/connect`
|
||||||
- irc: use extended regex in commands `/ignore` and `/list`
|
- irc: use extended regex in commands `/ignore` and `/list`
|
||||||
@@ -2979,7 +3334,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
|
|
||||||
- core: add library "pthread" in CMake file for link on OpenBSD
|
- core: add library "pthread" in CMake file for link on OpenBSD
|
||||||
- core: add WEECHAT_HOME option in CMake and configure to setup default WeeChat home (default is "~/.weechat") ([task #11266](https://savannah.nongnu.org/task/?11266))
|
- core: add WEECHAT_HOME option in CMake and configure to setup default WeeChat home (default is "~/.weechat") ([task #11266](https://savannah.nongnu.org/task/?11266))
|
||||||
- core: fix compilation under OpenBSD 5.0 (lib utf8 not needed any more) ([bug #34727](https://savannah.nongnu.org/bugs/?34727))
|
- core: fix compilation under OpenBSD 5.0 (lib utf8 not needed anymore) ([bug #34727](https://savannah.nongnu.org/bugs/?34727))
|
||||||
- core: fix compilation error with "pid_t" on macOS ([bug #34639](https://savannah.nongnu.org/bugs/?34639))
|
- core: fix compilation error with "pid_t" on macOS ([bug #34639](https://savannah.nongnu.org/bugs/?34639))
|
||||||
|
|
||||||
## Version 0.3.6 (2011-10-22)
|
## Version 0.3.6 (2011-10-22)
|
||||||
@@ -3198,7 +3553,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- core: fix bug with message "day changed to", sometimes displayed several times wrongly
|
- core: fix bug with message "day changed to", sometimes displayed several times wrongly
|
||||||
- core: fix default value of bar items options ([bug #31422](https://savannah.nongnu.org/bugs/?31422))
|
- core: fix default value of bar items options ([bug #31422](https://savannah.nongnu.org/bugs/?31422))
|
||||||
- core: fix bug with buffer name in `/bar scroll` command
|
- core: fix bug with buffer name in `/bar scroll` command
|
||||||
- core: optimize incremental search in buffer: do not search any more when chars are added to a text not found ([bug #31167](https://savannah.nongnu.org/bugs/?31167))
|
- core: optimize incremental search in buffer: do not search anymore when chars are added to a text not found ([bug #31167](https://savannah.nongnu.org/bugs/?31167))
|
||||||
- core: fix memory leaks when removing item in hashtable and when setting highlight words in buffer
|
- core: fix memory leaks when removing item in hashtable and when setting highlight words in buffer
|
||||||
- core: use similar behavior for keys bound to local or global history ([bug #30759](https://savannah.nongnu.org/bugs/?30759))
|
- core: use similar behavior for keys bound to local or global history ([bug #30759](https://savannah.nongnu.org/bugs/?30759))
|
||||||
- alias: complete with alias value for second argument of command `/alias`
|
- alias: complete with alias value for second argument of command `/alias`
|
||||||
@@ -3337,6 +3692,8 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
|
|
||||||
## Version 0.3.1.1 (2010-01-31)
|
## Version 0.3.1.1 (2010-01-31)
|
||||||
|
|
||||||
|
_If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
||||||
|
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
|
|
||||||
- irc: fix crash with SSL connection if option ssl_cert is set ([bug #28752](https://savannah.nongnu.org/bugs/?28752))
|
- irc: fix crash with SSL connection if option ssl_cert is set ([bug #28752](https://savannah.nongnu.org/bugs/?28752))
|
||||||
@@ -3520,7 +3877,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- fix bug with flock when home is on NFS filesystem ([bug #20913](https://savannah.nongnu.org/bugs/?20913))
|
- fix bug with flock when home is on NFS filesystem ([bug #20913](https://savannah.nongnu.org/bugs/?20913))
|
||||||
- fix user modes in nicklist when ban and nick mode are received in the same MODE message ([bug #20870](https://savannah.nongnu.org/bugs/?20870))
|
- fix user modes in nicklist when ban and nick mode are received in the same MODE message ([bug #20870](https://savannah.nongnu.org/bugs/?20870))
|
||||||
- fix IRC message 333: silently ignore message if error when parsing it
|
- fix IRC message 333: silently ignore message if error when parsing it
|
||||||
- fix server option "command_delay": does not freeze WeeChat any more
|
- fix server option "command_delay": does not freeze WeeChat anymore
|
||||||
- fix bug with highlight and UTF-8 chars around word ([bug #20753](https://savannah.nongnu.org/bugs/?20753))
|
- fix bug with highlight and UTF-8 chars around word ([bug #20753](https://savannah.nongnu.org/bugs/?20753))
|
||||||
- fix nick prefix display on servers that doesn't support all prefixes ([bug #20025](https://savannah.nongnu.org/bugs/?20025))
|
- fix nick prefix display on servers that doesn't support all prefixes ([bug #20025](https://savannah.nongnu.org/bugs/?20025))
|
||||||
- fix terminal encoding detection when NLS is disabled ([bug #20646](https://savannah.nongnu.org/bugs/?20646))
|
- fix terminal encoding detection when NLS is disabled ([bug #20646](https://savannah.nongnu.org/bugs/?20646))
|
||||||
@@ -3775,7 +4132,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- add hostname/IP option for connection to server
|
- add hostname/IP option for connection to server
|
||||||
- add `/setp` command (set plugin options)
|
- add `/setp` command (set plugin options)
|
||||||
- aliases are executed before WeeChat/IRC commands, add `/builtin` command
|
- aliases are executed before WeeChat/IRC commands, add `/builtin` command
|
||||||
- add `/cycle` command, `/part` command does close buffer any more
|
- add `/cycle` command, `/part` command does close buffer anymore
|
||||||
|
|
||||||
### Internationalization
|
### Internationalization
|
||||||
|
|
||||||
@@ -3853,7 +4210,7 @@ _If you are upgrading: please see [UPGRADING.md](UPGRADING.md)._
|
|||||||
- fix `/mode` command output
|
- fix `/mode` command output
|
||||||
- fix completion problem in private with nicks
|
- fix completion problem in private with nicks
|
||||||
- script plugins now load scripts in WeeChat system share directory
|
- script plugins now load scripts in WeeChat system share directory
|
||||||
- `/msg` command does not open any buffer any more
|
- `/msg` command does not open any buffer anymore
|
||||||
- fix crash when using global history (when older entry is removed)
|
- fix crash when using global history (when older entry is removed)
|
||||||
- fix display bug with `/kill` command
|
- fix display bug with `/kill` command
|
||||||
- fix bug with `/upgrade` and servers buffer
|
- fix bug with `/upgrade` and servers buffer
|
||||||
|
|||||||
+94
-60
@@ -1,7 +1,9 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
# Copyright (C) 2007-2008 Julien Louis <ptitlouis@sysif.net>
|
# SPDX-FileCopyrightText: 2007-2008 Julien Louis <ptitlouis@sysif.net>
|
||||||
# Copyright (C) 2008-2009 Emmanuel Bouthenot <kolter@openics.org>
|
# SPDX-FileCopyrightText: 2008-2009 Emmanuel Bouthenot <kolter@openics.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
@@ -19,20 +21,21 @@
|
|||||||
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.5)
|
cmake_minimum_required(VERSION 3.18)
|
||||||
|
|
||||||
project(weechat C)
|
project(weechat C)
|
||||||
|
|
||||||
# CMake options
|
# CMake options
|
||||||
set(CMAKE_VERBOSE_MAKEFILE OFF)
|
set(CMAKE_VERBOSE_MAKEFILE OFF)
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
|
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
|
||||||
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
set(CMAKE_SKIP_RPATH ON)
|
set(CMAKE_SKIP_RPATH ON)
|
||||||
|
|
||||||
# compiler options
|
# compiler options
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsigned-char -fms-extensions -Wall -Wextra -Werror-implicit-function-declaration -Wformat -Werror=format-security")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsigned-char -fms-extensions -Wall -Wextra -Werror-implicit-function-declaration -Wformat -Werror=format-security")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsigned-char -fms-extensions -Wall -Wextra")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsigned-char -fms-extensions -Wall -Wextra")
|
||||||
if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||||
# extra options specific to gcc/g++
|
# extra options specific to GCC
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=2 -Wformat-truncation=2")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wformat-overflow=2 -Wformat-truncation=2")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat-overflow=2 -Wformat-truncation=2")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wformat-overflow=2 -Wformat-truncation=2")
|
||||||
endif()
|
endif()
|
||||||
@@ -50,16 +53,8 @@ else()
|
|||||||
set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# license
|
|
||||||
set(LICENSE "GPL3")
|
|
||||||
|
|
||||||
# add definitions for version and license
|
# add definitions for version and license
|
||||||
if(COMMAND cmake_policy)
|
add_definitions(-DWEECHAT_VERSION="${VERSION}" -DWEECHAT_LICENSE="GPL3")
|
||||||
cmake_policy(SET CMP0005 NEW)
|
|
||||||
add_definitions(-DWEECHAT_VERSION="${VERSION}" -DWEECHAT_LICENSE="${LICENSE}")
|
|
||||||
else()
|
|
||||||
add_definitions(-DWEECHAT_VERSION='"${VERSION}"' -DWEECHAT_LICENSE='"${LICENSE}"')
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# package string
|
# package string
|
||||||
set(PKG_STRING "${PROJECT_NAME} ${VERSION}")
|
set(PKG_STRING "${PROJECT_NAME} ${VERSION}")
|
||||||
@@ -129,13 +124,21 @@ option(ENABLE_MAN "Enable build of man page" OFF)
|
|||||||
option(ENABLE_DOC "Enable build of documentation" OFF)
|
option(ENABLE_DOC "Enable build of documentation" OFF)
|
||||||
option(ENABLE_DOC_INCOMPLETE "Enable incomplete doc" OFF)
|
option(ENABLE_DOC_INCOMPLETE "Enable incomplete doc" OFF)
|
||||||
option(ENABLE_TESTS "Enable tests" OFF)
|
option(ENABLE_TESTS "Enable tests" OFF)
|
||||||
|
option(ENABLE_FUZZ "Enable fuzz testing" OFF)
|
||||||
option(ENABLE_CODE_COVERAGE "Enable code coverage" OFF)
|
option(ENABLE_CODE_COVERAGE "Enable code coverage" OFF)
|
||||||
|
|
||||||
# code coverage
|
# code coverage
|
||||||
add_library(coverage_config INTERFACE)
|
add_library(coverage_config INTERFACE)
|
||||||
if(ENABLE_CODE_COVERAGE)
|
if(ENABLE_CODE_COVERAGE)
|
||||||
target_compile_options(coverage_config INTERFACE -O0 -g --coverage)
|
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||||
target_link_libraries(coverage_config INTERFACE --coverage)
|
# GCC
|
||||||
|
target_compile_options(coverage_config INTERFACE -O0 -g --coverage)
|
||||||
|
target_link_libraries(coverage_config INTERFACE --coverage)
|
||||||
|
elseif(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||||
|
# Clang
|
||||||
|
target_compile_options(coverage_config INTERFACE -g -fprofile-instr-generate -fcoverage-mapping)
|
||||||
|
target_link_libraries(coverage_config INTERFACE -fprofile-instr-generate)
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# headless mode is required for documentation
|
# headless mode is required for documentation
|
||||||
@@ -166,21 +169,22 @@ if(ENABLE_TESTS AND NOT ENABLE_HEADLESS)
|
|||||||
message(FATAL_ERROR "Headless mode is required for tests.")
|
message(FATAL_ERROR "Headless mode is required for tests.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Set this to override aspell's dictionaries directory
|
||||||
|
if(ASPELL_DICT_DIR)
|
||||||
|
add_definitions(-DASPELL_DICT_DIR="${ASPELL_DICT_DIR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# Set this to override the myspell dictionaries directory when using enchant
|
||||||
|
if(ENCHANT_MYSPELL_DICT_DIR)
|
||||||
|
add_definitions(-DENCHANT_MYSPELL_DICT_DIR="${ENCHANT_MYSPELL_DICT_DIR}")
|
||||||
|
endif()
|
||||||
|
|
||||||
# option WEECHAT_HOME
|
# option WEECHAT_HOME
|
||||||
set(WEECHAT_HOME "${WEECHAT_HOME}" CACHE
|
set(WEECHAT_HOME "${WEECHAT_HOME}" CACHE
|
||||||
STRING "Force a single WeeChat home directory for config, logs, scripts, etc."
|
STRING "Force a single WeeChat home directory for config, logs, scripts, etc."
|
||||||
FORCE)
|
FORCE)
|
||||||
mark_as_advanced(CLEAR WEECHAT_HOME)
|
mark_as_advanced(CLEAR WEECHAT_HOME)
|
||||||
|
|
||||||
if(COMMAND cmake_policy)
|
|
||||||
if(POLICY CMP0003)
|
|
||||||
cmake_policy(SET CMP0003 NEW)
|
|
||||||
endif()
|
|
||||||
if(POLICY CMP0017)
|
|
||||||
cmake_policy(SET CMP0017 NEW)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_definitions(-DHAVE_CONFIG_H)
|
add_definitions(-DHAVE_CONFIG_H)
|
||||||
|
|
||||||
include(FindPkgConfig)
|
include(FindPkgConfig)
|
||||||
@@ -188,6 +192,7 @@ include(FindPkgConfig)
|
|||||||
include(CheckIncludeFiles)
|
include(CheckIncludeFiles)
|
||||||
include(CheckFunctionExists)
|
include(CheckFunctionExists)
|
||||||
include(CheckSymbolExists)
|
include(CheckSymbolExists)
|
||||||
|
include(CheckLibraryExists)
|
||||||
|
|
||||||
check_include_files("langinfo.h" HAVE_LANGINFO_CODESET)
|
check_include_files("langinfo.h" HAVE_LANGINFO_CODESET)
|
||||||
check_include_files("sys/resource.h" HAVE_SYS_RESOURCE_H)
|
check_include_files("sys/resource.h" HAVE_SYS_RESOURCE_H)
|
||||||
@@ -198,90 +203,119 @@ check_symbol_exists("malloc_trim" "malloc.h" HAVE_MALLOC_TRIM)
|
|||||||
check_function_exists(mallinfo HAVE_MALLINFO)
|
check_function_exists(mallinfo HAVE_MALLINFO)
|
||||||
check_function_exists(mallinfo2 HAVE_MALLINFO2)
|
check_function_exists(mallinfo2 HAVE_MALLINFO2)
|
||||||
|
|
||||||
|
check_symbol_exists("htonll" "sys/types.h;netinet/in.h;inttypes.h" HAVE_HTONLL)
|
||||||
|
|
||||||
check_symbol_exists("eat_newline_glitch" "term.h" HAVE_EAT_NEWLINE_GLITCH)
|
check_symbol_exists("eat_newline_glitch" "term.h" HAVE_EAT_NEWLINE_GLITCH)
|
||||||
|
|
||||||
|
# Check if res_init requires libresolv
|
||||||
|
check_function_exists(res_init, LIBC_HAS_RES_INIT)
|
||||||
|
if(NOT LIBC_HAS_RES_INIT)
|
||||||
|
find_library(RESOLV_LIBRARY resolv)
|
||||||
|
if(RESOLV_LIBRARY)
|
||||||
|
check_library_exists("${RESOLV_LIBRARY}" res_init "" LIBRESOLV_HAS_RES_INIT)
|
||||||
|
if(LIBRESOLV_HAS_RES_INIT)
|
||||||
|
list(APPEND EXTRA_LIBS ${RESOLV_LIBRARY})
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# Check for Large File Support
|
# Check for Large File Support
|
||||||
if(ENABLE_LARGEFILE)
|
if(ENABLE_LARGEFILE)
|
||||||
add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_LARGE_FILES)
|
add_definitions(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D_LARGE_FILES)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# _XPG4_2 is needed for macros like CMSG_SPACE
|
||||||
|
# __EXTENSIONS__ is needed for constants like NI_MAXHOST and for struct timeval
|
||||||
|
if(CMAKE_HOST_SOLARIS)
|
||||||
|
add_definitions(-D_XPG4_2 -D__EXTENSIONS__)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Check for libgcrypt
|
# Check for libgcrypt
|
||||||
pkg_check_modules(LIBGCRYPT REQUIRED libgcrypt)
|
pkg_check_modules(LIBGCRYPT REQUIRED libgcrypt>=1.8.0)
|
||||||
add_definitions(-DHAVE_GCRYPT)
|
|
||||||
include_directories(${LIBGCRYPT_INCLUDE_DIRS})
|
include_directories(${LIBGCRYPT_INCLUDE_DIRS})
|
||||||
list(APPEND EXTRA_LIBS ${LIBGCRYPT_LDFLAGS})
|
list(APPEND EXTRA_LIBS ${LIBGCRYPT_LDFLAGS})
|
||||||
|
|
||||||
# Check for GnuTLS
|
# Check for GnuTLS
|
||||||
find_package(GnuTLS REQUIRED)
|
pkg_check_modules(GNUTLS REQUIRED gnutls>=3.6.3)
|
||||||
string(REGEX REPLACE "/[^/]*$" "" GNUTLS_LIBRARY_PATH "${GNUTLS_LIBRARY}")
|
include_directories(${GNUTLS_INCLUDE_DIRS})
|
||||||
include_directories(${GNUTLS_INCLUDE_PATH})
|
list(APPEND EXTRA_LIBS ${GNUTLS_LDFLAGS})
|
||||||
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -L${GNUTLS_LIBRARY_PATH}")
|
|
||||||
list(APPEND EXTRA_LIBS gnutls)
|
|
||||||
|
|
||||||
# Check for zlib
|
# Check for zlib
|
||||||
find_package(ZLIB REQUIRED)
|
find_package(ZLIB REQUIRED)
|
||||||
|
list(APPEND EXTRA_LIBS ${ZLIB_LIBRARY})
|
||||||
|
|
||||||
# Check for zstd
|
# Check for zstd
|
||||||
if(ENABLE_ZSTD)
|
if(ENABLE_ZSTD)
|
||||||
pkg_check_modules(LIBZSTD REQUIRED libzstd)
|
pkg_check_modules(LIBZSTD REQUIRED libzstd>=1.4.0)
|
||||||
|
include_directories(${LIBZSTD_INCLUDE_DIRS})
|
||||||
|
list(APPEND EXTRA_LIBS ${LIBZSTD_LDFLAGS})
|
||||||
add_definitions(-DHAVE_ZSTD)
|
add_definitions(-DHAVE_ZSTD)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Check for cJSON
|
# Check for cJSON
|
||||||
if(ENABLE_CJSON)
|
if(ENABLE_CJSON)
|
||||||
pkg_check_modules(LIBCJSON REQUIRED libcjson)
|
pkg_check_modules(LIBCJSON REQUIRED libcjson)
|
||||||
|
include_directories(${LIBCJSON_INCLUDE_DIRS})
|
||||||
add_definitions(-DHAVE_CJSON)
|
add_definitions(-DHAVE_CJSON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Check for iconv
|
# Check for iconv
|
||||||
find_package(Iconv)
|
find_package(Iconv)
|
||||||
if(ICONV_FOUND)
|
if(ICONV_FOUND)
|
||||||
|
if(ICONV_LIBRARY)
|
||||||
|
list(APPEND EXTRA_LIBS ${ICONV_LIBRARY})
|
||||||
|
endif()
|
||||||
add_definitions(-DHAVE_ICONV)
|
add_definitions(-DHAVE_ICONV)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Check for CURL
|
# Check for CURL
|
||||||
find_package(CURL REQUIRED)
|
# NOTE: keep version in sync with tools/check_curl_symbols.py
|
||||||
|
pkg_check_modules(LIBCURL REQUIRED libcurl>=7.68.0)
|
||||||
|
include_directories(${LIBCURL_INCLUDE_DIRS})
|
||||||
|
list(APPEND EXTRA_LIBS ${LIBCURL_LDFLAGS})
|
||||||
|
|
||||||
# weechat_gui_common MUST be the first lib in the list
|
list(APPEND EXTRA_LIBS ${CMAKE_DL_LIBS})
|
||||||
set(STATIC_LIBS weechat_gui_common)
|
|
||||||
|
|
||||||
find_library(DL_LIBRARY
|
|
||||||
NAMES dl
|
|
||||||
PATHS /lib /usr/lib /usr/libexec /usr/local/lib /usr/local/libexec
|
|
||||||
)
|
|
||||||
list(APPEND STATIC_LIBS weechat_plugins)
|
|
||||||
if(DL_LIBRARY)
|
|
||||||
string(REGEX REPLACE "/[^/]*$" "" DL_LIBRARY_PATH "${DL_LIBRARY}")
|
|
||||||
set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -L${DL_LIBRARY_PATH}")
|
|
||||||
list(APPEND EXTRA_LIBS dl)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_subdirectory(icons)
|
add_subdirectory(icons)
|
||||||
|
|
||||||
if(ENABLE_NLS)
|
if(ENABLE_NLS)
|
||||||
find_package(Gettext REQUIRED)
|
find_package(Gettext REQUIRED)
|
||||||
|
if(LIBINTL_LIBRARY)
|
||||||
|
list(APPEND EXTRA_LIBS ${LIBINTL_LIBRARY})
|
||||||
|
endif()
|
||||||
find_package(Intl REQUIRED)
|
find_package(Intl REQUIRED)
|
||||||
|
include_directories(${Intl_INCLUDE_DIRS})
|
||||||
list(APPEND EXTRA_LIBS "${Intl_LIBRARIES}")
|
list(APPEND EXTRA_LIBS "${Intl_LIBRARIES}")
|
||||||
add_subdirectory(po)
|
add_subdirectory(po)
|
||||||
else()
|
else()
|
||||||
add_custom_target(translations COMMAND true)
|
add_custom_target(translations COMMAND true)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||||
|
find_library(EXECINFO_LIB_PATH execinfo /usr/local/lib)
|
||||||
|
check_function_exists(backtrace HAVE_BACKTRACE)
|
||||||
|
list(APPEND EXTRA_LIBS "execinfo")
|
||||||
|
else()
|
||||||
|
check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Haiku")
|
||||||
|
list(APPEND EXTRA_LIBS "network")
|
||||||
|
else()
|
||||||
|
list(APPEND EXTRA_LIBS "pthread")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
|
||||||
|
list(APPEND EXTRA_LIBS "socket" "nsl")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
list(APPEND EXTRA_LIBS "m")
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
add_subdirectory(doc)
|
add_subdirectory(doc)
|
||||||
|
|
||||||
if(ENABLE_TESTS)
|
enable_testing()
|
||||||
find_package(CppUTest)
|
add_subdirectory(tests)
|
||||||
if(CPPUTEST_FOUND)
|
|
||||||
enable_testing()
|
|
||||||
add_subdirectory(tests)
|
|
||||||
else()
|
|
||||||
message(SEND_ERROR "CppUTest not found")
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
enable_testing()
|
|
||||||
add_test(NAME notests COMMAND true)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
configure_file(config.h.cmake config.h @ONLY)
|
configure_file(config.h.cmake config.h @ONLY)
|
||||||
|
|
||||||
|
|||||||
+7
-2
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2014-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
-->
|
||||||
|
|
||||||
# Contributing to WeeChat
|
# Contributing to WeeChat
|
||||||
|
|
||||||
## Reporting bugs
|
## Reporting bugs
|
||||||
@@ -13,8 +19,7 @@ First, some basic things:
|
|||||||
|
|
||||||
### Security reports
|
### Security reports
|
||||||
|
|
||||||
Please **DO NOT** file a GitHub issue for security related problems, but send an
|
Please **DO NOT** file a GitHub issue for security related problems; see [SECURITY.md](SECURITY.md) instead.
|
||||||
email to [security@weechat.org](mailto:security@weechat.org) instead.
|
|
||||||
|
|
||||||
### Required info
|
### Required info
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,232 @@
|
|||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 29 June 2007
|
||||||
|
|
||||||
|
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU General Public License is a free, copyleft license for software and other kinds of works.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
|
||||||
|
|
||||||
|
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
|
||||||
|
|
||||||
|
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
|
||||||
|
|
||||||
|
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
|
||||||
|
|
||||||
|
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
“This License” refers to version 3 of the GNU General Public License.
|
||||||
|
|
||||||
|
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
|
||||||
|
|
||||||
|
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
|
||||||
|
|
||||||
|
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
|
||||||
|
|
||||||
|
A “covered work” means either the unmodified Program or a work based on the Program.
|
||||||
|
|
||||||
|
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
|
||||||
|
|
||||||
|
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
|
||||||
|
|
||||||
|
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
|
||||||
|
|
||||||
|
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
|
||||||
|
|
||||||
|
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
|
||||||
|
|
||||||
|
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Use with the GNU Affero General Public License.
|
||||||
|
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
|
||||||
|
|
||||||
|
<program> Copyright (C) <year> <name of author>
|
||||||
|
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>.
|
||||||
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
-->
|
||||||
|
|
||||||
# WeeChat
|
# WeeChat
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
@@ -5,14 +11,13 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
[](https://hostux.social/@weechat)
|
[](https://hostux.social/@weechat)
|
||||||
[](https://diasp.eu/u/weechat)
|
|
||||||
[](https://x.com/WeeChatClient)
|
[](https://x.com/WeeChatClient)
|
||||||
[](https://blog.weechat.org/)
|
[](https://blog.weechat.org/)
|
||||||
[](https://www.slant.co/topics/1323/~best-irc-clients-for-linux)
|
|
||||||
[](https://weechat.org/donate/)
|
[](https://weechat.org/donate/)
|
||||||
|
|
||||||
[](https://github.com/weechat/weechat/actions)
|
[](https://github.com/weechat/weechat/actions)
|
||||||
[](https://codecov.io/gh/weechat/weechat)
|
[](https://codecov.io/gh/weechat/weechat)
|
||||||
|
[](https://api.reuse.software/info/github.com/weechat/weechat)
|
||||||
|
|
||||||
**WeeChat** (Wee Enhanced Environment for Chat) is a free chat client, fast and light, designed for many operating systems.\
|
**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.
|
It is highly customizable and extensible with scripts.
|
||||||
@@ -22,11 +27,11 @@ Homepage: [https://weechat.org/](https://weechat.org/)
|
|||||||
## Features
|
## Features
|
||||||
|
|
||||||
- **Modular chat client**: WeeChat has a lightweight core and optional [plugins](https://weechat.org/doc/weechat/user/#plugins). All plugins (including [IRC](https://weechat.org/doc/weechat/user/#irc)) are independent and can be unloaded.
|
- **Modular chat client**: WeeChat has a lightweight core and optional [plugins](https://weechat.org/doc/weechat/user/#plugins). All plugins (including [IRC](https://weechat.org/doc/weechat/user/#irc)) are independent and can be unloaded.
|
||||||
- **Multi-platform**: WeeChat runs on GNU/Linux, *BSD, GNU/Hurd, Haiku, macOS and Windows (Bash/Ubuntu and Cygwin).
|
- **Multi-platform**: WeeChat runs on GNU/Linux, *BSD, GNU/Hurd, Haiku, macOS and Windows (WSL and Cygwin).
|
||||||
- **Multi-protocols**: WeeChat is designed to support multiple protocols by plugins, like IRC.
|
- **Multi-protocol**: WeeChat is designed to support multiple protocols via plugins, like IRC.
|
||||||
- **Standards-compliant**: the IRC plugin is compliant with RFCs [1459](https://datatracker.ietf.org/doc/html/rfc1459), [2810](https://datatracker.ietf.org/doc/html/rfc2810), [2811](https://datatracker.ietf.org/doc/html/rfc2811), [2812](https://datatracker.ietf.org/doc/html/rfc2812), [2813](https://datatracker.ietf.org/doc/html/rfc2813) and [7194](https://datatracker.ietf.org/doc/html/rfc7194).
|
- **Standards-compliant**: the IRC plugin is compliant with RFCs [1459](https://datatracker.ietf.org/doc/html/rfc1459), [2810](https://datatracker.ietf.org/doc/html/rfc2810), [2811](https://datatracker.ietf.org/doc/html/rfc2811), [2812](https://datatracker.ietf.org/doc/html/rfc2812), [2813](https://datatracker.ietf.org/doc/html/rfc2813) and [7194](https://datatracker.ietf.org/doc/html/rfc7194).
|
||||||
- **Small, fast, and very light**: the core is and should stay as light and fast as possible.
|
- **Small, fast, and very light**: the core is and should stay as light and fast as possible.
|
||||||
- **Customizable and extensible**: there are a lot of options to customize WeeChat, and it is extensible with C plugins and [scripts](https://weechat.org/scripts/) ([Perl](https://weechat.org/scripts/language/perl/), [Python](https://weechat.org/scripts/language/python/), [Ruby](https://weechat.org/scripts/language/ruby), [Lua](https://weechat.org/scripts/language/lua/), [Tcl](https://weechat.org/scripts/language/tcl/), [Scheme](https://weechat.org/scripts/language/guile/), [JavaScript](https://weechat.org/scripts/language/javascript/) and [PHP](https://weechat.org/scripts/language/php/)).
|
- **Customizable and extensible**: there are a lot of options to customize WeeChat, and it is extensible with C plugins and [scripts](https://weechat.org/scripts/) ([Perl](https://weechat.org/scripts/language/perl/), [Python](https://weechat.org/scripts/language/python/), [Ruby](https://weechat.org/scripts/language/ruby/), [Lua](https://weechat.org/scripts/language/lua/), [Tcl](https://weechat.org/scripts/language/tcl/), [Scheme](https://weechat.org/scripts/language/guile/), [JavaScript](https://weechat.org/scripts/language/javascript/) and [PHP](https://weechat.org/scripts/language/php/)).
|
||||||
- **Fully documented**: there is comprehensive [documentation](https://weechat.org/doc/weechat/), which is [translated](https://weechat.org/doc/weechat/dev/#translations) into several languages.
|
- **Fully documented**: there is comprehensive [documentation](https://weechat.org/doc/weechat/), which is [translated](https://weechat.org/doc/weechat/dev/#translations) into several languages.
|
||||||
- **Developed from scratch**: WeeChat was built from scratch and is not based on any other client.
|
- **Developed from scratch**: WeeChat was built from scratch and is not based on any other client.
|
||||||
- **Free software**: WeeChat is released under [GPLv3](https://www.gnu.org/licenses/gpl-3.0.html).
|
- **Free software**: WeeChat is released under [GPLv3](https://www.gnu.org/licenses/gpl-3.0.html).
|
||||||
@@ -44,11 +49,12 @@ For detailed instructions, please check the [WeeChat user's guide](https://weech
|
|||||||
|
|
||||||
## Semantic versioning
|
## Semantic versioning
|
||||||
|
|
||||||
WeeChat is following a "practical" semantic versioning, see file [CONTRIBUTING.md](CONTRIBUTING.md#semantic-versioning).
|
WeeChat follows "practical" semantic versioning; see [CONTRIBUTING.md](CONTRIBUTING.md#semantic-versioning).
|
||||||
|
|
||||||
## Copyright
|
## Copyright
|
||||||
|
|
||||||
Copyright © 2003-2024 [Sébastien Helleu](https://github.com/flashcode)
|
<!-- REUSE-IgnoreStart -->
|
||||||
|
Copyright © 2003-2026 [Sébastien Helleu](https://github.com/flashcode)
|
||||||
|
|
||||||
This file is part of WeeChat, the extensible chat client.
|
This file is part of WeeChat, the extensible chat client.
|
||||||
|
|
||||||
@@ -64,3 +70,4 @@ GNU General Public License for more details.
|
|||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
<!-- REUSE-IgnoreEnd -->
|
||||||
|
|||||||
+29
@@ -0,0 +1,29 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2025-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
|
version = 1
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = [
|
||||||
|
"debian-devel/**",
|
||||||
|
"debian-stable/**",
|
||||||
|
"icons/**/*.png",
|
||||||
|
"icons/**/*.svg",
|
||||||
|
"src/plugins/php/weechat-php_arginfo.h",
|
||||||
|
"src/plugins/php/weechat-php_legacy_arginfo.h",
|
||||||
|
"tools/debian/patches/**",
|
||||||
|
"weechat.desktop",
|
||||||
|
"weechat.pc.in",
|
||||||
|
]
|
||||||
|
precedence = "override"
|
||||||
|
SPDX-FileCopyrightText = "2003-2026 Sébastien Helleu <flashcode@flashtux.org>"
|
||||||
|
SPDX-License-Identifier = "GPL-3.0-or-later"
|
||||||
|
|
||||||
|
[[annotations]]
|
||||||
|
path = [
|
||||||
|
".poexam/*.dic",
|
||||||
|
]
|
||||||
|
precedence = "override"
|
||||||
|
SPDX-FileCopyrightText = "2026 Sébastien Helleu <flashcode@flashtux.org>"
|
||||||
|
SPDX-License-Identifier = "GPL-3.0-or-later"
|
||||||
+26
@@ -0,0 +1,26 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
-->
|
||||||
|
|
||||||
|
# Security Policy
|
||||||
|
|
||||||
|
## Supported versions
|
||||||
|
|
||||||
|
Only the latest stable version of WeeChat is supported.
|
||||||
|
|
||||||
|
| Version | Supported | Notes |
|
||||||
|
| -------------- | ------------------ | --------------------------------------------------- |
|
||||||
|
| Latest stable | :white_check_mark: | Fully supported. |
|
||||||
|
| Older releases | :x: | Not supported. Contact us in case of specific need. |
|
||||||
|
|
||||||
|
However, we may help to backport fixes on older versions, especially when they are used in released distributions with no way to upgrade to the latest stable release (please contact us).
|
||||||
|
|
||||||
|
## Reporting a vulnerability
|
||||||
|
|
||||||
|
Please report security issues using <https://github.com/weechat/weechat/security/advisories/new>.
|
||||||
|
|
||||||
|
Alternatively, if you are not able to use this form, you can send an email to [security@weechat.org](mailto:security@weechat.org) instead.
|
||||||
|
|
||||||
|
We will investigate all legitimate reports and do our best to quickly fix the problem.
|
||||||
+139
-43
@@ -1,3 +1,9 @@
|
|||||||
|
<!--
|
||||||
|
SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
-->
|
||||||
|
|
||||||
# WeeChat Upgrade guidelines
|
# WeeChat Upgrade guidelines
|
||||||
|
|
||||||
These upgrade guidelines only contain instructions for version upgrades which require manual actions.\
|
These upgrade guidelines only contain instructions for version upgrades which require manual actions.\
|
||||||
@@ -7,6 +13,96 @@ When upgrading from version X to Y, please read and apply all instructions from
|
|||||||
|
|
||||||
For a list of all changes in each version, please see [CHANGELOG.md](CHANGELOG.md).
|
For a list of all changes in each version, please see [CHANGELOG.md](CHANGELOG.md).
|
||||||
|
|
||||||
|
## Version 4.10.0
|
||||||
|
|
||||||
|
### Command on mouse click in fset buffer
|
||||||
|
|
||||||
|
The command executed when clicking in the fset buffer has been updated to prevent
|
||||||
|
errors on the core buffer when the click is done below the last option.
|
||||||
|
|
||||||
|
To reset the key and use the new default command:
|
||||||
|
|
||||||
|
```text
|
||||||
|
/reset weechat.key_mouse.@chat(fset.fset):button1
|
||||||
|
```
|
||||||
|
|
||||||
|
## Version 4.8.0
|
||||||
|
|
||||||
|
### IRC temporary servers
|
||||||
|
|
||||||
|
The IRC temporary server feature has been removed.
|
||||||
|
|
||||||
|
When upgrading from an old version with `/upgrade`, any temporary server is
|
||||||
|
converted to a standard server, and thus is saved in configuration file `irc.conf`.
|
||||||
|
|
||||||
|
Servers can easily be removed with `/server del <name>`.
|
||||||
|
|
||||||
|
### IRC SASL EXTERNAL
|
||||||
|
|
||||||
|
When server option `sasl_mechanism` is set to `external`, WeeChat now sends the
|
||||||
|
username defined in option `sasl_username` to the IRC server
|
||||||
|
(see issue [#2270](https://github.com/weechat/weechat/issues/2270)).
|
||||||
|
|
||||||
|
If you use the EXTERNAL mechanism and the username is set, you could either:
|
||||||
|
|
||||||
|
- reset `sasl_username` to an empty string, if the username is **not** needed on this server:
|
||||||
|
`/reset irc.server.xxx.sasl_username`
|
||||||
|
- set `sasl_username` to your actual username, if the username **is** required on this server:
|
||||||
|
`/set irc.server.xxx.sasl_username "user"`
|
||||||
|
|
||||||
|
### New time format in log files
|
||||||
|
|
||||||
|
The time format used in log files now uses UTC and precision of microsecond
|
||||||
|
by default: option `logger.file.time_format` has new default value: `%@%F %T.%fZ`.
|
||||||
|
|
||||||
|
Only the default value for the option has changed, so when upgrading from
|
||||||
|
an old version, you keep your old format, even if it was the default one used
|
||||||
|
in previous versions.
|
||||||
|
|
||||||
|
To use the new default value, you can reset the option:
|
||||||
|
|
||||||
|
```text
|
||||||
|
/reset logger.file.time_format
|
||||||
|
```
|
||||||
|
|
||||||
|
## Version 4.7.0
|
||||||
|
|
||||||
|
### API functions utf8_next_char and utf8_char_size
|
||||||
|
|
||||||
|
The function [utf8_next_char](https://weechat.org/doc/weechat/plugin/#_utf8_next_char)
|
||||||
|
has been fixed and now returns NULL when an empty string is received (instead
|
||||||
|
of the next char, which is after the end of string).
|
||||||
|
|
||||||
|
The function [utf8_char_size](https://weechat.org/doc/weechat/plugin/#_utf8_char_size)
|
||||||
|
has been fixed and now returns 0 when an empty string is received (instead of 1).
|
||||||
|
|
||||||
|
### API function util_version_number
|
||||||
|
|
||||||
|
The function [util_version_number](https://weechat.org/doc/weechat/plugin/#_util_version_number)
|
||||||
|
has been fixed and now returns an "unsigned long" instead of "int", so that any
|
||||||
|
version up to "255.255.255.255" (0xFFFFFFFF) can be returned.
|
||||||
|
|
||||||
|
## Version 4.6.3
|
||||||
|
|
||||||
|
### API function util_version_number
|
||||||
|
|
||||||
|
An integer overflow has been fixed in the function
|
||||||
|
[util_version_number](https://weechat.org/doc/weechat/plugin/#_util_version_number)
|
||||||
|
which now returns a version up to "127.255.255.255" (0x7FFFFFFF).
|
||||||
|
|
||||||
|
## Version 4.6.0
|
||||||
|
|
||||||
|
### Relay remote commands
|
||||||
|
|
||||||
|
Commands on remote buffers can now be toggled: execution on remote WeeChat or
|
||||||
|
locally, with a new default key: `Alt`+`Ctrl`+`l` (L).
|
||||||
|
|
||||||
|
You can add this key with this command:
|
||||||
|
|
||||||
|
```text
|
||||||
|
/key missing
|
||||||
|
```
|
||||||
|
|
||||||
## Version 4.3.1
|
## Version 4.3.1
|
||||||
|
|
||||||
### Detection of libgcrypt
|
### Detection of libgcrypt
|
||||||
@@ -142,13 +238,13 @@ You can add this key with this command:
|
|||||||
Custom bar items must now have a different name than default bar items
|
Custom bar items must now have a different name than default bar items
|
||||||
(for example the custom bar item name `time` is now forbidden).\
|
(for example the custom bar item name `time` is now forbidden).\
|
||||||
If you have such names in your config, WeeChat will now fail to load them
|
If you have such names in your config, WeeChat will now fail to load them
|
||||||
(this should not happen anyway, since such bar items can not be properly used
|
(this should not happen anyway, since such bar items cannot be properly used
|
||||||
or can cause a crash of WeeChat).
|
or can cause a crash of WeeChat).
|
||||||
|
|
||||||
### Nick color infos
|
### Nick color infos
|
||||||
|
|
||||||
The infos irc_nick_color and irc_nick_color_name are deprecated again, and the
|
The infos irc_nick_color and irc_nick_color_name are deprecated again, and the
|
||||||
algorithm to compute IRC nick colors has been reverted to case sensitive.\
|
algorithm to compute IRC nick colors has been reverted to case-sensitive.\
|
||||||
The server name has been removed from arguments.
|
The server name has been removed from arguments.
|
||||||
|
|
||||||
## Version 4.1.1
|
## Version 4.1.1
|
||||||
@@ -158,7 +254,7 @@ The server name has been removed from arguments.
|
|||||||
Custom bar items must now have a different name than default bar items
|
Custom bar items must now have a different name than default bar items
|
||||||
(for example the custom bar item name `time` is now forbidden).\
|
(for example the custom bar item name `time` is now forbidden).\
|
||||||
If you have such names in your config, WeeChat will now fail to load them
|
If you have such names in your config, WeeChat will now fail to load them
|
||||||
(this should not happen anyway, since such bar items can not be properly used
|
(this should not happen anyway, since such bar items cannot be properly used
|
||||||
or can cause a crash of WeeChat).
|
or can cause a crash of WeeChat).
|
||||||
|
|
||||||
## Version 4.1.0
|
## Version 4.1.0
|
||||||
@@ -219,8 +315,8 @@ version 1.5 are now used again, with a change in parameter: the server is now
|
|||||||
optional before the nick: "server,nick".\
|
optional before the nick: "server,nick".\
|
||||||
The nick is first converted to lower case, following the value of CASEMAPPING
|
The nick is first converted to lower case, following the value of CASEMAPPING
|
||||||
on the server, then hashed to compute the color.\
|
on the server, then hashed to compute the color.\
|
||||||
That means the color for a nick is now case insensitive (in the way IRC servers
|
That means the color for a nick is now case-insensitive (in the way IRC servers
|
||||||
are case insensitive, so with a limited range of chars only).
|
are case-insensitive, so with a limited range of chars only).
|
||||||
|
|
||||||
If a script was using this info with a comma in nickname (which should not happen
|
If a script was using this info with a comma in nickname (which should not happen
|
||||||
anyway), this is now interpreted as the server name, and the script must be
|
anyway), this is now interpreted as the server name, and the script must be
|
||||||
@@ -272,7 +368,7 @@ Custom bar items must now have a different name than default bar items
|
|||||||
(for example the custom bar item name `time` is now forbidden).
|
(for example the custom bar item name `time` is now forbidden).
|
||||||
|
|
||||||
If you have such names in your config, WeeChat will now fail to load them
|
If you have such names in your config, WeeChat will now fail to load them
|
||||||
(this should not happen anyway, since such bar items can not be properly used
|
(this should not happen anyway, since such bar items cannot be properly used
|
||||||
and can cause a crash of WeeChat).
|
and can cause a crash of WeeChat).
|
||||||
|
|
||||||
## Version 4.0.1
|
## Version 4.0.1
|
||||||
@@ -281,8 +377,8 @@ and can cause a crash of WeeChat).
|
|||||||
|
|
||||||
The functions [config_set_plugin](https://weechat.org/doc/weechat/plugin/#_config_set_plugin)
|
The functions [config_set_plugin](https://weechat.org/doc/weechat/plugin/#_config_set_plugin)
|
||||||
and [config_set_desc_plugin](https://weechat.org/doc/weechat/plugin/#_config_set_desc_plugin)
|
and [config_set_desc_plugin](https://weechat.org/doc/weechat/plugin/#_config_set_desc_plugin)
|
||||||
are not converting any more the option name to lower case because since version 4.0.0,
|
are not converting anymore the option name to lower case because since version 4.0.0,
|
||||||
the name of options is case sensitive.
|
the name of options is case-sensitive.
|
||||||
|
|
||||||
### Grab raw key and command
|
### Grab raw key and command
|
||||||
|
|
||||||
@@ -332,7 +428,7 @@ automatically upgraded to a new version:
|
|||||||
- weechat.conf: new key names
|
- weechat.conf: new key names
|
||||||
(see <<v4.0.0_key_bindings_improvements,Key bindings improvements>>)
|
(see <<v4.0.0_key_bindings_improvements,Key bindings improvements>>)
|
||||||
- alias.conf: aliases converted to lower case
|
- alias.conf: aliases converted to lower case
|
||||||
(see <<v4.0.0_case_sensitive_identifiers,Case sensitive identifiers>>)
|
(see <<v4.0.0_case_sensitive_identifiers,Case-sensitive identifiers>>)
|
||||||
- irc.conf: options `ssl*` renamed to `tls*`
|
- irc.conf: options `ssl*` renamed to `tls*`
|
||||||
(see <<v4.0.0_tls,TLS options and connections>>)
|
(see <<v4.0.0_tls,TLS options and connections>>)
|
||||||
- relay.conf: options and protocol `ssl*` renamed to `tls*`
|
- relay.conf: options and protocol `ssl*` renamed to `tls*`
|
||||||
@@ -342,8 +438,8 @@ automatically upgraded to a new version:
|
|||||||
> Because of this new format, you must **NOT** load the new configuration
|
> Because of this new format, you must **NOT** load the new configuration
|
||||||
files in any older WeeChat version < 4.0.0 once you have run any version ≥ 4.0.0
|
files in any older WeeChat version < 4.0.0 once you have run any version ≥ 4.0.0
|
||||||
at least one time.\
|
at least one time.\
|
||||||
For example the new key names make the input completely broken (you can not
|
For example the new key names make the input completely broken (you cannot
|
||||||
enter most chars in input any more and Enter key does not work).
|
enter most chars in input anymore and Enter key does not work).
|
||||||
|
|
||||||
### Key bindings improvements
|
### Key bindings improvements
|
||||||
|
|
||||||
@@ -368,20 +464,20 @@ for more information.
|
|||||||
|
|
||||||
Aliases are now used for keys, like `f1`, `home`, `return`, etc.\
|
Aliases are now used for keys, like `f1`, `home`, `return`, etc.\
|
||||||
In addition, a comma is now required between different keys, for example `ctrl-cb`
|
In addition, a comma is now required between different keys, for example `ctrl-cb`
|
||||||
is not valid any more and must be replaced by `ctrl-c,b`.
|
is not valid anymore and must be replaced by `ctrl-c,b`.
|
||||||
|
|
||||||
The keys in weechat.conf are automatically converted from legacy format on first
|
The keys in weechat.conf are automatically converted from legacy format on first
|
||||||
run or upgrade with a legacy configuration file.
|
run or upgrade with a legacy configuration file.
|
||||||
|
|
||||||
For keys bound in external plugins or scripts, WeeChat tries to convert them
|
For keys bound in external plugins or scripts, WeeChat tries to convert them
|
||||||
on-the-fly to stay compatible, but this can not work in all cases (this is a
|
on-the-fly to stay compatible, but this cannot work in all cases (this is a
|
||||||
breaking change).
|
breaking change).
|
||||||
|
|
||||||
The following fixes are done on keys when they are defined:
|
The following fixes are done on keys when they are defined:
|
||||||
|
|
||||||
- transform upper case ctrl keys to lower case
|
- transform upper case ctrl keys to lower case
|
||||||
- replace space char by `space`
|
- replace space char by `space`
|
||||||
- replace `meta2-` by `meta-[` (modifier `meta2-` doesn't exist any more)
|
- replace `meta2-` by `meta-[` (modifier `meta2-` doesn't exist anymore)
|
||||||
- mouse modifiers are now in this order: `alt-` then `ctrl-`.
|
- mouse modifiers are now in this order: `alt-` then `ctrl-`.
|
||||||
|
|
||||||
A warning is displayed when a raw key or invalid key is added.\
|
A warning is displayed when a raw key or invalid key is added.\
|
||||||
@@ -427,9 +523,9 @@ New key binding (context "default"): ctrl-q => /print test
|
|||||||
With older releases, upper case was mandatory and lower case letter for control
|
With older releases, upper case was mandatory and lower case letter for control
|
||||||
keys were not working at all.
|
keys were not working at all.
|
||||||
|
|
||||||
### Case sensitive identifiers
|
### Case-sensitive identifiers
|
||||||
|
|
||||||
Many identifiers are made case sensitive, including among others:
|
Many identifiers are made case-sensitive, including among others:
|
||||||
|
|
||||||
- configuration files, sections, options
|
- configuration files, sections, options
|
||||||
- commands, aliases
|
- commands, aliases
|
||||||
@@ -441,7 +537,7 @@ Many identifiers are made case sensitive, including among others:
|
|||||||
- scripts
|
- scripts
|
||||||
- triggers.
|
- triggers.
|
||||||
|
|
||||||
See [Case sensitive identifiers specification](https://specs.weechat.org/specs/2023-001-case-sensitive-identifiers.html)
|
See [Case-sensitive identifiers specification](https://specs.weechat.org/specs/2023-001-case-sensitive-identifiers.html)
|
||||||
for more information.
|
for more information.
|
||||||
|
|
||||||
Accordingly, default aliases are now in lower case.\
|
Accordingly, default aliases are now in lower case.\
|
||||||
@@ -542,7 +638,7 @@ WeeChat must now be built with CMake.
|
|||||||
|
|
||||||
The auto-generated files for documentation are now built with `weechat-headless`,
|
The auto-generated files for documentation are now built with `weechat-headless`,
|
||||||
after compilation of WeeChat and the plugins (the files are not in repository
|
after compilation of WeeChat and the plugins (the files are not in repository
|
||||||
any more).\
|
anymore).\
|
||||||
This implies all plugins must be compiled and loaded in order to have complete docs
|
This implies all plugins must be compiled and loaded in order to have complete docs
|
||||||
(User's guide and Plugin API reference).
|
(User's guide and Plugin API reference).
|
||||||
|
|
||||||
@@ -561,7 +657,7 @@ cmake .. -DENABLE_PHP=OFF -DENABLE_DOC=ON -DENABLE_DOC_INCOMPLETE=ON
|
|||||||
#### Tarballs
|
#### Tarballs
|
||||||
|
|
||||||
The command `make dist` now builds only `.gz` and `.xz` compressed tarballs.\
|
The command `make dist` now builds only `.gz` and `.xz` compressed tarballs.\
|
||||||
Formats `.bz2` and `.zst` are not built any more.
|
Formats `.bz2` and `.zst` are not built anymore.
|
||||||
|
|
||||||
#### RPM packaging
|
#### RPM packaging
|
||||||
|
|
||||||
@@ -641,7 +737,7 @@ compared UTF-8 char in string2 from the last compared UTF-8 char in string1:
|
|||||||
|
|
||||||
In addition, the case conversion has been extended, now in addition to range
|
In addition, the case conversion has been extended, now in addition to range
|
||||||
A-Z, all chars that have a lower case version are handled.\
|
A-Z, all chars that have a lower case version are handled.\
|
||||||
That means for example the case insensitive comparison of "é" and "É" is 0
|
That means for example the case-insensitive comparison of "é" and "É" is 0
|
||||||
(chars are considered equal).
|
(chars are considered equal).
|
||||||
|
|
||||||
Example with WeeChat 3.8:
|
Example with WeeChat 3.8:
|
||||||
@@ -693,7 +789,7 @@ _WeeChat User's guide_.
|
|||||||
### Remove Python 2 support
|
### Remove Python 2 support
|
||||||
|
|
||||||
The CMake option `ENABLE_PYTHON2` and autotools option `--enable-python2`
|
The CMake option `ENABLE_PYTHON2` and autotools option `--enable-python2`
|
||||||
have been removed, and WeeChat can not be compiled with Python 2.x any more.
|
have been removed, and WeeChat cannot be compiled with Python 2.x anymore.
|
||||||
|
|
||||||
### Callbacks of function config_new_option
|
### Callbacks of function config_new_option
|
||||||
|
|
||||||
@@ -1322,9 +1418,9 @@ Motivations:
|
|||||||
- GnuTLS library should be available everywhere
|
- GnuTLS library should be available everywhere
|
||||||
- reduce complexity of code and tests of builds.
|
- reduce complexity of code and tests of builds.
|
||||||
|
|
||||||
### The trigger "cmd_pass" does not hide any more values of /set command
|
### The trigger "cmd_pass" does not hide anymore values of /set command
|
||||||
|
|
||||||
The default trigger "cmd_pass" does not hide any more values of options in `/set`
|
The default trigger "cmd_pass" does not hide anymore values of options in `/set`
|
||||||
command which contain "password" in the name.
|
command which contain "password" in the name.
|
||||||
|
|
||||||
The reason is that it was masking values of options that contains the word
|
The reason is that it was masking values of options that contains the word
|
||||||
@@ -1428,7 +1524,7 @@ The command line option `-a` (or `--no-connect`), which can also be used in the
|
|||||||
`/plugin` command, is now used to set a new info called `auto_connect`
|
`/plugin` command, is now used to set a new info called `auto_connect`
|
||||||
(see the function [info_get](https://weechat.org/doc/weechat/plugin/#_info_get) in the Plugin API reference).
|
(see the function [info_get](https://weechat.org/doc/weechat/plugin/#_info_get) in the Plugin API reference).
|
||||||
|
|
||||||
Therefore, the option is not sent any more to the function `weechat_plugin_init`
|
Therefore, the option is not sent anymore to the function `weechat_plugin_init`
|
||||||
of plugins.\
|
of plugins.\
|
||||||
The plugins using this option must now get the info `auto_connect` and check
|
The plugins using this option must now get the info `auto_connect` and check
|
||||||
if the value is "1" (a string with just `1`).
|
if the value is "1" (a string with just `1`).
|
||||||
@@ -1461,7 +1557,7 @@ now displayed on any missing dependency, if the optional feature was enabled
|
|||||||
(most features are automatically enabled, except documentation, man page and
|
(most features are automatically enabled, except documentation, man page and
|
||||||
tests).
|
tests).
|
||||||
|
|
||||||
Any error on a missing dependency is fatal, so WeeChat can not be compiled.
|
Any error on a missing dependency is fatal, so WeeChat cannot be compiled.
|
||||||
This is a new behavior compared to old versions, where any missing dependency
|
This is a new behavior compared to old versions, where any missing dependency
|
||||||
was silently ignored and the compilation was possible anyway.
|
was silently ignored and the compilation was possible anyway.
|
||||||
|
|
||||||
@@ -1505,7 +1601,7 @@ For more information, see the WeeChat scripting guide: chapter about strings
|
|||||||
received in callbacks (see also issue [#1389](https://github.com/weechat/weechat/issues/1389)).
|
received in callbacks (see also issue [#1389](https://github.com/weechat/weechat/issues/1389)).
|
||||||
|
|
||||||
Note: there are no changes for Python 2 (which is now deprecated and should not
|
Note: there are no changes for Python 2 (which is now deprecated and should not
|
||||||
be used any more), the strings sent to callbacks are always of type `str`, and
|
be used anymore), the strings sent to callbacks are always of type `str`, and
|
||||||
may contain invalid UTF-8 data, in the cases mentioned in the WeeChat scripting
|
may contain invalid UTF-8 data, in the cases mentioned in the WeeChat scripting
|
||||||
guide.
|
guide.
|
||||||
|
|
||||||
@@ -1645,7 +1741,7 @@ This affects only C code, no changes are required in scripts.
|
|||||||
|
|
||||||
### Nick completer
|
### Nick completer
|
||||||
|
|
||||||
A space is not added automatically any more when you complete a nick at the
|
A space is not added automatically anymore when you complete a nick at the
|
||||||
beginning of command line.\
|
beginning of command line.\
|
||||||
Purpose of this change is to be more flexible: you can choose whether the space
|
Purpose of this change is to be more flexible: you can choose whether the space
|
||||||
is added or not (it was always added in previous releases).
|
is added or not (it was always added in previous releases).
|
||||||
@@ -1856,7 +1952,7 @@ sudo apt-get install weechat-devel-python weechat-devel-perl
|
|||||||
|
|
||||||
### Evaluation in buflist
|
### Evaluation in buflist
|
||||||
|
|
||||||
The evaluation of expressions in buflist options is not recursive any more,
|
The evaluation of expressions in buflist options is not recursive anymore,
|
||||||
to prevent too many evaluations, for example in buffer variables
|
to prevent too many evaluations, for example in buffer variables
|
||||||
(see issue [#1060](https://github.com/weechat/weechat/issues/1060) for more information).\
|
(see issue [#1060](https://github.com/weechat/weechat/issues/1060) for more information).\
|
||||||
If you are using custom variables/options containing evaluated expressions,
|
If you are using custom variables/options containing evaluated expressions,
|
||||||
@@ -2190,7 +2286,7 @@ You can restore the default "beep" trigger with the following command:
|
|||||||
The API function [command](https://weechat.org/doc/weechat/plugin/#_command)
|
The API function [command](https://weechat.org/doc/weechat/plugin/#_command)
|
||||||
now sends the value returned return by command callback.
|
now sends the value returned return by command callback.
|
||||||
|
|
||||||
WeeChat does not display any more an error when a command returns
|
WeeChat does not display anymore an error when a command returns
|
||||||
`WEECHAT_RC_ERROR`. Consequently, all plugins/scripts should display an
|
`WEECHAT_RC_ERROR`. Consequently, all plugins/scripts should display an
|
||||||
explicit error message before returning `WEECHAT_RC_ERROR`.
|
explicit error message before returning `WEECHAT_RC_ERROR`.
|
||||||
|
|
||||||
@@ -2254,7 +2350,7 @@ instead of milliseconds:
|
|||||||
|
|
||||||
### Channel type not added by default on /join
|
### Channel type not added by default on /join
|
||||||
|
|
||||||
The channel type is not any more automatically added to a channel name on join
|
The channel type is not anymore automatically added to a channel name on join
|
||||||
(for example `/join weechat` will not send `/join #weechat`).
|
(for example `/join weechat` will not send `/join #weechat`).
|
||||||
|
|
||||||
If you are lazy and want to automatically add the channel type, you can turn on
|
If you are lazy and want to automatically add the channel type, you can turn on
|
||||||
@@ -2287,7 +2383,7 @@ You can rebind the key `Alt`+`j`, `Alt`+`l` (`L`):
|
|||||||
```
|
```
|
||||||
|
|
||||||
Note: the command `/input jump_last_buffer` still works for compatibility reasons,
|
Note: the command `/input jump_last_buffer` still works for compatibility reasons,
|
||||||
but it should not be used any more.
|
but it should not be used anymore.
|
||||||
|
|
||||||
Similarly, a new key has been added to jump to first buffer: `Alt`+`j`, `Alt`+`f`.
|
Similarly, a new key has been added to jump to first buffer: `Alt`+`j`, `Alt`+`f`.
|
||||||
You can add it with the following command:
|
You can add it with the following command:
|
||||||
@@ -2355,8 +2451,8 @@ if int(highlight):
|
|||||||
### Colors in messages
|
### Colors in messages
|
||||||
|
|
||||||
The color code for "reverse video" in IRC message has been fixed: now WeeChat
|
The color code for "reverse video" in IRC message has been fixed: now WeeChat
|
||||||
uses 0x16 like other clients (and not 0x12 any more).\
|
uses 0x16 like other clients (and not 0x12 anymore).\
|
||||||
The code 0x12 is not decoded any more, so if it is received (for example from
|
The code 0x12 is not decoded anymore, so if it is received (for example from
|
||||||
an old WeeChat version), it is not displayed as reverse video.
|
an old WeeChat version), it is not displayed as reverse video.
|
||||||
|
|
||||||
The color code for "underlined text" in input line has been fixed: now WeeChat
|
The color code for "underlined text" in input line has been fixed: now WeeChat
|
||||||
@@ -2407,7 +2503,7 @@ The default value for status bar items becomes:
|
|||||||
|
|
||||||
### IRC messages on channel join
|
### IRC messages on channel join
|
||||||
|
|
||||||
The names are not displayed any more by default on channel join (they are in
|
The names are not displayed anymore by default on channel join (they are in
|
||||||
nicklist anyway).
|
nicklist anyway).
|
||||||
|
|
||||||
Names can be displayed with the value "353" in option
|
Names can be displayed with the value "353" in option
|
||||||
@@ -2435,7 +2531,7 @@ You should check the value of both options and fix them if needed.
|
|||||||
### Day change message
|
### Day change message
|
||||||
|
|
||||||
The day change message is now dynamically displayed, and therefore is not stored
|
The day change message is now dynamically displayed, and therefore is not stored
|
||||||
as a line in buffer any more.
|
as a line in buffer anymore.
|
||||||
|
|
||||||
Option weechat.look.day_change_time_format has been split into two options
|
Option weechat.look.day_change_time_format has been split into two options
|
||||||
weechat.look.day_change_message_{1date|2dates} (color codes are allowed in
|
weechat.look.day_change_message_{1date|2dates} (color codes are allowed in
|
||||||
@@ -2525,7 +2621,7 @@ creating this link on make install).
|
|||||||
|
|
||||||
### Man page / documentation
|
### Man page / documentation
|
||||||
|
|
||||||
Documentation is not built by default any more, you have to use option
|
Documentation is not built by default anymore, you have to use option
|
||||||
`-DENABLE_DOC=ON` in cmake command to enable it.
|
`-DENABLE_DOC=ON` in cmake command to enable it.
|
||||||
|
|
||||||
The man page is now built with asciidoc and translated in several
|
The man page is now built with asciidoc and translated in several
|
||||||
@@ -2553,7 +2649,7 @@ For more info about content of message, see document _WeeChat Relay Protocol_.
|
|||||||
### Dynamic nick prefix/suffix
|
### Dynamic nick prefix/suffix
|
||||||
|
|
||||||
The nick prefix/suffix (for example: "<" and ">") are now dynamic and used on
|
The nick prefix/suffix (for example: "<" and ">") are now dynamic and used on
|
||||||
display (not stored any more in the line).
|
display (not stored anymore in the line).
|
||||||
|
|
||||||
Options moved from irc plugin (irc.conf) to core (weechat.conf):
|
Options moved from irc plugin (irc.conf) to core (weechat.conf):
|
||||||
|
|
||||||
@@ -2602,7 +2698,7 @@ FlashCo+ │ test # 8, off
|
|||||||
After `/upgrade`, if you set new options to non-empty strings, and if old
|
After `/upgrade`, if you set new options to non-empty strings, and if old
|
||||||
options were set to non-empty strings too, you will see double prefix/suffix
|
options were set to non-empty strings too, you will see double prefix/suffix
|
||||||
on old messages, this is normal behavior (lines displayed before `/upgrade`
|
on old messages, this is normal behavior (lines displayed before `/upgrade`
|
||||||
have prefix/suffix saved in prefix, but new lines don't have them any more).
|
have prefix/suffix saved in prefix, but new lines don't have them anymore).
|
||||||
|
|
||||||
New options in logger plugin (logger.conf):
|
New options in logger plugin (logger.conf):
|
||||||
|
|
||||||
@@ -2812,11 +2908,11 @@ Cygwin).
|
|||||||
### Extended regex
|
### Extended regex
|
||||||
|
|
||||||
Extended regex is used in filters and irc ignore, so some chars that needed
|
Extended regex is used in filters and irc ignore, so some chars that needed
|
||||||
escape in past do not need any more (for example `[0-9]\+` becomes `[0-9]+`),
|
escape in past do not need anymore (for example `[0-9]\+` becomes `[0-9]+`),
|
||||||
filters and ignore have to be manually fixed.
|
filters and ignore have to be manually fixed.
|
||||||
|
|
||||||
Option weechat.look.highlight_regex becomes case insensitive by default, to
|
Option weechat.look.highlight_regex becomes case-insensitive by default, to
|
||||||
make it case sensitive, use "(?-i)" at beginning of string, for example:
|
make it case-sensitive, use "(?-i)" at beginning of string, for example:
|
||||||
"(?-i)FlashCode|flashy".
|
"(?-i)FlashCode|flashy".
|
||||||
|
|
||||||
## Version 0.3.6
|
## Version 0.3.6
|
||||||
@@ -2829,7 +2925,7 @@ If you changed the value of this option, you must set it again after upgrade.
|
|||||||
|
|
||||||
### Bold in colors
|
### Bold in colors
|
||||||
|
|
||||||
Bold is not used any more for basic colors (used only if terminal has less than
|
Bold is not used anymore for basic colors (used only if terminal has less than
|
||||||
16 colors), a new option has been added to force bold if needed:
|
16 colors), a new option has been added to force bold if needed:
|
||||||
weechat.look.color_basic_force_bold.
|
weechat.look.color_basic_force_bold.
|
||||||
|
|
||||||
@@ -2838,7 +2934,7 @@ weechat.look.color_basic_force_bold.
|
|||||||
### Colors
|
### Colors
|
||||||
|
|
||||||
If you have some colors defined in section "palette" with version 0.3.4, you
|
If you have some colors defined in section "palette" with version 0.3.4, you
|
||||||
should remove all colors defined, and add new aliases (it's not needed any more
|
should remove all colors defined, and add new aliases (it's not needed anymore
|
||||||
to add colors before using them).
|
to add colors before using them).
|
||||||
|
|
||||||
Colors for nick prefixes (char for op, voice, ..) are defined in a single
|
Colors for nick prefixes (char for op, voice, ..) are defined in a single
|
||||||
|
|||||||
@@ -1,138 +0,0 @@
|
|||||||
# CMAKE_PARSE_ARGUMENTS(<prefix> <options> <one_value_keywords> <multi_value_keywords> args...)
|
|
||||||
#
|
|
||||||
# CMAKE_PARSE_ARGUMENTS() is intended to be used in macros or functions for
|
|
||||||
# parsing the arguments given to that macro or function.
|
|
||||||
# It processes the arguments and defines a set of variables which hold the
|
|
||||||
# values of the respective options.
|
|
||||||
#
|
|
||||||
# The <options> argument contains all options for the respective macro,
|
|
||||||
# i.e. keywords which can be used when calling the macro without any value
|
|
||||||
# following, like e.g. the OPTIONAL keyword of the install() command.
|
|
||||||
#
|
|
||||||
# The <one_value_keywords> argument contains all keywords for this macro
|
|
||||||
# which are followed by one value, like e.g. DESTINATION keyword of the
|
|
||||||
# install() command.
|
|
||||||
#
|
|
||||||
# The <multi_value_keywords> argument contains all keywords for this macro
|
|
||||||
# which can be followed by more than one value, like e.g. the TARGETS or
|
|
||||||
# FILES keywords of the install() command.
|
|
||||||
#
|
|
||||||
# When done, CMAKE_PARSE_ARGUMENTS() will have defined for each of the
|
|
||||||
# keywords listed in <options>, <one_value_keywords> and
|
|
||||||
# <multi_value_keywords> a variable composed of the given <prefix>
|
|
||||||
# followed by "_" and the name of the respective keyword.
|
|
||||||
# These variables will then hold the respective value from the argument list.
|
|
||||||
# For the <options> keywords this will be TRUE or FALSE.
|
|
||||||
#
|
|
||||||
# All remaining arguments are collected in a variable
|
|
||||||
# <prefix>_UNPARSED_ARGUMENTS, this can be checked afterwards to see whether
|
|
||||||
# your macro was called with unrecognized parameters.
|
|
||||||
#
|
|
||||||
# As an example here a my_install() macro, which takes similar arguments as the
|
|
||||||
# real install() command:
|
|
||||||
#
|
|
||||||
# function(MY_INSTALL)
|
|
||||||
# set(options OPTIONAL FAST)
|
|
||||||
# set(oneValueArgs DESTINATION RENAME)
|
|
||||||
# set(multiValueArgs TARGETS CONFIGURATIONS)
|
|
||||||
# cmake_parse_arguments(MY_INSTALL "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN} )
|
|
||||||
# ...
|
|
||||||
#
|
|
||||||
# Assume my_install() has been called like this:
|
|
||||||
# my_install(TARGETS foo bar DESTINATION bin OPTIONAL blub)
|
|
||||||
#
|
|
||||||
# After the cmake_parse_arguments() call the macro will have set the following
|
|
||||||
# variables:
|
|
||||||
# MY_INSTALL_OPTIONAL = TRUE
|
|
||||||
# MY_INSTALL_FAST = FALSE (this option was not used when calling my_install()
|
|
||||||
# MY_INSTALL_DESTINATION = "bin"
|
|
||||||
# MY_INSTALL_RENAME = "" (was not used)
|
|
||||||
# MY_INSTALL_TARGETS = "foo;bar"
|
|
||||||
# MY_INSTALL_CONFIGURATIONS = "" (was not used)
|
|
||||||
# MY_INSTALL_UNPARSED_ARGUMENTS = "blub" (no value expected after "OPTIONAL"
|
|
||||||
#
|
|
||||||
# You can the continue and process these variables.
|
|
||||||
#
|
|
||||||
# Keywords terminate lists of values, e.g. if directly after a one_value_keyword
|
|
||||||
# another recognized keyword follows, this is interpreted as the beginning of
|
|
||||||
# the new option.
|
|
||||||
# E.g. my_install(TARGETS foo DESTINATION OPTIONAL) would result in
|
|
||||||
# MY_INSTALL_DESTINATION set to "OPTIONAL", but MY_INSTALL_DESTINATION would
|
|
||||||
# be empty and MY_INSTALL_OPTIONAL would be set to TRUE therefor.
|
|
||||||
|
|
||||||
#=============================================================================
|
|
||||||
# Copyright 2010 Alexander Neundorf <neundorf@kde.org>
|
|
||||||
#
|
|
||||||
# Distributed under the OSI-approved BSD License (the "License");
|
|
||||||
# see accompanying file Copyright.txt for details.
|
|
||||||
#
|
|
||||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
||||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
# See the License for more information.
|
|
||||||
#=============================================================================
|
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
|
||||||
# License text for the above reference.)
|
|
||||||
|
|
||||||
|
|
||||||
if(__CMAKE_PARSE_ARGUMENTS_INCLUDED)
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
set(__CMAKE_PARSE_ARGUMENTS_INCLUDED TRUE)
|
|
||||||
|
|
||||||
|
|
||||||
function(CMAKE_PARSE_ARGUMENTS prefix _optionNames _singleArgNames _multiArgNames)
|
|
||||||
# first set all result variables to empty/FALSE
|
|
||||||
foreach(arg_name ${_singleArgNames} ${_multiArgNames})
|
|
||||||
set(${prefix}_${arg_name})
|
|
||||||
endforeach(arg_name)
|
|
||||||
|
|
||||||
foreach(option ${_optionNames})
|
|
||||||
set(${prefix}_${option} FALSE)
|
|
||||||
endforeach(option)
|
|
||||||
|
|
||||||
set(${prefix}_UNPARSED_ARGUMENTS)
|
|
||||||
|
|
||||||
set(insideValues FALSE)
|
|
||||||
set(currentArgName)
|
|
||||||
|
|
||||||
# now iterate over all arguments and fill the result variables
|
|
||||||
foreach(currentArg ${ARGN})
|
|
||||||
list(FIND _optionNames "${currentArg}" optionIndex) # ... then this marks the end of the arguments belonging to this keyword
|
|
||||||
list(FIND _singleArgNames "${currentArg}" singleArgIndex) # ... then this marks the end of the arguments belonging to this keyword
|
|
||||||
list(FIND _multiArgNames "${currentArg}" multiArgIndex) # ... then this marks the end of the arguments belonging to this keyword
|
|
||||||
|
|
||||||
if(${optionIndex} EQUAL -1 AND ${singleArgIndex} EQUAL -1 AND ${multiArgIndex} EQUAL -1)
|
|
||||||
if(insideValues)
|
|
||||||
if("${insideValues}" STREQUAL "SINGLE")
|
|
||||||
set(${prefix}_${currentArgName} ${currentArg})
|
|
||||||
set(insideValues FALSE)
|
|
||||||
elseif("${insideValues}" STREQUAL "MULTI")
|
|
||||||
list(APPEND ${prefix}_${currentArgName} ${currentArg})
|
|
||||||
endif()
|
|
||||||
else(insideValues)
|
|
||||||
list(APPEND ${prefix}_UNPARSED_ARGUMENTS ${currentArg})
|
|
||||||
endif(insideValues)
|
|
||||||
else()
|
|
||||||
if(NOT ${optionIndex} EQUAL -1)
|
|
||||||
set(${prefix}_${currentArg} TRUE)
|
|
||||||
set(insideValues FALSE)
|
|
||||||
elseif(NOT ${singleArgIndex} EQUAL -1)
|
|
||||||
set(currentArgName ${currentArg})
|
|
||||||
set(${prefix}_${currentArgName})
|
|
||||||
set(insideValues "SINGLE")
|
|
||||||
elseif(NOT ${multiArgIndex} EQUAL -1)
|
|
||||||
set(currentArgName ${currentArg})
|
|
||||||
set(${prefix}_${currentArgName})
|
|
||||||
set(insideValues "MULTI")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
endforeach(currentArg)
|
|
||||||
|
|
||||||
# propagate the result variables to the caller:
|
|
||||||
foreach(arg_name ${_singleArgNames} ${_multiArgNames} ${_optionNames})
|
|
||||||
set(${prefix}_${arg_name} ${${prefix}_${arg_name}} PARENT_SCOPE)
|
|
||||||
endforeach(arg_name)
|
|
||||||
set(${prefix}_UNPARSED_ARGUMENTS ${${prefix}_UNPARSED_ARGUMENTS} PARENT_SCOPE)
|
|
||||||
|
|
||||||
endfunction(CMAKE_PARSE_ARGUMENTS _options _singleArgs _multiArgs)
|
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2014-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2014-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
# - Try to find the Enchant spell checker
|
|
||||||
# Once done this will define
|
|
||||||
#
|
|
||||||
# ENCHANT_FOUND - system has ENCHANT
|
|
||||||
# ENCHANT_INCLUDE_DIR - the ENCHANT include directory
|
|
||||||
# ENCHANT_LIBRARIES - Link these to use ENCHANT
|
|
||||||
# ENCHANT_DEFINITIONS - Compiler switches required for using ENCHANT
|
|
||||||
|
|
||||||
# Copyright (c) 2006, Zack Rusin, <zack@kde.org>
|
|
||||||
#
|
|
||||||
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
||||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
||||||
|
|
||||||
|
|
||||||
if(ENCHANT_INCLUDE_DIR AND ENCHANT_LIBRARIES)
|
|
||||||
# in cache already
|
|
||||||
set(ENCHANT_FOUND TRUE)
|
|
||||||
else()
|
|
||||||
if(NOT WIN32)
|
|
||||||
# use pkg-config to get the directories and then use these values
|
|
||||||
# in the FIND_PATH() and FIND_LIBRARY() calls
|
|
||||||
find_package(PkgConfig)
|
|
||||||
pkg_check_modules(PC_ENCHANT enchant)
|
|
||||||
set(ENCHANT_DEFINITIONS ${PC_ENCHANT_CFLAGS_OTHER})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_path(ENCHANT_INCLUDE_DIR
|
|
||||||
NAMES enchant++.h
|
|
||||||
HINTS ${PC_ENCHANT_INCLUDEDIR} ${PC_ENCHANT_INCLUDE_DIRS}
|
|
||||||
PATH_SUFFIXES enchant-2 enchant
|
|
||||||
)
|
|
||||||
|
|
||||||
find_library(ENCHANT_LIBRARIES
|
|
||||||
NAMES enchant-2 enchant
|
|
||||||
HINTS ${PC_ENCHANT_LIBDIR}
|
|
||||||
${PC_ENCHANT_LIBRARY_DIRS}
|
|
||||||
)
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
find_package_handle_standard_args(ENCHANT DEFAULT_MSG ENCHANT_INCLUDE_DIR ENCHANT_LIBRARIES)
|
|
||||||
|
|
||||||
mark_as_advanced(ENCHANT_INCLUDE_DIR ENCHANT_LIBRARIES)
|
|
||||||
|
|
||||||
# check if function enchant_get_version() exists
|
|
||||||
set(CMAKE_REQUIRED_INCLUDES ${ENCHANT_INCLUDE_DIR})
|
|
||||||
set(CMAKE_REQUIRED_LIBRARIES ${ENCHANT_LIBRARIES})
|
|
||||||
check_symbol_exists(enchant_get_version "enchant.h" HAVE_ENCHANT_GET_VERSION)
|
|
||||||
set(CMAKE_REQUIRED_INCLUDES)
|
|
||||||
set(CMAKE_REQUIRED_LIBRARIES)
|
|
||||||
endif()
|
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
# Copyright (C) 2007 Julien Louis <ptitlouis@sysif.net>
|
# SPDX-FileCopyrightText: 2007 Julien Louis <ptitlouis@sysif.net>
|
||||||
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
|
# SPDX-FileCopyrightText: 2009 Emmanuel Bouthenot <kolter@openics.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,75 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
|
||||||
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
|
|
||||||
#
|
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
#
|
|
||||||
# WeeChat is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
|
|
||||||
# - Find GnuTLS
|
|
||||||
# This module finds if libgnutls is installed and determines where
|
|
||||||
# the include files and libraries are.
|
|
||||||
#
|
|
||||||
# This code sets the following variables:
|
|
||||||
#
|
|
||||||
# GNUTLS_INCLUDE_PATH = path to where <gnutls/gnutls.h> can be found
|
|
||||||
# GNUTLS_LIBRARY = path to where libgnutls.so* can be found
|
|
||||||
# GNUTLS_CFLAGS = cflags to use to compile
|
|
||||||
# GNUTLS_LDFLAGS = ldflags to use to compile
|
|
||||||
|
|
||||||
if(GNUTLS_INCLUDE_PATH AND GNUTLS_LIBRARY)
|
|
||||||
# Already in cache, be silent
|
|
||||||
set(GNUTLS_FIND_QUIETLY TRUE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config)
|
|
||||||
|
|
||||||
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --variable=prefix gnutls
|
|
||||||
OUTPUT_VARIABLE GNUTLS_PREFIX
|
|
||||||
)
|
|
||||||
|
|
||||||
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --cflags gnutls
|
|
||||||
OUTPUT_VARIABLE GNUTLS_CFLAGS
|
|
||||||
)
|
|
||||||
string(REGEX REPLACE "[\r\n]" "" GNUTLS_CFLAGS "${GNUTLS_CFLAGS}")
|
|
||||||
|
|
||||||
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --libs gnutls
|
|
||||||
OUTPUT_VARIABLE GNUTLS_LDFLAGS
|
|
||||||
)
|
|
||||||
string(REGEX REPLACE "[\r\n]" "" GNUTLS_LDFLAGS "${GNUTLS_LDFLAGS}")
|
|
||||||
|
|
||||||
set(GNUTLS_POSSIBLE_INCLUDE_PATH "${GNUTLS_PREFIX}/include")
|
|
||||||
set(GNUTLS_POSSIBLE_LIB_DIR "${GNUTLS_PREFIX}/lib")
|
|
||||||
|
|
||||||
find_path(GNUTLS_INCLUDE_PATH
|
|
||||||
NAMES gnutls/gnutls.h
|
|
||||||
PATHS GNUTLS_POSSIBLE_INCLUDE_PATH
|
|
||||||
)
|
|
||||||
|
|
||||||
find_library(GNUTLS_LIBRARY
|
|
||||||
NAMES gnutls
|
|
||||||
PATHS GNUTLS_POSSIBLE_LIB_DIR
|
|
||||||
)
|
|
||||||
|
|
||||||
if(NOT GNUTLS_INCLUDE_PATH OR NOT GNUTLS_LIBRARY)
|
|
||||||
message(FATAL_ERROR "GnuTLS was not found")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
mark_as_advanced(
|
|
||||||
GNUTLS_INCLUDE_PATH
|
|
||||||
GNUTLS_LIBRARY
|
|
||||||
GNUTLS_CFLAGS
|
|
||||||
GNUTLS_LDFLAGS
|
|
||||||
)
|
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2011-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2011-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
|
|||||||
+4
-2
@@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
@@ -35,5 +37,5 @@ endif()
|
|||||||
|
|
||||||
find_package(PkgConfig)
|
find_package(PkgConfig)
|
||||||
if(PKG_CONFIG_FOUND)
|
if(PKG_CONFIG_FOUND)
|
||||||
pkg_search_module(LUA lua5.4 lua-5.4 lua54 lua5.3 lua-5.3 lua53 lua5.2 lua-5.2 lua52 lua5.1 lua-5.1 lua51 lua-5.0 lua5.0 lua50 lua)
|
pkg_search_module(LUA lua lua5.4 lua-5.4 lua54 lua5.3 lua-5.3 lua53)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
|
|||||||
+7
-3
@@ -1,6 +1,8 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2017 Adam Saponara <as@php.net>
|
# SPDX-FileCopyrightText: 2017 Adam Saponara <as@php.net>
|
||||||
# Copyright (C) 2017-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2017-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
@@ -29,6 +31,8 @@ endif()
|
|||||||
|
|
||||||
if(NOT PHP_FOUND)
|
if(NOT PHP_FOUND)
|
||||||
find_program(PHP_CONFIG_EXECUTABLE NAMES
|
find_program(PHP_CONFIG_EXECUTABLE NAMES
|
||||||
|
php-config8.4 php-config84
|
||||||
|
php-config8.3 php-config83
|
||||||
php-config8.2 php-config82
|
php-config8.2 php-config82
|
||||||
php-config8.1 php-config81
|
php-config8.1 php-config81
|
||||||
php-config8.0 php-config80
|
php-config8.0 php-config80
|
||||||
@@ -48,7 +52,7 @@ if(NOT PHP_FOUND)
|
|||||||
execute_process(COMMAND ${PHP_CONFIG_EXECUTABLE} --version OUTPUT_VARIABLE PHP_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
|
execute_process(COMMAND ${PHP_CONFIG_EXECUTABLE} --version OUTPUT_VARIABLE PHP_VERSION OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
if(${PHP_VERSION} MATCHES "^[78]")
|
if(${PHP_VERSION} MATCHES "^[78]")
|
||||||
find_library(PHP_LIB
|
find_library(PHP_LIB
|
||||||
NAMES php8.2 php82 php8.1 php81 php8.0 php80 php8 php7.4 php74 php7.3 php73 php7.2 php72 php7.1 php71 php7.0 php70 php7 php
|
NAMES php8.4 php84 php8.3 php83 php8.2 php82 php8.1 php81 php8.0 php80 php8 php7.4 php74 php7.3 php73 php7.2 php72 php7.1 php71 php7.0 php70 php7 php
|
||||||
HINTS ${PHP_LIB_PREFIX} ${PHP_LIB_PREFIX}/lib ${PHP_LIB_PREFIX}/lib64
|
HINTS ${PHP_LIB_PREFIX} ${PHP_LIB_PREFIX}/lib ${PHP_LIB_PREFIX}/lib64
|
||||||
)
|
)
|
||||||
if(PHP_LIB)
|
if(PHP_LIB)
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,772 +0,0 @@
|
|||||||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
||||||
# file Copyright.txt or https://cmake.org/licensing for details.
|
|
||||||
|
|
||||||
#[========================================[.rst:
|
|
||||||
FindPkgConfig
|
|
||||||
-------------
|
|
||||||
|
|
||||||
A ``pkg-config`` module for CMake.
|
|
||||||
|
|
||||||
Finds the ``pkg-config`` executable and adds the :command:`pkg_get_variable`,
|
|
||||||
:command:`pkg_check_modules` and :command:`pkg_search_module` commands. The
|
|
||||||
following variables will also be set:
|
|
||||||
|
|
||||||
``PKG_CONFIG_FOUND``
|
|
||||||
if pkg-config executable was found
|
|
||||||
``PKG_CONFIG_EXECUTABLE``
|
|
||||||
pathname of the pkg-config program
|
|
||||||
``PKG_CONFIG_VERSION_STRING``
|
|
||||||
version of pkg-config (since CMake 2.8.8)
|
|
||||||
|
|
||||||
#]========================================]
|
|
||||||
|
|
||||||
### Common stuff ####
|
|
||||||
set(PKG_CONFIG_VERSION 1)
|
|
||||||
|
|
||||||
# find pkg-config, use PKG_CONFIG if set
|
|
||||||
if((NOT PKG_CONFIG_EXECUTABLE) AND (NOT "$ENV{PKG_CONFIG}" STREQUAL ""))
|
|
||||||
set(PKG_CONFIG_EXECUTABLE "$ENV{PKG_CONFIG}" CACHE FILEPATH "pkg-config executable")
|
|
||||||
endif()
|
|
||||||
find_program(PKG_CONFIG_EXECUTABLE NAMES pkg-config DOC "pkg-config executable")
|
|
||||||
mark_as_advanced(PKG_CONFIG_EXECUTABLE)
|
|
||||||
|
|
||||||
if (PKG_CONFIG_EXECUTABLE)
|
|
||||||
execute_process(COMMAND ${PKG_CONFIG_EXECUTABLE} --version
|
|
||||||
OUTPUT_VARIABLE PKG_CONFIG_VERSION_STRING
|
|
||||||
ERROR_QUIET
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
find_package_handle_standard_args(PkgConfig
|
|
||||||
REQUIRED_VARS PKG_CONFIG_EXECUTABLE
|
|
||||||
VERSION_VAR PKG_CONFIG_VERSION_STRING)
|
|
||||||
|
|
||||||
# This is needed because the module name is "PkgConfig" but the name of
|
|
||||||
# this variable has always been PKG_CONFIG_FOUND so this isn't automatically
|
|
||||||
# handled by FPHSA.
|
|
||||||
set(PKG_CONFIG_FOUND "${PKGCONFIG_FOUND}")
|
|
||||||
|
|
||||||
# Unsets the given variables
|
|
||||||
macro(_pkgconfig_unset var)
|
|
||||||
set(${var} "" CACHE INTERNAL "")
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
macro(_pkgconfig_set var value)
|
|
||||||
set(${var} ${value} CACHE INTERNAL "")
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
# Invokes pkgconfig, cleans up the result and sets variables
|
|
||||||
macro(_pkgconfig_invoke _pkglist _prefix _varname _regexp)
|
|
||||||
set(_pkgconfig_invoke_result)
|
|
||||||
|
|
||||||
execute_process(
|
|
||||||
COMMAND ${PKG_CONFIG_EXECUTABLE} ${ARGN} ${_pkglist}
|
|
||||||
OUTPUT_VARIABLE _pkgconfig_invoke_result
|
|
||||||
RESULT_VARIABLE _pkgconfig_failed
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
|
||||||
|
|
||||||
if (_pkgconfig_failed)
|
|
||||||
set(_pkgconfig_${_varname} "")
|
|
||||||
_pkgconfig_unset(${_prefix}_${_varname})
|
|
||||||
else()
|
|
||||||
string(REGEX REPLACE "[\r\n]" " " _pkgconfig_invoke_result "${_pkgconfig_invoke_result}")
|
|
||||||
|
|
||||||
if (NOT ${_regexp} STREQUAL "")
|
|
||||||
string(REGEX REPLACE "${_regexp}" " " _pkgconfig_invoke_result "${_pkgconfig_invoke_result}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
separate_arguments(_pkgconfig_invoke_result)
|
|
||||||
|
|
||||||
#message(STATUS " ${_varname} ... ${_pkgconfig_invoke_result}")
|
|
||||||
set(_pkgconfig_${_varname} ${_pkgconfig_invoke_result})
|
|
||||||
_pkgconfig_set(${_prefix}_${_varname} "${_pkgconfig_invoke_result}")
|
|
||||||
endif()
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
# Internal version of pkg_get_variable; expects PKG_CONFIG_PATH to already be set
|
|
||||||
function (_pkg_get_variable result pkg variable)
|
|
||||||
_pkgconfig_invoke("${pkg}" "prefix" "result" "" "--variable=${variable}")
|
|
||||||
set("${result}"
|
|
||||||
"${prefix_result}"
|
|
||||||
PARENT_SCOPE)
|
|
||||||
endfunction ()
|
|
||||||
|
|
||||||
# Invokes pkgconfig two times; once without '--static' and once with
|
|
||||||
# '--static'
|
|
||||||
macro(_pkgconfig_invoke_dyn _pkglist _prefix _varname cleanup_regexp)
|
|
||||||
_pkgconfig_invoke("${_pkglist}" ${_prefix} ${_varname} "${cleanup_regexp}" ${ARGN})
|
|
||||||
_pkgconfig_invoke("${_pkglist}" ${_prefix} STATIC_${_varname} "${cleanup_regexp}" --static ${ARGN})
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
# Splits given arguments into options and a package list
|
|
||||||
macro(_pkgconfig_parse_options _result _is_req _is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global)
|
|
||||||
set(${_is_req} 0)
|
|
||||||
set(${_is_silent} 0)
|
|
||||||
set(${_no_cmake_path} 0)
|
|
||||||
set(${_no_cmake_environment_path} 0)
|
|
||||||
set(${_imp_target} 0)
|
|
||||||
set(${_imp_target_global} 0)
|
|
||||||
if(DEFINED PKG_CONFIG_USE_CMAKE_PREFIX_PATH)
|
|
||||||
if(NOT PKG_CONFIG_USE_CMAKE_PREFIX_PATH)
|
|
||||||
set(${_no_cmake_path} 1)
|
|
||||||
set(${_no_cmake_environment_path} 1)
|
|
||||||
endif()
|
|
||||||
elseif(CMAKE_MINIMUM_REQUIRED_VERSION VERSION_LESS 3.1)
|
|
||||||
set(${_no_cmake_path} 1)
|
|
||||||
set(${_no_cmake_environment_path} 1)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
foreach(_pkg ${ARGN})
|
|
||||||
if (_pkg STREQUAL "REQUIRED")
|
|
||||||
set(${_is_req} 1)
|
|
||||||
endif ()
|
|
||||||
if (_pkg STREQUAL "QUIET")
|
|
||||||
set(${_is_silent} 1)
|
|
||||||
endif ()
|
|
||||||
if (_pkg STREQUAL "NO_CMAKE_PATH")
|
|
||||||
set(${_no_cmake_path} 1)
|
|
||||||
endif()
|
|
||||||
if (_pkg STREQUAL "NO_CMAKE_ENVIRONMENT_PATH")
|
|
||||||
set(${_no_cmake_environment_path} 1)
|
|
||||||
endif()
|
|
||||||
if (_pkg STREQUAL "IMPORTED_TARGET")
|
|
||||||
set(${_imp_target} 1)
|
|
||||||
endif()
|
|
||||||
if (_pkg STREQUAL "GLOBAL")
|
|
||||||
set(${_imp_target_global} 1)
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
if (${_imp_target_global} AND NOT ${_imp_target})
|
|
||||||
message(SEND_ERROR "the argument GLOBAL may only be used together with IMPORTED_TARGET")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(${_result} ${ARGN})
|
|
||||||
list(REMOVE_ITEM ${_result} "REQUIRED")
|
|
||||||
list(REMOVE_ITEM ${_result} "QUIET")
|
|
||||||
list(REMOVE_ITEM ${_result} "NO_CMAKE_PATH")
|
|
||||||
list(REMOVE_ITEM ${_result} "NO_CMAKE_ENVIRONMENT_PATH")
|
|
||||||
list(REMOVE_ITEM ${_result} "IMPORTED_TARGET")
|
|
||||||
list(REMOVE_ITEM ${_result} "GLOBAL")
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
# Add the content of a variable or an environment variable to a list of
|
|
||||||
# paths
|
|
||||||
# Usage:
|
|
||||||
# - _pkgconfig_add_extra_path(_extra_paths VAR)
|
|
||||||
# - _pkgconfig_add_extra_path(_extra_paths ENV VAR)
|
|
||||||
function(_pkgconfig_add_extra_path _extra_paths_var _var)
|
|
||||||
set(_is_env 0)
|
|
||||||
if(ARGC GREATER 2 AND _var STREQUAL "ENV")
|
|
||||||
set(_var ${ARGV2})
|
|
||||||
set(_is_env 1)
|
|
||||||
endif()
|
|
||||||
if(NOT _is_env)
|
|
||||||
if(NOT "${${_var}}" STREQUAL "")
|
|
||||||
list(APPEND ${_extra_paths_var} ${${_var}})
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
if(NOT "$ENV{${_var}}" STREQUAL "")
|
|
||||||
file(TO_CMAKE_PATH "$ENV{${_var}}" _path)
|
|
||||||
list(APPEND ${_extra_paths_var} ${_path})
|
|
||||||
unset(_path)
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
set(${_extra_paths_var} ${${_extra_paths_var}} PARENT_SCOPE)
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
# scan the LDFLAGS returned by pkg-config for library directories and
|
|
||||||
# libraries, figure out the absolute paths of that libraries in the
|
|
||||||
# given directories
|
|
||||||
function(_pkg_find_libs _prefix _no_cmake_path _no_cmake_environment_path)
|
|
||||||
unset(_libs)
|
|
||||||
unset(_find_opts)
|
|
||||||
|
|
||||||
# set the options that are used as long as the .pc file does not provide a library
|
|
||||||
# path to look into
|
|
||||||
if(_no_cmake_path)
|
|
||||||
list(APPEND _find_opts "NO_CMAKE_PATH")
|
|
||||||
endif()
|
|
||||||
if(_no_cmake_environment_path)
|
|
||||||
list(APPEND _find_opts "NO_CMAKE_ENVIRONMENT_PATH")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
unset(_search_paths)
|
|
||||||
foreach (flag IN LISTS ${_prefix}_LDFLAGS)
|
|
||||||
if (flag MATCHES "^-L(.*)")
|
|
||||||
list(APPEND _search_paths ${CMAKE_MATCH_1})
|
|
||||||
continue()
|
|
||||||
endif()
|
|
||||||
if (flag MATCHES "^-l(.*)")
|
|
||||||
set(_pkg_search "${CMAKE_MATCH_1}")
|
|
||||||
else()
|
|
||||||
continue()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(_search_paths)
|
|
||||||
# Firstly search in -L paths
|
|
||||||
find_library(pkgcfg_lib_${_prefix}_${_pkg_search}
|
|
||||||
NAMES ${_pkg_search}
|
|
||||||
HINTS ${_search_paths} NO_DEFAULT_PATH)
|
|
||||||
endif()
|
|
||||||
find_library(pkgcfg_lib_${_prefix}_${_pkg_search}
|
|
||||||
NAMES ${_pkg_search}
|
|
||||||
${_find_opts})
|
|
||||||
mark_as_advanced(pkgcfg_lib_${_prefix}_${_pkg_search})
|
|
||||||
if(pkgcfg_lib_${_prefix}_${_pkg_search})
|
|
||||||
list(APPEND _libs "${pkgcfg_lib_${_prefix}_${_pkg_search}}")
|
|
||||||
else()
|
|
||||||
list(APPEND _libs ${_pkg_search})
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
set(${_prefix}_LINK_LIBRARIES "${_libs}" PARENT_SCOPE)
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
# create an imported target from all the information returned by pkg-config
|
|
||||||
function(_pkg_create_imp_target _prefix _imp_target_global)
|
|
||||||
# only create the target if it is linkable, i.e. no executables
|
|
||||||
if (NOT TARGET PkgConfig::${_prefix}
|
|
||||||
AND ( ${_prefix}_INCLUDE_DIRS OR ${_prefix}_LINK_LIBRARIES OR ${_prefix}_LDFLAGS_OTHER OR ${_prefix}_CFLAGS_OTHER ))
|
|
||||||
if(${_imp_target_global})
|
|
||||||
set(_global_opt "GLOBAL")
|
|
||||||
else()
|
|
||||||
unset(_global_opt)
|
|
||||||
endif()
|
|
||||||
add_library(PkgConfig::${_prefix} INTERFACE IMPORTED ${_global_opt})
|
|
||||||
|
|
||||||
if(${_prefix}_INCLUDE_DIRS)
|
|
||||||
set_property(TARGET PkgConfig::${_prefix} PROPERTY
|
|
||||||
INTERFACE_INCLUDE_DIRECTORIES "${${_prefix}_INCLUDE_DIRS}")
|
|
||||||
endif()
|
|
||||||
if(${_prefix}_LINK_LIBRARIES)
|
|
||||||
set_property(TARGET PkgConfig::${_prefix} PROPERTY
|
|
||||||
INTERFACE_LINK_LIBRARIES "${${_prefix}_LINK_LIBRARIES}")
|
|
||||||
endif()
|
|
||||||
if(${_prefix}_LDFLAGS_OTHER)
|
|
||||||
set_property(TARGET PkgConfig::${_prefix} PROPERTY
|
|
||||||
INTERFACE_LINK_OPTIONS "${${_prefix}_LDFLAGS_OTHER}")
|
|
||||||
endif()
|
|
||||||
if(${_prefix}_CFLAGS_OTHER)
|
|
||||||
set_property(TARGET PkgConfig::${_prefix} PROPERTY
|
|
||||||
INTERFACE_COMPILE_OPTIONS "${${_prefix}_CFLAGS_OTHER}")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endfunction()
|
|
||||||
|
|
||||||
# recalculate the dynamic output
|
|
||||||
# this is a macro and not a function so the result of _pkg_find_libs is automatically propagated
|
|
||||||
macro(_pkg_recalculate _prefix _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global)
|
|
||||||
_pkg_find_libs(${_prefix} ${_no_cmake_path} ${_no_cmake_environment_path})
|
|
||||||
if(${_imp_target})
|
|
||||||
_pkg_create_imp_target(${_prefix} ${_imp_target_global})
|
|
||||||
endif()
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
###
|
|
||||||
macro(_pkg_set_path_internal)
|
|
||||||
set(_extra_paths)
|
|
||||||
|
|
||||||
if(NOT _no_cmake_path)
|
|
||||||
_pkgconfig_add_extra_path(_extra_paths CMAKE_PREFIX_PATH)
|
|
||||||
_pkgconfig_add_extra_path(_extra_paths CMAKE_FRAMEWORK_PATH)
|
|
||||||
_pkgconfig_add_extra_path(_extra_paths CMAKE_APPBUNDLE_PATH)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT _no_cmake_environment_path)
|
|
||||||
_pkgconfig_add_extra_path(_extra_paths ENV CMAKE_PREFIX_PATH)
|
|
||||||
_pkgconfig_add_extra_path(_extra_paths ENV CMAKE_FRAMEWORK_PATH)
|
|
||||||
_pkgconfig_add_extra_path(_extra_paths ENV CMAKE_APPBUNDLE_PATH)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT _extra_paths STREQUAL "")
|
|
||||||
# Save the PKG_CONFIG_PATH environment variable, and add paths
|
|
||||||
# from the CMAKE_PREFIX_PATH variables
|
|
||||||
set(_pkgconfig_path_old "$ENV{PKG_CONFIG_PATH}")
|
|
||||||
set(_pkgconfig_path "${_pkgconfig_path_old}")
|
|
||||||
if(NOT _pkgconfig_path STREQUAL "")
|
|
||||||
file(TO_CMAKE_PATH "${_pkgconfig_path}" _pkgconfig_path)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Create a list of the possible pkgconfig subfolder (depending on
|
|
||||||
# the system
|
|
||||||
set(_lib_dirs)
|
|
||||||
if(NOT DEFINED CMAKE_SYSTEM_NAME
|
|
||||||
OR (CMAKE_SYSTEM_NAME MATCHES "^(Linux|kFreeBSD|GNU)$"
|
|
||||||
AND NOT CMAKE_CROSSCOMPILING))
|
|
||||||
if(EXISTS "/etc/debian_version") # is this a debian system ?
|
|
||||||
if(CMAKE_LIBRARY_ARCHITECTURE)
|
|
||||||
list(APPEND _lib_dirs "lib/${CMAKE_LIBRARY_ARCHITECTURE}/pkgconfig")
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
# not debian, check the FIND_LIBRARY_USE_LIB32_PATHS and FIND_LIBRARY_USE_LIB64_PATHS properties
|
|
||||||
get_property(uselib32 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB32_PATHS)
|
|
||||||
if(uselib32 AND CMAKE_SIZEOF_VOID_P EQUAL 4)
|
|
||||||
list(APPEND _lib_dirs "lib32/pkgconfig")
|
|
||||||
endif()
|
|
||||||
get_property(uselib64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
|
|
||||||
if(uselib64 AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
||||||
list(APPEND _lib_dirs "lib64/pkgconfig")
|
|
||||||
endif()
|
|
||||||
get_property(uselibx32 GLOBAL PROPERTY FIND_LIBRARY_USE_LIBX32_PATHS)
|
|
||||||
if(uselibx32 AND CMAKE_INTERNAL_PLATFORM_ABI STREQUAL "ELF X32")
|
|
||||||
list(APPEND _lib_dirs "libx32/pkgconfig")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" AND NOT CMAKE_CROSSCOMPILING)
|
|
||||||
list(APPEND _lib_dirs "libdata/pkgconfig")
|
|
||||||
endif()
|
|
||||||
list(APPEND _lib_dirs "lib/pkgconfig")
|
|
||||||
list(APPEND _lib_dirs "share/pkgconfig")
|
|
||||||
|
|
||||||
# Check if directories exist and eventually append them to the
|
|
||||||
# pkgconfig path list
|
|
||||||
foreach(_prefix_dir ${_extra_paths})
|
|
||||||
foreach(_lib_dir ${_lib_dirs})
|
|
||||||
if(EXISTS "${_prefix_dir}/${_lib_dir}")
|
|
||||||
list(APPEND _pkgconfig_path "${_prefix_dir}/${_lib_dir}")
|
|
||||||
list(REMOVE_DUPLICATES _pkgconfig_path)
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
# Prepare and set the environment variable
|
|
||||||
if(NOT _pkgconfig_path STREQUAL "")
|
|
||||||
# remove empty values from the list
|
|
||||||
list(REMOVE_ITEM _pkgconfig_path "")
|
|
||||||
file(TO_NATIVE_PATH "${_pkgconfig_path}" _pkgconfig_path)
|
|
||||||
if(UNIX)
|
|
||||||
string(REPLACE ";" ":" _pkgconfig_path "${_pkgconfig_path}")
|
|
||||||
string(REPLACE "\\ " " " _pkgconfig_path "${_pkgconfig_path}")
|
|
||||||
endif()
|
|
||||||
set(ENV{PKG_CONFIG_PATH} "${_pkgconfig_path}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# Unset variables
|
|
||||||
unset(_lib_dirs)
|
|
||||||
unset(_pkgconfig_path)
|
|
||||||
endif()
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
macro(_pkg_restore_path_internal)
|
|
||||||
if(NOT _extra_paths STREQUAL "")
|
|
||||||
# Restore the environment variable
|
|
||||||
set(ENV{PKG_CONFIG_PATH} "${_pkgconfig_path_old}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
unset(_extra_paths)
|
|
||||||
unset(_pkgconfig_path_old)
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
###
|
|
||||||
macro(_pkg_check_modules_internal _is_required _is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global _prefix)
|
|
||||||
_pkgconfig_unset(${_prefix}_FOUND)
|
|
||||||
_pkgconfig_unset(${_prefix}_VERSION)
|
|
||||||
_pkgconfig_unset(${_prefix}_PREFIX)
|
|
||||||
_pkgconfig_unset(${_prefix}_INCLUDEDIR)
|
|
||||||
_pkgconfig_unset(${_prefix}_LIBDIR)
|
|
||||||
_pkgconfig_unset(${_prefix}_MODULE_NAME)
|
|
||||||
_pkgconfig_unset(${_prefix}_LIBS)
|
|
||||||
_pkgconfig_unset(${_prefix}_LIBS_L)
|
|
||||||
_pkgconfig_unset(${_prefix}_LIBS_PATHS)
|
|
||||||
_pkgconfig_unset(${_prefix}_LIBS_OTHER)
|
|
||||||
_pkgconfig_unset(${_prefix}_CFLAGS)
|
|
||||||
_pkgconfig_unset(${_prefix}_CFLAGS_I)
|
|
||||||
_pkgconfig_unset(${_prefix}_CFLAGS_OTHER)
|
|
||||||
_pkgconfig_unset(${_prefix}_STATIC_LIBDIR)
|
|
||||||
_pkgconfig_unset(${_prefix}_STATIC_LIBS)
|
|
||||||
_pkgconfig_unset(${_prefix}_STATIC_LIBS_L)
|
|
||||||
_pkgconfig_unset(${_prefix}_STATIC_LIBS_PATHS)
|
|
||||||
_pkgconfig_unset(${_prefix}_STATIC_LIBS_OTHER)
|
|
||||||
_pkgconfig_unset(${_prefix}_STATIC_CFLAGS)
|
|
||||||
_pkgconfig_unset(${_prefix}_STATIC_CFLAGS_I)
|
|
||||||
_pkgconfig_unset(${_prefix}_STATIC_CFLAGS_OTHER)
|
|
||||||
|
|
||||||
# create a better addressable variable of the modules and calculate its size
|
|
||||||
set(_pkg_check_modules_list ${ARGN})
|
|
||||||
list(LENGTH _pkg_check_modules_list _pkg_check_modules_cnt)
|
|
||||||
|
|
||||||
if(PKG_CONFIG_EXECUTABLE)
|
|
||||||
# give out status message telling checked module
|
|
||||||
if (NOT ${_is_silent})
|
|
||||||
if (_pkg_check_modules_cnt EQUAL 1)
|
|
||||||
message(STATUS "Checking for module '${_pkg_check_modules_list}'")
|
|
||||||
else()
|
|
||||||
message(STATUS "Checking for modules '${_pkg_check_modules_list}'")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(_pkg_check_modules_packages)
|
|
||||||
set(_pkg_check_modules_failed)
|
|
||||||
|
|
||||||
_pkg_set_path_internal()
|
|
||||||
|
|
||||||
# iterate through module list and check whether they exist and match the required version
|
|
||||||
foreach (_pkg_check_modules_pkg ${_pkg_check_modules_list})
|
|
||||||
set(_pkg_check_modules_exist_query)
|
|
||||||
|
|
||||||
# check whether version is given
|
|
||||||
if (_pkg_check_modules_pkg MATCHES "(.*[^><])(=|[><]=?)(.*)")
|
|
||||||
set(_pkg_check_modules_pkg_name "${CMAKE_MATCH_1}")
|
|
||||||
set(_pkg_check_modules_pkg_op "${CMAKE_MATCH_2}")
|
|
||||||
set(_pkg_check_modules_pkg_ver "${CMAKE_MATCH_3}")
|
|
||||||
else()
|
|
||||||
set(_pkg_check_modules_pkg_name "${_pkg_check_modules_pkg}")
|
|
||||||
set(_pkg_check_modules_pkg_op)
|
|
||||||
set(_pkg_check_modules_pkg_ver)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
_pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_VERSION)
|
|
||||||
_pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_PREFIX)
|
|
||||||
_pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_INCLUDEDIR)
|
|
||||||
_pkgconfig_unset(${_prefix}_${_pkg_check_modules_pkg_name}_LIBDIR)
|
|
||||||
|
|
||||||
list(APPEND _pkg_check_modules_packages "${_pkg_check_modules_pkg_name}")
|
|
||||||
|
|
||||||
# create the final query which is of the format:
|
|
||||||
# * <pkg-name> > <version>
|
|
||||||
# * <pkg-name> >= <version>
|
|
||||||
# * <pkg-name> = <version>
|
|
||||||
# * <pkg-name> <= <version>
|
|
||||||
# * <pkg-name> < <version>
|
|
||||||
# * --exists <pkg-name>
|
|
||||||
list(APPEND _pkg_check_modules_exist_query --print-errors --short-errors)
|
|
||||||
if (_pkg_check_modules_pkg_op)
|
|
||||||
list(APPEND _pkg_check_modules_exist_query "${_pkg_check_modules_pkg_name} ${_pkg_check_modules_pkg_op} ${_pkg_check_modules_pkg_ver}")
|
|
||||||
else()
|
|
||||||
list(APPEND _pkg_check_modules_exist_query --exists)
|
|
||||||
list(APPEND _pkg_check_modules_exist_query "${_pkg_check_modules_pkg_name}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# execute the query
|
|
||||||
execute_process(
|
|
||||||
COMMAND ${PKG_CONFIG_EXECUTABLE} ${_pkg_check_modules_exist_query}
|
|
||||||
RESULT_VARIABLE _pkgconfig_retval
|
|
||||||
ERROR_VARIABLE _pkgconfig_error
|
|
||||||
ERROR_STRIP_TRAILING_WHITESPACE)
|
|
||||||
|
|
||||||
# evaluate result and tell failures
|
|
||||||
if (_pkgconfig_retval)
|
|
||||||
if(NOT ${_is_silent})
|
|
||||||
message(STATUS " ${_pkgconfig_error}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(_pkg_check_modules_failed 1)
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
if(_pkg_check_modules_failed)
|
|
||||||
# fail when requested
|
|
||||||
if (${_is_required})
|
|
||||||
message(FATAL_ERROR "A required package was not found")
|
|
||||||
endif ()
|
|
||||||
else()
|
|
||||||
# when we are here, we checked whether requested modules
|
|
||||||
# exist. Now, go through them and set variables
|
|
||||||
|
|
||||||
_pkgconfig_set(${_prefix}_FOUND 1)
|
|
||||||
list(LENGTH _pkg_check_modules_packages pkg_count)
|
|
||||||
|
|
||||||
# iterate through all modules again and set individual variables
|
|
||||||
foreach (_pkg_check_modules_pkg ${_pkg_check_modules_packages})
|
|
||||||
# handle case when there is only one package required
|
|
||||||
if (pkg_count EQUAL 1)
|
|
||||||
set(_pkg_check_prefix "${_prefix}")
|
|
||||||
else()
|
|
||||||
set(_pkg_check_prefix "${_prefix}_${_pkg_check_modules_pkg}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
_pkgconfig_invoke(${_pkg_check_modules_pkg} "${_pkg_check_prefix}" VERSION "" --modversion )
|
|
||||||
pkg_get_variable("${_pkg_check_prefix}_PREFIX" ${_pkg_check_modules_pkg} "prefix")
|
|
||||||
pkg_get_variable("${_pkg_check_prefix}_INCLUDEDIR" ${_pkg_check_modules_pkg} "includedir")
|
|
||||||
pkg_get_variable("${_pkg_check_prefix}_LIBDIR" ${_pkg_check_modules_pkg} "libdir")
|
|
||||||
foreach (variable IN ITEMS PREFIX INCLUDEDIR LIBDIR)
|
|
||||||
_pkgconfig_set("${_pkg_check_prefix}_${variable}" "${${_pkg_check_prefix}_${variable}}")
|
|
||||||
endforeach ()
|
|
||||||
_pkgconfig_set("${_pkg_check_prefix}_MODULE_NAME" "${_pkg_check_modules_pkg}")
|
|
||||||
|
|
||||||
if (NOT ${_is_silent})
|
|
||||||
message(STATUS " Found ${_pkg_check_modules_pkg}, version ${_pkgconfig_VERSION}")
|
|
||||||
endif ()
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
# set variables which are combined for multiple modules
|
|
||||||
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LIBRARIES "(^| )-l" --libs-only-l )
|
|
||||||
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LIBRARY_DIRS "(^| )-L" --libs-only-L )
|
|
||||||
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LDFLAGS "" --libs )
|
|
||||||
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" LDFLAGS_OTHER "" --libs-only-other )
|
|
||||||
|
|
||||||
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" INCLUDE_DIRS "(^| )-I" --cflags-only-I )
|
|
||||||
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" CFLAGS "" --cflags )
|
|
||||||
_pkgconfig_invoke_dyn("${_pkg_check_modules_packages}" "${_prefix}" CFLAGS_OTHER "" --cflags-only-other )
|
|
||||||
|
|
||||||
_pkg_recalculate("${_prefix}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
_pkg_restore_path_internal()
|
|
||||||
else()
|
|
||||||
if (${_is_required})
|
|
||||||
message(SEND_ERROR "pkg-config tool not found")
|
|
||||||
endif ()
|
|
||||||
endif()
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
|
|
||||||
#[========================================[.rst:
|
|
||||||
.. command:: pkg_check_modules
|
|
||||||
|
|
||||||
Checks for all the given modules, setting a variety of result variables in
|
|
||||||
the calling scope.
|
|
||||||
|
|
||||||
.. code-block:: cmake
|
|
||||||
|
|
||||||
pkg_check_modules(<prefix>
|
|
||||||
[REQUIRED] [QUIET]
|
|
||||||
[NO_CMAKE_PATH]
|
|
||||||
[NO_CMAKE_ENVIRONMENT_PATH]
|
|
||||||
[IMPORTED_TARGET [GLOBAL]]
|
|
||||||
<moduleSpec> [<moduleSpec>...])
|
|
||||||
|
|
||||||
When the ``REQUIRED`` argument is given, the command will fail with an error
|
|
||||||
if module(s) could not be found.
|
|
||||||
|
|
||||||
When the ``QUIET`` argument is given, no status messages will be printed.
|
|
||||||
|
|
||||||
By default, if :variable:`CMAKE_MINIMUM_REQUIRED_VERSION` is 3.1 or
|
|
||||||
later, or if :variable:`PKG_CONFIG_USE_CMAKE_PREFIX_PATH` is set to a
|
|
||||||
boolean ``True`` value, then the :variable:`CMAKE_PREFIX_PATH`,
|
|
||||||
:variable:`CMAKE_FRAMEWORK_PATH`, and :variable:`CMAKE_APPBUNDLE_PATH` cache
|
|
||||||
and environment variables will be added to the ``pkg-config`` search path.
|
|
||||||
The ``NO_CMAKE_PATH`` and ``NO_CMAKE_ENVIRONMENT_PATH`` arguments
|
|
||||||
disable this behavior for the cache variables and environment variables
|
|
||||||
respectively.
|
|
||||||
|
|
||||||
The ``IMPORTED_TARGET`` argument will create an imported target named
|
|
||||||
``PkgConfig::<prefix>`` that can be passed directly as an argument to
|
|
||||||
:command:`target_link_libraries`. The ``GLOBAL`` argument will make the
|
|
||||||
imported target available in global scope.
|
|
||||||
|
|
||||||
Each ``<moduleSpec>`` can be either a bare module name or it can be a
|
|
||||||
module name with a version constraint (operators ``=``, ``<``, ``>``,
|
|
||||||
``<=`` and ``>=`` are supported). The following are examples for a module
|
|
||||||
named ``foo`` with various constraints:
|
|
||||||
|
|
||||||
- ``foo`` matches any version.
|
|
||||||
- ``foo<2`` only matches versions before 2.
|
|
||||||
- ``foo>=3.1`` matches any version from 3.1 or later.
|
|
||||||
- ``foo=1.2.3`` requires that foo must be exactly version 1.2.3.
|
|
||||||
|
|
||||||
The following variables may be set upon return. Two sets of values exist:
|
|
||||||
One for the common case (``<XXX> = <prefix>``) and another for the
|
|
||||||
information ``pkg-config`` provides when called with the ``--static``
|
|
||||||
option (``<XXX> = <prefix>_STATIC``).
|
|
||||||
|
|
||||||
``<XXX>_FOUND``
|
|
||||||
set to 1 if module(s) exist
|
|
||||||
``<XXX>_LIBRARIES``
|
|
||||||
only the libraries (without the '-l')
|
|
||||||
``<XXX>_LINK_LIBRARIES``
|
|
||||||
the libraries and their absolute paths
|
|
||||||
``<XXX>_LIBRARY_DIRS``
|
|
||||||
the paths of the libraries (without the '-L')
|
|
||||||
``<XXX>_LDFLAGS``
|
|
||||||
all required linker flags
|
|
||||||
``<XXX>_LDFLAGS_OTHER``
|
|
||||||
all other linker flags
|
|
||||||
``<XXX>_INCLUDE_DIRS``
|
|
||||||
the '-I' preprocessor flags (without the '-I')
|
|
||||||
``<XXX>_CFLAGS``
|
|
||||||
all required cflags
|
|
||||||
``<XXX>_CFLAGS_OTHER``
|
|
||||||
the other compiler flags
|
|
||||||
|
|
||||||
All but ``<XXX>_FOUND`` may be a :ref:`;-list <CMake Language Lists>` if the
|
|
||||||
associated variable returned from ``pkg-config`` has multiple values.
|
|
||||||
|
|
||||||
There are some special variables whose prefix depends on the number of
|
|
||||||
``<moduleSpec>`` given. When there is only one ``<moduleSpec>``,
|
|
||||||
``<YYY>`` will simply be ``<prefix>``, but if two or more ``<moduleSpec>``
|
|
||||||
items are given, ``<YYY>`` will be ``<prefix>_<moduleName>``.
|
|
||||||
|
|
||||||
``<YYY>_VERSION``
|
|
||||||
version of the module
|
|
||||||
``<YYY>_PREFIX``
|
|
||||||
prefix directory of the module
|
|
||||||
``<YYY>_INCLUDEDIR``
|
|
||||||
include directory of the module
|
|
||||||
``<YYY>_LIBDIR``
|
|
||||||
lib directory of the module
|
|
||||||
|
|
||||||
Examples:
|
|
||||||
|
|
||||||
.. code-block:: cmake
|
|
||||||
|
|
||||||
pkg_check_modules (GLIB2 glib-2.0)
|
|
||||||
|
|
||||||
Looks for any version of glib2. If found, the output variable
|
|
||||||
``GLIB2_VERSION`` will hold the actual version found.
|
|
||||||
|
|
||||||
.. code-block:: cmake
|
|
||||||
|
|
||||||
pkg_check_modules (GLIB2 glib-2.0>=2.10)
|
|
||||||
|
|
||||||
Looks for at least version 2.10 of glib2. If found, the output variable
|
|
||||||
``GLIB2_VERSION`` will hold the actual version found.
|
|
||||||
|
|
||||||
.. code-block:: cmake
|
|
||||||
|
|
||||||
pkg_check_modules (FOO glib-2.0>=2.10 gtk+-2.0)
|
|
||||||
|
|
||||||
Looks for both glib2-2.0 (at least version 2.10) and any version of
|
|
||||||
gtk2+-2.0. Only if both are found will ``FOO`` be considered found.
|
|
||||||
The ``FOO_glib-2.0_VERSION`` and ``FOO_gtk+-2.0_VERSION`` variables will be
|
|
||||||
set to their respective found module versions.
|
|
||||||
|
|
||||||
.. code-block:: cmake
|
|
||||||
|
|
||||||
pkg_check_modules (XRENDER REQUIRED xrender)
|
|
||||||
|
|
||||||
Requires any version of ``xrender``. Example output variables set by a
|
|
||||||
successful call::
|
|
||||||
|
|
||||||
XRENDER_LIBRARIES=Xrender;X11
|
|
||||||
XRENDER_STATIC_LIBRARIES=Xrender;X11;pthread;Xau;Xdmcp
|
|
||||||
#]========================================]
|
|
||||||
macro(pkg_check_modules _prefix _module0)
|
|
||||||
_pkgconfig_parse_options(_pkg_modules _pkg_is_required _pkg_is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global "${_module0}" ${ARGN})
|
|
||||||
# check cached value
|
|
||||||
if (NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION} OR NOT ${_prefix}_FOUND OR
|
|
||||||
(NOT "${ARGN}" STREQUAL "" AND NOT "${__pkg_config_arguments_${_prefix}}" STREQUAL "${_module0};${ARGN}") OR
|
|
||||||
( "${ARGN}" STREQUAL "" AND NOT "${__pkg_config_arguments_${_prefix}}" STREQUAL "${_module0}"))
|
|
||||||
_pkg_check_modules_internal("${_pkg_is_required}" "${_pkg_is_silent}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global} "${_prefix}" ${_pkg_modules})
|
|
||||||
|
|
||||||
_pkgconfig_set(__pkg_config_checked_${_prefix} ${PKG_CONFIG_VERSION})
|
|
||||||
if (${_prefix}_FOUND)
|
|
||||||
_pkgconfig_set(__pkg_config_arguments_${_prefix} "${_module0};${ARGN}")
|
|
||||||
endif()
|
|
||||||
else()
|
|
||||||
if (${_prefix}_FOUND)
|
|
||||||
_pkg_recalculate("${_prefix}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global})
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
|
|
||||||
#[========================================[.rst:
|
|
||||||
.. command:: pkg_search_module
|
|
||||||
|
|
||||||
The behavior of this command is the same as :command:`pkg_check_modules`,
|
|
||||||
except that rather than checking for all the specified modules, it searches
|
|
||||||
for just the first successful match.
|
|
||||||
|
|
||||||
.. code-block:: cmake
|
|
||||||
|
|
||||||
pkg_search_module(<prefix>
|
|
||||||
[REQUIRED] [QUIET]
|
|
||||||
[NO_CMAKE_PATH]
|
|
||||||
[NO_CMAKE_ENVIRONMENT_PATH]
|
|
||||||
[IMPORTED_TARGET [GLOBAL]]
|
|
||||||
<moduleSpec> [<moduleSpec>...])
|
|
||||||
|
|
||||||
If a module is found, the ``<prefix>_MODULE_NAME`` variable will contain the
|
|
||||||
name of the matching module. This variable can be used if you need to run
|
|
||||||
:command:`pkg_get_variable`.
|
|
||||||
|
|
||||||
Example:
|
|
||||||
|
|
||||||
.. code-block:: cmake
|
|
||||||
|
|
||||||
pkg_search_module (BAR libxml-2.0 libxml2 libxml>=2)
|
|
||||||
#]========================================]
|
|
||||||
macro(pkg_search_module _prefix _module0)
|
|
||||||
_pkgconfig_parse_options(_pkg_modules_alt _pkg_is_required _pkg_is_silent _no_cmake_path _no_cmake_environment_path _imp_target _imp_target_global "${_module0}" ${ARGN})
|
|
||||||
# check cached value
|
|
||||||
if (NOT DEFINED __pkg_config_checked_${_prefix} OR __pkg_config_checked_${_prefix} LESS ${PKG_CONFIG_VERSION} OR NOT ${_prefix}_FOUND)
|
|
||||||
set(_pkg_modules_found 0)
|
|
||||||
|
|
||||||
if (NOT ${_pkg_is_silent})
|
|
||||||
message(STATUS "Checking for one of the modules '${_pkg_modules_alt}'")
|
|
||||||
endif ()
|
|
||||||
|
|
||||||
# iterate through all modules and stop at the first working one.
|
|
||||||
foreach(_pkg_alt ${_pkg_modules_alt})
|
|
||||||
if(NOT _pkg_modules_found)
|
|
||||||
_pkg_check_modules_internal(0 1 ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global} "${_prefix}" "${_pkg_alt}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (${_prefix}_FOUND)
|
|
||||||
set(_pkg_modules_found 1)
|
|
||||||
break()
|
|
||||||
endif()
|
|
||||||
endforeach()
|
|
||||||
|
|
||||||
if (NOT ${_prefix}_FOUND)
|
|
||||||
if(${_pkg_is_required})
|
|
||||||
message(SEND_ERROR "None of the required '${_pkg_modules_alt}' found")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
_pkgconfig_set(__pkg_config_checked_${_prefix} ${PKG_CONFIG_VERSION})
|
|
||||||
elseif (${_prefix}_FOUND)
|
|
||||||
_pkg_recalculate("${_prefix}" ${_no_cmake_path} ${_no_cmake_environment_path} ${_imp_target} ${_imp_target_global})
|
|
||||||
endif()
|
|
||||||
endmacro()
|
|
||||||
|
|
||||||
#[========================================[.rst:
|
|
||||||
.. command:: pkg_get_variable
|
|
||||||
|
|
||||||
Retrieves the value of a pkg-config variable ``varName`` and stores it in the
|
|
||||||
result variable ``resultVar`` in the calling scope.
|
|
||||||
|
|
||||||
.. code-block:: cmake
|
|
||||||
|
|
||||||
pkg_get_variable(<resultVar> <moduleName> <varName>)
|
|
||||||
|
|
||||||
If ``pkg-config`` returns multiple values for the specified variable,
|
|
||||||
``resultVar`` will contain a :ref:`;-list <CMake Language Lists>`.
|
|
||||||
|
|
||||||
For example:
|
|
||||||
|
|
||||||
.. code-block:: cmake
|
|
||||||
|
|
||||||
pkg_get_variable(GI_GIRDIR gobject-introspection-1.0 girdir)
|
|
||||||
#]========================================]
|
|
||||||
function (pkg_get_variable result pkg variable)
|
|
||||||
_pkg_set_path_internal()
|
|
||||||
_pkgconfig_invoke("${pkg}" "prefix" "result" "" "--variable=${variable}")
|
|
||||||
set("${result}"
|
|
||||||
"${prefix_result}"
|
|
||||||
PARENT_SCOPE)
|
|
||||||
_pkg_restore_path_internal()
|
|
||||||
endfunction ()
|
|
||||||
|
|
||||||
|
|
||||||
#[========================================[.rst:
|
|
||||||
Variables Affecting Behavior
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
.. variable:: PKG_CONFIG_EXECUTABLE
|
|
||||||
|
|
||||||
This can be set to the path of the pkg-config executable. If not provided,
|
|
||||||
it will be set by the module as a result of calling :command:`find_program`
|
|
||||||
internally. The ``PKG_CONFIG`` environment variable can be used as a hint.
|
|
||||||
|
|
||||||
.. variable:: PKG_CONFIG_USE_CMAKE_PREFIX_PATH
|
|
||||||
|
|
||||||
Specifies whether :command:`pkg_check_modules` and
|
|
||||||
:command:`pkg_search_module` should add the paths in the
|
|
||||||
:variable:`CMAKE_PREFIX_PATH`, :variable:`CMAKE_FRAMEWORK_PATH` and
|
|
||||||
:variable:`CMAKE_APPBUNDLE_PATH` cache and environment variables to the
|
|
||||||
``pkg-config`` search path.
|
|
||||||
|
|
||||||
If this variable is not set, this behavior is enabled by default if
|
|
||||||
:variable:`CMAKE_MINIMUM_REQUIRED_VERSION` is 3.1 or later, disabled
|
|
||||||
otherwise.
|
|
||||||
#]========================================]
|
|
||||||
|
|
||||||
|
|
||||||
### Local Variables:
|
|
||||||
### mode: cmake
|
|
||||||
### End:
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
|
||||||
# Copyright (C) 2009 Julien Louis <ptitlouis@sysif.net>
|
|
||||||
#
|
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
#
|
|
||||||
# WeeChat is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
|
|
||||||
# - Find Python
|
|
||||||
# This module finds if Python is installed and determines where the include files
|
|
||||||
# and libraries are. It also determines what the name of the library is. This
|
|
||||||
# code sets the following variables:
|
|
||||||
#
|
|
||||||
# PYTHON_EXECUTABLE = full path to the python binary
|
|
||||||
# PYTHON_INCLUDE_DIRS = path to where python.h can be found
|
|
||||||
# PYTHON_LIBRARIES = path to where libpython.so* can be found
|
|
||||||
# PYTHON_LDFLAGS = python compiler options for linking
|
|
||||||
|
|
||||||
pkg_check_modules(PYTHON python3-embed IMPORTED_TARGET GLOBAL)
|
|
||||||
if(NOT PYTHON_FOUND)
|
|
||||||
pkg_check_modules(PYTHON python3 IMPORTED_TARGET GLOBAL)
|
|
||||||
endif()
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
|
||||||
#
|
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
|
||||||
#
|
|
||||||
# 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.
|
|
||||||
#
|
|
||||||
# WeeChat is distributed in the hope that it will be useful,
|
|
||||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
# GNU General Public License for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License
|
|
||||||
# along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
|
||||||
#
|
|
||||||
|
|
||||||
# - Find Ruby
|
|
||||||
# This module finds if Ruby is installed and determines where the include files
|
|
||||||
# and libraries are. It also determines what the name of the library is. This
|
|
||||||
# code sets the following variables:
|
|
||||||
#
|
|
||||||
# RUBY_INCLUDE_DIRS = C flags to compile with ruby
|
|
||||||
# RUBY_LIBRARY_DIRS = linker flags to compile with ruby (found with pkg-config)
|
|
||||||
# RUBY_LIB = ruby library (found without pkg-config)
|
|
||||||
|
|
||||||
if(RUBY_FOUND)
|
|
||||||
# Already in cache, be silent
|
|
||||||
set(RUBY_FIND_QUIETLY TRUE)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
find_package(PkgConfig)
|
|
||||||
if(PKG_CONFIG_FOUND)
|
|
||||||
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
||||||
# set specific search path for macOS
|
|
||||||
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/ruby/lib/pkgconfig")
|
|
||||||
endif()
|
|
||||||
pkg_search_module(RUBY ruby-3.3 ruby-3.2 ruby-3.1 ruby-3.0 ruby-2.7 ruby-2.6 ruby-2.5 ruby-2.4 ruby-2.3 ruby-2.2 ruby-2.1 ruby-2.0 ruby-1.9 ruby)
|
|
||||||
if(RUBY_FOUND AND ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
||||||
# FIXME: weird hack: hardcoding the Ruby lib location on macOS
|
|
||||||
set(RUBY_LDFLAGS "${RUBY_LDFLAGS} -L/usr/local/opt/ruby/lib")
|
|
||||||
endif()
|
|
||||||
endif()
|
|
||||||
+3
-1
@@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2015-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2015-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,76 +0,0 @@
|
|||||||
# - Find zlib
|
|
||||||
# Find the native ZLIB includes and library.
|
|
||||||
# Once done this will define
|
|
||||||
#
|
|
||||||
# ZLIB_INCLUDE_DIRS - where to find zlib.h, etc.
|
|
||||||
# ZLIB_LIBRARIES - List of libraries when using zlib.
|
|
||||||
# ZLIB_FOUND - True if zlib found.
|
|
||||||
#
|
|
||||||
# ZLIB_VERSION_STRING - The version of zlib found (x.y.z)
|
|
||||||
# ZLIB_VERSION_MAJOR - The major version of zlib
|
|
||||||
# ZLIB_VERSION_MINOR - The minor version of zlib
|
|
||||||
# ZLIB_VERSION_PATCH - The patch version of zlib
|
|
||||||
# ZLIB_VERSION_TWEAK - The tweak version of zlib
|
|
||||||
#
|
|
||||||
# The following variable are provided for backward compatibility
|
|
||||||
#
|
|
||||||
# ZLIB_MAJOR_VERSION - The major version of zlib
|
|
||||||
# ZLIB_MINOR_VERSION - The minor version of zlib
|
|
||||||
# ZLIB_PATCH_VERSION - The patch version of zlib
|
|
||||||
|
|
||||||
#=============================================================================
|
|
||||||
# Copyright 2001-2009 Kitware, Inc.
|
|
||||||
#
|
|
||||||
# Distributed under the OSI-approved BSD License (the "License");
|
|
||||||
# see accompanying file Copyright.txt for details.
|
|
||||||
#
|
|
||||||
# This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
||||||
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
||||||
# See the License for more information.
|
|
||||||
#=============================================================================
|
|
||||||
# (To distribute this file outside of CMake, substitute the full
|
|
||||||
# License text for the above reference.)
|
|
||||||
|
|
||||||
find_path(ZLIB_INCLUDE_DIR zlib.h
|
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Zlib;InstallPath]/include"
|
|
||||||
)
|
|
||||||
|
|
||||||
set(ZLIB_NAMES z zlib zdll zlib1 zlibd zlibd1)
|
|
||||||
find_library(ZLIB_LIBRARY
|
|
||||||
NAMES
|
|
||||||
${ZLIB_NAMES}
|
|
||||||
PATHS
|
|
||||||
"[HKEY_LOCAL_MACHINE\\SOFTWARE\\GnuWin32\\Zlib;InstallPath]/lib"
|
|
||||||
)
|
|
||||||
mark_as_advanced(ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
|
|
||||||
|
|
||||||
if(ZLIB_INCLUDE_DIR AND EXISTS "${ZLIB_INCLUDE_DIR}/zlib.h")
|
|
||||||
file(STRINGS "${ZLIB_INCLUDE_DIR}/zlib.h" ZLIB_H REGEX "^#define ZLIB_VERSION \"[^\"]*\"$")
|
|
||||||
|
|
||||||
string(REGEX REPLACE "^.*ZLIB_VERSION \"([0-9]+).*$" "\\1" ZLIB_VERSION_MAJOR "${ZLIB_H}")
|
|
||||||
string(REGEX REPLACE "^.*ZLIB_VERSION \"[0-9]+\\.([0-9]+).*$" "\\1" ZLIB_VERSION_MINOR "${ZLIB_H}")
|
|
||||||
string(REGEX REPLACE "^.*ZLIB_VERSION \"[0-9]+\\.[0-9]+\\.([0-9]+).*$" "\\1" ZLIB_VERSION_PATCH "${ZLIB_H}")
|
|
||||||
set(ZLIB_VERSION_STRING "${ZLIB_VERSION_MAJOR}.${ZLIB_VERSION_MINOR}.${ZLIB_VERSION_PATCH}")
|
|
||||||
|
|
||||||
# only append a TWEAK version if it exists:
|
|
||||||
set(ZLIB_VERSION_TWEAK "")
|
|
||||||
if("${ZLIB_H}" MATCHES "^.*ZLIB_VERSION \"[0-9]+\\.[0-9]+\\.[0-9]+\\.([0-9]+).*$")
|
|
||||||
set(ZLIB_VERSION_TWEAK "${CMAKE_MATCH_1}")
|
|
||||||
set(ZLIB_VERSION_STRING "${ZLIB_VERSION_STRING}.${ZLIB_VERSION_TWEAK}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(ZLIB_MAJOR_VERSION "${ZLIB_VERSION_MAJOR}")
|
|
||||||
set(ZLIB_MINOR_VERSION "${ZLIB_VERSION_MINOR}")
|
|
||||||
set(ZLIB_PATCH_VERSION "${ZLIB_VERSION_PATCH}")
|
|
||||||
endif()
|
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set ZLIB_FOUND to TRUE if
|
|
||||||
# all listed variables are TRUE
|
|
||||||
include(FindPackageHandleStandardArgs)
|
|
||||||
find_package_handle_standard_args(ZLIB REQUIRED_VARS ZLIB_LIBRARY ZLIB_INCLUDE_DIR
|
|
||||||
VERSION_VAR ZLIB_VERSION_STRING)
|
|
||||||
|
|
||||||
if(ZLIB_FOUND)
|
|
||||||
set(ZLIB_INCLUDE_DIRS ${ZLIB_INCLUDE_DIR})
|
|
||||||
set(ZLIB_LIBRARIES ${ZLIB_LIBRARY})
|
|
||||||
endif()
|
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
|
|||||||
+7
-1
@@ -1,3 +1,9 @@
|
|||||||
|
/*
|
||||||
|
SPDX-FileCopyrightText: 2007-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
*/
|
||||||
|
|
||||||
#cmakedefine01 ENABLE_NCURSES
|
#cmakedefine01 ENABLE_NCURSES
|
||||||
#cmakedefine01 ENABLE_HEADLESS
|
#cmakedefine01 ENABLE_HEADLESS
|
||||||
#cmakedefine01 ENABLE_NLS
|
#cmakedefine01 ENABLE_NLS
|
||||||
@@ -43,9 +49,9 @@
|
|||||||
#cmakedefine HAVE_MALLINFO2
|
#cmakedefine HAVE_MALLINFO2
|
||||||
#cmakedefine HAVE_MALLOC_H
|
#cmakedefine HAVE_MALLOC_H
|
||||||
#cmakedefine HAVE_MALLOC_TRIM
|
#cmakedefine HAVE_MALLOC_TRIM
|
||||||
|
#cmakedefine HAVE_HTONLL
|
||||||
#cmakedefine HAVE_EAT_NEWLINE_GLITCH
|
#cmakedefine HAVE_EAT_NEWLINE_GLITCH
|
||||||
#cmakedefine HAVE_ASPELL_VERSION_STRING
|
#cmakedefine HAVE_ASPELL_VERSION_STRING
|
||||||
#cmakedefine HAVE_ENCHANT_GET_VERSION
|
|
||||||
#cmakedefine HAVE_GUILE_GMP_MEMORY_FUNCTIONS
|
#cmakedefine HAVE_GUILE_GMP_MEMORY_FUNCTIONS
|
||||||
|
|
||||||
#define CMAKE_BUILD_TYPE "@CMAKE_BUILD_TYPE@"
|
#define CMAKE_BUILD_TYPE "@CMAKE_BUILD_TYPE@"
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
Source: weechat-devel
|
Source: weechat-devel
|
||||||
Section: net
|
Section: net
|
||||||
Priority: optional
|
|
||||||
Maintainer: Sébastien Helleu <flashcode@flashtux.org>
|
Maintainer: Sébastien Helleu <flashcode@flashtux.org>
|
||||||
Build-Depends:
|
Build-Depends:
|
||||||
asciidoctor (>= 1.5.4),
|
asciidoctor (>= 1.5.4),
|
||||||
@@ -13,7 +12,7 @@ Build-Depends:
|
|||||||
libperl-dev,
|
libperl-dev,
|
||||||
python3-dev,
|
python3-dev,
|
||||||
libaspell-dev,
|
libaspell-dev,
|
||||||
liblua5.3-dev,
|
liblua5.4-dev,
|
||||||
tcl8.6-dev,
|
tcl8.6-dev,
|
||||||
guile-3.0-dev,
|
guile-3.0-dev,
|
||||||
php-dev, libphp-embed, libargon2-dev, libsodium-dev,
|
php-dev, libphp-embed, libargon2-dev, libsodium-dev,
|
||||||
@@ -24,7 +23,7 @@ Build-Depends:
|
|||||||
libzstd-dev,
|
libzstd-dev,
|
||||||
zlib1g-dev,
|
zlib1g-dev,
|
||||||
libcjson-dev
|
libcjson-dev
|
||||||
Standards-Version: 4.6.2
|
Standards-Version: 4.7.3
|
||||||
Homepage: https://weechat.org/
|
Homepage: https://weechat.org/
|
||||||
Vcs-Git: https://salsa.debian.org/kolter/weechat.git
|
Vcs-Git: https://salsa.debian.org/kolter/weechat.git
|
||||||
Vcs-Browser: https://salsa.debian.org/kolter/weechat
|
Vcs-Browser: https://salsa.debian.org/kolter/weechat
|
||||||
|
|||||||
@@ -16,8 +16,5 @@ override_dh_auto_configure:
|
|||||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
||||||
|
|
||||||
override_dh_installchangelogs:
|
|
||||||
dh_installchangelogs CHANGELOG.md
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --builddirectory=$(BUILDDIR)
|
dh $@ --builddirectory=$(BUILDDIR)
|
||||||
|
|||||||
+65
-4
@@ -1,3 +1,64 @@
|
|||||||
|
weechat (4.8.1-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release
|
||||||
|
* Bump Standards-Version to 4.7.3
|
||||||
|
* Update debian/copyright file (new year)
|
||||||
|
* Remove redundant priority optional field from debian/control
|
||||||
|
|
||||||
|
-- Emmanuel Bouthenot <kolter@debian.org> Fri, 23 Jan 2026 22:02:31 +0000
|
||||||
|
|
||||||
|
weechat (4.7.2-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release (Closes: #1119787)
|
||||||
|
* Update debian/watch to version 5
|
||||||
|
* Remove useless 'Rules-Requires-Root: no' from debian/control
|
||||||
|
|
||||||
|
-- Emmanuel Bouthenot <kolter@debian.org> Sat, 29 Nov 2025 08:53:10 +0000
|
||||||
|
|
||||||
|
weechat (4.6.3-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release
|
||||||
|
- fixes multiple security vulnerabilities (Closes: #1104554)
|
||||||
|
|
||||||
|
-- Emmanuel Bouthenot <kolter@debian.org> Sat, 17 May 2025 05:49:46 +0000
|
||||||
|
|
||||||
|
weechat (4.6.1-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release (Closes: #1102450, #1098090)
|
||||||
|
|
||||||
|
-- Emmanuel Bouthenot <kolter@debian.org> Wed, 16 Apr 2025 20:31:07 +0000
|
||||||
|
|
||||||
|
weechat (4.5.1-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release
|
||||||
|
* Update copyright file (new year)
|
||||||
|
|
||||||
|
-- Emmanuel Bouthenot <kolter@debian.org> Mon, 20 Jan 2025 14:39:42 +0000
|
||||||
|
|
||||||
|
weechat (4.4.3-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release
|
||||||
|
* Remove (fixed upstream) the fix for a possible privacy breach with html
|
||||||
|
documentation which includes stylesheets and fonts (font-awesome) hosted
|
||||||
|
on remote CDN (Cloudflare).
|
||||||
|
|
||||||
|
-- Emmanuel Bouthenot <kolter@debian.org> Wed, 06 Nov 2024 21:27:08 +0000
|
||||||
|
|
||||||
|
weechat (4.4.2-1) unstable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release
|
||||||
|
- fix crash where exiting (Closes: #1076532)
|
||||||
|
- fix a minor security issue (Closes: #1081942)
|
||||||
|
* Fix possible privacy breach with html documentation which includes
|
||||||
|
stylesheets and fonts (font-awesome) hosted on remote CDN (Cloudflare)
|
||||||
|
by replacing them during build process by the ones provided in
|
||||||
|
fonts-font-awesome package (also added as dependency on weechat-doc).
|
||||||
|
* Refresh weechat-doc with minor changes and add some documentation in
|
||||||
|
Serbian and Czech.
|
||||||
|
* Bump Standards-Version to 4.7.0
|
||||||
|
|
||||||
|
-- Emmanuel Bouthenot <kolter@debian.org> Sun, 22 Sep 2024 13:08:28 +0000
|
||||||
|
|
||||||
weechat (4.3.1-1) unstable; urgency=medium
|
weechat (4.3.1-1) unstable; urgency=medium
|
||||||
|
|
||||||
* New upstream release (Closes: #1067608)
|
* New upstream release (Closes: #1067608)
|
||||||
@@ -528,7 +589,7 @@ weechat (0.3.6-1) unstable; urgency=low
|
|||||||
documentation when weechat-doc is installed (Closes: #632621)
|
documentation when weechat-doc is installed (Closes: #632621)
|
||||||
* Add a Suggest on weechat-doc for weechat and weechat-curses. Thanks to
|
* Add a Suggest on weechat-doc for weechat and weechat-curses. Thanks to
|
||||||
Jonathan Nieder for the proposal.
|
Jonathan Nieder for the proposal.
|
||||||
* Fix the cmake invokation from debian/rules (cflags and ldflags)
|
* Fix the cmake invocation from debian/rules (cflags and ldflags)
|
||||||
|
|
||||||
-- Emmanuel Bouthenot <kolter@debian.org> Wed, 26 Oct 2011 20:10:09 +0000
|
-- Emmanuel Bouthenot <kolter@debian.org> Wed, 26 Oct 2011 20:10:09 +0000
|
||||||
|
|
||||||
@@ -750,7 +811,7 @@ weechat (0.2.3-1) unstable; urgency=low
|
|||||||
* New upstream release
|
* New upstream release
|
||||||
* Bump lua build-dependency to liblua5.1-0-dev
|
* Bump lua build-dependency to liblua5.1-0-dev
|
||||||
* Add pkg-config to Build-Depends
|
* Add pkg-config to Build-Depends
|
||||||
* Remove some duplited changelog entries.
|
* Remove some duplicated changelog entries.
|
||||||
* Improve weechat-plugins description
|
* Improve weechat-plugins description
|
||||||
|
|
||||||
-- Julien Louis <ptitlouis@sysif.net> Fri, 12 Jan 2007 09:01:46 +0100
|
-- Julien Louis <ptitlouis@sysif.net> Fri, 12 Jan 2007 09:01:46 +0100
|
||||||
@@ -758,7 +819,7 @@ weechat (0.2.3-1) unstable; urgency=low
|
|||||||
weechat (0.2.1-1) unstable; urgency=low
|
weechat (0.2.1-1) unstable; urgency=low
|
||||||
|
|
||||||
* New upstream release
|
* New upstream release
|
||||||
* Overrive lintian menu-icon-missing warning
|
* Override lintian menu-icon-missing warning
|
||||||
since the icon is in the weechat-common package.
|
since the icon is in the weechat-common package.
|
||||||
|
|
||||||
-- Julien Louis <ptitlouis@sysif.net> Mon, 2 Oct 2006 15:30:06 +0200
|
-- Julien Louis <ptitlouis@sysif.net> Mon, 2 Oct 2006 15:30:06 +0200
|
||||||
@@ -903,7 +964,7 @@ weechat (0.1.1-2) unstable; urgency=low
|
|||||||
|
|
||||||
* debian/control:
|
* debian/control:
|
||||||
- Add myself to uploaders.
|
- Add myself to uploaders.
|
||||||
- Remove unecessary dependency on weechat-gtk (Closes: #308287).
|
- Remove unnecessary dependency on weechat-gtk (Closes: #308287).
|
||||||
|
|
||||||
-- Julien Louis <ptitlouis@sysif.net> Tue, 10 May 2005 22:38:52 +0200
|
-- Julien Louis <ptitlouis@sysif.net> Tue, 10 May 2005 22:38:52 +0200
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
Source: weechat
|
Source: weechat
|
||||||
Section: net
|
Section: net
|
||||||
Priority: optional
|
|
||||||
Maintainer: Emmanuel Bouthenot <kolter@debian.org>
|
Maintainer: Emmanuel Bouthenot <kolter@debian.org>
|
||||||
Build-Depends:
|
Build-Depends:
|
||||||
asciidoctor (>= 1.5.4),
|
asciidoctor (>= 1.5.4),
|
||||||
@@ -13,7 +12,7 @@ Build-Depends:
|
|||||||
libperl-dev,
|
libperl-dev,
|
||||||
python3-dev,
|
python3-dev,
|
||||||
libaspell-dev,
|
libaspell-dev,
|
||||||
liblua5.3-dev,
|
liblua5.4-dev,
|
||||||
tcl8.6-dev,
|
tcl8.6-dev,
|
||||||
guile-3.0-dev,
|
guile-3.0-dev,
|
||||||
php-dev, libphp-embed, libargon2-dev, libsodium-dev,
|
php-dev, libphp-embed, libargon2-dev, libsodium-dev,
|
||||||
@@ -24,7 +23,7 @@ Build-Depends:
|
|||||||
libzstd-dev,
|
libzstd-dev,
|
||||||
zlib1g-dev,
|
zlib1g-dev,
|
||||||
libcjson-dev
|
libcjson-dev
|
||||||
Standards-Version: 4.6.2
|
Standards-Version: 4.7.3
|
||||||
Homepage: https://weechat.org/
|
Homepage: https://weechat.org/
|
||||||
Vcs-Git: https://salsa.debian.org/kolter/weechat.git
|
Vcs-Git: https://salsa.debian.org/kolter/weechat.git
|
||||||
Vcs-Browser: https://salsa.debian.org/kolter/weechat
|
Vcs-Browser: https://salsa.debian.org/kolter/weechat
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ Upstream-Contact: Sébastien Helleu <flashcode@flashtux.org>
|
|||||||
Source: https://weechat.org/
|
Source: https://weechat.org/
|
||||||
|
|
||||||
Files: *
|
Files: *
|
||||||
Copyright: 2003-2024, Sébastien Helleu <flashcode@flashtux.org>
|
Copyright: 2003-2026, Sébastien Helleu <flashcode@flashtux.org>
|
||||||
License: GPL-3+
|
License: GPL-3+
|
||||||
|
|
||||||
Files: src/core/core-command.c
|
Files: src/core/core-command.c
|
||||||
|
|||||||
@@ -16,8 +16,5 @@ override_dh_auto_configure:
|
|||||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
||||||
|
|
||||||
override_dh_installchangelogs:
|
|
||||||
dh_installchangelogs CHANGELOG.md
|
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --builddirectory=$(BUILDDIR)
|
dh $@ --builddirectory=$(BUILDDIR)
|
||||||
|
|||||||
+4
-2
@@ -1,2 +1,4 @@
|
|||||||
version=4
|
Version: 5
|
||||||
opts=pgpsigurlmangle=s/$/.asc/ https://weechat.org/download/ /files/src/weechat-(\d.*)\.tar\.xz
|
Source: https://weechat.org/download/
|
||||||
|
Matching-Pattern: /files/src/@PACKAGE@@ANY_VERSION@@ARCHIVE_EXT@
|
||||||
|
Pgp-Mode: auto
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
AUTHORS.md
|
AUTHORS.md
|
||||||
|
CHANGELOG.md
|
||||||
CONTRIBUTING.md
|
CONTRIBUTING.md
|
||||||
README.md
|
README.md
|
||||||
UPGRADING.md
|
UPGRADING.md
|
||||||
|
|||||||
+49
-14
@@ -1,6 +1,8 @@
|
|||||||
#
|
#
|
||||||
# Copyright (C) 2003-2024 Sébastien Helleu <flashcode@flashtux.org>
|
# SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
# Copyright (C) 2009 Emmanuel Bouthenot <kolter@openics.org>
|
# SPDX-FileCopyrightText: 2009 Emmanuel Bouthenot <kolter@openics.org>
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
#
|
#
|
||||||
# This file is part of WeeChat, the extensible chat client.
|
# This file is part of WeeChat, the extensible chat client.
|
||||||
#
|
#
|
||||||
@@ -28,24 +30,49 @@ if(ENABLE_MAN OR ENABLE_DOC)
|
|||||||
set(SCRIPTING_LANG de en fr it ja pl sr)
|
set(SCRIPTING_LANG de en fr it ja pl sr)
|
||||||
set(FAQ_LANG de en es fr it ja pl sr)
|
set(FAQ_LANG de en es fr it ja pl sr)
|
||||||
set(QUICKSTART_LANG cs de en es fr it ja pl ru sr)
|
set(QUICKSTART_LANG cs de en es fr it ja pl ru sr)
|
||||||
set(RELAY_API_LANG en fr)
|
set(RELAY_API_LANG en fr sr)
|
||||||
set(RELAY_WEECHAT_LANG en fr ja sr)
|
set(RELAY_WEECHAT_LANG en fr ja sr)
|
||||||
set(DEV_LANG en fr ja sr)
|
set(DEV_LANG en fr ja sr)
|
||||||
|
|
||||||
find_package(Asciidoctor)
|
find_package(Asciidoctor)
|
||||||
if(ASCIIDOCTOR_FOUND)
|
if(ASCIIDOCTOR_FOUND)
|
||||||
|
# Asciidoctor embeds the light style automatically; the dark stylesheet
|
||||||
|
# is generated below and scoped via @media in docinfo.html.in.
|
||||||
|
set(PYGMENTS_LIGHT_STYLE "default")
|
||||||
|
set(PYGMENTS_DARK_STYLE "monokai")
|
||||||
|
find_program(PYGMENTIZE_EXECUTABLE pygmentize)
|
||||||
|
set(PYGMENTS_DARK_CSS "")
|
||||||
|
if(PYGMENTIZE_EXECUTABLE)
|
||||||
|
execute_process(
|
||||||
|
COMMAND "${PYGMENTIZE_EXECUTABLE}" -O "classprefix=tok-" -f html -a "pre.pygments" -S "${PYGMENTS_DARK_STYLE}"
|
||||||
|
OUTPUT_VARIABLE PYGMENTS_DARK_CSS
|
||||||
|
RESULT_VARIABLE _pygmentize_result
|
||||||
|
)
|
||||||
|
if(NOT _pygmentize_result EQUAL 0)
|
||||||
|
message(WARNING "Failed to generate pygments CSS for dark theme (style: ${PYGMENTS_DARK_STYLE}); doc will be built without dark theme syntax highlighting")
|
||||||
|
set(PYGMENTS_DARK_CSS "")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
message(WARNING "pygmentize not found (install python3-pygments); doc will be built without syntax highlighting colors")
|
||||||
|
endif()
|
||||||
|
configure_file(
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html.in"
|
||||||
|
"${CMAKE_CURRENT_BINARY_DIR}/docinfo.html"
|
||||||
|
@ONLY
|
||||||
|
)
|
||||||
|
|
||||||
# common asciidoctor arguments
|
# common asciidoctor arguments
|
||||||
set(ASCIIDOCTOR_ARGS
|
set(ASCIIDOCTOR_ARGS
|
||||||
|
-v
|
||||||
-a experimental
|
-a experimental
|
||||||
-a reproducible
|
-a reproducible
|
||||||
-a "prewrap!"
|
-a "prewrap!"
|
||||||
-a "webfonts!"
|
-a "webfonts!"
|
||||||
-a icons=font
|
|
||||||
-a revnumber="${VERSION}"
|
-a revnumber="${VERSION}"
|
||||||
-a sectanchors
|
-a sectanchors
|
||||||
-a source-highlighter=pygments
|
-a source-highlighter=pygments
|
||||||
-a pygments-style=native
|
-a pygments-style=${PYGMENTS_LIGHT_STYLE}
|
||||||
-a docinfodir="${CMAKE_CURRENT_SOURCE_DIR}"
|
-a docinfodir="${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
-a autogendir="${CMAKE_CURRENT_BINARY_DIR}/autogen"
|
-a autogendir="${CMAKE_CURRENT_BINARY_DIR}/autogen"
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -203,8 +230,9 @@ if(ENABLE_MAN OR ENABLE_DOC)
|
|||||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.${lang}.html"
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_user.${lang}.html"
|
||||||
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_USER_ARGS} -o "weechat_user.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_user.${lang}.adoc"
|
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_USER_ARGS} -o "weechat_user.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_user.${lang}.adoc"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
|
"${CMAKE_CURRENT_BINARY_DIR}/docinfo.html"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_user.${lang}.adoc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_user.${lang}.adoc"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/attributes-${lang}.adoc"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/cmdline_options.${lang}.adoc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/cmdline_options.${lang}.adoc"
|
||||||
doc-autogen
|
doc-autogen
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_user_commands.${lang}.adoc"
|
"${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_user_commands.${lang}.adoc"
|
||||||
@@ -223,8 +251,9 @@ if(ENABLE_MAN OR ENABLE_DOC)
|
|||||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.${lang}.html"
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_plugin_api.${lang}.html"
|
||||||
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_PLUGIN_API_ARGS} -o "weechat_plugin_api.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_plugin_api.${lang}.adoc"
|
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_PLUGIN_API_ARGS} -o "weechat_plugin_api.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_plugin_api.${lang}.adoc"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
|
"${CMAKE_CURRENT_BINARY_DIR}/docinfo.html"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_plugin_api.${lang}.adoc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_plugin_api.${lang}.adoc"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/attributes-${lang}.adoc"
|
||||||
doc-autogen
|
doc-autogen
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_completions.${lang}.adoc"
|
"${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_completions.${lang}.adoc"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_config_priority.${lang}.adoc"
|
"${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_api_config_priority.${lang}.adoc"
|
||||||
@@ -246,8 +275,9 @@ if(ENABLE_MAN OR ENABLE_DOC)
|
|||||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.${lang}.html"
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_scripting.${lang}.html"
|
||||||
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_SCRIPTING_ARGS} -o "weechat_scripting.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_scripting.${lang}.adoc"
|
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_SCRIPTING_ARGS} -o "weechat_scripting.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_scripting.${lang}.adoc"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
|
"${CMAKE_CURRENT_BINARY_DIR}/docinfo.html"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_scripting.${lang}.adoc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_scripting.${lang}.adoc"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/attributes-${lang}.adoc"
|
||||||
doc-autogen
|
doc-autogen
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_scripting_functions.${lang}.adoc"
|
"${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_scripting_functions.${lang}.adoc"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_scripting_constants.${lang}.adoc"
|
"${CMAKE_CURRENT_BINARY_DIR}/autogen/autogen_scripting_constants.${lang}.adoc"
|
||||||
@@ -263,8 +293,9 @@ if(ENABLE_MAN OR ENABLE_DOC)
|
|||||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.${lang}.html"
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_faq.${lang}.html"
|
||||||
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_FAQ_ARGS} -o "weechat_faq.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_faq.${lang}.adoc"
|
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_FAQ_ARGS} -o "weechat_faq.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_faq.${lang}.adoc"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
|
"${CMAKE_CURRENT_BINARY_DIR}/docinfo.html"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_faq.${lang}.adoc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_faq.${lang}.adoc"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/attributes-${lang}.adoc"
|
||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
COMMENT "Building weechat_faq.${lang}.html"
|
COMMENT "Building weechat_faq.${lang}.html"
|
||||||
)
|
)
|
||||||
@@ -277,8 +308,9 @@ if(ENABLE_MAN OR ENABLE_DOC)
|
|||||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.${lang}.html"
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_quickstart.${lang}.html"
|
||||||
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_QUICKSTART_ARGS} -o "weechat_quickstart.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_quickstart.${lang}.adoc"
|
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_QUICKSTART_ARGS} -o "weechat_quickstart.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_quickstart.${lang}.adoc"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
|
"${CMAKE_CURRENT_BINARY_DIR}/docinfo.html"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_quickstart.${lang}.adoc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_quickstart.${lang}.adoc"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/attributes-${lang}.adoc"
|
||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
COMMENT "Building weechat_quickstart.${lang}.html"
|
COMMENT "Building weechat_quickstart.${lang}.html"
|
||||||
)
|
)
|
||||||
@@ -291,8 +323,9 @@ if(ENABLE_MAN OR ENABLE_DOC)
|
|||||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_api.${lang}.html"
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_api.${lang}.html"
|
||||||
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_RELAY_API_ARGS} -o "weechat_relay_api.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_relay_api.${lang}.adoc"
|
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_RELAY_API_ARGS} -o "weechat_relay_api.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_relay_api.${lang}.adoc"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
|
"${CMAKE_CURRENT_BINARY_DIR}/docinfo.html"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_relay_api.${lang}.adoc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_relay_api.${lang}.adoc"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/attributes-${lang}.adoc"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/relay.${lang}.adoc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/relay.${lang}.adoc"
|
||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
COMMENT "Building weechat_relay_api.${lang}.html"
|
COMMENT "Building weechat_relay_api.${lang}.html"
|
||||||
@@ -306,8 +339,9 @@ if(ENABLE_MAN OR ENABLE_DOC)
|
|||||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_weechat.${lang}.html"
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_relay_weechat.${lang}.html"
|
||||||
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_RELAY_WEECHAT_ARGS} -o "weechat_relay_weechat.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_relay_weechat.${lang}.adoc"
|
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_RELAY_WEECHAT_ARGS} -o "weechat_relay_weechat.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_relay_weechat.${lang}.adoc"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
|
"${CMAKE_CURRENT_BINARY_DIR}/docinfo.html"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_relay_weechat.${lang}.adoc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_relay_weechat.${lang}.adoc"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/attributes-${lang}.adoc"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/relay.${lang}.adoc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/relay.${lang}.adoc"
|
||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
COMMENT "Building weechat_relay_weechat.${lang}.html"
|
COMMENT "Building weechat_relay_weechat.${lang}.html"
|
||||||
@@ -321,8 +355,9 @@ if(ENABLE_MAN OR ENABLE_DOC)
|
|||||||
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.${lang}.html"
|
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/weechat_dev.${lang}.html"
|
||||||
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_DEV_ARGS} -o "weechat_dev.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_dev.${lang}.adoc"
|
COMMAND "${ASCIIDOCTOR_EXECUTABLE}" ARGS ${ASCIIDOCTOR_ARGS} ${ASCIIDOCTOR_DEV_ARGS} -o "weechat_dev.${lang}.html" "${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_dev.${lang}.adoc"
|
||||||
DEPENDS
|
DEPENDS
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/docinfo.html"
|
"${CMAKE_CURRENT_BINARY_DIR}/docinfo.html"
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_dev.${lang}.adoc"
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/weechat_dev.${lang}.adoc"
|
||||||
|
"${CMAKE_CURRENT_SOURCE_DIR}/${lang}/includes/attributes-${lang}.adoc"
|
||||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||||
COMMENT "Building weechat_dev.${lang}.html"
|
COMMENT "Building weechat_dev.${lang}.html"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2017-2020 Dan Allen, Sarah White, Ryan Waldron
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
//
|
||||||
|
// czech translation, for reference only; matches the built-in behavior of core
|
||||||
|
:appendix-caption: Příloha
|
||||||
|
:appendix-refsig: {appendix-caption}
|
||||||
|
:caution-caption: Upozornění
|
||||||
|
:chapter-signifier: Kapitola
|
||||||
|
:chapter-refsig: {chapter-signifier}
|
||||||
|
:example-caption: Příklad
|
||||||
|
:figure-caption: Obrázek
|
||||||
|
:important-caption: Důležité
|
||||||
|
:last-update-label: Změněno
|
||||||
|
ifdef::listing-caption[:listing-caption: Seznam]
|
||||||
|
ifdef::manname-title[:manname-title: Název]
|
||||||
|
:note-caption: Poznámka
|
||||||
|
:part-signifier: Část
|
||||||
|
:part-refsig: {part-signifier}
|
||||||
|
ifdef::preface-title[:preface-title: Úvod]
|
||||||
|
:section-refsig: Oddíl
|
||||||
|
:table-caption: Tabulka
|
||||||
|
:tip-caption: Tip
|
||||||
|
:toc-title: Obsah
|
||||||
|
:untitled-label: Nepojmenovaný
|
||||||
|
:version-label: Verze
|
||||||
|
:warning-caption: Varování
|
||||||
@@ -1,3 +1,9 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2005-2011 Jiri Golembiovsky <golemj@gmail.com>
|
||||||
|
// SPDX-FileCopyrightText: 2015-2017 Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// tag::standard[]
|
// tag::standard[]
|
||||||
*-a*, *--no-connect*::
|
*-a*, *--no-connect*::
|
||||||
Zakaž automatické pripojení k serverům když WeeChat startuje.
|
Zakaž automatické pripojení k serverům když WeeChat startuje.
|
||||||
|
|||||||
@@ -1,8 +1,15 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2005-2011 Jiri Golembiovsky <golemj@gmail.com>
|
||||||
|
// SPDX-FileCopyrightText: 2015-2017 Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// tag::plugin_options[]
|
// tag::plugin_options[]
|
||||||
Pro kompletní dokumentaci nastavení pluginů a jejich volby podívejte se na
|
Pro kompletní dokumentaci nastavení pluginů a jejich volby podívejte se na
|
||||||
https://weechat.org/doc/[WeeChat user's guide].
|
https://weechat.org/doc/[WeeChat user's guide].
|
||||||
|
|
||||||
S irc pluginem se můžete doččasně připojit na server s URL jako:
|
// TRANSLATION MISSING
|
||||||
|
With irc plugin, you can connect to a server with an URL like:
|
||||||
|
|
||||||
irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
|
irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
|
||||||
|
|
||||||
@@ -99,7 +106,9 @@ $HOME/.local/share/weechat/weechat.log::
|
|||||||
WeeChat je napsán Sébastienem Helleu a přispěvovateli (kompletní seznam je v
|
WeeChat je napsán Sébastienem Helleu a přispěvovateli (kompletní seznam je v
|
||||||
souboru AUTHORS.md).
|
souboru AUTHORS.md).
|
||||||
|
|
||||||
Copyright (C) 2003-2024 {author}
|
// REUSE-IgnoreStart
|
||||||
|
Copyright (C) 2003-2026 {author}
|
||||||
|
// REUSE-IgnoreEnd
|
||||||
|
|
||||||
WeeChat is free software; you can redistribute it and/or modify
|
WeeChat is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2005-2011 Jiri Golembiovsky <golemj@gmail.com>
|
||||||
|
// SPDX-FileCopyrightText: 2015-2017 Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// TRANSLATION MISSING
|
// TRANSLATION MISSING
|
||||||
= weechat-headless(1)
|
= weechat-headless(1)
|
||||||
:doctype: manpage
|
:doctype: manpage
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2005-2011 Jiri Golembiovsky <golemj@gmail.com>
|
||||||
|
// SPDX-FileCopyrightText: 2015-2017 Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= weechat(1)
|
= weechat(1)
|
||||||
:doctype: manpage
|
:doctype: manpage
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
|
|||||||
@@ -1,7 +1,13 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2015-2017 Ondřej Súkup <mimi.vx@gmail.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat quick start guide
|
= WeeChat quick start guide
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: cs
|
:lang: cs
|
||||||
|
include::includes/attributes-cs.adoc[]
|
||||||
|
|
||||||
[[start]]
|
[[start]]
|
||||||
== Spuštění WeeChatu
|
== Spuštění WeeChatu
|
||||||
@@ -286,7 +292,7 @@ Close a server, channel or private buffer (`/close` is an alias for
|
|||||||
----
|
----
|
||||||
|
|
||||||
// TRANSLATION MISSING
|
// TRANSLATION MISSING
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
Closing the server buffer will close all channel/private buffers.
|
Closing the server buffer will close all channel/private buffers.
|
||||||
|
|
||||||
// TRANSLATION MISSING
|
// TRANSLATION MISSING
|
||||||
@@ -345,8 +351,10 @@ To remove the split:
|
|||||||
[[key_bindings]]
|
[[key_bindings]]
|
||||||
== Předvoblby klávesových zkratek
|
== Předvoblby klávesových zkratek
|
||||||
|
|
||||||
WeeChat používá ve výchozím nastavení mnoho klávesových zkratek, Všechny
|
// TRANSLATION MISSING
|
||||||
najdete v dokumentaci, ale je dobré znát alespoň pár těchto důležitých:
|
WeeChat používá ve výchozím nastavení mnoho klávesových zkratek, Všechny najdete v dokumentaci
|
||||||
|
(link:weechat_user.en.html#key_bindings[User's guide / Key bindings ^↗^^]),
|
||||||
|
ale je dobré znát alespoň pár těchto důležitých:
|
||||||
|
|
||||||
- kbd:[Alt+←] / kbd:[Alt+→] nebo kbd:[F5] / kbd:[F6]: přepnout na předchozí/další bufer
|
- kbd:[Alt+←] / kbd:[Alt+→] nebo kbd:[F5] / kbd:[F6]: přepnout na předchozí/další bufer
|
||||||
// TRANSLATION MISSING
|
// TRANSLATION MISSING
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2017-2020 Dan Allen, Sarah White, Ryan Waldron
|
||||||
|
// SPDX-FileCopyrightText: 2017-2020 Florian Wilhelm
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
//
|
||||||
|
// German translation, courtesy of Florian Wilhelm
|
||||||
|
:appendix-caption: Anhang
|
||||||
|
:appendix-refsig: {appendix-caption}
|
||||||
|
:caution-caption: Achtung
|
||||||
|
:chapter-signifier: Kapitel
|
||||||
|
:chapter-refsig: {chapter-signifier}
|
||||||
|
:example-caption: Beispiel
|
||||||
|
:figure-caption: Abbildung
|
||||||
|
:important-caption: Wichtig
|
||||||
|
:last-update-label: Zuletzt aktualisiert
|
||||||
|
ifdef::listing-caption[:listing-caption: Listing]
|
||||||
|
ifdef::manname-title[:manname-title: Bezeichnung]
|
||||||
|
:note-caption: Anmerkung
|
||||||
|
:part-signifier: Teil
|
||||||
|
:part-refsig: {part-signifier}
|
||||||
|
ifdef::preface-title[:preface-title: Vorwort]
|
||||||
|
:section-refsig: Abschnitt
|
||||||
|
:table-caption: Tabelle
|
||||||
|
:tip-caption: Hinweis
|
||||||
|
:toc-title: Inhaltsverzeichnis
|
||||||
|
:untitled-label: Ohne Titel
|
||||||
|
:version-label: Version
|
||||||
|
:warning-caption: Warnung
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2009-2025 Nils Görs <weechatter@arcor.de>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// tag::standard[]
|
// tag::standard[]
|
||||||
*-a*, *--no-connect*::
|
*-a*, *--no-connect*::
|
||||||
deaktiviert das automatische Verbinden mit den Servern beim Start von WeeChat.
|
deaktiviert das automatische Verbinden mit den Servern beim Start von WeeChat.
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2009-2025 Nils Görs <weechatter@arcor.de>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// tag::plugin_options[]
|
// tag::plugin_options[]
|
||||||
Um eine vollständige Dokumentation der Optionen zu erhalten, siehe
|
Um eine vollständige Dokumentation der Optionen zu erhalten, siehe
|
||||||
https://weechat.org/doc/[WeeChat user's guide].
|
https://weechat.org/doc/[WeeChat user's guide].
|
||||||
|
|
||||||
Mittels der IRC Erweiterung kann man sich zu einen temporären Server verbinden lassen,
|
Mit der IRC-Erweiterung können Sie sich mit einer URL wie der folgenden mit einem Server verbinden:
|
||||||
indem man eine URL verwendet:
|
|
||||||
|
|
||||||
irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
|
irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
|
||||||
|
|
||||||
@@ -100,7 +104,9 @@ $HOME/.local/share/weechat/weechat.log::
|
|||||||
WeeChat wird programmiert von Sébastien Helleu und weiteren Beteiligten (eine vollständige Auflistung
|
WeeChat wird programmiert von Sébastien Helleu und weiteren Beteiligten (eine vollständige Auflistung
|
||||||
findet man in der AUTHORS.md Datei).
|
findet man in der AUTHORS.md Datei).
|
||||||
|
|
||||||
Copyright (C) 2003-2024 {author}
|
// REUSE-IgnoreStart
|
||||||
|
Copyright (C) 2003-2026 {author}
|
||||||
|
// REUSE-IgnoreEnd
|
||||||
|
|
||||||
WeeChat is free software; you can redistribute it and/or modify
|
WeeChat is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2010-2025 Nils Görs <weechatter@arcor.de>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= weechat-headless(1)
|
= weechat-headless(1)
|
||||||
:doctype: manpage
|
:doctype: manpage
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2010-2025 Nils Görs <weechatter@arcor.de>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= weechat(1)
|
= weechat(1)
|
||||||
:doctype: manpage
|
:doctype: manpage
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
|
|||||||
+12
-14
@@ -1,13 +1,14 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2009 Juergen Descher <jhdl@gmx.net>
|
||||||
|
// SPDX-FileCopyrightText: 2009-2025 Nils Görs <weechatter@arcor.de>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat FAQ (häufig gestellte Fragen)
|
= WeeChat FAQ (häufig gestellte Fragen)
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: de
|
:lang: de
|
||||||
:toc-title: Inhaltsverzeichnis
|
include::includes/attributes-de.adoc[]
|
||||||
|
|
||||||
Übersetzer:
|
|
||||||
|
|
||||||
* Juergen Descher <jhdl@gmx.net>, 2009
|
|
||||||
* Nils Görs <weechatter@arcor.de>, 2009-2022
|
|
||||||
|
|
||||||
[[general]]
|
[[general]]
|
||||||
== Allgemein
|
== Allgemein
|
||||||
@@ -333,9 +334,7 @@ unterstützt (rxvt-unicode, konsole, gnome-terminal, ... um nur einige zu nennen
|
|||||||
Im Normalfall erfolgt die Markierung des Textes mittels der Tasten kbd:[Ctrl+Alt]
|
Im Normalfall erfolgt die Markierung des Textes mittels der Tasten kbd:[Ctrl+Alt]
|
||||||
in Verbindung mit der Auswahl durch die Maus.
|
in Verbindung mit der Auswahl durch die Maus.
|
||||||
|
|
||||||
// TRANSLATION MISSING
|
Die Nickliste kann umgeschaltet und nur bei Bedarf sichtbar gemacht werden, mit der Taste kbd:[Alt+Shift+N].
|
||||||
You can toggle nicklist and make it visible only when needed, with key
|
|
||||||
kbd:[Alt+Shift+N].
|
|
||||||
|
|
||||||
Eine weitere Möglichkeit besteht darin,
|
Eine weitere Möglichkeit besteht darin,
|
||||||
die Benutzerliste am oberen oder unteren Rand des WeeChat-Bildschirmes zu positionieren:
|
die Benutzerliste am oberen oder unteren Rand des WeeChat-Bildschirmes zu positionieren:
|
||||||
@@ -352,8 +351,7 @@ Dazu kann man den vereinfachten Anzeigemodus nutzen (Standardtaste: kbd:[Alt+l]
|
|||||||
|
|
||||||
Um URLs einfacher zu öffnen, können alternativ folgende Optionen gesetzt werden:
|
Um URLs einfacher zu öffnen, können alternativ folgende Optionen gesetzt werden:
|
||||||
|
|
||||||
// TRANSLATION MISSING
|
* Nickliste umschalten und nur bei Bedarf darstellen, mit dem Tastenkurzbefehl kbd:[Alt+Shift+N]
|
||||||
* toggle nicklist and make it visible only when needed, with key kbd:[Alt+Shift+N]
|
|
||||||
|
|
||||||
* Die Benutzerliste am oberen Bildschirmbereich positionieren.
|
* Die Benutzerliste am oberen Bildschirmbereich positionieren.
|
||||||
|
|
||||||
@@ -460,7 +458,7 @@ für weitere Informationen die das Farbmanagement betreffen.
|
|||||||
[[search_text]]
|
[[search_text]]
|
||||||
=== Wie kann ich in einem Buffer nach einem Text suchen (vergleichbar /lastlog in irssi)?
|
=== Wie kann ich in einem Buffer nach einem Text suchen (vergleichbar /lastlog in irssi)?
|
||||||
|
|
||||||
Die Standardtastenbelegung lautet kbd:[Ctrl+r]
|
Die Standardtastenbelegung lautet kbd:[Ctrl+s]
|
||||||
(der dazugehörige Befehl: `+/input search_text_here+`).
|
(der dazugehörige Befehl: `+/input search_text_here+`).
|
||||||
Um zu Highlight-Nachrichten zu springen:
|
Um zu Highlight-Nachrichten zu springen:
|
||||||
kbd:[Alt+p] für vorherige, kbd:[Alt+n] für die nächste Nachricht.
|
kbd:[Alt+p] für vorherige, kbd:[Alt+n] für die nächste Nachricht.
|
||||||
@@ -804,7 +802,7 @@ Man sollte versuchen, eine andere Priorität zu nutzen; Im folgenden Beispiel
|
|||||||
muss "xxx" durch den betroffenen Servernamen ersetzt werden:
|
muss "xxx" durch den betroffenen Servernamen ersetzt werden:
|
||||||
|
|
||||||
----
|
----
|
||||||
/set irc.server.xxx.tls_priorities "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0:+VERS-SSL3.0:%COMPAT"
|
/set irc.server.xxx.tls_priorities "NORMAL:%COMPAT"
|
||||||
----
|
----
|
||||||
|
|
||||||
[[irc_tls_libera]]
|
[[irc_tls_libera]]
|
||||||
@@ -1309,7 +1307,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /Pfad/zu/weechat
|
|||||||
[[supported_os]]
|
[[supported_os]]
|
||||||
=== Auf welchen Plattformen läuft WeeChat und wird es noch auf andere Betriebssysteme portiert?
|
=== Auf welchen Plattformen läuft WeeChat und wird es noch auf andere Betriebssysteme portiert?
|
||||||
|
|
||||||
WeeChat läuft auf den meisten Linux/BSD-Distributionen, GNU/Hurd, Mac OS und
|
WeeChat läuft auf den meisten Linux/BSD-Distributionen, GNU/Hurd, macOS und
|
||||||
Windows (Cygwin und Windows Subsystem für Linux) einwandfrei.
|
Windows (Cygwin und Windows Subsystem für Linux) einwandfrei.
|
||||||
|
|
||||||
Wir geben unser Bestes, WeeChat auf möglichst viele Plattformen zu portieren.
|
Wir geben unser Bestes, WeeChat auf möglichst viele Plattformen zu portieren.
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2006 Frank Zacharias <frank_zacharias@web.de>
|
||||||
|
// SPDX-FileCopyrightText: 2009 Juergen Descher <jhdl@gmx.net>
|
||||||
|
// SPDX-FileCopyrightText: 2009-2025 Nils Görs <weechatter@arcor.de>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat Quickstart Anleitung
|
= WeeChat Quickstart Anleitung
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: de
|
:lang: de
|
||||||
:toc-title: Inhaltsverzeichnis
|
include::includes/attributes-de.adoc[]
|
||||||
|
|
||||||
Übersetzer:
|
|
||||||
|
|
||||||
* Frank Zacharias <frank_zacharias@web.de>, 2006
|
|
||||||
* Juergen Descher <jhdl@gmx.net>, 2009
|
|
||||||
* Nils Görs <weechatter@arcor.de>, 2009-2018
|
|
||||||
|
|
||||||
[[start]]
|
[[start]]
|
||||||
== Start von WeeChat
|
== Start von WeeChat
|
||||||
@@ -301,7 +302,7 @@ Einen Buffer schließen (Server, Channel, privater Buffer);
|
|||||||
/close
|
/close
|
||||||
----
|
----
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
Wird ein Server-Buffer geschlossen,
|
Wird ein Server-Buffer geschlossen,
|
||||||
schließt WeeChat ebenfalls alle zum Server
|
schließt WeeChat ebenfalls alle zum Server
|
||||||
gehörenden Channels und privaten Buffer.
|
gehörenden Channels und privaten Buffer.
|
||||||
@@ -369,7 +370,8 @@ Um die Teilung des Bildschirms rückgängig zu machen:
|
|||||||
== Tastaturbelegung
|
== Tastaturbelegung
|
||||||
|
|
||||||
WeeChat verwendet viele Standardtasten.
|
WeeChat verwendet viele Standardtasten.
|
||||||
Alle Tastenbelegungen sind in der Dokumentation beschrieben.
|
Alle Tastenbelegungen sind in der Dokumentation beschrieben
|
||||||
|
(link:weechat_user.de.html#key_bindings[Benutzerhandbuch / Tastenbelegungen ^↗^^]).
|
||||||
Im Folgenden werden die wichtigsten Tastenbelegungen kurz erläutert:
|
Im Folgenden werden die wichtigsten Tastenbelegungen kurz erläutert:
|
||||||
|
|
||||||
- kbd:[Alt+←] / kbd:[Alt+→] oder kbd:[F5] / kbd:[F6]: Wechsel zum
|
- kbd:[Alt+←] / kbd:[Alt+→] oder kbd:[F5] / kbd:[F6]: Wechsel zum
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2010-2025 Nils Görs <weechatter@arcor.de>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat Scripting Guide
|
= WeeChat Scripting Guide
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: de
|
:lang: de
|
||||||
:toc-title: Inhaltsverzeichnis
|
include::includes/attributes-de.adoc[]
|
||||||
|
|
||||||
Übersetzer:
|
|
||||||
|
|
||||||
* Nils Görs <weechatter@arcor.de>, 2010-2016
|
|
||||||
|
|
||||||
Diese Anleitung beschreibt den WeeChat Chat Client und ist Teil von WeeChat.
|
Diese Anleitung beschreibt den WeeChat Chat Client und ist Teil von WeeChat.
|
||||||
|
|
||||||
@@ -73,7 +74,7 @@ und die Dokumentation für die Funktion `+hook_process+` in link:weechat_plugin_
|
|||||||
WeeChat definiert ein `weechat` Module welches mittels `import weechat`
|
WeeChat definiert ein `weechat` Module welches mittels `import weechat`
|
||||||
importiert werden muss. +
|
importiert werden muss. +
|
||||||
Ein Python-Stub für die WeeChat-API ist im Repository verfügbar:
|
Ein Python-Stub für die WeeChat-API ist im Repository verfügbar:
|
||||||
https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi ^↗^^].
|
https://raw.githubusercontent.com/weechat/weechat/main/src/plugins/python/weechat.pyi[weechat.pyi ^↗^^].
|
||||||
|
|
||||||
[[python_functions]]
|
[[python_functions]]
|
||||||
===== Funktionen
|
===== Funktionen
|
||||||
|
|||||||
+305
-143
@@ -1,12 +1,13 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2010-2025 Nils Görs <weechatter@arcor.de>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat Benutzerhandbuch
|
= WeeChat Benutzerhandbuch
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: de
|
:lang: de
|
||||||
:toc-title: Inhaltsverzeichnis
|
include::includes/attributes-de.adoc[]
|
||||||
|
|
||||||
Übersetzer:
|
|
||||||
|
|
||||||
* Nils Görs <weechatter@arcor.de>, 2010-2022
|
|
||||||
|
|
||||||
Diese Anleitung beschreibt den WeeChat Chat Client und ist Teil von WeeChat.
|
Diese Anleitung beschreibt den WeeChat Chat Client und ist Teil von WeeChat.
|
||||||
|
|
||||||
@@ -211,7 +212,7 @@ WeeChat optional sind:
|
|||||||
| asciidoctor | ≥ 1.5.4
|
| asciidoctor | ≥ 1.5.4
|
||||||
| zum Erstellen der man page und der Dokumentation.
|
| zum Erstellen der man page und der Dokumentation.
|
||||||
|
|
||||||
| ruby-pygments.rb |
|
| python3-pygments, ruby-pygments.rb |
|
||||||
| Build Dokumentation.
|
| Build Dokumentation.
|
||||||
|
|
||||||
| libcpputest-dev | ≥ 3.4
|
| libcpputest-dev | ≥ 3.4
|
||||||
@@ -471,7 +472,7 @@ zum Absturz von WeeChat führt:
|
|||||||
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
|
||||||
----
|
----
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
Sie sollten die Adressbereinigung nur aktivieren, wenn Sie versuchen, einen
|
Sie sollten die Adressbereinigung nur aktivieren, wenn Sie versuchen, einen
|
||||||
Absturz zu provozieren. Diese Funktion wird im produktiven Einsatz nicht empfohlen.
|
Absturz zu provozieren. Diese Funktion wird im produktiven Einsatz nicht empfohlen.
|
||||||
|
|
||||||
@@ -611,7 +612,7 @@ include::includes/cmdline_options.de.adoc[tag=standard]
|
|||||||
|
|
||||||
Einige zusätzliche Optionen sollten nur für Debug-Zwecke genutzt werden:
|
Einige zusätzliche Optionen sollten nur für Debug-Zwecke genutzt werden:
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
*KEINE* dieser Optionen sollte für ein Produktivsystem genutzt werden!
|
*KEINE* dieser Optionen sollte für ein Produktivsystem genutzt werden!
|
||||||
|
|
||||||
include::includes/cmdline_options.de.adoc[tag=debug]
|
include::includes/cmdline_options.de.adoc[tag=debug]
|
||||||
@@ -624,7 +625,7 @@ Einige Umgebungsvariablen werden von WeeChat genutzt, sofern sie definiert wurde
|
|||||||
[width="100%",cols="1m,6",options="header"]
|
[width="100%",cols="1m,6",options="header"]
|
||||||
|===
|
|===
|
||||||
| Name | Beschreibung
|
| Name | Beschreibung
|
||||||
| WEECHAT_HOME | Das WeeChat Verzeichnis (beinhaltet Konfigurationsdateien, Protokolldateien, Skripten, ...). Gleiches Verhalten wie <<compile_with_cmake,CMake option>> `WEECHAT_HOME`.
|
| WEECHAT_HOME | Das WeeChat Verzeichnis (beinhaltet Konfigurationsdateien, Protokolldateien, Skripten, ...). Gleiches Verhalten wie <<build,CMake option>> `WEECHAT_HOME`.
|
||||||
| WEECHAT_PASSPHRASE | Die Passphrase zum Entschlüsseln von schutzwürdigen Daten.
|
| WEECHAT_PASSPHRASE | Die Passphrase zum Entschlüsseln von schutzwürdigen Daten.
|
||||||
| WEECHAT_EXTRA_LIBDIR | Ein zusätzliches Verzeichnis um Erweiterungen zu installieren (vom "plugins" Verzeichnis in dieses Verzeichnis).
|
| WEECHAT_EXTRA_LIBDIR | Ein zusätzliches Verzeichnis um Erweiterungen zu installieren (vom "plugins" Verzeichnis in dieses Verzeichnis).
|
||||||
|===
|
|===
|
||||||
@@ -827,7 +828,7 @@ weechat --upgrade
|
|||||||
==== Hinweise zum Upgrade
|
==== Hinweise zum Upgrade
|
||||||
|
|
||||||
Nach einem Upgrade, wird *dringend empfohlen* das Dokukment
|
Nach einem Upgrade, wird *dringend empfohlen* das Dokukment
|
||||||
https://github.com/weechat/weechat/blob/master/UPGRADING.md[UPGRADING.md ^↗^^]
|
https://github.com/weechat/weechat/blob/main/UPGRADING.md[UPGRADING.md ^↗^^]
|
||||||
zu lesen. Dieses Dokument enthält wichtige Informationen zu wichtigen Änderungen und
|
zu lesen. Dieses Dokument enthält wichtige Informationen zu wichtigen Änderungen und
|
||||||
einige manuelle Aktionen, die erforderlich sein könnten.
|
einige manuelle Aktionen, die erforderlich sein könnten.
|
||||||
|
|
||||||
@@ -882,7 +883,7 @@ Beispiel des WeeChat-Terminals:
|
|||||||
│ │ │ │
|
│ │ │ │
|
||||||
│ │ │ │
|
│ │ │ │
|
||||||
│ │ │ │
|
│ │ │ │
|
||||||
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* [H: 3:#abc(2,5), 5] │
|
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* M [H: 3:#abc(2,5), 5] │
|
||||||
│ │[@Flashy(i)] hi peter!█ │
|
│ │[@Flashy(i)] hi peter!█ │
|
||||||
└──────────────────────────────────────────────────────────────────────────────────────┘
|
└──────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
▲ Bars "status" und "input" Bar "nicklist" ▲
|
▲ Bars "status" und "input" Bar "nicklist" ▲
|
||||||
@@ -921,32 +922,34 @@ Die _status_-Bar besitzt als Standardeinträge:
|
|||||||
|
|
||||||
[width="100%",cols="^3,^3,9",options="header"]
|
[width="100%",cols="^3,^3,9",options="header"]
|
||||||
|===
|
|===
|
||||||
| Item | Beispiel | Beschreibung
|
| Item | Beispiel | Beschreibung
|
||||||
| time | `[12:55]` | Uhrzeit.
|
| time | `12:55` | Uhrzeit.
|
||||||
| buffer_last_number | `[5]` | Nummer des letzten Buffers.
|
| buffer_last_number | `5` | Nummer des letzten Buffers (kann sich unterscheiden von `buffer_count` wenn Option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> deaktiviert (`off`) ist).
|
||||||
| buffer_plugin | `[irc/libera]` | Erweiterung des aktuellen Buffers (IRC Erweiterung setzt den IRC Servername für den Buffer).
|
| buffer_plugin | `irc/libera` | Erweiterung des aktuellen Buffers (IRC Erweiterung setzt den IRC Servername für den Buffer).
|
||||||
| buffer_number | `2` | Aktuelle Nummer des Buffers.
|
| buffer_number | `2` | Aktuelle Nummer des Buffers.
|
||||||
| buffer_name | `#test` | Name des aktuellen Buffers.
|
| buffer_name | `#test` | Name des aktuellen Buffers.
|
||||||
| buffer_modes | `+n` | IRC Kanal-Modi.
|
| buffer_modes | `+n` | IRC Kanal-Modi.
|
||||||
| buffer_nicklist_count | `{4}` | Anzahl der Nicks die in der Nickliste angezeigt werden.
|
| buffer_nicklist_count | `4` | Anzahl der Nicks die in der Nickliste angezeigt werden.
|
||||||
| buffer_zoom | ! | `!` bedeutet, dass ein zusammengefügter Buffer gezoomed (nur dieser Buffer wird angezeigt) wird.
|
| buffer_zoom | ! | `!` bedeutet, dass ein zusammengefügter Buffer gezoomed (nur dieser Buffer wird angezeigt) wird.
|
||||||
| buffer_filter | `+*+` | Filteranzeige: `+*+` bedeutet das Zeilen gefiltert (unterdrückt) werden. Ein leerer Eintrag zeigt an, dass alle Zeilen dargestellt werden.
|
| buffer_filter | `+*+` | Filteranzeige: `+*+` bedeutet das Zeilen gefiltert (unterdrückt) werden. Ein leerer Eintrag zeigt an, dass alle Zeilen dargestellt werden.
|
||||||
| scroll | `-MORE(50)-` | Scroll Indikator, zeigt an wie viele Zeilen unterhalb der zur Zeit dargestellten Zeile vorhanden sind.
|
| mouse_status | `M` | Mouse status (empty if mouse is disabled), see command <<command_weechat_mouse,/mouse>> and <<key_bindings_toggle_keys,Tasten zum Umschalten von Funktionen>>.
|
||||||
| lag | `[Lag: 2.5]` | Verzögerungsanzeige, in Sekunden (keine Anzeige falls Verzögerung gering).
|
| scroll | `-MORE(50)-` | Scroll Indikator, zeigt an wie viele Zeilen unterhalb der zur Zeit dargestellten Zeile vorhanden sind.
|
||||||
| hotlist | `[H: 3:#abc(2,5), 5]` | Liste der Buffer mit Aktivität (ungelesene Nachrichten) (für das Beispiel: 2 Highlights und 5 ungelesene Nachrichten im Kanal _#abc_, eine ungelesene Nachricht in Buffer #5).
|
| lag | `Lag: 2.5` | Verzögerungsanzeige, in Sekunden (keine Anzeige falls Verzögerung gering).
|
||||||
| completion | `abc(2) def(5)` | Liste von Wörtern für Vervollständigung, die Zahl zeigt an wie viele Varianten möglich sind.
|
| hotlist | `H: 3:#abc(2,5), 5` | Liste der Buffer mit Aktivität (ungelesene Nachrichten) (für das Beispiel: 2 Highlights und 5 ungelesene Nachrichten im Kanal _#abc_, eine ungelesene Nachricht in Buffer #5).
|
||||||
|
| typing | `Typing: bob, (alice)` | Schreibbenachrichtigung, siehe <<typing_notifications,Schreibbenachrichtigung>>.
|
||||||
|
| completion | `abc(2) def(5)` | Liste von Wörtern für Vervollständigung, die Zahl zeigt an wie viele Varianten möglich sind.
|
||||||
|===
|
|===
|
||||||
|
|
||||||
In der _input_ Bar lautet die Standardeinstellung:
|
In der _input_ Bar lautet die Standardeinstellung:
|
||||||
|
|
||||||
[width="100%",cols="^3,^3,9",options="header"]
|
[width="100%",cols="^3,^3,9",options="header"]
|
||||||
|===
|
|===
|
||||||
| Item | Beispiel | Beschreibung
|
| Item | Beispiel | Beschreibung
|
||||||
| input_prompt | `[@Flashy(i)]` | Input prompt, für irc: Nick und Modi (Modus "+i" bedeutet auf libera, unsichtbar).
|
| input_prompt | `@Flashy(i)` | Input prompt, für irc: Nick und Modi (Modus "+i" bedeutet auf libera, unsichtbar).
|
||||||
| away | `(away)` | Abwesenheitsanzeige.
|
| away | `away` | Abwesenheitsanzeige.
|
||||||
| input_search | `[Search lines (~ str,msg)]` | Suchindikatoren ("`~`": Groß-und Kleinschreibung ignorieren, "`==`": Groß-und Kleinschreibung berücksichtigen, "`str`": einfache Textsuche, "`regex`": suche mit regulären Ausdrücken, "`msg`": Suche in Nachrichten, "`pre`": Suche in Präfix, "`pre\|msg`": Suche in Präfix und Nachrichten).
|
| input_search | `Search lines (~ str,msg)` | Suchindikatoren ("`~`": Groß-und Kleinschreibung ignorieren, "`==`": Groß-und Kleinschreibung berücksichtigen, "`str`": einfache Textsuche, "`regex`": suche mit regulären Ausdrücken, "`msg`": Suche in Nachrichten, "`pre`": Suche in Präfix, "`pre\|msg`": Suche in Präfix und Nachrichten).
|
||||||
| input_paste | `[Paste 7 lines ? [ctrl-y] Ja [ctrl-n] Nein]` | Nachfrage, ob sieben Zeilen eingefügt werden sollen.
|
| input_paste | `Paste 7 lines ? [ctrl-y] Ja [ctrl-n] Nein` | Nachfrage, ob sieben Zeilen eingefügt werden sollen.
|
||||||
| input_text | `hi peter!` | Text der eingegeben wird.
|
| input_text | `hi peter!` | Text der eingegeben wird.
|
||||||
|===
|
|===
|
||||||
|
|
||||||
Es existieren zwei Suchmodi:
|
Es existieren zwei Suchmodi:
|
||||||
@@ -981,8 +984,7 @@ andere Items die zur Verfügung stehen (die aber nicht standardmäßig in einer
|
|||||||
[width="100%",cols="^3,^3,9",options="header"]
|
[width="100%",cols="^3,^3,9",options="header"]
|
||||||
|===
|
|===
|
||||||
| Item | Beispiel | Beschreibung
|
| Item | Beispiel | Beschreibung
|
||||||
| buffer_count | `10` | absolute Anzahl an geöffneten Buffern.
|
| buffer_count | `5` | absolute Anzahl an geöffneten Buffern.
|
||||||
| buffer_last_number | `10` | Nummer des letzten Buffers (kann sich unterscheiden von `buffer_count` wenn Option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> deaktiviert (`off`) ist).
|
|
||||||
| buffer_nicklist_count_all | `4` | Anzahl der sichtbaren Gruppen und Nicks in der Nickliste.
|
| buffer_nicklist_count_all | `4` | Anzahl der sichtbaren Gruppen und Nicks in der Nickliste.
|
||||||
| buffer_nicklist_count_groups | `0` | Anzahl der sichtbaren Gruppen in der Nickliste.
|
| buffer_nicklist_count_groups | `0` | Anzahl der sichtbaren Gruppen in der Nickliste.
|
||||||
| buffer_short_name | `#test` | Kurzname des aktuellen Buffers.
|
| buffer_short_name | `#test` | Kurzname des aktuellen Buffers.
|
||||||
@@ -997,7 +999,7 @@ andere Items die zur Verfügung stehen (die aber nicht standardmäßig in einer
|
|||||||
| irc_nick_host | `+Flashy!user@host.com+` | aktueller IRC Nick und Host.
|
| irc_nick_host | `+Flashy!user@host.com+` | aktueller IRC Nick und Host.
|
||||||
| irc_nick_modes | `i` | IRC Modi für den eigenen Nick.
|
| irc_nick_modes | `i` | IRC Modi für den eigenen Nick.
|
||||||
| irc_nick_prefix | `@` | IRC Nick-Präfix für den Kanal.
|
| irc_nick_prefix | `@` | IRC Nick-Präfix für den Kanal.
|
||||||
| mouse_status | `M` | Status der Maus (keine Anzeige, falls Maus deaktiviert).
|
| spacer | | spezielles Item um Text in einer Bar auszurichten, siehe <<item_spacer,Spacer item>>.
|
||||||
| spell_dict | `de,en` | zeigt an welche Wörterbücher für die Rechtschreibung im aktuellen Buffer genutzt werden.
|
| spell_dict | `de,en` | zeigt an welche Wörterbücher für die Rechtschreibung im aktuellen Buffer genutzt werden.
|
||||||
| spell_suggest | `Glück,Glocke,Block` | Vorschläge für ein falsch geschriebenes Wort.
|
| spell_suggest | `Glück,Glocke,Block` | Vorschläge für ein falsch geschriebenes Wort.
|
||||||
| tls_version | `TLS1.3` | TLS Version die für den IRC Server genutzt wird.
|
| tls_version | `TLS1.3` | TLS Version die für den IRC Server genutzt wird.
|
||||||
@@ -1066,6 +1068,7 @@ Zeichen, genutzt werden:
|
|||||||
kbd:[yyyyyy] | Textfarbe `xxxxxx` und Hintergrundfarbe `yyyyyy` (RGB als hexadezimale Zahl).
|
kbd:[yyyyyy] | Textfarbe `xxxxxx` und Hintergrundfarbe `yyyyyy` (RGB als hexadezimale Zahl).
|
||||||
| kbd:[Ctrl+c], kbd:[i] | Text wird kursiv dargestellt.
|
| kbd:[Ctrl+c], kbd:[i] | Text wird kursiv dargestellt.
|
||||||
| kbd:[Ctrl+c], kbd:[o] | deaktiviert Farben und Attribute.
|
| kbd:[Ctrl+c], kbd:[o] | deaktiviert Farben und Attribute.
|
||||||
|
| kbd:[Ctrl+c], kbd:[s] | durchgestrichener Text (die Darstellung findet in halber Helligkeit statt, da die ncurses Oberfläche keinen durchgestrichenen Text unterstützt).
|
||||||
| kbd:[Ctrl+c], kbd:[v] | Farben umkehren (kehrt Textfarbe und Hintergrundfarbe um).
|
| kbd:[Ctrl+c], kbd:[v] | Farben umkehren (kehrt Textfarbe und Hintergrundfarbe um).
|
||||||
| kbd:[Ctrl+c], kbd:[_] | Text wird mit Unterstrich dargestellt.
|
| kbd:[Ctrl+c], kbd:[_] | Text wird mit Unterstrich dargestellt.
|
||||||
|===
|
|===
|
||||||
@@ -1638,6 +1641,7 @@ Sie können mit dem Befehl <<command_weechat_key,/key>> geändert und neue hinzu
|
|||||||
| kbd:[Ctrl+c], kbd:[d] | fügt Steuerzeichen für Textfarbe ein (RGB Farbe, als hexadezimale Zahl). | `+/input insert \x04+`
|
| kbd:[Ctrl+c], kbd:[d] | fügt Steuerzeichen für Textfarbe ein (RGB Farbe, als hexadezimale Zahl). | `+/input insert \x04+`
|
||||||
| kbd:[Ctrl+c], kbd:[i] | fügt Steuerzeichen für kursiven Text ein. | `+/input insert \x1D+`
|
| kbd:[Ctrl+c], kbd:[i] | fügt Steuerzeichen für kursiven Text ein. | `+/input insert \x1D+`
|
||||||
| kbd:[Ctrl+c], kbd:[o] | fügt Steuerzeichen für Standardfarbe ein. | `+/input insert \x0F+`
|
| kbd:[Ctrl+c], kbd:[o] | fügt Steuerzeichen für Standardfarbe ein. | `+/input insert \x0F+`
|
||||||
|
| kbd:[Ctrl+c], kbd:[s] | fügt Steuerzeichen für durchgestrichenen Text ein. | `+/input insert \x1E+`
|
||||||
| kbd:[Ctrl+c], kbd:[v] | fügt Steuerzeichen für Hintergrundfarbe ein. | `+/input insert \x16+`
|
| kbd:[Ctrl+c], kbd:[v] | fügt Steuerzeichen für Hintergrundfarbe ein. | `+/input insert \x16+`
|
||||||
| kbd:[Ctrl+c], kbd:[_] | fügt Steuerzeichen für unterstrichenen Text ein. | `+/input insert \x1F+`
|
| kbd:[Ctrl+c], kbd:[_] | fügt Steuerzeichen für unterstrichenen Text ein. | `+/input insert \x1F+`
|
||||||
|===
|
|===
|
||||||
@@ -1763,11 +1767,12 @@ Sie können mit dem Befehl <<command_weechat_key,/key>> geändert und neue hinzu
|
|||||||
|
|
||||||
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|
||||||
|===
|
|===
|
||||||
| Taste | Beschreibung | Befehl
|
| Taste | Beschreibung | Befehl
|
||||||
| kbd:[Alt+m] | schaltet Mausfunktion ein/aus. | `+/mouse toggle+`
|
| kbd:[Alt+m] | schaltet Mausfunktion ein/aus. | `+/mouse toggle+`
|
||||||
| kbd:[Alt+s] | Umschalten der Rechtschreibprüfung. | `+/mute spell toggle+`
|
| kbd:[Alt+s] | Umschalten der Rechtschreibprüfung. | `+/mute spell toggle+`
|
||||||
| kbd:[Alt+=] | schaltet Filterfunktion an/aus. | `+/filter toggle+`
|
| kbd:[Alt+=] | schaltet Filterfunktion an/aus. | `+/filter toggle+`
|
||||||
| kbd:[Alt+-] | schaltet, für den aktuellen Buffer, Filterfunktion an/aus. | `+/filter toggle @+`
|
| kbd:[Alt+-] | schaltet, für den aktuellen Buffer, Filterfunktion an/aus. | `+/filter toggle @+`
|
||||||
|
| kbd:[Alt+Ctrl+l] (`L`) | Umschalten zwischen Remote- und lokalen Befehlen in einem Remote-Buffer (relay "api"). | `+/remote togglecmd+`
|
||||||
|===
|
|===
|
||||||
|
|
||||||
[[key_bindings_search_context]]
|
[[key_bindings_search_context]]
|
||||||
@@ -2037,27 +2042,27 @@ Beispiel des fset-Buffer, der Optionen anzeigt, die mit `weechat.look` beginnen
|
|||||||
[subs="quotes"]
|
[subs="quotes"]
|
||||||
....
|
....
|
||||||
┌──────────────────────────────────────────────────────────────────────────────────────┐
|
┌──────────────────────────────────────────────────────────────────────────────────────┐
|
||||||
│1.weechat│1/121 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggle │
|
│1.weechat│7/125 | Filter: weechat.look.* | Sortierung: ~name | Taste(input): alt+Lee>>│
|
||||||
│2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c│
|
│2.fset │weechat.look.bare_display_exit_on_input: beendet den einfachen Anzeigemodus │
|
||||||
│ │hanges in input [default: on] │
|
│ │durch Tastendruck [Standardwert: on] │
|
||||||
│ │----------------------------------------------------------------------------│
|
│ │----------------------------------------------------------------------------│
|
||||||
│ │ weechat.look.align_end_of_lines enum message │
|
│ │ weechat.look.align_end_of_lines Aufzählung message │
|
||||||
│ │ weechat.look.align_multiline_words boolean on │
|
│ │ weechat.look.align_multiline_words boolesch on │
|
||||||
│ │ weechat.look.bar_more_down string "++" │
|
│ │ weechat.look.bar_more_down Zeichenkette "++" │
|
||||||
│ │ weechat.look.bar_more_left string "<<" │
|
│ │ weechat.look.bar_more_left Zeichenkette "<<" │
|
||||||
│ │ weechat.look.bar_more_right string ">>" │
|
│ │ weechat.look.bar_more_right Zeichenkette ">>" │
|
||||||
│ │ weechat.look.bar_more_up string "--" │
|
│ │ weechat.look.bar_more_up Zeichenkette "--" │
|
||||||
│ │## weechat.look.bare_display_exit_on_input boolean on ##│
|
│ │## weechat.look.bare_display_exit_on_input boolesch on ##│
|
||||||
│ │ weechat.look.bare_display_time_format string "%H:%M" │
|
│ │ weechat.look.bare_display_time_format Zeichenkette "%H:%M" │
|
||||||
│ │ weechat.look.buffer_auto_renumber boolean on │
|
│ │ weechat.look.buffer_auto_renumber boolesch on │
|
||||||
│ │ weechat.look.buffer_notify_default enum all │
|
│ │ weechat.look.buffer_notify_default Aufzählung all │
|
||||||
│ │ weechat.look.buffer_position enum end │
|
│ │ weechat.look.buffer_position Aufzählung end │
|
||||||
│ │ weechat.look.buffer_search_case_sensitive boolean off │
|
│ │ weechat.look.buffer_search_case_sensitive boolesch off │
|
||||||
│ │ weechat.look.buffer_search_force_default boolean off │
|
│ │ weechat.look.buffer_search_force_default boolesch off │
|
||||||
│ │ weechat.look.buffer_search_regex boolean off │
|
│ │ weechat.look.buffer_search_history Aufzählung local │
|
||||||
│ │ weechat.look.buffer_search_where enum prefix_message │
|
│ │ weechat.look.buffer_search_regex boolesch off │
|
||||||
│ │ weechat.look.buffer_time_format string "%H:%M:%S" │
|
│ │ weechat.look.buffer_search_where Aufzählung prefix_message │
|
||||||
│ │ weechat.look.buffer_time_same string "" │
|
│ │ weechat.look.buffer_time_format Zeichenkette "%H:%M:%S" │
|
||||||
│ │[12:55] [2] [fset] 2:fset │
|
│ │[12:55] [2] [fset] 2:fset │
|
||||||
│ │█ │
|
│ │█ │
|
||||||
└──────────────────────────────────────────────────────────────────────────────────────┘
|
└──────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
@@ -2192,6 +2197,152 @@ Um der Vordergrundfarbe des Terminals das Attribut "fett" zuzuordnen:
|
|||||||
/set weechat.color.status_time *99999
|
/set weechat.color.status_time *99999
|
||||||
----
|
----
|
||||||
|
|
||||||
|
// TRANSLATION MISSING
|
||||||
|
[[themes]]
|
||||||
|
=== Themen
|
||||||
|
|
||||||
|
A theme is a named bundle of option overrides that can be applied with
|
||||||
|
the <<command_weechat_theme,/theme>> command. WeeChat ships a built-in
|
||||||
|
`"light"` theme tuned for light-background terminals and supports
|
||||||
|
user-defined themes loaded transiently from files.
|
||||||
|
|
||||||
|
[[themes_themable_options]]
|
||||||
|
==== Themable options
|
||||||
|
|
||||||
|
Themes can only set options marked as _themable_. All `*.color.*`
|
||||||
|
options are themable by default; a few string options that hold format
|
||||||
|
expressions with `+${color:...}+` references (such as
|
||||||
|
`+weechat.color.chat_nick_colors+`, `+weechat.look.prefix_error+` or the
|
||||||
|
`+buflist.format.*+` formats) are explicitly opted in.
|
||||||
|
|
||||||
|
You can list the full themable surface area from the
|
||||||
|
<<command_fset_fset,/fset>> buffer with the `+t:themable+` filter.
|
||||||
|
|
||||||
|
[[themes_apply]]
|
||||||
|
==== Applying a theme
|
||||||
|
|
||||||
|
To switch to the built-in light-background theme:
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme apply light
|
||||||
|
----
|
||||||
|
|
||||||
|
The current state of every themable option is saved beforehand to a
|
||||||
|
backup theme file named like `+backup-YYYYMMDD-HHMMSS-uuuuuu+` in
|
||||||
|
directory `+themes+` inside the WeeChat configuration directory, so the
|
||||||
|
previous look can be restored at any time with:
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme apply backup-YYYYMMDD-HHMMSS-uuuuuu
|
||||||
|
----
|
||||||
|
|
||||||
|
Backup creation can be disabled (not recommended):
|
||||||
|
|
||||||
|
----
|
||||||
|
/set weechat.look.theme_backup off
|
||||||
|
----
|
||||||
|
|
||||||
|
If backup is enabled and the backup file cannot be written, the apply
|
||||||
|
is aborted before any option is changed.
|
||||||
|
|
||||||
|
The name of the last applied theme is stored in
|
||||||
|
`+weechat.look.theme+` (informational only; not re-applied at startup).
|
||||||
|
|
||||||
|
[[themes_reset]]
|
||||||
|
==== Resetting to defaults
|
||||||
|
|
||||||
|
To restore the look shipped with WeeChat, reset every themable option
|
||||||
|
to its default value:
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme reset
|
||||||
|
----
|
||||||
|
|
||||||
|
A backup is written first (same gate as `+/theme apply+`); on backup
|
||||||
|
failure the reset is aborted before any option is changed.
|
||||||
|
`+weechat.look.theme+` is cleared too.
|
||||||
|
|
||||||
|
[[themes_save_delete]]
|
||||||
|
==== Saving and deleting user themes
|
||||||
|
|
||||||
|
Save the current themable options as a new user theme file:
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme save mytheme
|
||||||
|
----
|
||||||
|
|
||||||
|
Every themable option is written, so the file is self-contained and
|
||||||
|
applies the exact same look on any WeeChat, regardless of its current
|
||||||
|
configuration.
|
||||||
|
|
||||||
|
Reserved names (built-in theme names like `+light+` and any name
|
||||||
|
starting with `+backup-+`) are refused. Files live at
|
||||||
|
`+${weechat_config_dir}/themes/<name>.theme+`.
|
||||||
|
|
||||||
|
Rename a user theme (typical use: keep a useful automatic backup
|
||||||
|
under a meaningful name):
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme rename backup-20260525-094210-123456 mybackup
|
||||||
|
----
|
||||||
|
|
||||||
|
Built-in themes have no file and cannot be renamed; the target name
|
||||||
|
cannot match a built-in name or start with `+backup-+`, and the
|
||||||
|
target file must not already exist. The `+[info]+` `+name+` field
|
||||||
|
inside the file is rewritten so `/theme info` reports the new name
|
||||||
|
consistently.
|
||||||
|
|
||||||
|
Delete a user theme:
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme delete mytheme
|
||||||
|
----
|
||||||
|
|
||||||
|
This removes the file on disk; built-in themes cannot be deleted.
|
||||||
|
|
||||||
|
[[themes_file_format]]
|
||||||
|
==== Theme file format
|
||||||
|
|
||||||
|
A theme file is INI-like with two sections:
|
||||||
|
|
||||||
|
----
|
||||||
|
[info]
|
||||||
|
name = "solarized_light"
|
||||||
|
description = "Light-background theme inspired by Solarized"
|
||||||
|
date = "2026-05-25 09:42:10"
|
||||||
|
weechat = "4.10.0-dev"
|
||||||
|
|
||||||
|
[options]
|
||||||
|
weechat.color.chat = "darkgray"
|
||||||
|
weechat.color.separator = "blue"
|
||||||
|
irc.color.input_nick = "magenta"
|
||||||
|
buflist.format.number = "${color:28}${number}${if:${number_displayed}?.: }"
|
||||||
|
----
|
||||||
|
|
||||||
|
`+[info]+` is informational metadata shown by `/theme info`. `+[options]+`
|
||||||
|
holds the actual overrides; keys are the full option names that would
|
||||||
|
appear in `/set`. String values can be enclosed in double or single
|
||||||
|
quotes; quotes are stripped at parse time. Non-themable options listed
|
||||||
|
in a theme file are refused at apply time and logged to the core
|
||||||
|
buffer (so a `.theme` file imported from an untrusted source cannot
|
||||||
|
overwrite passwords, autoload lists, or startup commands).
|
||||||
|
|
||||||
|
User theme files are never cached: on every `/theme apply <name>` the
|
||||||
|
file is parsed, applied, and freed.
|
||||||
|
|
||||||
|
[[themes_resolution]]
|
||||||
|
==== Resolution order
|
||||||
|
|
||||||
|
When `+/theme apply <name>+` is run:
|
||||||
|
|
||||||
|
* If `+${weechat_config_dir}/themes/<name>.theme+` exists, the file
|
||||||
|
is parsed and used (it shadows any built-in with the same name).
|
||||||
|
* Otherwise the built-in theme registry is consulted; built-ins are
|
||||||
|
registered programmatically by core, plugins and scripts (see the
|
||||||
|
plugin and scripting documentation for `+weechat_theme_register+`).
|
||||||
|
|
||||||
|
If neither source provides the name, the apply is refused.
|
||||||
|
|
||||||
[[charset]]
|
[[charset]]
|
||||||
=== Charset
|
=== Charset
|
||||||
|
|
||||||
@@ -3456,14 +3607,16 @@ Standardmäßig sind keine Server angelegt. Es gibt keine Begrenzung für die
|
|||||||
Anzahl von Servern. Server können mit dem Befehl <<command_irc_server,/server>>
|
Anzahl von Servern. Server können mit dem Befehl <<command_irc_server,/server>>
|
||||||
angelegt werden.
|
angelegt werden.
|
||||||
|
|
||||||
Um zum Beispiel eine TLS verschlüsselte Verbindung zu
|
Zum Beispiel für eine Verbindung zu https://libera.chat/[libera.chat ^↗^^]:
|
||||||
https://libera.chat/[libera.chat ^↗^^] herzustellen:
|
|
||||||
|
|
||||||
----
|
----
|
||||||
/server add libera irc.libera.chat/6697 -tls
|
/server add libera irc.libera.chat
|
||||||
----
|
----
|
||||||
|
|
||||||
Um WeeChat beim Start direkt mit dem Server zu verbinden:
|
[NOTE]
|
||||||
|
Der Standardport ist 6697 und TLS (verschlüsselter Datenverkehr) ist aktiviert.
|
||||||
|
|
||||||
|
Um WeeChat, beim Programmstart, direkt mit einem Server zu verbinden:
|
||||||
|
|
||||||
----
|
----
|
||||||
/set irc.server.libera.autoconnect on
|
/set irc.server.libera.autoconnect on
|
||||||
@@ -3480,7 +3633,7 @@ Kapitel über <<irc_sasl_authentication,SASL authentication>>):
|
|||||||
----
|
----
|
||||||
|
|
||||||
Wenn SASL nicht unterstützt wird, können Sie einen Befehl verwenden, um eine
|
Wenn SASL nicht unterstützt wird, können Sie einen Befehl verwenden, um eine
|
||||||
Nachricht an nickserv zu senden, um sich zu Authentifizieren:
|
Nachricht an nickserv zu senden, um sich zu authentifizieren:
|
||||||
|
|
||||||
----
|
----
|
||||||
/set irc.server.libera.command "/msg nickserv identify ${sec.data.libera}"
|
/set irc.server.libera.command "/msg nickserv identify ${sec.data.libera}"
|
||||||
@@ -3504,51 +3657,52 @@ Wenn Sie beispielsweise den _libera_-Server mit den obigen Befehlen erstellt hab
|
|||||||
sehen Sie dies mit dem Befehl `/fset libera`:
|
sehen Sie dies mit dem Befehl `/fset libera`:
|
||||||
|
|
||||||
....
|
....
|
||||||
irc.server.libera.addresses string "irc.libera.chat/6697"
|
irc.server.libera.addresses Zeichenkette "irc.libera.chat"
|
||||||
irc.server.libera.anti_flood_prio_high integer null -> 2
|
irc.server.libera.anti_flood integer null -> 2000
|
||||||
irc.server.libera.anti_flood_prio_low integer null -> 2
|
irc.server.libera.autoconnect boolesch on
|
||||||
irc.server.libera.autoconnect boolean on
|
irc.server.libera.autojoin Zeichenkette null -> ""
|
||||||
irc.server.libera.autojoin string null -> ""
|
irc.server.libera.autojoin_delay integer null -> 0
|
||||||
irc.server.libera.autojoin_dynamic boolean null -> off
|
irc.server.libera.autojoin_dynamic boolesch null -> off
|
||||||
irc.server.libera.autoreconnect boolean null -> on
|
irc.server.libera.autoreconnect boolesch null -> on
|
||||||
irc.server.libera.autoreconnect_delay integer null -> 10
|
irc.server.libera.autoreconnect_delay integer null -> 10
|
||||||
irc.server.libera.autorejoin boolean null -> off
|
irc.server.libera.autorejoin boolesch null -> off
|
||||||
irc.server.libera.autorejoin_delay integer null -> 30
|
irc.server.libera.autorejoin_delay integer null -> 30
|
||||||
irc.server.libera.away_check integer null -> 0
|
irc.server.libera.away_check integer null -> 0
|
||||||
irc.server.libera.away_check_max_nicks integer null -> 25
|
irc.server.libera.away_check_max_nicks integer null -> 25
|
||||||
irc.server.libera.capabilities string null -> "*"
|
irc.server.libera.capabilities Zeichenkette null -> "*"
|
||||||
irc.server.libera.charset_message enum null -> message
|
irc.server.libera.charset_message Aufzählung null -> message
|
||||||
irc.server.libera.command string null -> ""
|
irc.server.libera.command Zeichenkette null -> ""
|
||||||
irc.server.libera.command_delay integer null -> 0
|
irc.server.libera.command_delay integer null -> 0
|
||||||
irc.server.libera.connection_timeout integer null -> 60
|
irc.server.libera.connection_timeout integer null -> 60
|
||||||
irc.server.libera.default_chantypes string null -> "#&"
|
irc.server.libera.default_chantypes Zeichenkette null -> "#&"
|
||||||
irc.server.libera.ipv6 boolean null -> on
|
irc.server.libera.ipv6 Aufzählung null -> auto
|
||||||
irc.server.libera.local_hostname string null -> ""
|
irc.server.libera.local_hostname Zeichenkette null -> ""
|
||||||
irc.server.libera.msg_kick string null -> ""
|
irc.server.libera.msg_kick Zeichenkette null -> ""
|
||||||
irc.server.libera.msg_part string null -> "WeeChat ${info:version}"
|
irc.server.libera.msg_part Zeichenkette null -> "WeeChat ${info:version}"
|
||||||
irc.server.libera.msg_quit string null -> "WeeChat ${info:version}"
|
irc.server.libera.msg_quit Zeichenkette null -> "WeeChat ${info:version}"
|
||||||
irc.server.libera.nicks string null -> "alice,alice1,alice2,alice3,alice4"
|
irc.server.libera.nicks Zeichenkette null -> "${username},${username}2,${username}3,${username}4,${username}5"
|
||||||
irc.server.libera.nicks_alternate boolean null -> on
|
irc.server.libera.nicks_alternate boolesch null -> on
|
||||||
irc.server.libera.notify string null -> ""
|
irc.server.libera.notify Zeichenkette null -> ""
|
||||||
irc.server.libera.password string null -> ""
|
irc.server.libera.password Zeichenkette null -> ""
|
||||||
irc.server.libera.proxy string null -> ""
|
irc.server.libera.proxy Zeichenkette null -> ""
|
||||||
irc.server.libera.realname string null -> ""
|
irc.server.libera.realname Zeichenkette null -> ""
|
||||||
irc.server.libera.sasl_fail enum null -> reconnect
|
irc.server.libera.registered_mode Zeichenkette null -> "r"
|
||||||
irc.server.libera.sasl_key string null -> ""
|
irc.server.libera.sasl_fail Aufzählung null -> reconnect
|
||||||
irc.server.libera.sasl_mechanism enum null -> plain
|
irc.server.libera.sasl_key Zeichenkette null -> ""
|
||||||
irc.server.libera.sasl_password string "${sec.data.libera}"
|
irc.server.libera.sasl_mechanism Aufzählung null -> plain
|
||||||
irc.server.libera.sasl_timeout integer null -> 15
|
irc.server.libera.sasl_password Zeichenkette "${sec.data.libera}"
|
||||||
irc.server.libera.sasl_username string "alice"
|
irc.server.libera.sasl_timeout integer null -> 15
|
||||||
irc.server.libera.split_msg_max_length integer null -> 512
|
irc.server.libera.sasl_username Zeichenkette "alice"
|
||||||
irc.server.libera.tls boolean on
|
irc.server.libera.split_msg_max_length integer null -> 512
|
||||||
irc.server.libera.tls_cert string null -> ""
|
irc.server.libera.tls boolesch null -> on
|
||||||
irc.server.libera.tls_dhkey_size integer null -> 2048
|
irc.server.libera.tls_cert Zeichenkette null -> ""
|
||||||
irc.server.libera.tls_fingerprint string null -> ""
|
irc.server.libera.tls_dhkey_size integer null -> 2048
|
||||||
irc.server.libera.tls_password string null -> ""
|
irc.server.libera.tls_fingerprint Zeichenkette null -> ""
|
||||||
irc.server.libera.tls_priorities string null -> "NORMAL:-VERS-SSL3.0"
|
irc.server.libera.tls_password Zeichenkette null -> ""
|
||||||
irc.server.libera.tls_verify boolean null -> on
|
irc.server.libera.tls_priorities Zeichenkette null -> "NORMAL"
|
||||||
irc.server.libera.usermode string null -> ""
|
irc.server.libera.tls_verify boolesch null -> on
|
||||||
irc.server.libera.username string null -> "alice"
|
irc.server.libera.usermode Zeichenkette null -> ""
|
||||||
|
irc.server.libera.username Zeichenkette null -> "${username}"
|
||||||
....
|
....
|
||||||
|
|
||||||
Wenn Sie beispielsweise automatisch eine Verbindung zu allen von Ihnen
|
Wenn Sie beispielsweise automatisch eine Verbindung zu allen von Ihnen
|
||||||
@@ -3814,7 +3968,7 @@ WeeChat unterstützt folgende https://ircv3.net/irc/[IRCv3 extensions ^↗^^]:
|
|||||||
* <<irc_ircv3_batch,batch>>
|
* <<irc_ircv3_batch,batch>>
|
||||||
* <<irc_ircv3_cap_notify,cap-notify>>
|
* <<irc_ircv3_cap_notify,cap-notify>>
|
||||||
* <<irc_ircv3_chghost,chghost>>
|
* <<irc_ircv3_chghost,chghost>>
|
||||||
* <<irc_ircv3_draft/multiline,draft/multiline>>
|
* <<irc_ircv3_draft_multiline,draft/multiline>>
|
||||||
* <<irc_ircv3_echo_message,echo-message>>
|
* <<irc_ircv3_echo_message,echo-message>>
|
||||||
* <<irc_ircv3_extended_join,extended-join>>
|
* <<irc_ircv3_extended_join,extended-join>>
|
||||||
* <<irc_ircv3_invite_notify,invite-notify>>
|
* <<irc_ircv3_invite_notify,invite-notify>>
|
||||||
@@ -3861,7 +4015,7 @@ Spezifikation: https://ircv3.net/specs/extensions/account-tag[account-tag ^↗^
|
|||||||
Diese Fähigkeit ermöglicht es dem Server, einen Account als Nachrichten-Tag an Befehle zu hängen,
|
Diese Fähigkeit ermöglicht es dem Server, einen Account als Nachrichten-Tag an Befehle zu hängen,
|
||||||
die an den Client gesendet werden. +
|
die an den Client gesendet werden. +
|
||||||
WeeChat analysiert dieses Tag und speichert es in der Nachricht, aber es wird nicht verwendet oder
|
WeeChat analysiert dieses Tag und speichert es in der Nachricht, aber es wird nicht verwendet oder
|
||||||
angezeigt. Mit dem <<command_filter,/filter>> Befehl kann man diese Nachrichten explizit filtern,
|
angezeigt. Mit dem <<command_weechat_filter,/filter>> Befehl kann man diese Nachrichten explizit filtern,
|
||||||
in dem die Accounts nutzt.
|
in dem die Accounts nutzt.
|
||||||
|
|
||||||
Beispiel einer empfangenen IRC-Rohnachricht:
|
Beispiel einer empfangenen IRC-Rohnachricht:
|
||||||
@@ -4048,7 +4202,7 @@ Spezifikation: https://ircv3.net/specs/extensions/message-tags[message-tags ^
|
|||||||
Diese Funktion ermöglicht das Hinzufügen von Metadaten zu Nachrichten. +
|
Diese Funktion ermöglicht das Hinzufügen von Metadaten zu Nachrichten. +
|
||||||
Diese Tags können mit dem Befehl `/debug tags` angezeigt werden.
|
Diese Tags können mit dem Befehl `/debug tags` angezeigt werden.
|
||||||
|
|
||||||
Um diese Funktion zu verwenden, muss sie aktiviert werden: <<typing_notifications,typing notifications>>.
|
Um diese Funktion zu verwenden, muss sie aktiviert werden: <<typing_notifications,Schreibbenachrichtigung>>.
|
||||||
|
|
||||||
[[irc_ircv3_monitor]]
|
[[irc_ircv3_monitor]]
|
||||||
==== monitor
|
==== monitor
|
||||||
@@ -4119,7 +4273,7 @@ Mit dieser Funktion können Sie Ihren richtigen Namen ändern, indem Sie den
|
|||||||
|
|
||||||
Spezifikation: https://ircv3.net/specs/client-tags/typing[typing ^↗^^]
|
Spezifikation: https://ircv3.net/specs/client-tags/typing[typing ^↗^^]
|
||||||
|
|
||||||
Siehe das entsprechende Kapitel <<typing_notifications,Typing notifications>>.
|
Siehe das entsprechende Kapitel <<typing_notifications,Schreibbenachrichtigung>>.
|
||||||
|
|
||||||
[[irc_ircv3_userhost_in_names]]
|
[[irc_ircv3_userhost_in_names]]
|
||||||
==== userhost-in-names
|
==== userhost-in-names
|
||||||
@@ -4773,13 +4927,21 @@ Zum Beispiel:
|
|||||||
Jetzt kann man sich über Port 9000 mit einem WeeChat oder einer Remote-Schnittstelle
|
Jetzt kann man sich über Port 9000 mit einem WeeChat oder einer Remote-Schnittstelle
|
||||||
verbinden, indem das Passwort „mypassword“ verwendet wird.
|
verbinden, indem das Passwort „mypassword“ verwendet wird.
|
||||||
|
|
||||||
So stellt man mit WeeChat eine Verbindung zu einem _api_ Relay her:
|
Um eine lokale Verbindung via _api_ Relay mittels WeeChat herzustelen:
|
||||||
|
|
||||||
----
|
----
|
||||||
/remote add weechat http://localhost:9000 -password=mypassword
|
/remote add weechat http://localhost:9000 -password=mypassword
|
||||||
/remote connect weechat
|
/remote connect weechat
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Um eine entfernte Verbindung via _api_Relay mittels WeeChat herzustelen
|
||||||
|
(TLS wird dringend empfohlen):
|
||||||
|
|
||||||
|
----
|
||||||
|
/remote add weechat https://example.com:9000 -password=mypassword
|
||||||
|
/remote connect weechat
|
||||||
|
----
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
Der Remote-WeeChat muss dieselbe API-Version wie der lokale WeeChat nutzen.
|
Der Remote-WeeChat muss dieselbe API-Version wie der lokale WeeChat nutzen.
|
||||||
Daher wird dringend empfohlen, auf dem Remote- und dem lokalen Client genau
|
Daher wird dringend empfohlen, auf dem Remote- und dem lokalen Client genau
|
||||||
@@ -4821,7 +4983,7 @@ Ein WebSocket kann in HTML5, mit einer JavaScript Zeile, geöffnet werden:
|
|||||||
|
|
||||||
[source,javascript]
|
[source,javascript]
|
||||||
----
|
----
|
||||||
websocket = new WebSocket("ws://server.com:9500/weechat");
|
websocket = new WebSocket("ws://example.com:9500/weechat");
|
||||||
----
|
----
|
||||||
|
|
||||||
Der Port (im Beispiel: 9500) ist der Port der in der Relay Erweiterung angegeben wurde.
|
Der Port (im Beispiel: 9500) ist der Port der in der Relay Erweiterung angegeben wurde.
|
||||||
@@ -5887,7 +6049,7 @@ Aus Datenschutzgründen ist das Herunterladen von Skripten standardmäßig deakt
|
|||||||
Um es zu aktivieren, geben Sie diesen Befehl ein:
|
Um es zu aktivieren, geben Sie diesen Befehl ein:
|
||||||
|
|
||||||
----
|
----
|
||||||
/set script.scripts.download_enabled on
|
/script enable
|
||||||
----
|
----
|
||||||
|
|
||||||
Dann können Sie die Liste der Skripte herunterladen und in einem separaten Buffer,
|
Dann können Sie die Liste der Skripte herunterladen und in einem separaten Buffer,
|
||||||
@@ -5897,33 +6059,33 @@ mit dem Befehl <<command_script_script,/script>>, anzeigen lassen:
|
|||||||
:x: *
|
:x: *
|
||||||
....
|
....
|
||||||
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||||
│1.weechat│368/368 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, u=│
|
│1.weechat│322/322 Skripten (Filter: {x}) | Sortierung: i,p,n | Alt+Taste/Eingabe: i=installieren, r=entfernen,>>│
|
||||||
│2.scripts│{x} autosort.py 3.9 2020-10-11 | Automatically keep buffers grouped by server│
|
│2.scripts│{x} autosort.py 3.10 2023-12-31 | Behält die Gruppierung der Buffer nach S│
|
||||||
│ │{x} multiline.pl 0.6.3 2016-01-02 | Multi-line edit box, also supports editing o│
|
│ │{x} highmon.pl 2.7 2020-06-21 | Startet einen Highlight Monitor Buffer. │
|
||||||
│ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer. │
|
│ │{x}ia r grep.py 0.8.6 0.8.6 2022-11-11 | Sucht nach regulären Ausdrücken in Buffe│
|
||||||
│ │##{x}ia r grep.py 0.8.5 0.8.5 2021-05-11 | Search regular expression in buffers or log ##│
|
│ │{x} colorize_nicks.py 32 2023-10-30 | Im Textbereich oder der Eingabezeile wir│
|
||||||
│ │{x} autojoin.py 0.3.1 2019-10-06 | Configure autojoin for all servers according│
|
│ │##{x}ia r go.py 3.0.1 3.0.1 2024-05-30 | Schneller Wechsel zu Buffern. ##│
|
||||||
│ │{x} colorize_nicks.py 28 2021-03-06 | Use the weechat nick colors in the chat area│
|
│ │ aesthetic.py 1.0.6 2020-10-25 | Macht Nachrichten Ä S T H E T I S C H an│
|
||||||
│ │{x}ia r go.py 2.7 2.7 2021-05-26 | Quick jump to buffers. │
|
│ │ aformat.py 0.2 2018-06-21 | Alternative Textformatierung, nützlich f│
|
||||||
│ │{x} text_item.py 0.9 2019-05-25 | Add bar items with plain text. │
|
│ │ alternatetz.py 0.4 2022-01-25 | Fügt der Bar-Item eine zusätzliche Zeitz│
|
||||||
│ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L L Y│
|
│ │ amarok2.pl 0.7 2012-05-08 | Fernbedienung für Amarok2 und zum anzeig│
|
||||||
│ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for relays│
|
│ │ amqp_notify.rb 0.1 2011-01-12 | Schickt private Nachrichten und Highligh│
|
||||||
│ │ alternatetz.py 0.3 2018-11-11 | Add an alternate timezone item. │
|
│ │ announce_url_title.py 19 2021-06-05 | Schickt einen URL Titel an einen User od│
|
||||||
│ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script. │
|
│ │ anotify.py 1.0.2 2020-05-16 | Benachrichtigung von privaten Nachrichte│
|
||||||
│ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to an A│
|
│ │ anti_password.py 1.2.1 2021-03-13 | Verhindert, dass ein Kennwort versehentl│
|
||||||
│ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel. │
|
│ │ apply_corrections.py 1.3 2018-06-21 | Zeigt den korrigierten Text an wenn der │
|
||||||
│ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highlight│
|
│ │ arespond.py 0.1.2 2022-01-25 | Anfragen werden automatisch beantwortet.│
|
||||||
│ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidentally s│
|
│ │ atcomplete.pl 0.001 2016-10-29 | Fügt "@" Präfix bei der Nick Tab-Vervoll│
|
||||||
│ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s/typ│
|
│ │ audacious.pl 0.3 2009-05-03 | Zeigt an welche Musik gerade von Audacio│
|
||||||
│ │ arespond.py 0.1.1 2020-10-11 | Simple autoresponder. │
|
│ │ auth.rb 0.3 2014-05-30 | Automatische Authentifizierung mittels S│
|
||||||
│ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@". │
|
│ │ auto_away.py 0.4 2018-11-11 | Ein einfaches Abwesenheit-Skript. │
|
||||||
│ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currently pl│
|
│ │ autoauth.py 1.3 2021-11-07 | Erlaubt automatische Authentisierung, we│
|
||||||
│ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ usi│
|
│ │ autobump.py 0.1.0 2019-06-14 | Springt zu Buffern nach deren Aktivität.│
|
||||||
│ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script. │
|
│ │ autoconf.py 0.4 2021-05-11 | Automatisches speichern/laden von Option│
|
||||||
│ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changing n│
|
│ │ autoconnect.py 0.3.3 2019-10-06 | Öffnet erneut die Server und Channel die│
|
||||||
│ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity. │
|
│ │ autojoin_on_invite.py 0.9 2022-10-25 | Betritt automatisch einen Kanal wenn man│
|
||||||
│ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .weerc f│
|
│ │ automarkbuffer.py 1.0 2015-03-31 | Buffer werden als gelesen markiert falls│
|
||||||
│ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last time│
|
│ │ automerge.py 0.2 2018-03-03 | Automatische Zusammenführung neuer Buffe│
|
||||||
│ │[12:55] [2] [script] 2:scripts │
|
│ │[12:55] [2] [script] 2:scripts │
|
||||||
│ │█ │
|
│ │█ │
|
||||||
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
|
|||||||
@@ -1,9 +1,13 @@
|
|||||||
<!--
|
<!--
|
||||||
Custom styles for Asciidoctor
|
SPDX-FileCopyrightText: 2016-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
Copyright (C) 2016-2024 Sébastien Helleu <flashcode@flashtux.org>
|
|
||||||
|
SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
/* Custom styles for Asciidoctor */
|
||||||
|
|
||||||
/* themes/colors */
|
/* themes/colors */
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
@@ -22,9 +26,6 @@
|
|||||||
--header-details-color: #aaa;
|
--header-details-color: #aaa;
|
||||||
--border: 1px solid #444;
|
--border: 1px solid #444;
|
||||||
--code-bg-color: #252525;
|
--code-bg-color: #252525;
|
||||||
--pre-color: #ddd;
|
|
||||||
--pre-bg-color: #202020;
|
|
||||||
--pre-code-bg-color: #202020;
|
|
||||||
--keyseq-color: #777;
|
--keyseq-color: #777;
|
||||||
--kbd-bg-color: #252525;
|
--kbd-bg-color: #252525;
|
||||||
--kbd-border: 1px solid #333;
|
--kbd-border: 1px solid #333;
|
||||||
@@ -35,7 +36,11 @@
|
|||||||
--icon-caution-color: #bf3400;
|
--icon-caution-color: #bf3400;
|
||||||
--icon-important-color: #f44336;
|
--icon-important-color: #f44336;
|
||||||
--mark-bg-color: #007;
|
--mark-bg-color: #007;
|
||||||
|
--pre-bevel-light: #3e3e3e;
|
||||||
|
--pre-bevel-dark: #2a2a2a;
|
||||||
|
--pre-bevel-bg: #1f1f1f;
|
||||||
}
|
}
|
||||||
|
@PYGMENTS_DARK_CSS@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (not (prefers-color-scheme: dark)), (prefers-color-scheme: light) {
|
@media (not (prefers-color-scheme: dark)), (prefers-color-scheme: light) {
|
||||||
@@ -55,9 +60,6 @@
|
|||||||
--border: 1px solid #dddddf;
|
--border: 1px solid #dddddf;
|
||||||
--code-bg-color: #f7f7f8;
|
--code-bg-color: #f7f7f8;
|
||||||
--keyseq-color: #333c;
|
--keyseq-color: #333c;
|
||||||
--pre-color: #353535;
|
|
||||||
--pre-bg-color: #f7f7f8;
|
|
||||||
--pre-code-bg-color: #202020;
|
|
||||||
--kbd-bg-color: #f7f7f7;
|
--kbd-bg-color: #f7f7f7;
|
||||||
--kbd-border: 1px solid #ccc;
|
--kbd-border: 1px solid #ccc;
|
||||||
--kbd-box-shadow: 0 1px 0 rgba(0, 0, 0, .2), inset 0 0 0 .1em #fff;
|
--kbd-box-shadow: 0 1px 0 rgba(0, 0, 0, .2), inset 0 0 0 .1em #fff;
|
||||||
@@ -67,6 +69,9 @@
|
|||||||
--icon-caution-color: #ff0000;
|
--icon-caution-color: #ff0000;
|
||||||
--icon-important-color: #bf0000;
|
--icon-important-color: #bf0000;
|
||||||
--mark-bg-color: #9df;
|
--mark-bg-color: #9df;
|
||||||
|
--pre-bevel-light: #e5e5e7;
|
||||||
|
--pre-bevel-dark: #b4b4b8;
|
||||||
|
--pre-bevel-bg: #f6f6f7;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -141,6 +146,10 @@ code, .prettyprint {
|
|||||||
|
|
||||||
pre {
|
pre {
|
||||||
color: var(--pre-color) !important;
|
color: var(--pre-color) !important;
|
||||||
|
border: 1px solid;
|
||||||
|
border-color: var(--pre-bevel-light) var(--pre-bevel-dark) var(--pre-bevel-dark) var(--pre-bevel-light);
|
||||||
|
border-radius: 3px;
|
||||||
|
line-height: 1.25;
|
||||||
}
|
}
|
||||||
|
|
||||||
pre > code {
|
pre > code {
|
||||||
@@ -158,8 +167,8 @@ kbd {
|
|||||||
color: var(--body-color);
|
color: var(--body-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.literalblock pre, .listingblock > .content > pre:not(.highlight), .listingblock > .content > pre[class="highlight"], .listingblock > .content > pre[class^="highlight "] {
|
.literalblock pre, .listingblock > .content > pre:not(.highlight), .listingblock > .content > pre[class="highlight"], .listingblock > .content > pre[class^="highlight "], pre.pygments {
|
||||||
background-color: var(--pre-bg-color);
|
background-color: var(--pre-bg-color, var(--pre-bevel-bg));
|
||||||
color: var(--body-color);
|
color: var(--body-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -196,20 +205,6 @@ mark {
|
|||||||
color: var(--body-color);
|
color: var(--body-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* syntax highlighting tuning */
|
|
||||||
|
|
||||||
pre.pygments .tok-cp {
|
|
||||||
color: #44cfaf;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre.pygments .tok-nc, pre.pygments .tok-nf {
|
|
||||||
color: #649fef;
|
|
||||||
}
|
|
||||||
|
|
||||||
pre.pygments .tok-gu, pre.pygments .tok-nc, pre.pygments .tok-nn {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* asciidoctor styles tuning */
|
/* asciidoctor styles tuning */
|
||||||
|
|
||||||
#header, #content, #footnotes, #footer {
|
#header, #content, #footnotes, #footer {
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2017-2020 Dan Allen, Sarah White, Ryan Waldron
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
//
|
||||||
|
// English translation, for reference only; matches the built-in behavior of core
|
||||||
|
:appendix-caption: Appendix
|
||||||
|
:appendix-refsig: {appendix-caption}
|
||||||
|
:caution-caption: Caution
|
||||||
|
:chapter-signifier: Chapter
|
||||||
|
:chapter-refsig: {chapter-signifier}
|
||||||
|
:example-caption: Example
|
||||||
|
:figure-caption: Figure
|
||||||
|
:important-caption: Important
|
||||||
|
:last-update-label: Last updated
|
||||||
|
ifdef::listing-caption[:listing-caption: Listing]
|
||||||
|
ifdef::manname-title[:manname-title: Name]
|
||||||
|
:note-caption: Note
|
||||||
|
:part-signifier: Part
|
||||||
|
:part-refsig: {part-signifier}
|
||||||
|
ifdef::preface-title[:preface-title: Preface]
|
||||||
|
:section-refsig: Section
|
||||||
|
:table-caption: Table
|
||||||
|
:tip-caption: Tip
|
||||||
|
:toc-title: Table of Contents
|
||||||
|
:untitled-label: Untitled
|
||||||
|
:version-label: Version
|
||||||
|
:warning-caption: Warning
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// tag::standard[]
|
// tag::standard[]
|
||||||
*-a*, *--no-connect*::
|
*-a*, *--no-connect*::
|
||||||
Disable auto-connect to servers when WeeChat is starting.
|
Disable auto-connect to servers when WeeChat is starting.
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// tag::plugin_options[]
|
// tag::plugin_options[]
|
||||||
For complete doc on plugin options, please look at plugins documentation in
|
For complete doc on plugin options, please look at plugins documentation in
|
||||||
https://weechat.org/doc/[WeeChat user's guide].
|
https://weechat.org/doc/[WeeChat user's guide].
|
||||||
|
|
||||||
With irc plugin, you can connect to temporary server with an URL like:
|
With irc plugin, you can connect to a server with an URL like:
|
||||||
|
|
||||||
irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
|
irc[6][s]://[[nickname][:password]@]server[:port][/#channel1[,#channel2...]]
|
||||||
|
|
||||||
@@ -100,7 +104,9 @@ $HOME/.local/share/weechat/weechat.log::
|
|||||||
WeeChat is written by Sébastien Helleu and contributors (complete list is in
|
WeeChat is written by Sébastien Helleu and contributors (complete list is in
|
||||||
the AUTHORS.md file).
|
the AUTHORS.md file).
|
||||||
|
|
||||||
Copyright (C) 2003-2024 {author}
|
// REUSE-IgnoreStart
|
||||||
|
Copyright (C) 2003-2026 {author}
|
||||||
|
// REUSE-IgnoreEnd
|
||||||
|
|
||||||
WeeChat is free software; you can redistribute it and/or modify
|
WeeChat is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// tag::diagram[]
|
// tag::diagram[]
|
||||||
....
|
....
|
||||||
┌──────────┐ Workstation
|
┌──────────┐ Workstation
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= weechat-headless(1)
|
= weechat-headless(1)
|
||||||
:doctype: manpage
|
:doctype: manpage
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= weechat(1)
|
= weechat(1)
|
||||||
:doctype: manpage
|
:doctype: manpage
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
|
|||||||
+193
-142
@@ -1,7 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat developer's guide
|
= WeeChat developer's guide
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: en
|
:lang: en
|
||||||
|
include::includes/attributes-en.adoc[]
|
||||||
|
|
||||||
This manual documents WeeChat chat client, it is part of WeeChat.
|
This manual documents WeeChat chat client, it is part of WeeChat.
|
||||||
|
|
||||||
@@ -86,14 +91,23 @@ The main WeeChat directories are:
|
|||||||
| typing/ | Typing plugin.
|
| typing/ | Typing plugin.
|
||||||
| xfer/ | Xfer plugin (IRC DCC file/chat).
|
| xfer/ | Xfer plugin (IRC DCC file/chat).
|
||||||
| tests/ | Tests.
|
| tests/ | Tests.
|
||||||
| scripts/ | Scripting API tests.
|
| fuzz/ | Fuzz testing.
|
||||||
| python/ | Python scripts to generate and run the scripting API tests.
|
| core/ | Fuzz testing for core functions.
|
||||||
| unit/ | Unit tests.
|
| unit/ | Unit tests.
|
||||||
| core/ | Unit tests for core functions.
|
| core/ | Unit tests for core functions.
|
||||||
|
| hook/ | Unit tests for hook functions.
|
||||||
| gui/ | Unit tests for interfaces functions.
|
| gui/ | Unit tests for interfaces functions.
|
||||||
|
| curses/ | Unit tests for Curses interface functions.
|
||||||
|
| scripts/ | Scripting API tests.
|
||||||
|
| python/ | Python scripts to generate and run the scripting API tests.
|
||||||
| plugins/ | Unit tests for plugins.
|
| plugins/ | Unit tests for plugins.
|
||||||
|
| alias/ | Unit tests for alias plugin.
|
||||||
| irc/ | Unit tests for IRC plugin.
|
| irc/ | Unit tests for IRC plugin.
|
||||||
|
| logger/ | Unit tests for logger plugin.
|
||||||
|
| relay/ | Unit tests for relay plugin.
|
||||||
| trigger/ | Unit tests for trigger plugin.
|
| trigger/ | Unit tests for trigger plugin.
|
||||||
|
| typing/ | Unit tests for typing plugin.
|
||||||
|
| xfer/ | Unit tests for xfer plugin.
|
||||||
| doc/ | Documentation.
|
| doc/ | Documentation.
|
||||||
| po/ | Translations files (gettext).
|
| po/ | Translations files (gettext).
|
||||||
| debian/ | Debian packaging.
|
| debian/ | Debian packaging.
|
||||||
@@ -114,6 +128,7 @@ WeeChat "core" is located in following directories:
|
|||||||
|===
|
|===
|
||||||
| Path/file | Description
|
| Path/file | Description
|
||||||
| core/ | Core functions: entry point, internal structures.
|
| core/ | Core functions: entry point, internal structures.
|
||||||
|
| core-args.c | Command-line arguments.
|
||||||
| core-arraylist.c | Array lists.
|
| core-arraylist.c | Array lists.
|
||||||
| core-backtrace.c | Display a backtrace after a crash.
|
| core-backtrace.c | Display a backtrace after a crash.
|
||||||
| core-calc.c | Calculate result of expressions.
|
| core-calc.c | Calculate result of expressions.
|
||||||
@@ -326,6 +341,7 @@ WeeChat "core" is located in following directories:
|
|||||||
| relay/ | Relay plugin (IRC proxy and relay for remote interfaces).
|
| relay/ | Relay plugin (IRC proxy and relay for remote interfaces).
|
||||||
| relay.c | Main relay functions.
|
| relay.c | Main relay functions.
|
||||||
| relay-auth.c | Clients authentication.
|
| relay-auth.c | Clients authentication.
|
||||||
|
| relay-bar-item.c | Relay bar items.
|
||||||
| relay-buffer.c | Relay buffer.
|
| relay-buffer.c | Relay buffer.
|
||||||
| relay-client.c | Clients of relay.
|
| relay-client.c | Clients of relay.
|
||||||
| relay-command.c | Relay commands.
|
| relay-command.c | Relay commands.
|
||||||
@@ -400,120 +416,139 @@ WeeChat "core" is located in following directories:
|
|||||||
|
|
||||||
[width="100%",cols="2m,3",options="header"]
|
[width="100%",cols="2m,3",options="header"]
|
||||||
|===
|
|===
|
||||||
| Path/file | Description
|
| Path/file | Description
|
||||||
| tests/ | Root of tests.
|
| tests/ | Root of tests.
|
||||||
| tests.cpp | Program used to run all tests.
|
| fuzz/ | Root of fuzz testing.
|
||||||
| tests-record.cpp | Record and search in messages displayed.
|
| ossfuzz.sh | Build script for https://github.com/google/oss-fuzz[OSS-Fuzz ^↗^^].
|
||||||
| scripts/ | Root of scripting API tests.
|
| core/ | Root of fuzz testing for core.
|
||||||
| test-scripts.cpp | Program used to run the scripting API tests.
|
| calc-fuzzer.c | Fuzz testing: calculation of expressions.
|
||||||
| python/ | Python scripts to generate and run the scripting API tests.
|
| crypto-fuzzer.c | Fuzz testing: cryptographic functions.
|
||||||
| testapigen.py | Python script generating scripts in all languages to test the scripting API.
|
| secure-fuzzer.c | Fuzz testing: secured data.
|
||||||
| testapi.py | Python script with scripting API tests, used by script testapigen.py.
|
| string-fuzzer.c | Fuzz testing: strings.
|
||||||
| unparse.py | Convert Python code to other languages, used by script testapigen.py.
|
| utf8-fuzzer.c | Fuzz testing: UTF-8.
|
||||||
| unit/ | Root of unit tests.
|
| util-fuzzer.c | Fuzz testing: utility functions.
|
||||||
| test-plugins.cpp | Tests: plugins.
|
| unit/ | Root of unit tests.
|
||||||
| test-plugin-api-info.cpp | Tests: plugin API info functions.
|
| tests.cpp | Program used to run all tests.
|
||||||
| test-plugin-config.cpp | Tests: plugin config functions.
|
| tests-record.cpp | Record and search in messages displayed.
|
||||||
| core/ | Root of unit tests for core.
|
| core/ | Root of unit tests for core.
|
||||||
| test-core-arraylist.cpp | Tests: arraylists.
|
| test-core-arraylist.cpp | Tests: arraylists.
|
||||||
| test-core-calc.cpp | Tests: calculation of expressions.
|
| test-core-calc.cpp | Tests: calculation of expressions.
|
||||||
| test-core-command.cpp | Tests: commands.
|
| test-core-command.cpp | Tests: commands.
|
||||||
| test-core-config-file.cpp | Tests: configuration files.
|
| test-core-config-file.cpp | Tests: configuration files.
|
||||||
| test-core-crypto.cpp | Tests: cryptographic functions.
|
| test-core-crypto.cpp | Tests: cryptographic functions.
|
||||||
| test-core-dir.cpp | Tests: directory/file functions.
|
| test-core-dir.cpp | Tests: directory/file functions.
|
||||||
| test-core-eval.cpp | Tests: evaluation of expressions.
|
| test-core-eval.cpp | Tests: evaluation of expressions.
|
||||||
| test-core-hashtble.cpp | Tests: hashtables.
|
| test-core-hashtable.cpp | Tests: hashtables.
|
||||||
| test-core-hdata.cpp | Tests: hdata.
|
| test-core-hdata.cpp | Tests: hdata.
|
||||||
| test-core-hook.cpp | Tests: hooks.
|
| test-core-hook.cpp | Tests: hooks.
|
||||||
| test-core-infolist.cpp | Tests: infolists.
|
| test-core-infolist.cpp | Tests: infolists.
|
||||||
| test-core-list.cpp | Tests: lists.
|
| test-core-input.cpp | Tests: input functions.
|
||||||
| test-core-network.cpp | Tests: network functions.
|
| test-core-list.cpp | Tests: lists.
|
||||||
| test-core-secure.cpp | Tests: secured data.
|
| test-core-network.cpp | Tests: network functions.
|
||||||
| test-core-signal.cpp | Tests: signals.
|
| test-core-secure.cpp | Tests: secured data.
|
||||||
| test-core-string.cpp | Tests: strings.
|
| test-core-signal.cpp | Tests: signals.
|
||||||
| test-core-url.cpp | Tests: URLs.
|
| test-core-string.cpp | Tests: strings.
|
||||||
| test-core-utf8.cpp | Tests: UTF-8.
|
| test-core-sys.cpp | Tests: system functions.
|
||||||
| test-core-util.cpp | Tests: utility functions.
|
| test-core-url.cpp | Tests: URLs.
|
||||||
| test-core-sys.cpp | Tests: system functions.
|
| test-core-utf8.cpp | Tests: UTF-8.
|
||||||
| hook/ | Root of unit tests for hooks.
|
| test-core-util.cpp | Tests: utility functions.
|
||||||
| test-hook-command.cpp | Tests: hooks "command".
|
| hook/ | Root of unit tests for hooks.
|
||||||
| test-hook-command-run.cpp | Tests: hooks "command_run".
|
| test-hook-command-run.cpp | Tests: hooks "command_run".
|
||||||
| test-hook-completion.cpp | Tests: hooks "completion".
|
| test-hook-command.cpp | Tests: hooks "command".
|
||||||
| test-hook-config.cpp | Tests: hooks "config".
|
| test-hook-completion.cpp | Tests: hooks "completion".
|
||||||
| test-hook-connect.cpp | Tests: hooks "connect".
|
| test-hook-config.cpp | Tests: hooks "config".
|
||||||
| test-hook-fd.cpp | Tests: hooks "fd".
|
| test-hook-connect.cpp | Tests: hooks "connect".
|
||||||
| test-hook-focus.cpp | Tests: hooks "focus".
|
| test-hook-fd.cpp | Tests: hooks "fd".
|
||||||
| test-hook-hdata.cpp | Tests: hooks "hdata".
|
| test-hook-focus.cpp | Tests: hooks "focus".
|
||||||
| test-hook-hsignal.cpp | Tests: hooks "hsignal".
|
| test-hook-hdata.cpp | Tests: hooks "hdata".
|
||||||
| test-hook-info-hashtable.cpp | Tests: hooks "info_hashtable".
|
| test-hook-hsignal.cpp | Tests: hooks "hsignal".
|
||||||
| test-hook-info.cpp | Tests: hooks "info".
|
| test-hook-info-hashtable.cpp | Tests: hooks "info_hashtable".
|
||||||
| test-hook-infolist.cpp | Tests: hooks "infolist".
|
| test-hook-info.cpp | Tests: hooks "info".
|
||||||
| test-hook-line.cpp | Tests: hooks "line".
|
| test-hook-infolist.cpp | Tests: hooks "infolist".
|
||||||
| test-hook-modifier.cpp | Tests: hooks "modifier".
|
| test-hook-line.cpp | Tests: hooks "line".
|
||||||
| test-hook-print.cpp | Tests: hooks "print".
|
| test-hook-modifier.cpp | Tests: hooks "modifier".
|
||||||
| test-hook-process.cpp | Tests: hooks "process".
|
| test-hook-print.cpp | Tests: hooks "print".
|
||||||
| test-hook-signal.cpp | Tests: hooks "signal".
|
| test-hook-process.cpp | Tests: hooks "process".
|
||||||
| test-hook-timer.cpp | Tests: hooks "timer".
|
| test-hook-signal.cpp | Tests: hooks "signal".
|
||||||
| test-hook-url.cpp | Tests: hooks "url".
|
| test-hook-timer.cpp | Tests: hooks "timer".
|
||||||
| gui/ | Root of unit tests for interfaces.
|
| test-hook-url.cpp | Tests: hooks "url".
|
||||||
| test-gui-bar-window.cpp | Tests: bar window functions.
|
| gui/ | Root of unit tests for interfaces.
|
||||||
| test-gui-buffer.cpp | Tests: buffer functions.
|
| test-gui-bar-item-custom.cpp | Tests: custom bar item functions.
|
||||||
| test-gui-chat.cpp | Tests: chat functions.
|
| test-gui-bar-item.cpp | Tests: bar item functions.
|
||||||
| test-gui-color.cpp | Tests: colors.
|
| test-gui-bar-window.cpp | Tests: bar window functions.
|
||||||
| test-gui-filter.cpp | Tests: filters.
|
| test-gui-bar.cpp | Tests: bar functions.
|
||||||
| test-gui-hotlist.cpp | Tests: hotlist functions.
|
| test-gui-buffer.cpp | Tests: buffer functions.
|
||||||
| test-gui-input.cpp | Tests: input functions.
|
| test-gui-chat.cpp | Tests: chat functions.
|
||||||
| test-gui-key.cpp | Tests: keys.
|
| test-gui-color.cpp | Tests: colors.
|
||||||
| test-gui-line.cpp | Tests: lines.
|
| test-gui-filter.cpp | Tests: filters.
|
||||||
| test-gui-nick.cpp | Tests: nicks.
|
| test-gui-hotlist.cpp | Tests: hotlist functions.
|
||||||
| test-gui-nicklist.cpp | Tests: nicklist functions.
|
| test-gui-input.cpp | Tests: input functions.
|
||||||
| curses/ | Root of unit tests for Curses interface.
|
| test-gui-key.cpp | Tests: keys.
|
||||||
| test-gui-curses-mouse.cpp | Tests: mouse (Curses interface).
|
| test-gui-line.cpp | Tests: lines.
|
||||||
| plugins/ | Root of unit tests for plugins.
|
| test-gui-nick.cpp | Tests: nicks.
|
||||||
| irc/ | Root of unit tests for IRC plugin.
|
| test-gui-nicklist.cpp | Tests: nicklist functions.
|
||||||
| test-irc-batch.cpp | Tests: IRC batched events.
|
| curses/ | Root of unit tests for Curses interface.
|
||||||
| test-irc-buffer.cpp | Tests: IRC buffers.
|
| test-gui-curses-mouse.cpp | Tests: mouse (Curses interface).
|
||||||
| test-irc-channel.cpp | Tests: IRC channels.
|
| scripts/ | Root of scripting API tests.
|
||||||
| test-irc-color.cpp | Tests: IRC colors.
|
| test-scripts.cpp | Program used to run the scripting API tests.
|
||||||
| test-irc-command.cpp | Tests: IRC commands.
|
| python/ | Python scripts to generate and run the scripting API tests.
|
||||||
| test-irc-config.cpp | Tests: IRC configuration.
|
| testapigen.py | Python script generating scripts in all languages to test the scripting API.
|
||||||
| test-irc-ctcp.cpp | Tests: IRC CTCP.
|
| testapi.py | Python script with scripting API tests, used by script testapigen.py.
|
||||||
| test-irc-ignore.cpp | Tests: IRC ignores.
|
| unparse.py | Convert Python code to other languages, used by script testapigen.py.
|
||||||
| test-irc-info.cpp | Tests: IRC info.
|
| plugins/ | Root of unit tests for plugins.
|
||||||
| test-irc-join.cpp | Tests: IRC join functions.
|
| test-plugin-api-info.cpp | Tests: plugin API info functions.
|
||||||
| test-irc-list.cpp | Tests: IRC buffer for reply to /list command.
|
| test-plugin-config.cpp | Tests: plugin config functions.
|
||||||
| test-irc-message.cpp | Tests: IRC messages.
|
| test-plugins.cpp | Tests: plugins.
|
||||||
| test-irc-mode.cpp | Tests: IRC modes.
|
| alias/ | Root of unit tests for alias plugin.
|
||||||
| test-irc-nick.cpp | Tests: IRC nicks.
|
| test-alias.cpp | Tests: aliases.
|
||||||
| test-irc-protocol.cpp | Tests: IRC protocol.
|
| irc/ | Root of unit tests for IRC plugin.
|
||||||
| test-irc-sasl.cpp | Tests: SASL authentication with IRC protocol.
|
| test-irc-batch.cpp | Tests: IRC batched events.
|
||||||
| test-irc-server.cpp | Tests: IRC server.
|
| test-irc-buffer.cpp | Tests: IRC buffers.
|
||||||
| test-irc-tag.cpp | Tests: IRC message tags.
|
| test-irc-channel.cpp | Tests: IRC channels.
|
||||||
| logger/ | Root of unit tests for logger plugin.
|
| test-irc-color.cpp | Tests: IRC colors.
|
||||||
| test-logger.cpp | Tests: logger.
|
| test-irc-command.cpp | Tests: IRC commands.
|
||||||
| test-logger-backlog.cpp | Tests: logger backlog.
|
| test-irc-config.cpp | Tests: IRC configuration.
|
||||||
| test-logger-tail.cpp | Tests: logger tail functions.
|
| test-irc-ctcp.cpp | Tests: IRC CTCP.
|
||||||
| trigger/ | Root of unit tests for trigger plugin.
|
| test-irc-ignore.cpp | Tests: IRC ignores.
|
||||||
| test-trigger.cpp | Tests: triggers.
|
| test-irc-info.cpp | Tests: IRC info.
|
||||||
| test-trigger-config.cpp | Tests: trigger configuration.
|
| test-irc-join.cpp | Tests: IRC join functions.
|
||||||
| typing/ | Root of unit tests for typing plugin.
|
| test-irc-list.cpp | Tests: IRC buffer for reply to /list command.
|
||||||
| test-typing.cpp | Tests: typing.
|
| test-irc-message.cpp | Tests: IRC messages.
|
||||||
| test-typing-status.cpp | Tests: typing status.
|
| test-irc-mode.cpp | Tests: IRC modes.
|
||||||
| relay/ | Root of unit tests for Relay plugin.
|
| test-irc-nick.cpp | Tests: IRC nicks.
|
||||||
| test-relay-auth.cpp | Tests: clients authentication.
|
| test-irc-protocol.cpp | Tests: IRC protocol.
|
||||||
| test-relay-http.cpp | Tests: HTTP functions for Relay plugin.
|
| test-irc-sasl.cpp | Tests: SASL authentication with IRC protocol.
|
||||||
| test-relay-raw.cpp | Tests: raw messages functions for Relay plugin.
|
| test-irc-server.cpp | Tests: IRC server.
|
||||||
| test-relay-remote.cpp | Tests: remote functions for Relay plugin.
|
| test-irc-tag.cpp | Tests: IRC message tags.
|
||||||
| test-relay-websocket.cpp | Tests: websocket functions for Relay plugin.
|
| logger/ | Root of unit tests for logger plugin.
|
||||||
| api/ | Root of unit tests for Relay "api" protocol.
|
| test-logger.cpp | Tests: logger.
|
||||||
| test-relay-api.cpp | Tests: Relay "api" protocol: general functions.
|
| test-logger-backlog.cpp | Tests: logger backlog.
|
||||||
| test-relay-api-msg.cpp | Tests: Relay "api" protocol: messages.
|
| test-logger-tail.cpp | Tests: logger tail functions.
|
||||||
| test-relay-api-protocol.cpp | Tests: Relay "api" protocol: protocol.
|
| relay/ | Root of unit tests for Relay plugin.
|
||||||
| irc/ | Root of unit tests for Relay "irc" protocol.
|
| test-relay-auth.cpp | Tests: clients authentication.
|
||||||
| test-relay-irc.cpp | Tests: Relay "irc" protocol.
|
| test-relay-bar-item.cpp | Tests: bar items for Relay plugin.
|
||||||
| xfer/ | Root of unit tests for Xfer plugin.
|
| test-relay-http.cpp | Tests: HTTP functions for Relay plugin.
|
||||||
| test-xfer-file.cpp | Tests: file functions.
|
| test-relay-raw.cpp | Tests: raw messages functions for Relay plugin.
|
||||||
| test-xfer-network.cpp | Tests: network functions.
|
| test-relay-remote.cpp | Tests: remote functions for Relay plugin.
|
||||||
|
| test-relay-websocket.cpp | Tests: websocket functions for Relay plugin.
|
||||||
|
| api/ | Root of unit tests for Relay "api" protocol.
|
||||||
|
| test-relay-api.cpp | Tests: Relay "api" protocol: general functions.
|
||||||
|
| test-relay-api-msg.cpp | Tests: Relay "api" protocol: messages.
|
||||||
|
| test-relay-api-protocol.cpp | Tests: Relay "api" protocol: protocol.
|
||||||
|
| remote/ | Tests: Relay "api" protocol: remote functions.
|
||||||
|
| test-relay-remote-event.cpp | Tests: Relay "api" protocol: remote events.
|
||||||
|
| test-relay-remote-network.cpp | Tests: Relay "api" protocol: remote network.
|
||||||
|
| irc/ | Root of unit tests for Relay "irc" protocol.
|
||||||
|
| test-relay-irc.cpp | Tests: Relay "irc" protocol.
|
||||||
|
| trigger/ | Root of unit tests for trigger plugin.
|
||||||
|
| test-trigger.cpp | Tests: triggers.
|
||||||
|
| test-trigger-config.cpp | Tests: trigger configuration.
|
||||||
|
| typing/ | Root of unit tests for typing plugin.
|
||||||
|
| test-typing.cpp | Tests: typing.
|
||||||
|
| test-typing-status.cpp | Tests: typing status.
|
||||||
|
| xfer/ | Root of unit tests for Xfer plugin.
|
||||||
|
| test-xfer-file.cpp | Tests: file functions.
|
||||||
|
| test-xfer-network.cpp | Tests: network functions.
|
||||||
|===
|
|===
|
||||||
|
|
||||||
[[documentation_translations]]
|
[[documentation_translations]]
|
||||||
@@ -561,20 +596,29 @@ directory:
|
|||||||
* In source code, your comments, variable names, .. must be written in English
|
* In source code, your comments, variable names, .. must be written in English
|
||||||
*only* (no other language is allowed).
|
*only* (no other language is allowed).
|
||||||
* Use a copyright header in each new source file with:
|
* Use a copyright header in each new source file with:
|
||||||
** short description of file (one line),
|
** date
|
||||||
** date,
|
** name
|
||||||
** name,
|
** e-mail
|
||||||
** e-mail,
|
** license
|
||||||
** license.
|
** short description of file (one line).
|
||||||
|
|
||||||
|
The copyright and license must be set using SPDX (System Package Data Exchange),
|
||||||
|
following best practices in REUSE Software
|
||||||
|
(see the https://reuse.software/spec/[REUSE specification ^↗^^]).
|
||||||
|
|
||||||
|
All files in the repository must have a valid copyright and license information. +
|
||||||
|
When the information can not be put in the file itself, you can use the REUSE.toml
|
||||||
|
file at the root of the project tree.
|
||||||
|
|
||||||
Example in C:
|
Example in C:
|
||||||
|
|
||||||
|
// REUSE-IgnoreStart
|
||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
/*
|
/*
|
||||||
* weechat.c - core functions for WeeChat
|
* SPDX-FileCopyrightText: 2026 Your Name <your@email.com>
|
||||||
*
|
*
|
||||||
* Copyright (C) 2024 Your Name <your@email.com>
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* This file is part of WeeChat, the extensible chat client.
|
* This file is part of WeeChat, the extensible chat client.
|
||||||
*
|
*
|
||||||
@@ -591,7 +635,10 @@ Example in C:
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
* along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Core functions for WeeChat */
|
||||||
----
|
----
|
||||||
|
// REUSE-IgnoreEnd
|
||||||
|
|
||||||
[[coding_c_style]]
|
[[coding_c_style]]
|
||||||
=== C style
|
=== C style
|
||||||
@@ -609,9 +656,9 @@ Example:
|
|||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
/*
|
/*
|
||||||
* Checks if a string with boolean value is valid.
|
* Check if a string with boolean value is valid.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Return:
|
||||||
* 1: boolean value is valid
|
* 1: boolean value is valid
|
||||||
* 0: boolean value is NOT valid
|
* 0: boolean value is NOT valid
|
||||||
*/
|
*/
|
||||||
@@ -886,9 +933,9 @@ Example: creation of a new window (from _src/gui/gui-window.c_):
|
|||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
/*
|
/*
|
||||||
* Creates a new window.
|
* Create a new window.
|
||||||
*
|
*
|
||||||
* Returns pointer to new window, NULL if error.
|
* Return pointer to new window, NULL if error.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct t_gui_window *
|
struct t_gui_window *
|
||||||
@@ -1047,16 +1094,16 @@ _src/gui/gui-color.h_):
|
|||||||
| 14 | weechat.color.chat_nick
|
| 14 | weechat.color.chat_nick
|
||||||
| 15 | weechat.color.chat_nick_self
|
| 15 | weechat.color.chat_nick_self
|
||||||
| 16 | weechat.color.chat_nick_other
|
| 16 | weechat.color.chat_nick_other
|
||||||
| 17 | _(not used any more since WeeChat 0.3.4)_
|
| 17 | _(not used anymore since WeeChat 0.3.4)_
|
||||||
| 18 | _(not used any more since WeeChat 0.3.4)_
|
| 18 | _(not used anymore since WeeChat 0.3.4)_
|
||||||
| 19 | _(not used any more since WeeChat 0.3.4)_
|
| 19 | _(not used anymore since WeeChat 0.3.4)_
|
||||||
| 20 | _(not used any more since WeeChat 0.3.4)_
|
| 20 | _(not used anymore since WeeChat 0.3.4)_
|
||||||
| 21 | _(not used any more since WeeChat 0.3.4)_
|
| 21 | _(not used anymore since WeeChat 0.3.4)_
|
||||||
| 22 | _(not used any more since WeeChat 0.3.4)_
|
| 22 | _(not used anymore since WeeChat 0.3.4)_
|
||||||
| 23 | _(not used any more since WeeChat 0.3.4)_
|
| 23 | _(not used anymore since WeeChat 0.3.4)_
|
||||||
| 24 | _(not used any more since WeeChat 0.3.4)_
|
| 24 | _(not used anymore since WeeChat 0.3.4)_
|
||||||
| 25 | _(not used any more since WeeChat 0.3.4)_
|
| 25 | _(not used anymore since WeeChat 0.3.4)_
|
||||||
| 26 | _(not used any more since WeeChat 0.3.4)_
|
| 26 | _(not used anymore since WeeChat 0.3.4)_
|
||||||
| 27 | weechat.color.chat_host
|
| 27 | weechat.color.chat_host
|
||||||
| 28 | weechat.color.chat_delimiters
|
| 28 | weechat.color.chat_delimiters
|
||||||
| 29 | weechat.color.chat_highlight
|
| 29 | weechat.color.chat_highlight
|
||||||
@@ -1172,7 +1219,7 @@ server->hook_timer_sasl = weechat_hook_timer (timeout * 1000,
|
|||||||
|
|
||||||
Git repository is on https://github.com/weechat/weechat[GitHub ^↗^^].
|
Git repository is on https://github.com/weechat/weechat[GitHub ^↗^^].
|
||||||
|
|
||||||
Any patch for bug or new feature must be done on master branch, preferred way
|
Any patch for bug or new feature must be done on branch `main`, preferred way
|
||||||
is a GitHub pull request. A patch can also be sent by e-mail
|
is a GitHub pull request. A patch can also be sent by e-mail
|
||||||
(made with `git diff` or `git format-patch`).
|
(made with `git diff` or `git format-patch`).
|
||||||
|
|
||||||
@@ -1220,9 +1267,13 @@ Where _component_ is one of following:
|
|||||||
debian-stable/*
|
debian-stable/*
|
||||||
| Debian packaging
|
| Debian packaging
|
||||||
|
|
||||||
| tests
|
| tests/fuzz
|
||||||
| tests/*
|
| tests/fuzz/*
|
||||||
| Tests
|
| Fuzz testing
|
||||||
|
|
||||||
|
| tests/unit
|
||||||
|
| tests/unit/*
|
||||||
|
| Unit tests
|
||||||
|
|
||||||
| doc
|
| doc
|
||||||
| doc/*
|
| doc/*
|
||||||
@@ -1361,5 +1412,5 @@ warnings, ... These words must be kept unchanged:
|
|||||||
When there is a name after `+<<link_name>>+`, then you must translate it:
|
When there is a name after `+<<link_name>>+`, then you must translate it:
|
||||||
|
|
||||||
----
|
----
|
||||||
<<link_name,this text must be translated>>
|
<<link_name,this text should be translated>>
|
||||||
----
|
----
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat FAQ (Frequently Asked Questions)
|
= WeeChat FAQ (Frequently Asked Questions)
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: en
|
:lang: en
|
||||||
|
include::includes/attributes-en.adoc[]
|
||||||
|
|
||||||
[[general]]
|
[[general]]
|
||||||
== General
|
== General
|
||||||
@@ -268,7 +273,7 @@ for more info about the hotlist.
|
|||||||
[[input_bar_size]]
|
[[input_bar_size]]
|
||||||
=== How to use command line with more than one line?
|
=== How to use command line with more than one line?
|
||||||
|
|
||||||
The option _size_ in input bar can be set to a value higher than 1 (for fixed
|
The option _size_ in input bar can be set to a value greater than 1 (for fixed
|
||||||
size, default size is 1) or 0 for dynamic size, and then option _size_max_ will
|
size, default size is 1) or 0 for dynamic size, and then option _size_max_ will
|
||||||
set the max size (0 = no limit).
|
set the max size (0 = no limit).
|
||||||
|
|
||||||
@@ -436,7 +441,7 @@ for more information about colors management.
|
|||||||
[[search_text]]
|
[[search_text]]
|
||||||
=== How can I search text in buffer (like /lastlog in irssi)?
|
=== How can I search text in buffer (like /lastlog in irssi)?
|
||||||
|
|
||||||
The default key is kbd:[Ctrl+r] (command is: `+/input search_text_here+`).
|
The default key is kbd:[Ctrl+s] (command is: `+/input search_text_here+`).
|
||||||
And jump to highlights: kbd:[Alt+p] / kbd:[Alt+n].
|
And jump to highlights: kbd:[Alt+p] / kbd:[Alt+n].
|
||||||
|
|
||||||
See link:weechat_user.en.html#key_bindings[User's guide / Key bindings ^↗^^]
|
See link:weechat_user.en.html#key_bindings[User's guide / Key bindings ^↗^^]
|
||||||
@@ -758,7 +763,7 @@ should be, you can specify the fingerprint (SHA-512, SHA-256 or SHA-1):
|
|||||||
You can try a different priority string, replace "xxx" by your server name:
|
You can try a different priority string, replace "xxx" by your server name:
|
||||||
|
|
||||||
----
|
----
|
||||||
/set irc.server.xxx.tls_priorities "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0:+VERS-SSL3.0:%COMPAT"
|
/set irc.server.xxx.tls_priorities "NORMAL:%COMPAT"
|
||||||
----
|
----
|
||||||
|
|
||||||
[[irc_tls_libera]]
|
[[irc_tls_libera]]
|
||||||
@@ -1005,7 +1010,7 @@ for help).
|
|||||||
Scripts are not compatible with other IRC clients.
|
Scripts are not compatible with other IRC clients.
|
||||||
|
|
||||||
[[scripts_update]]
|
[[scripts_update]]
|
||||||
=== The command "/script update" can not read scripts, how to fix that?
|
=== The command "/script update" cannot read scripts, how to fix that?
|
||||||
|
|
||||||
First check questions about TLS connection in this FAQ.
|
First check questions about TLS connection in this FAQ.
|
||||||
|
|
||||||
@@ -1237,7 +1242,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /path/to/weechat
|
|||||||
[[supported_os]]
|
[[supported_os]]
|
||||||
=== What is the list of supported platforms for WeeChat? Will it be ported to other operating systems?
|
=== What is the list of supported platforms for WeeChat? Will it be ported to other operating systems?
|
||||||
|
|
||||||
WeeChat runs fine on most Linux/BSD distributions, GNU/Hurd, Mac OS and Windows
|
WeeChat runs fine on most Linux/BSD distributions, GNU/Hurd, macOS and Windows
|
||||||
(Cygwin and Windows Subsystem for Linux).
|
(Cygwin and Windows Subsystem for Linux).
|
||||||
|
|
||||||
We do our best to run on as many platforms as possible. Help is welcome for
|
We do our best to run on as many platforms as possible. Help is welcome for
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat plugin API reference
|
= WeeChat plugin API reference
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: en
|
:lang: en
|
||||||
|
include::includes/attributes-en.adoc[]
|
||||||
|
|
||||||
This manual documents WeeChat chat client, it is part of WeeChat.
|
This manual documents WeeChat chat client, it is part of WeeChat.
|
||||||
|
|
||||||
@@ -817,7 +822,7 @@ This function is not available in scripting API.
|
|||||||
|
|
||||||
_WeeChat ≥ 3.8._
|
_WeeChat ≥ 3.8._
|
||||||
|
|
||||||
Case sensitive string comparison.
|
Case-sensitive string comparison.
|
||||||
|
|
||||||
Prototype:
|
Prototype:
|
||||||
|
|
||||||
@@ -853,7 +858,7 @@ This function is not available in scripting API.
|
|||||||
|
|
||||||
_WeeChat ≥ 3.8._
|
_WeeChat ≥ 3.8._
|
||||||
|
|
||||||
Case sensitive string comparison, for _max_ chars.
|
Case-sensitive string comparison, for _max_ chars.
|
||||||
|
|
||||||
Prototype:
|
Prototype:
|
||||||
|
|
||||||
@@ -890,7 +895,7 @@ This function is not available in scripting API.
|
|||||||
|
|
||||||
_Updated in 1.0, 3.8._
|
_Updated in 1.0, 3.8._
|
||||||
|
|
||||||
Case insensitive string comparison.
|
Case-insensitive string comparison.
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
Behavior has changed in version 3.8: now all uppercase letters are properly
|
Behavior has changed in version 3.8: now all uppercase letters are properly
|
||||||
@@ -979,7 +984,7 @@ This function is not available in scripting API.
|
|||||||
|
|
||||||
_Updated in 1.0, 3.8._
|
_Updated in 1.0, 3.8._
|
||||||
|
|
||||||
Case insensitive string comparison, for _max_ chars.
|
Case-insensitive string comparison, for _max_ chars.
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
Behavior has changed in version 3.8: now all uppercase letters are properly
|
Behavior has changed in version 3.8: now all uppercase letters are properly
|
||||||
@@ -1084,7 +1089,7 @@ Arguments:
|
|||||||
* _string1_: first string for comparison
|
* _string1_: first string for comparison
|
||||||
* _string2_: second string for comparison
|
* _string2_: second string for comparison
|
||||||
* _chars_ignored_: string with chars to ignored
|
* _chars_ignored_: string with chars to ignored
|
||||||
* _case_sensitive_: 1 for case sensitive comparison, otherwise 0
|
* _case_sensitive_: 1 for case-sensitive comparison, otherwise 0
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
Behavior has changed in version 3.8 when _case_sensitive_ is set to 0: now all
|
Behavior has changed in version 3.8 when _case_sensitive_ is set to 0: now all
|
||||||
@@ -1094,7 +1099,7 @@ uppercase letters are properly converted to lowercase (by calling function
|
|||||||
Return value:
|
Return value:
|
||||||
|
|
||||||
* arithmetic result of subtracting the last compared UTF-8 char in
|
* arithmetic result of subtracting the last compared UTF-8 char in
|
||||||
_string2_ (converted to lowercase if _case_sentitive_ is set to 0) from the last
|
_string2_ (converted to lowercase if _case_sensitive_ is set to 0) from the last
|
||||||
compared UTF-8 char in _string1_ (converted to lowercase if _case_sensitive_ is
|
compared UTF-8 char in _string1_ (converted to lowercase if _case_sensitive_ is
|
||||||
set to 0):
|
set to 0):
|
||||||
** < 0 if string1 < string2
|
** < 0 if string1 < string2
|
||||||
@@ -1115,7 +1120,7 @@ This function is not available in scripting API.
|
|||||||
|
|
||||||
_Updated in 1.3, 3.8._
|
_Updated in 1.3, 3.8._
|
||||||
|
|
||||||
Case insensitive string search.
|
Case-insensitive string search.
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
Behavior has changed in version 3.8: now all uppercase letters are properly
|
Behavior has changed in version 3.8: now all uppercase letters are properly
|
||||||
@@ -1210,7 +1215,7 @@ Arguments:
|
|||||||
* _string_: string
|
* _string_: string
|
||||||
* _mask_: mask with wildcards (`+*+`), each wildcard matches 0 or more chars in
|
* _mask_: mask with wildcards (`+*+`), each wildcard matches 0 or more chars in
|
||||||
the string
|
the string
|
||||||
* _case_sensitive_: 1 for case sensitive comparison, otherwise 0
|
* _case_sensitive_: 1 for case-sensitive comparison, otherwise 0
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
Since version 1.0, wildcards are allowed inside the mask
|
Since version 1.0, wildcards are allowed inside the mask
|
||||||
@@ -1272,7 +1277,7 @@ Arguments:
|
|||||||
* _string_: string
|
* _string_: string
|
||||||
* _masks_: list of masks, with a NULL after the last mask in list; each mask
|
* _masks_: list of masks, with a NULL after the last mask in list; each mask
|
||||||
is compared to the string with the function <<_string_match,string_match>>
|
is compared to the string with the function <<_string_match,string_match>>
|
||||||
* _case_sensitive_: 1 for case sensitive comparison, otherwise 0
|
* _case_sensitive_: 1 for case-sensitive comparison, otherwise 0
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
Behavior has changed in version 3.8 when _case_sensitive_ is set to 0: now all
|
Behavior has changed in version 3.8 when _case_sensitive_ is set to 0: now all
|
||||||
@@ -1598,7 +1603,7 @@ Flags must be at beginning of regular expression. Format is:
|
|||||||
Allowed flags are:
|
Allowed flags are:
|
||||||
|
|
||||||
* _e_: POSIX extended regular expression (_REG_EXTENDED_)
|
* _e_: POSIX extended regular expression (_REG_EXTENDED_)
|
||||||
* _i_: case insensitive (_REG_ICASE_)
|
* _i_: case-insensitive (_REG_ICASE_)
|
||||||
* _n_: match-any-character operators don't match a newline (_REG_NEWLINE_)
|
* _n_: match-any-character operators don't match a newline (_REG_NEWLINE_)
|
||||||
* _s_: support for substring addressing of matches is not required (_REG_NOSUB_)
|
* _s_: support for substring addressing of matches is not required (_REG_NOSUB_)
|
||||||
|
|
||||||
@@ -2160,7 +2165,7 @@ Arguments:
|
|||||||
Return value:
|
Return value:
|
||||||
|
|
||||||
* array of strings, NULL if problem (must be freed by calling
|
* array of strings, NULL if problem (must be freed by calling
|
||||||
<<_free_split_command,free_split_command>> after use)
|
<<_string_free_split_command,string_free_split_command>> after use)
|
||||||
|
|
||||||
C example:
|
C example:
|
||||||
|
|
||||||
@@ -2791,7 +2796,7 @@ from first used to last):
|
|||||||
== `+1+`
|
== `+1+`
|
||||||
|
|
||||||
| `+==*+` | 2.9
|
| `+==*+` | 2.9
|
||||||
| Is matching mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>)
|
| Is matching mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>)
|
||||||
| >> `+abc def ==* a*f+` +
|
| >> `+abc def ==* a*f+` +
|
||||||
== `+1+` +
|
== `+1+` +
|
||||||
+
|
+
|
||||||
@@ -2799,7 +2804,7 @@ from first used to last):
|
|||||||
== `+0+`
|
== `+0+`
|
||||||
|
|
||||||
| `+!!*+` | 2.9
|
| `+!!*+` | 2.9
|
||||||
| Is NOT wildcard mask where "*" is allowed, case sensitive (see function <<_string_match,string_match>>)
|
| Is NOT wildcard mask where "*" is allowed, case-sensitive (see function <<_string_match,string_match>>)
|
||||||
| >> `+abc def !!* a*f+` +
|
| >> `+abc def !!* a*f+` +
|
||||||
== `+0+` +
|
== `+0+` +
|
||||||
+
|
+
|
||||||
@@ -2807,7 +2812,7 @@ from first used to last):
|
|||||||
== `+1+`
|
== `+1+`
|
||||||
|
|
||||||
| `+=*+` | 1.8
|
| `+=*+` | 1.8
|
||||||
| Is matching mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>)
|
| Is matching mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>)
|
||||||
| >> `+abc def =* A*F+` +
|
| >> `+abc def =* A*F+` +
|
||||||
== `+1+` +
|
== `+1+` +
|
||||||
+
|
+
|
||||||
@@ -2815,7 +2820,7 @@ from first used to last):
|
|||||||
== `+0+`
|
== `+0+`
|
||||||
|
|
||||||
| `+!*+` | 1.8
|
| `+!*+` | 1.8
|
||||||
| Is NOT wildcard mask where "*" is allowed, case insensitive (see function <<_string_match,string_match>>)
|
| Is NOT wildcard mask where "*" is allowed, case-insensitive (see function <<_string_match,string_match>>)
|
||||||
| >> `+abc def !* A*F+` +
|
| >> `+abc def !* A*F+` +
|
||||||
== `+0+` +
|
== `+0+` +
|
||||||
+
|
+
|
||||||
@@ -2823,7 +2828,7 @@ from first used to last):
|
|||||||
== `+1+`
|
== `+1+`
|
||||||
|
|
||||||
| `+==-+` | 2.9
|
| `+==-+` | 2.9
|
||||||
| Is included, case sensitive
|
| Is included, case-sensitive
|
||||||
| >> `+abc def ==- bc+` +
|
| >> `+abc def ==- bc+` +
|
||||||
== `+1+` +
|
== `+1+` +
|
||||||
+
|
+
|
||||||
@@ -2831,7 +2836,7 @@ from first used to last):
|
|||||||
== `+0+`
|
== `+0+`
|
||||||
|
|
||||||
| `+!!-+` | 2.9
|
| `+!!-+` | 2.9
|
||||||
| Is NOT included, case sensitive
|
| Is NOT included, case-sensitive
|
||||||
| >> `+abc def !!- bc+` +
|
| >> `+abc def !!- bc+` +
|
||||||
== `+0+` +
|
== `+0+` +
|
||||||
+
|
+
|
||||||
@@ -2839,7 +2844,7 @@ from first used to last):
|
|||||||
== `+1+`
|
== `+1+`
|
||||||
|
|
||||||
| `+=-+` | 2.9
|
| `+=-+` | 2.9
|
||||||
| Is included, case insensitive
|
| Is included, case-insensitive
|
||||||
| >> `+abc def =- BC+` +
|
| >> `+abc def =- BC+` +
|
||||||
== `+1+` +
|
== `+1+` +
|
||||||
+
|
+
|
||||||
@@ -2847,7 +2852,7 @@ from first used to last):
|
|||||||
== `+0+`
|
== `+0+`
|
||||||
|
|
||||||
| `+!-+` | 2.9
|
| `+!-+` | 2.9
|
||||||
| Is NOT included, case insensitive
|
| Is NOT included, case-insensitive
|
||||||
| >> `+abc def !- BC+` +
|
| >> `+abc def !- BC+` +
|
||||||
== `+0+` +
|
== `+0+` +
|
||||||
+
|
+
|
||||||
@@ -4001,7 +4006,7 @@ Arguments:
|
|||||||
|
|
||||||
Return value:
|
Return value:
|
||||||
|
|
||||||
* real potision (in bytes)
|
* real position (in bytes)
|
||||||
|
|
||||||
C example:
|
C example:
|
||||||
|
|
||||||
@@ -4619,11 +4624,201 @@ if (weechat_file_compress ("/tmp/test.txt", "/tmp/test.txt.zst", "zstd", 50))
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
This function is not available in scripting API.
|
This function is not available in scripting API.
|
||||||
|
|
||||||
|
==== file_compare
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.7.0._
|
||||||
|
|
||||||
|
Compare the content of two files.
|
||||||
|
|
||||||
|
Prototype:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int weechat_file_compare (const char *filename1, const char *filename2);
|
||||||
|
----
|
||||||
|
|
||||||
|
Arguments:
|
||||||
|
|
||||||
|
* _filename1_: first file to compare
|
||||||
|
* _filename2_: second file to compare
|
||||||
|
|
||||||
|
Return value:
|
||||||
|
|
||||||
|
* 0: both files have same content
|
||||||
|
* 1: content is different
|
||||||
|
* 2: error (file not found or read error)
|
||||||
|
|
||||||
|
C example:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
if (weechat_file_compare ("/tmp/test.txt", "/tmp/test2.txt") == 0)
|
||||||
|
{
|
||||||
|
/* same content */
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
This function is not available in scripting API.
|
||||||
|
|
||||||
[[util]]
|
[[util]]
|
||||||
=== Util
|
=== Util
|
||||||
|
|
||||||
Some useful functions.
|
Some useful functions.
|
||||||
|
|
||||||
|
==== util_parse_int
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.8.0._
|
||||||
|
|
||||||
|
Parse an integer number of type "int" in a string.
|
||||||
|
|
||||||
|
Prototype:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int weechat_util_parse_int (const char *string, int base, int *result);
|
||||||
|
----
|
||||||
|
|
||||||
|
Arguments:
|
||||||
|
|
||||||
|
* _string_: string to parse
|
||||||
|
* _base_: can be 0 (automatic) or an integer between 2 and 36 (inclusive)
|
||||||
|
* _result_: pointer to a variable updated if the string is correctly parsed
|
||||||
|
(if pointer is NULL, the number found is not returned)
|
||||||
|
|
||||||
|
Return value:
|
||||||
|
|
||||||
|
* 1: OK
|
||||||
|
* 0: error
|
||||||
|
|
||||||
|
The following strings are invalid and the function returns 0:
|
||||||
|
|
||||||
|
* empty string
|
||||||
|
* number with extra non-digits after
|
||||||
|
* number < INT_MIN (min value for a variable of type "int")
|
||||||
|
* number > INT_MAX (max value for a variable of type "int")
|
||||||
|
* invalid integer for the given _base_
|
||||||
|
|
||||||
|
C examples:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int number;
|
||||||
|
if (weechat_util_parse_int ("1234", 10, &number))
|
||||||
|
{
|
||||||
|
/* number == 1234 */
|
||||||
|
}
|
||||||
|
if (!weechat_util_parse_int ("abc", 10, &number))
|
||||||
|
{
|
||||||
|
/* parsing error, number is unchanged */
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
This function is not available in scripting API.
|
||||||
|
|
||||||
|
==== util_parse_long
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.8.0._
|
||||||
|
|
||||||
|
Parse an integer number of type "long" in a string.
|
||||||
|
|
||||||
|
Prototype:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int weechat_util_parse_long (const char *string, int base, long *result);
|
||||||
|
----
|
||||||
|
|
||||||
|
Arguments:
|
||||||
|
|
||||||
|
* _string_: string to parse
|
||||||
|
* _base_: can be 0 (automatic) or an integer between 2 and 36 (inclusive)
|
||||||
|
* _result_: pointer to a variable updated if the string is correctly parsed
|
||||||
|
(if pointer is NULL, the number found is not returned)
|
||||||
|
|
||||||
|
Return value:
|
||||||
|
|
||||||
|
* 1: OK
|
||||||
|
* 0: error
|
||||||
|
|
||||||
|
The following strings are invalid and the function returns 0:
|
||||||
|
|
||||||
|
* empty string
|
||||||
|
* number with extra non-digits after
|
||||||
|
* number < LONG_MIN (min value for a variable of type "long")
|
||||||
|
* number > LONG_MAX (max value for a variable of type "long")
|
||||||
|
* invalid integer for the given _base_
|
||||||
|
|
||||||
|
C examples:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
long number;
|
||||||
|
if (weechat_util_parse_long ("1234", 10, &number))
|
||||||
|
{
|
||||||
|
/* number == 1234 */
|
||||||
|
}
|
||||||
|
if (!weechat_util_parse_long ("abc", 10, &number))
|
||||||
|
{
|
||||||
|
/* parsing error, number is unchanged */
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
This function is not available in scripting API.
|
||||||
|
|
||||||
|
==== util_parse_longlong
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.8.0._
|
||||||
|
|
||||||
|
Parse an integer number of type "long long" in a string.
|
||||||
|
|
||||||
|
Prototype:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int weechat_util_parse_longlong (const char *string, int base, long long *result);
|
||||||
|
----
|
||||||
|
|
||||||
|
Arguments:
|
||||||
|
|
||||||
|
* _string_: string to parse
|
||||||
|
* _base_: can be 0 (automatic) or an integer between 2 and 36 (inclusive)
|
||||||
|
* _result_: pointer to a variable updated if the string is correctly parsed
|
||||||
|
(if pointer is NULL, the number found is not returned)
|
||||||
|
|
||||||
|
Return value:
|
||||||
|
|
||||||
|
* 1: OK
|
||||||
|
* 0: error
|
||||||
|
|
||||||
|
The following strings are invalid and the function returns 0:
|
||||||
|
|
||||||
|
* empty string
|
||||||
|
* number with extra non-digits after
|
||||||
|
* number < LLONG_MIN (min value for a variable of type "long long")
|
||||||
|
* number > LLONG_MAX (max value for a variable of type "long long")
|
||||||
|
* invalid integer for the given _base_
|
||||||
|
|
||||||
|
C examples:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
long long number;
|
||||||
|
if (weechat_util_parse_longlong ("1234", 10, &number))
|
||||||
|
{
|
||||||
|
/* number == 1234 */
|
||||||
|
}
|
||||||
|
if (!weechat_util_parse_longlong ("abc", 10, &number))
|
||||||
|
{
|
||||||
|
/* parsing error, number is unchanged */
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
This function is not available in scripting API.
|
||||||
|
|
||||||
==== util_timeval_cmp
|
==== util_timeval_cmp
|
||||||
|
|
||||||
Compare two "timeval" structures.
|
Compare two "timeval" structures.
|
||||||
@@ -4761,7 +4956,7 @@ This function is not available in scripting API.
|
|||||||
|
|
||||||
==== util_strftimeval
|
==== util_strftimeval
|
||||||
|
|
||||||
_WeeChat ≥ 4.2.0, updated in 4.3.0._
|
_WeeChat ≥ 4.2.0, updated in 4.3.0, 4.7.0._
|
||||||
|
|
||||||
Format date and time like function `strftime` in C library, using `struct timeval`
|
Format date and time like function `strftime` in C library, using `struct timeval`
|
||||||
as input, and supporting extra specifiers.
|
as input, and supporting extra specifiers.
|
||||||
@@ -4778,6 +4973,8 @@ Arguments:
|
|||||||
* _string_: buffer where the formatted string is stored
|
* _string_: buffer where the formatted string is stored
|
||||||
* _max_: string size
|
* _max_: string size
|
||||||
* _format_: format, the same as _strftime_ function, with these extra specifiers:
|
* _format_: format, the same as _strftime_ function, with these extra specifiers:
|
||||||
|
** `%@`: return the date expressed in Coordinated Universal Time (UTC)
|
||||||
|
instead of date relative to the user's specified timezone _(WeeChat ≥ 4.7.0)_
|
||||||
** `%.N` where `N` is between 1 and 6: zero-padded microseconds on N digits
|
** `%.N` where `N` is between 1 and 6: zero-padded microseconds on N digits
|
||||||
(for example `%.3` for milliseconds)
|
(for example `%.3` for milliseconds)
|
||||||
** `%f`: alias of `%.6`
|
** `%f`: alias of `%.6`
|
||||||
@@ -4794,8 +4991,8 @@ C example:
|
|||||||
char time[256];
|
char time[256];
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday (&tv, NULL);
|
gettimeofday (&tv, NULL);
|
||||||
weechat_util_strftimeval (time, sizeof (time), "%FT%T.%f", &tv);
|
weechat_util_strftimeval (time, sizeof (time), "%@%FT%T.%fZ", &tv);
|
||||||
/* result: 2023-12-26T18:10:04.460509 */
|
/* result: 2023-12-26T18:10:04.460509Z */
|
||||||
----
|
----
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
@@ -4803,7 +5000,7 @@ This function is not available in scripting API.
|
|||||||
|
|
||||||
==== util_parse_time
|
==== util_parse_time
|
||||||
|
|
||||||
_WeeChat ≥ 4.2.0._
|
_WeeChat ≥ 4.2.0, updated in 4.8.0._
|
||||||
|
|
||||||
Parse date/time with support of microseconds.
|
Parse date/time with support of microseconds.
|
||||||
|
|
||||||
@@ -4816,20 +5013,106 @@ int util_parse_time (const char *datetime, struct timeval *tv);
|
|||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
* _date_: date/time
|
* _date_: date/time (see supported formats below)
|
||||||
* _tv_: parsed date/time ("timeval" structure)
|
* _tv_: parsed date/time ("timeval" structure)
|
||||||
|
|
||||||
|
Supported date/time format (supposing the current time is `2025-08-30 21:04:55`
|
||||||
|
(Europe/Paris), so with timezone offset `+02:00`, UTC time being `19:04:55`):
|
||||||
|
|
||||||
|
[width="70%",cols="5,6m",options="header"]
|
||||||
|
|===
|
||||||
|
| Format | Examples
|
||||||
|
|
||||||
|
| Date (midnight)
|
||||||
|
| 2025-08-30
|
||||||
|
|
||||||
|
| ISO 8601, date + local time
|
||||||
|
| 2025-08-30T21:04:55 +
|
||||||
|
2025-08-30T21:04:55.123456
|
||||||
|
|
||||||
|
| ISO 8601, date + local time + offset
|
||||||
|
| 2025-08-30T16:04:55-03 +
|
||||||
|
2025-08-30T16:04:55-0300 +
|
||||||
|
2025-08-30T21:04:55+0200 +
|
||||||
|
2025-08-30T21:04:55+02:00 +
|
||||||
|
2025-08-30T21:04:55.123456+0200
|
||||||
|
|
||||||
|
| ISO 8601, date + UTC time
|
||||||
|
| 2025-08-30T19:04:55Z +
|
||||||
|
2025-08-30T19:04:55.123456Z
|
||||||
|
|
||||||
|
| RFC 3339, date + local time
|
||||||
|
| 2025-08-30 21:04:55 +
|
||||||
|
2025-08-30 21:04:55.123456
|
||||||
|
|
||||||
|
| RFC 3339, date + local time + offset
|
||||||
|
| 2025-08-30 16:04:55-03 +
|
||||||
|
2025-08-30 16:04:55-0300 +
|
||||||
|
2025-08-30 21:04:55+0200 +
|
||||||
|
2025-08-30 21:04:55 +0200 +
|
||||||
|
2025-08-30 21:04:55+02:00 +
|
||||||
|
2025-08-30 21:04:55 +02:00 +
|
||||||
|
2025-08-30 21:04:55.123456+0200 +
|
||||||
|
2025-08-30 21:04:55.123456 +02:00
|
||||||
|
|
||||||
|
| RFC 3339, date + UTC time
|
||||||
|
| 2025-08-30 19:04:55Z +
|
||||||
|
2025-08-30 19:04:55.123456Z
|
||||||
|
|
||||||
|
| Local time
|
||||||
|
| 21:04:55 +
|
||||||
|
21:04:55.123456
|
||||||
|
|
||||||
|
| Local time + offset
|
||||||
|
| 16:04:55-03 +
|
||||||
|
16:04:55-0300 +
|
||||||
|
21:04:55+0200 +
|
||||||
|
21:04:55 +0200 +
|
||||||
|
21:04:55+02:00 +
|
||||||
|
21:04:55 +02:00 +
|
||||||
|
21:04:55.123456+0200 +
|
||||||
|
21:04:55.123456 +02:00
|
||||||
|
|
||||||
|
| UTC time
|
||||||
|
| 19:04:55Z +
|
||||||
|
19:04:55.123456Z
|
||||||
|
|
||||||
|
| Timestamp date
|
||||||
|
| 1756580695 +
|
||||||
|
1756580695.123456 +
|
||||||
|
1756580695,123456
|
||||||
|
|===
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
|
||||||
|
* For ISO 8601, the separator between date and time is `T` (upper case) or `t` (lower case).
|
||||||
|
* For UTC time, the final char is `Z` (upper case) or `z` (lower case).
|
||||||
|
* The timezone offset format is one of:
|
||||||
|
** `++[+/-]hh:mm++` (hours and minutes)
|
||||||
|
** `++[+/-]hhmm++` (hours and minutes)
|
||||||
|
** `++[+/-]hh++` (hours).
|
||||||
|
* Precision after seconds can be from one-tenth of second (1 digit, for example
|
||||||
|
`21:04:55.1`) to one microsecond (6 digits, for example `21:04:55.123456`). +
|
||||||
|
A dot (`.`) or comma (`,`) can separate seconds from the other digits.
|
||||||
|
|
||||||
Return value:
|
Return value:
|
||||||
|
|
||||||
* 1 if OK, 0 if error
|
* 1 if OK, 0 if error
|
||||||
|
|
||||||
C example:
|
C examples:
|
||||||
|
|
||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
weechat_util_parse_time ("2023-12-25T10:29:09.456789Z", &tv); /* == 1 */
|
|
||||||
/* result: tv.tv_sec == 1703500149, tv.tv_usec = 456789 */
|
weechat_util_parse_time ("2025-08-30T19:04:55.123456Z", &tv); /* == 1 */
|
||||||
|
/* result: tv.tv_sec == 1756580695, tv.tv_usec = 123456 */
|
||||||
|
|
||||||
|
weechat_util_parse_time ("2025-08-30 21:04:55.123456 +02:00", &tv); /* == 1 */
|
||||||
|
/* same result */
|
||||||
|
|
||||||
|
weechat_util_parse_time ("21:04:55.123456", &tv); /* == 1 */
|
||||||
|
/* same result */
|
||||||
----
|
----
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
@@ -4837,7 +5120,7 @@ This function is not available in scripting API.
|
|||||||
|
|
||||||
==== util_version_number
|
==== util_version_number
|
||||||
|
|
||||||
_WeeChat ≥ 0.3.9._
|
_WeeChat ≥ 0.3.9, updated in 4.7.0._
|
||||||
|
|
||||||
Convert a string with WeeChat version to a number.
|
Convert a string with WeeChat version to a number.
|
||||||
|
|
||||||
@@ -4845,7 +5128,7 @@ Prototype:
|
|||||||
|
|
||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
int weechat_util_version_number (const char *version);
|
unsigned long weechat_util_version_number (const char *version);
|
||||||
----
|
----
|
||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
@@ -6966,7 +7249,7 @@ my_section_delete_option_cb (const void *pointer, void *data,
|
|||||||
/* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */
|
/* return WEECHAT_CONFIG_OPTION_UNSET_ERROR; */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* standard section, user can not add/delete options */
|
/* standard section, user cannot add/delete options */
|
||||||
struct t_config_section *new_section1 =
|
struct t_config_section *new_section1 =
|
||||||
weechat_config_new_section (config_file, "section1", 0, 0,
|
weechat_config_new_section (config_file, "section1", 0, 0,
|
||||||
NULL, NULL, NULL,
|
NULL, NULL, NULL,
|
||||||
@@ -8121,7 +8404,7 @@ def config_boolean_inherited(option: str) -> int: ...
|
|||||||
|
|
||||||
# example
|
# example
|
||||||
option = weechat.config_get("irc.server.libera.autoconnect")
|
option = weechat.config_get("irc.server.libera.autoconnect")
|
||||||
autoconect = weechat.config_boolean_inherited(option)
|
autoconnect = weechat.config_boolean_inherited(option)
|
||||||
----
|
----
|
||||||
|
|
||||||
==== config_integer
|
==== config_integer
|
||||||
@@ -9344,6 +9627,89 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_UNSET_ERROR:
|
|||||||
# ...
|
# ...
|
||||||
----
|
----
|
||||||
|
|
||||||
|
[[themes]]
|
||||||
|
=== Themes
|
||||||
|
|
||||||
|
Functions to contribute color (and other themable option) overrides to
|
||||||
|
built-in themes. See the
|
||||||
|
link:weechat_user.en.html#themes[user's guide / Themes] section for the
|
||||||
|
end-user side and the `+/theme+` command.
|
||||||
|
|
||||||
|
==== theme_register
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.10.0._
|
||||||
|
|
||||||
|
Register a contribution of option overrides under a named theme. The
|
||||||
|
caller's plugin is the owner of the contribution; subsequent calls
|
||||||
|
with the same theme name from the same plugin merge into the existing
|
||||||
|
contribution (later keys win for duplicates).
|
||||||
|
|
||||||
|
When the calling plugin is unloaded, all its contributions are
|
||||||
|
automatically dropped from every theme.
|
||||||
|
|
||||||
|
Prototype:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
struct t_theme *weechat_theme_register (const char *name,
|
||||||
|
struct t_hashtable *overrides);
|
||||||
|
----
|
||||||
|
|
||||||
|
Arguments:
|
||||||
|
|
||||||
|
* _name_: theme name (for example `+light+` or a custom name)
|
||||||
|
* _overrides_: hashtable mapping full option names
|
||||||
|
(e.g. `+irc.color.input_nick+`) to their string values; the caller
|
||||||
|
retains ownership and may free the hashtable right after the call
|
||||||
|
|
||||||
|
Return value:
|
||||||
|
|
||||||
|
* pointer to the registered theme (existing or newly created), NULL on
|
||||||
|
error
|
||||||
|
|
||||||
|
C example:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
struct t_hashtable *overrides = weechat_hashtable_new (
|
||||||
|
8,
|
||||||
|
WEECHAT_HASHTABLE_STRING,
|
||||||
|
WEECHAT_HASHTABLE_STRING,
|
||||||
|
NULL, NULL);
|
||||||
|
if (overrides)
|
||||||
|
{
|
||||||
|
weechat_hashtable_set (overrides, "irc.color.input_nick", "cyan");
|
||||||
|
weechat_hashtable_set (overrides, "irc.color.topic_old", "darkgray");
|
||||||
|
weechat_theme_register ("light", overrides);
|
||||||
|
weechat_hashtable_free (overrides);
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
Script (Python):
|
||||||
|
|
||||||
|
[source,python]
|
||||||
|
----
|
||||||
|
# prototype
|
||||||
|
def theme_register(name: str, overrides: Dict[str, str]) -> str: ...
|
||||||
|
|
||||||
|
# example
|
||||||
|
weechat.theme_register("light", {
|
||||||
|
"irc.color.input_nick": "cyan",
|
||||||
|
"irc.color.topic_old": "darkgray",
|
||||||
|
})
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
Only options that have the _themable_ flag will be set by `/theme apply`.
|
||||||
|
All `*.color.*` options are themable by default; string options that
|
||||||
|
hold `+${color:...}+` references are explicitly opted in. Entries
|
||||||
|
targeting non-themable options are silently skipped at apply-time with
|
||||||
|
a warning logged to the _core_ buffer.
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
When called from a script, the contribution is automatically dropped
|
||||||
|
when the script unloads (no manual cleanup is needed).
|
||||||
|
|
||||||
[[key_bindings]]
|
[[key_bindings]]
|
||||||
=== Key bindings
|
=== Key bindings
|
||||||
|
|
||||||
@@ -9422,7 +9788,7 @@ _WeeChat ≥ 0.3.6, updated in 2.0._
|
|||||||
|
|
||||||
Remove key binding(s).
|
Remove key binding(s).
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
When calling this function, ensure that you will not remove a user key binding.
|
When calling this function, ensure that you will not remove a user key binding.
|
||||||
|
|
||||||
Prototype:
|
Prototype:
|
||||||
@@ -10009,7 +10375,7 @@ C examples:
|
|||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
/* hook modifier with priority = 2000 */
|
/* hook modifier with priority = 2000 */
|
||||||
/* high priority: called before other modifier calbacks */
|
/* high priority: called before other modifier callbacks */
|
||||||
weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL);
|
weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL, NULL);
|
||||||
|
|
||||||
/* hook two signals with priority = 3000 */
|
/* hook two signals with priority = 3000 */
|
||||||
@@ -10475,7 +10841,7 @@ Arguments:
|
|||||||
* _flag_read_: 1 = catch read event, 0 = ignore
|
* _flag_read_: 1 = catch read event, 0 = ignore
|
||||||
* _flag_write_: 1 = catch write event, 0 = ignore
|
* _flag_write_: 1 = catch write event, 0 = ignore
|
||||||
* _flag_exception_: 1 = catch exception event, 0 = ignore
|
* _flag_exception_: 1 = catch exception event, 0 = ignore
|
||||||
(_WeeChat ≥ 1.3_: this argument is ignored and not used any more)
|
(_WeeChat ≥ 1.3_: this argument is ignored and not used anymore)
|
||||||
* _callback_: function called a selected event occurs for file (or socket),
|
* _callback_: function called a selected event occurs for file (or socket),
|
||||||
arguments and return value:
|
arguments and return value:
|
||||||
** _const void *pointer_: pointer
|
** _const void *pointer_: pointer
|
||||||
@@ -10539,7 +10905,7 @@ _Updated in 1.5._
|
|||||||
Hook a process (launched with fork), and catch output.
|
Hook a process (launched with fork), and catch output.
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
Since version 0.3.9.2, the shell is not used any more to execute the command.
|
Since version 0.3.9.2, the shell is not used anymore to execute the command.
|
||||||
WeeChat makes an automatic split of the command and its arguments (like the
|
WeeChat makes an automatic split of the command and its arguments (like the
|
||||||
shell does). +
|
shell does). +
|
||||||
If the split is not correct (according to quotes in your command), or if you
|
If the split is not correct (according to quotes in your command), or if you
|
||||||
@@ -10980,6 +11346,11 @@ _WeeChat ≥ 4.1.0._
|
|||||||
|
|
||||||
URL transfer.
|
URL transfer.
|
||||||
|
|
||||||
|
This function is similar to <<_hook_process,hook_process>> and
|
||||||
|
<<_hook_process_hashtable,hook_process_hashtable>> with command "url:..."
|
||||||
|
but it uses a thread instead of a new process, making it more lightweight
|
||||||
|
and thus recommended for this usage.
|
||||||
|
|
||||||
Prototype:
|
Prototype:
|
||||||
|
|
||||||
[source,c]
|
[source,c]
|
||||||
@@ -11015,6 +11386,16 @@ Arguments:
|
|||||||
*** _headers_: HTTP headers in response
|
*** _headers_: HTTP headers in response
|
||||||
*** _output_: standard output (set only if _file_out_ was not set in options)
|
*** _output_: standard output (set only if _file_out_ was not set in options)
|
||||||
*** _error_: error message (set only in case of error)
|
*** _error_: error message (set only in case of error)
|
||||||
|
*** _error_code_: error code (integer, set only in case of error):
|
||||||
|
**** `1`: invalid URL
|
||||||
|
**** `2`: transfer error (Curl error)
|
||||||
|
**** `3`: not enough memory
|
||||||
|
**** `4`: file error
|
||||||
|
**** `5`: transfer stopped (hook removed during the transfer)
|
||||||
|
**** `6`: transfer timeout
|
||||||
|
**** `100`: thread creation error
|
||||||
|
*** _error_code_pthread_: return code of function _pthread_create_
|
||||||
|
(integer, set only if _error_code_ is `100`)
|
||||||
** return value:
|
** return value:
|
||||||
*** _WEECHAT_RC_OK_
|
*** _WEECHAT_RC_OK_
|
||||||
*** _WEECHAT_RC_ERROR_
|
*** _WEECHAT_RC_ERROR_
|
||||||
@@ -11577,7 +11958,7 @@ C example:
|
|||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
int
|
int
|
||||||
my_line_cb (const void *pointer, void *data, struct t_hasbtable *line)
|
my_line_cb (const void *pointer, void *data, struct t_hashtable *line)
|
||||||
{
|
{
|
||||||
struct t_hashtable *hashtable;
|
struct t_hashtable *hashtable;
|
||||||
|
|
||||||
@@ -12192,7 +12573,7 @@ List of signals sent by WeeChat and plugins:
|
|||||||
| String: text sent to buffer.
|
| String: text sent to buffer.
|
||||||
| Text sent to a user buffer as input (sent only for buffers created with `/buffer add`). +
|
| Text sent to a user buffer as input (sent only for buffers created with `/buffer add`). +
|
||||||
If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the string "q"
|
If the return code of a callback is _WEECHAT_RC_OK_EAT_, then the string "q"
|
||||||
can not be used any more to close the buffer.
|
cannot be used anymore to close the buffer.
|
||||||
|
|
||||||
| weechat | [[hook_signal_buffer_user_closing_xxx]] buffer_user_closing_xxx ^(2)^ | 3.8
|
| weechat | [[hook_signal_buffer_user_closing_xxx]] buffer_user_closing_xxx ^(2)^ | 3.8
|
||||||
| -
|
| -
|
||||||
@@ -12487,7 +12868,7 @@ hook = weechat.hook_signal("quit;upgrade", "my_signal_cb", "")
|
|||||||
|
|
||||||
==== hook_signal_send
|
==== hook_signal_send
|
||||||
|
|
||||||
_Updated in 1.0._
|
_Updated in 1.0, 4.5.0._
|
||||||
|
|
||||||
Send a signal.
|
Send a signal.
|
||||||
|
|
||||||
@@ -12501,10 +12882,20 @@ int weechat_hook_signal_send (const char *signal, const char *type_data,
|
|||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
* _signal_: signal to send
|
* _signal_: signal to send; flags are allowed before the signal name (see below)
|
||||||
|
_(WeeChat ≥ 4.5.0)_
|
||||||
* _type_data_: type of data sent with signal (see <<_hook_signal,hook_signal>>)
|
* _type_data_: type of data sent with signal (see <<_hook_signal,hook_signal>>)
|
||||||
* _signal_data_: data sent with signal
|
* _signal_data_: data sent with signal
|
||||||
|
|
||||||
|
The signal name can contain flags with the following format: `[flags:xxx,yyy]signal`
|
||||||
|
where `xxx` and `yyy` are names of flags, and `signal` the signal name. +
|
||||||
|
The following flags are supported:
|
||||||
|
|
||||||
|
* _stop_on_error_: exit immediately if a callback returns WEECHAT_RC_ERROR
|
||||||
|
(remaining callbacks are then NOT executed) _(WeeChat ≥ 4.5.0)_
|
||||||
|
* _ignore_eat_: consider any callback returning WEECHAT_RC_OK_EAT is in fact
|
||||||
|
WEECHAT_RC_OK and execute remaining callbacks _(WeeChat ≥ 4.5.0)_
|
||||||
|
|
||||||
Return value _(WeeChat ≥ 1.0)_:
|
Return value _(WeeChat ≥ 1.0)_:
|
||||||
|
|
||||||
* return code of last callback executed (_WEECHAT_RC_OK_ if no callback was
|
* return code of last callback executed (_WEECHAT_RC_OK_ if no callback was
|
||||||
@@ -12518,6 +12909,8 @@ C example:
|
|||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
int rc = weechat_hook_signal_send ("my_signal", WEECHAT_HOOK_SIGNAL_STRING, my_string);
|
int rc = weechat_hook_signal_send ("my_signal", WEECHAT_HOOK_SIGNAL_STRING, my_string);
|
||||||
|
int rc2 = weechat_hook_signal_send ("[flags:stop_on_error,ignore_eat]my_signal2",
|
||||||
|
WEECHAT_HOOK_SIGNAL_STRING, my_string);
|
||||||
----
|
----
|
||||||
|
|
||||||
Script (Python):
|
Script (Python):
|
||||||
@@ -12527,8 +12920,10 @@ Script (Python):
|
|||||||
# prototype
|
# prototype
|
||||||
def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ...
|
def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ...
|
||||||
|
|
||||||
# example
|
# examples
|
||||||
rc = weechat.hook_signal_send("my_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
|
rc = weechat.hook_signal_send("my_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
|
||||||
|
rc2 = weechat.hook_signal_send("[flags:stop_on_error,ignore_eat]my_signal2",
|
||||||
|
weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
|
||||||
----
|
----
|
||||||
|
|
||||||
[[signal_logger_backlog]]
|
[[signal_logger_backlog]]
|
||||||
@@ -12813,7 +13208,7 @@ hook = weechat.hook_hsignal("test", "my_hsignal_cb", "")
|
|||||||
|
|
||||||
==== hook_hsignal_send
|
==== hook_hsignal_send
|
||||||
|
|
||||||
_WeeChat ≥ 0.3.4, updated in 1.0._
|
_WeeChat ≥ 0.3.4, updated in 1.0, 4.5.0._
|
||||||
|
|
||||||
Send a hsignal (signal with hashtable).
|
Send a hsignal (signal with hashtable).
|
||||||
|
|
||||||
@@ -12826,7 +13221,8 @@ int weechat_hook_hsignal_send (const char *signal, struct t_hashtable *hashtable
|
|||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
* _signal_: signal to send
|
* _signal_: signal to send; flags are allowed before the signal name
|
||||||
|
(see function <<_hook_signal_send,hook_signal_send>>) _(WeeChat ≥ 4.5.0)_
|
||||||
* _hashtable_: hashtable
|
* _hashtable_: hashtable
|
||||||
|
|
||||||
Return value _(WeeChat ≥ 1.0)_:
|
Return value _(WeeChat ≥ 1.0)_:
|
||||||
@@ -12841,7 +13237,7 @@ C example:
|
|||||||
|
|
||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
int rc;
|
int rc, rc2;
|
||||||
struct t_hashtable *hashtable = weechat_hashtable_new (8,
|
struct t_hashtable *hashtable = weechat_hashtable_new (8,
|
||||||
WEECHAT_HASHTABLE_STRING,
|
WEECHAT_HASHTABLE_STRING,
|
||||||
WEECHAT_HASHTABLE_STRING,
|
WEECHAT_HASHTABLE_STRING,
|
||||||
@@ -12851,6 +13247,7 @@ if (hashtable)
|
|||||||
{
|
{
|
||||||
weechat_hashtable_set (hashtable, "key", "value");
|
weechat_hashtable_set (hashtable, "key", "value");
|
||||||
rc = weechat_hook_hsignal_send ("my_hsignal", hashtable);
|
rc = weechat_hook_hsignal_send ("my_hsignal", hashtable);
|
||||||
|
rc2 = weechat_hook_hsignal_send ("[flags:stop_on_error,ignore_eat]my_hsignal2", hashtable);
|
||||||
weechat_hashtable_free (hashtable);
|
weechat_hashtable_free (hashtable);
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
@@ -12862,8 +13259,9 @@ Script (Python):
|
|||||||
# prototype
|
# prototype
|
||||||
def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ...
|
def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ...
|
||||||
|
|
||||||
# example
|
# examples
|
||||||
rc = weechat.hook_hsignal_send("my_hsignal", {"key": "value"})
|
rc = weechat.hook_hsignal_send("my_hsignal", {"key": "value"})
|
||||||
|
rc2 = weechat.hook_hsignal_send("[flags:stop_on_error,ignore_eat]my_hsignal2", {"key": "value"})
|
||||||
----
|
----
|
||||||
|
|
||||||
[[hsignal_irc_redirect_command]]
|
[[hsignal_irc_redirect_command]]
|
||||||
@@ -13996,6 +14394,10 @@ Properties:
|
|||||||
| Name of sub plugin (commonly script name, which is displayed in
|
| Name of sub plugin (commonly script name, which is displayed in
|
||||||
`/help command` for a hook of type _command_).
|
`/help command` for a hook of type _command_).
|
||||||
|
|
||||||
|
| keep_spaces_right | 4.6.0 | _command_, _command_run_
|
||||||
|
| "0" or "1"
|
||||||
|
| Keep trailing spaces in command arguments when it is executed.
|
||||||
|
|
||||||
| stdin | 0.4.3 | _process_, _process_hashtable_
|
| stdin | 0.4.3 | _process_, _process_hashtable_
|
||||||
| any string
|
| any string
|
||||||
| Send data on standard input (_stdin_) of child process.
|
| Send data on standard input (_stdin_) of child process.
|
||||||
@@ -14407,7 +14809,7 @@ Arguments:
|
|||||||
** `+==id+`: the name used is the buffer unique identifier (`id`) _(WeeChat ≥ 4.3.0)_
|
** `+==id+`: the name used is the buffer unique identifier (`id`) _(WeeChat ≥ 4.3.0)_
|
||||||
* _name_: name of buffer, if it is NULL or empty string, the current buffer is
|
* _name_: name of buffer, if it is NULL or empty string, the current buffer is
|
||||||
returned (buffer displayed by current window); if the name starts with
|
returned (buffer displayed by current window); if the name starts with
|
||||||
`(?i)`, the search is case insensitive _(WeeChat ≥ 1.0)_
|
`(?i)`, the search is case-insensitive _(WeeChat ≥ 1.0)_
|
||||||
|
|
||||||
Return value:
|
Return value:
|
||||||
|
|
||||||
@@ -14658,7 +15060,7 @@ Arguments:
|
|||||||
** _next_line_id_: next line id in buffer _(WeeChat ≥ 3.8)_
|
** _next_line_id_: next line id in buffer _(WeeChat ≥ 3.8)_
|
||||||
** _time_for_each_line_: 1 if time is displayed for each line in buffer (default), otherwise 0
|
** _time_for_each_line_: 1 if time is displayed for each line in buffer (default), otherwise 0
|
||||||
** _nicklist_: 1 if nicklist is enabled, otherwise 0
|
** _nicklist_: 1 if nicklist is enabled, otherwise 0
|
||||||
** _nicklist_case_sensitive_: 1 if nicks are case sensitive, otherwise 0
|
** _nicklist_case_sensitive_: 1 if nicks are case-sensitive, otherwise 0
|
||||||
** _nicklist_max_length_: max length for a nick
|
** _nicklist_max_length_: max length for a nick
|
||||||
** _nicklist_display_groups_: 1 if groups are displayed, otherwise 0
|
** _nicklist_display_groups_: 1 if groups are displayed, otherwise 0
|
||||||
** _nicklist_count_: number of nicks and groups in nicklist
|
** _nicklist_count_: number of nicks and groups in nicklist
|
||||||
@@ -14684,7 +15086,7 @@ Arguments:
|
|||||||
** _text_search_direction_: direction for search:
|
** _text_search_direction_: direction for search:
|
||||||
*** 0: backward search (direction: oldest messages/commands)
|
*** 0: backward search (direction: oldest messages/commands)
|
||||||
*** 1: forward search (direction: newest messages/commands)
|
*** 1: forward search (direction: newest messages/commands)
|
||||||
** _text_search_exact_: 1 if text search is case sensitive
|
** _text_search_exact_: 1 if text search is case-sensitive
|
||||||
** _text_search_regex_: 1 if searching with a regular expression
|
** _text_search_regex_: 1 if searching with a regular expression
|
||||||
** _text_search_where_:
|
** _text_search_where_:
|
||||||
*** 0: no search at this moment
|
*** 0: no search at this moment
|
||||||
@@ -14861,6 +15263,12 @@ Properties:
|
|||||||
are *NOT* checked) +
|
are *NOT* checked) +
|
||||||
"-1": remove buffer from hotlist _(WeeChat ≥ 1.0)_.
|
"-1": remove buffer from hotlist _(WeeChat ≥ 1.0)_.
|
||||||
|
|
||||||
|
| hotlist_conditions | 4.5.0 | WEECHAT_HOTLIST_LOW, WEECHAT_HOTLIST_MESSAGE,
|
||||||
|
WEECHAT_HOTLIST_PRIVATE, WEECHAT_HOTLIST_HIGHLIGHT
|
||||||
|
| priority: add buffer to hotlist with this priority
|
||||||
|
(conditions defined in option _weechat.look.hotlist_add_conditions_
|
||||||
|
are checked).
|
||||||
|
|
||||||
| completion_freeze | | "0" or "1"
|
| completion_freeze | | "0" or "1"
|
||||||
| "0": no freeze of completion (default value)
|
| "0": no freeze of completion (default value)
|
||||||
(global setting, buffer pointer is not used) +
|
(global setting, buffer pointer is not used) +
|
||||||
@@ -14932,7 +15340,7 @@ Properties:
|
|||||||
| "0" to remove nicklist for buffer, "1" to add nicklist for buffer.
|
| "0" to remove nicklist for buffer, "1" to add nicklist for buffer.
|
||||||
|
|
||||||
| nicklist_case_sensitive | | "0" or "1"
|
| nicklist_case_sensitive | | "0" or "1"
|
||||||
| "0" to have case insensitive nicklist, "1" to have case sensitive nicklist.
|
| "0" to have case-insensitive nicklist, "1" to have case-sensitive nicklist.
|
||||||
|
|
||||||
| nicklist_display_groups | | "0" or "1"
|
| nicklist_display_groups | | "0" or "1"
|
||||||
| "0" to hide nicklist groups, "1" to display nicklist groups.
|
| "0" to hide nicklist groups, "1" to display nicklist groups.
|
||||||
@@ -15189,7 +15597,7 @@ Arguments:
|
|||||||
** wildcard `+*+` is allowed in name
|
** wildcard `+*+` is allowed in name
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
Since version 4.0.0, comparison of buffer names is case sensitive.
|
Since version 4.0.0, comparison of buffer names is case-sensitive.
|
||||||
|
|
||||||
Return value:
|
Return value:
|
||||||
|
|
||||||
@@ -15495,8 +15903,8 @@ void weechat_window_set_title (const char *title);
|
|||||||
|
|
||||||
Arguments:
|
Arguments:
|
||||||
|
|
||||||
* _title_: new title for terminal (NULL to reset title); string is evaluated,
|
* _title_: new title for terminal; string is evaluated, so variables like
|
||||||
so variables like `${info:version}` can be used
|
`${info:version}` can be used
|
||||||
(see <<_string_eval_expression,string_eval_expression>>)
|
(see <<_string_eval_expression,string_eval_expression>>)
|
||||||
|
|
||||||
C example:
|
C example:
|
||||||
@@ -16849,7 +17257,7 @@ rc = weechat.command(weechat.buffer_search("irc", "libera.#weechat"), "/whois Fl
|
|||||||
|
|
||||||
==== command_options
|
==== command_options
|
||||||
|
|
||||||
_WeeChat ≥ 2.5, updated in 4.0.0._
|
_WeeChat ≥ 2.5, updated in 4.0.0, 4.5.0._
|
||||||
|
|
||||||
Execute a command or send text to buffer with options.
|
Execute a command or send text to buffer with options.
|
||||||
|
|
||||||
@@ -16865,13 +17273,14 @@ Arguments:
|
|||||||
|
|
||||||
* _buffer_: buffer pointer (command is executed on this buffer, use NULL for
|
* _buffer_: buffer pointer (command is executed on this buffer, use NULL for
|
||||||
current buffer)
|
current buffer)
|
||||||
* _command_: command to execute (if beginning with a "/"), or text to send to
|
* _command_: command to execute (if beginning with a `/` or a command char),
|
||||||
buffer
|
or text to send to buffer
|
||||||
* _options_: a hashtable with some options (keys and values must be string)
|
* _options_: a hashtable with some options (keys and values must be string)
|
||||||
(can be NULL):
|
(can be NULL):
|
||||||
** _commands_: a comma-separated list of commands allowed to be executed during
|
** _commands_: a comma-separated list of commands allowed to be executed during
|
||||||
this call; see function <<_string_match_list,string_match_list>> for the
|
this call (see function <<_string_match_list,string_match_list>> for the
|
||||||
format
|
format); the special value `-` (hyphen-minus) disables the execution of commands
|
||||||
|
and the string in _command_ is sent as-is to the buffer (_WeeChat ≥ 4.5.0_)
|
||||||
** _delay_: delay to execute command, in milliseconds
|
** _delay_: delay to execute command, in milliseconds
|
||||||
** _split_newline_: `1` to split commands on newline char (`\n`) (_WeeChat ≥ 4.0.0_)
|
** _split_newline_: `1` to split commands on newline char (`\n`) (_WeeChat ≥ 4.0.0_)
|
||||||
|
|
||||||
@@ -16904,7 +17313,7 @@ Script (Python):
|
|||||||
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
|
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
|
||||||
|
|
||||||
# example: allow any command except /exec
|
# example: allow any command except /exec
|
||||||
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec"})
|
rc = weechat.command_options("", "/some_command arguments", {"commands": "*,!exec", "delay": "2000"})
|
||||||
----
|
----
|
||||||
|
|
||||||
[[completion]]
|
[[completion]]
|
||||||
@@ -17058,6 +17467,71 @@ def my_completion_cb(data: str, completion_item: str, buffer: str, completion: s
|
|||||||
return weechat.WEECHAT_RC_OK
|
return weechat.WEECHAT_RC_OK
|
||||||
----
|
----
|
||||||
|
|
||||||
|
==== completion_set
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.6.0._
|
||||||
|
|
||||||
|
Set a completion property.
|
||||||
|
|
||||||
|
Prototype:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
void weechat_completion_get_string (struct t_gui_completion *completion,
|
||||||
|
const char *property,
|
||||||
|
const char *value);
|
||||||
|
----
|
||||||
|
|
||||||
|
Arguments:
|
||||||
|
|
||||||
|
* _completion_: completion pointer
|
||||||
|
* _property_: property name (see table below)
|
||||||
|
* _value_: new value for property
|
||||||
|
|
||||||
|
Properties:
|
||||||
|
|
||||||
|
[width="100%",cols="^2,^1,4,8",options="header"]
|
||||||
|
|===
|
||||||
|
| Name | Min WeeChat | Value | Description
|
||||||
|
|
||||||
|
| add_space | 4.6.0 | "0" or "1"
|
||||||
|
| "0": do not add space after completion +
|
||||||
|
"1": add space after completion (default).
|
||||||
|
|===
|
||||||
|
|
||||||
|
C example:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int
|
||||||
|
my_completion_cb (const void *pointer, void *data, const char *completion_item,
|
||||||
|
struct t_gui_buffer *buffer,
|
||||||
|
struct t_gui_completion *completion)
|
||||||
|
{
|
||||||
|
/* do not add space after completion */
|
||||||
|
weechat_completion_set (completion, "add_space", "0");
|
||||||
|
|
||||||
|
/* ... */
|
||||||
|
|
||||||
|
return WEECHAT_RC_OK;
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
Script (Python):
|
||||||
|
|
||||||
|
[source,python]
|
||||||
|
----
|
||||||
|
# prototype
|
||||||
|
def completion_set(completion: str, property: str, value: str) -> int: ...
|
||||||
|
|
||||||
|
# example
|
||||||
|
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
|
||||||
|
# do not add space after completion
|
||||||
|
weechat.completion_set(completion, "add_space", "0")
|
||||||
|
# ...
|
||||||
|
return weechat.WEECHAT_RC_OK
|
||||||
|
----
|
||||||
|
|
||||||
==== completion_list_add
|
==== completion_list_add
|
||||||
|
|
||||||
_WeeChat ≥ 2.9._
|
_WeeChat ≥ 2.9._
|
||||||
@@ -19489,7 +19963,7 @@ Arguments:
|
|||||||
* _pointer2_: pointer to second WeeChat/plugin object
|
* _pointer2_: pointer to second WeeChat/plugin object
|
||||||
* _name_: variable name or path to a variable name; for arrays, the name can be
|
* _name_: variable name or path to a variable name; for arrays, the name can be
|
||||||
"N|name" where N is the index in array (starting at 0), for example: "2|name"
|
"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
|
* _case_sensitive_: 1 for case-sensitive comparison of strings, otherwise 0
|
||||||
|
|
||||||
Return value:
|
Return value:
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat quick start guide
|
= WeeChat quick start guide
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: en
|
:lang: en
|
||||||
|
include::includes/attributes-en.adoc[]
|
||||||
|
|
||||||
[[start]]
|
[[start]]
|
||||||
== Start WeeChat
|
== Start WeeChat
|
||||||
@@ -266,7 +271,7 @@ Close a server, channel or private buffer (`/close` is an alias for
|
|||||||
/close
|
/close
|
||||||
----
|
----
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
Closing the server buffer will close all channel/private buffers.
|
Closing the server buffer will close all channel/private buffers.
|
||||||
|
|
||||||
Disconnect from server, on the server buffer:
|
Disconnect from server, on the server buffer:
|
||||||
@@ -324,7 +329,8 @@ To remove the split:
|
|||||||
[[key_bindings]]
|
[[key_bindings]]
|
||||||
== Key bindings
|
== Key bindings
|
||||||
|
|
||||||
WeeChat uses many keys by default. All these keys are in the documentation,
|
WeeChat uses many keys by default. All these keys are in the documentation
|
||||||
|
(link:weechat_user.en.html#key_bindings[User's guide / Key bindings ^↗^^]),
|
||||||
but you should know at least some vital keys:
|
but you should know at least some vital keys:
|
||||||
|
|
||||||
- kbd:[Alt+←] / kbd:[Alt+→] or kbd:[F5] / kbd:[F6]: switch to previous/next
|
- kbd:[Alt+←] / kbd:[Alt+→] or kbd:[F5] / kbd:[F6]: switch to previous/next
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat API Relay
|
= WeeChat API Relay
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: en
|
:lang: en
|
||||||
|
include::includes/attributes-en.adoc[]
|
||||||
|
|
||||||
[[introduction]]
|
[[introduction]]
|
||||||
== Introduction
|
== Introduction
|
||||||
@@ -100,7 +105,9 @@ Examples:
|
|||||||
[[authentication]]
|
[[authentication]]
|
||||||
== Authentication
|
== Authentication
|
||||||
|
|
||||||
The password must be sent in the header `Authorization` with `Basic` authentication schema.
|
The password must be sent in the header `Authorization` with `Basic`
|
||||||
|
authentication schema or in the header `Sec-WebSocket-Protocol` (see details
|
||||||
|
below).
|
||||||
|
|
||||||
The password can be sent as plain text or hashed, with one of these formats
|
The password can be sent as plain text or hashed, with one of these formats
|
||||||
for user and password:
|
for user and password:
|
||||||
@@ -134,8 +141,8 @@ Example:
|
|||||||
`hash:sha256:1706431066:dfa1db3f6bb6445d18d9ec7427c10f6421274e3a4751e6c1ffc7dd28c94eadf6`:
|
`hash:sha256:1706431066:dfa1db3f6bb6445d18d9ec7427c10f6421274e3a4751e6c1ffc7dd28c94eadf6`:
|
||||||
`aGFzaDpzaGEyNTY6MTcwNjQzMTA2NjpkZmExZGIzZjZiYjY0NDVkMThkOWVjNzQyN2MxMGY2NDIxMjc0ZTNhNDc1MWU2YzFmZmM3ZGQyOGM5NGVhZGY2`.
|
`aGFzaDpzaGEyNTY6MTcwNjQzMTA2NjpkZmExZGIzZjZiYjY0NDVkMThkOWVjNzQyN2MxMGY2NDIxMjc0ZTNhNDc1MWU2YzFmZmM3ZGQyOGM5NGVhZGY2`.
|
||||||
|
|
||||||
The header `Authorization` is allowed in the first request with websocket protocol
|
The headers `Authorization` and `Sec-WebSocket-Protocol` are allowed in the first
|
||||||
or any HTTP request in the other cases.
|
request with the websocket protocol or any HTTP request in the other cases.
|
||||||
|
|
||||||
Request example with plain text password:
|
Request example with plain text password:
|
||||||
|
|
||||||
@@ -261,6 +268,36 @@ HTTP/1.1 401 Unauthorized
|
|||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
[[authentication_sec_websocket_protocol]]
|
||||||
|
=== Sec-WebSocket-Protocol
|
||||||
|
|
||||||
|
The JavaScript WebSocket API used in current web browsers does not support
|
||||||
|
specifying the `Authorization` header. Therefore it's also supported to send
|
||||||
|
the password in the `Sec-WebSocket-Protocol` header which is the only header
|
||||||
|
possible to set with this API.
|
||||||
|
|
||||||
|
To use this header, you must specify the sub-protocols `api.weechat` and
|
||||||
|
`base64url.bearer.authorization.weechat.<auth>` where `<auth>` is the base64url
|
||||||
|
encoded string of the password in the same format as explained above.
|
||||||
|
|
||||||
|
Example with password `secret_password` encoded in plain text. This makes the
|
||||||
|
string to base64url encode `plain:secret_password` which is
|
||||||
|
`cGxhaW46c2VjcmV0X3Bhc3N3b3Jk`.
|
||||||
|
|
||||||
|
----
|
||||||
|
Sec-WebSocket-Protocol: api.weechat, base64url.bearer.authorization.weechat.cGxhaW46c2VjcmV0X3Bhc3N3b3Jk
|
||||||
|
----
|
||||||
|
|
||||||
|
This can be set with the JavaScript WebSocket API like this:
|
||||||
|
|
||||||
|
[source,javascript]
|
||||||
|
----
|
||||||
|
const ws = new WebSocket("wss://localhost:9000/api", [
|
||||||
|
"api.weechat",
|
||||||
|
"base64url.bearer.authorization.weechat.cGxhaW46c2VjcmV0X3Bhc3N3b3Jk",
|
||||||
|
])
|
||||||
|
----
|
||||||
|
|
||||||
[[compression]]
|
[[compression]]
|
||||||
== Compression
|
== Compression
|
||||||
|
|
||||||
@@ -504,7 +541,8 @@ HTTP/1.1 200 OK
|
|||||||
"plugin": "core",
|
"plugin": "core",
|
||||||
"name": "weechat"
|
"name": "weechat"
|
||||||
},
|
},
|
||||||
"keys": []
|
"keys": [],
|
||||||
|
"last_read_line_id": -1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 1709932823423765,
|
"id": 1709932823423765,
|
||||||
@@ -534,7 +572,8 @@ HTTP/1.1 200 OK
|
|||||||
"tls_version": "TLS1.3",
|
"tls_version": "TLS1.3",
|
||||||
"host": "~alice@example.com"
|
"host": "~alice@example.com"
|
||||||
},
|
},
|
||||||
"keys": []
|
"keys": [],
|
||||||
|
"last_read_line_id": -1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 1709932823649069,
|
"id": 1709932823649069,
|
||||||
@@ -562,7 +601,8 @@ HTTP/1.1 200 OK
|
|||||||
"nick": "alice",
|
"nick": "alice",
|
||||||
"host": "~alice@example.com"
|
"host": "~alice@example.com"
|
||||||
},
|
},
|
||||||
"keys": []
|
"keys": [],
|
||||||
|
"last_read_line_id": -1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
----
|
----
|
||||||
@@ -618,7 +658,8 @@ HTTP/1.1 200 OK
|
|||||||
"message": "Plugins loaded: alias, buflist, charset, exec, fifo, fset, guile, irc, javascript, logger, lua, perl, php, python, relay, ruby, script, spell, tcl, trigger, typing, xfer",
|
"message": "Plugins loaded: alias, buflist, charset, exec, fifo, fset, guile, irc, javascript, logger, lua, perl, php, python, relay, ruby, script, spell, tcl, trigger, typing, xfer",
|
||||||
"tags": []
|
"tags": []
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"last_read_line_id": -1
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
@@ -665,6 +706,7 @@ HTTP/1.1 200 OK
|
|||||||
"host": "~alice@example.com"
|
"host": "~alice@example.com"
|
||||||
},
|
},
|
||||||
"keys": [],
|
"keys": [],
|
||||||
|
"last_read_line_id": -1,
|
||||||
"nicklist_root": {
|
"nicklist_root": {
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"parent_group_id": -1,
|
"parent_group_id": -1,
|
||||||
@@ -863,7 +905,8 @@ HTTP/1.1 200 OK
|
|||||||
"key": "up",
|
"key": "up",
|
||||||
"command": "/fset -up"
|
"command": "/fset -up"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"last_read_line_id": -1
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
@@ -1151,7 +1194,7 @@ Body parameters:
|
|||||||
|
|
||||||
* `buffer_id` (integer, optional): buffer unique identifier (not to be confused
|
* `buffer_id` (integer, optional): buffer unique identifier (not to be confused
|
||||||
with the buffer number, which is different)
|
with the buffer number, which is different)
|
||||||
* `buffer` (string, optional, default: `core.weechat`): buffer name
|
* `buffer_name` (string, optional, default: `core.weechat`): buffer name
|
||||||
* `command` (string, **required**): command or text to send to the buffer
|
* `command` (string, **required**): command or text to send to the buffer
|
||||||
|
|
||||||
Request example: say "hello!" on channel #weechat:
|
Request example: say "hello!" on channel #weechat:
|
||||||
@@ -1159,7 +1202,7 @@ Request example: say "hello!" on channel #weechat:
|
|||||||
[source,shell]
|
[source,shell]
|
||||||
----
|
----
|
||||||
curl -L -u 'plain:secret_password' -X POST \
|
curl -L -u 'plain:secret_password' -X POST \
|
||||||
-d '{"buffer": "irc.libera.#weechat", "command": "hello!"}' \
|
-d '{"buffer_name": "irc.libera.#weechat", "command": "hello!"}' \
|
||||||
'https://localhost:9000/api/input'
|
'https://localhost:9000/api/input'
|
||||||
----
|
----
|
||||||
|
|
||||||
@@ -1187,6 +1230,58 @@ Response:
|
|||||||
HTTP/1.1 204 No content
|
HTTP/1.1 204 No content
|
||||||
----
|
----
|
||||||
|
|
||||||
|
[[resource_completion]]
|
||||||
|
=== Completion
|
||||||
|
|
||||||
|
Complete user command or text in a buffer.
|
||||||
|
|
||||||
|
Endpoint:
|
||||||
|
|
||||||
|
----
|
||||||
|
POST /api/completion
|
||||||
|
----
|
||||||
|
|
||||||
|
Body parameters:
|
||||||
|
|
||||||
|
* `buffer_id` (integer, optional): buffer unique identifier (not to be confused
|
||||||
|
with the buffer number, which is different)
|
||||||
|
* `buffer_name` (string, optional, default: `core.weechat`): buffer name
|
||||||
|
* `command` (string, **required**): command or text to complete
|
||||||
|
* `position` (integer, optional, default: end of string): position in command
|
||||||
|
(first position is 0)
|
||||||
|
|
||||||
|
Request example: complete command `/qu` on channel #weechat:
|
||||||
|
|
||||||
|
[source,shell]
|
||||||
|
----
|
||||||
|
curl -L -u 'plain:secret_password' -X POST \
|
||||||
|
-d '{"buffer_name": "irc.libera.#weechat", "command": "/qu"}' \
|
||||||
|
'https://localhost:9000/api/completion'
|
||||||
|
----
|
||||||
|
|
||||||
|
Response:
|
||||||
|
|
||||||
|
[source,http]
|
||||||
|
----
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
----
|
||||||
|
|
||||||
|
[source,json]
|
||||||
|
----
|
||||||
|
{
|
||||||
|
"context": "command",
|
||||||
|
"base_word": "qu",
|
||||||
|
"position_replace": 1,
|
||||||
|
"add_space": true,
|
||||||
|
"list": [
|
||||||
|
"query",
|
||||||
|
"quiet",
|
||||||
|
"quit",
|
||||||
|
"quote"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
[[resource_ping]]
|
[[resource_ping]]
|
||||||
=== Ping
|
=== Ping
|
||||||
|
|
||||||
@@ -1389,6 +1484,10 @@ Requests to WeeChat are made with a JSON object containing these fields:
|
|||||||
* `body` (object or array): the body (optional, for `POST` and `PUT` methods)
|
* `body` (object or array): the body (optional, for `POST` and `PUT` methods)
|
||||||
* `request_id` (string): identifier sent back in the response
|
* `request_id` (string): identifier sent back in the response
|
||||||
|
|
||||||
|
Multiple requests can be sent at once using an array of objects, each object
|
||||||
|
being a separate request. +
|
||||||
|
Requests are executed in the order received (see example below).
|
||||||
|
|
||||||
Responses to client are made with a JSON object containing these fields:
|
Responses to client are made with a JSON object containing these fields:
|
||||||
|
|
||||||
* `code` (integer): HTTP response code (example: `200`)
|
* `code` (integer): HTTP response code (example: `200`)
|
||||||
@@ -1478,6 +1577,69 @@ Response:
|
|||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Requests example: send two requests at once: get list of all buffers with lines
|
||||||
|
and nicks, then synchronize with the remote:
|
||||||
|
|
||||||
|
[source,json]
|
||||||
|
----
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"request": "GET /api/buffers?lines=-1000&nicks=true&colors=weechat",
|
||||||
|
"request_id": "initial_sync"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"request": "POST /api/sync",
|
||||||
|
"body": {
|
||||||
|
"colors": "weechat"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
It is recommended to send the synchronization request together with the first
|
||||||
|
request that is fetching data, so that no events are missed.
|
||||||
|
|
||||||
|
First response (body with buffers is truncated for readability):
|
||||||
|
|
||||||
|
[source,json]
|
||||||
|
----
|
||||||
|
{
|
||||||
|
"code": 200,
|
||||||
|
"message": "OK",
|
||||||
|
"request": "GET /api/buffers?lines=-1000&nicks=true&colors=weechat",
|
||||||
|
"request_body": null,
|
||||||
|
"request_id": "initial_sync",
|
||||||
|
"body_type": "buffers",
|
||||||
|
"body": [
|
||||||
|
{
|
||||||
|
"id": 1709932823238637,
|
||||||
|
"name": "core.weechat",
|
||||||
|
"short_name": "weechat",
|
||||||
|
"number": 1,
|
||||||
|
"type": "formatted"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
Second response:
|
||||||
|
|
||||||
|
[source,json]
|
||||||
|
----
|
||||||
|
{
|
||||||
|
"code": 204,
|
||||||
|
"message": "No Content",
|
||||||
|
"request": "POST /api/sync",
|
||||||
|
"request_body": {
|
||||||
|
"colors": "weechat"
|
||||||
|
},
|
||||||
|
"request_id": null,
|
||||||
|
"body_type": null,
|
||||||
|
"body": null
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
WeeChat pushes data to the client at any time on some events: when lines are
|
WeeChat pushes data to the client at any time on some events: when lines are
|
||||||
displayed, buffers added/removed/changed, nicks added/removed/changed, etc.
|
displayed, buffers added/removed/changed, nicks added/removed/changed, etc.
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat Relay protocol
|
= WeeChat Relay protocol
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: en
|
:lang: en
|
||||||
|
include::includes/attributes-en.adoc[]
|
||||||
|
|
||||||
[[introduction]]
|
[[introduction]]
|
||||||
== Introduction
|
== Introduction
|
||||||
@@ -978,7 +983,7 @@ Arguments:
|
|||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
|
|
||||||
* Send command "/help filter" on WeeChat core bufer:
|
* Send command "/help filter" on WeeChat core buffer:
|
||||||
|
|
||||||
----
|
----
|
||||||
input core.weechat /help filter
|
input core.weechat /help filter
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat scripting guide
|
= WeeChat scripting guide
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: en
|
:lang: en
|
||||||
|
include::includes/attributes-en.adoc[]
|
||||||
|
|
||||||
This manual documents WeeChat chat client, it is part of WeeChat.
|
This manual documents WeeChat chat client, it is part of WeeChat.
|
||||||
|
|
||||||
@@ -67,7 +72,7 @@ link:weechat_plugin_api.en.html#_hook_process[WeeChat plugin API reference ^↗
|
|||||||
|
|
||||||
WeeChat defines a `weechat` module which must be imported with `import weechat`. +
|
WeeChat defines a `weechat` module which must be imported with `import weechat`. +
|
||||||
A Python stub for WeeChat API is available in the repository:
|
A Python stub for WeeChat API is available in the repository:
|
||||||
https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi ^↗^^].
|
https://raw.githubusercontent.com/weechat/weechat/main/src/plugins/python/weechat.pyi[weechat.pyi ^↗^^].
|
||||||
|
|
||||||
[[python_functions]]
|
[[python_functions]]
|
||||||
===== Functions
|
===== Functions
|
||||||
|
|||||||
+273
-108
@@ -1,7 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat user's guide
|
= WeeChat user's guide
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: en
|
:lang: en
|
||||||
|
include::includes/attributes-en.adoc[]
|
||||||
|
|
||||||
This manual documents WeeChat chat client, it is part of WeeChat.
|
This manual documents WeeChat chat client, it is part of WeeChat.
|
||||||
|
|
||||||
@@ -205,7 +210,7 @@ WeeChat:
|
|||||||
| asciidoctor | ≥ 1.5.4
|
| asciidoctor | ≥ 1.5.4
|
||||||
| Build man page and documentation.
|
| Build man page and documentation.
|
||||||
|
|
||||||
| ruby-pygments.rb |
|
| python3-pygments, ruby-pygments.rb |
|
||||||
| Build documentation.
|
| Build documentation.
|
||||||
|
|
||||||
| libcpputest-dev | ≥ 3.4
|
| libcpputest-dev | ≥ 3.4
|
||||||
@@ -466,7 +471,7 @@ crash immediately in case of problem:
|
|||||||
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
|
||||||
----
|
----
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
You should enable address sanitizer only if you're trying to cause a crash,
|
You should enable address sanitizer only if you're trying to cause a crash,
|
||||||
this is not recommended in production.
|
this is not recommended in production.
|
||||||
|
|
||||||
@@ -603,7 +608,7 @@ include::includes/cmdline_options.en.adoc[tag=standard]
|
|||||||
|
|
||||||
Some extra options are available for debug purposes only:
|
Some extra options are available for debug purposes only:
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
Do *NOT* use any of these options in production!
|
Do *NOT* use any of these options in production!
|
||||||
|
|
||||||
include::includes/cmdline_options.en.adoc[tag=debug]
|
include::includes/cmdline_options.en.adoc[tag=debug]
|
||||||
@@ -616,7 +621,7 @@ Some environment variables are used by WeeChat if they are defined:
|
|||||||
[width="100%",cols="1m,6",options="header"]
|
[width="100%",cols="1m,6",options="header"]
|
||||||
|===
|
|===
|
||||||
| Name | Description
|
| Name | Description
|
||||||
| WEECHAT_HOME | The WeeChat home (with configuration files, logs, scripts, etc.). Same behavior as <<compile_with_cmake,CMake option>> `WEECHAT_HOME`.
|
| WEECHAT_HOME | The WeeChat home (with configuration files, logs, scripts, etc.). Same behavior as <<build,CMake option>> `WEECHAT_HOME`.
|
||||||
| WEECHAT_PASSPHRASE | The passphrase used to decrypt secured data.
|
| WEECHAT_PASSPHRASE | The passphrase used to decrypt secured data.
|
||||||
| WEECHAT_EXTRA_LIBDIR | An extra directory to load plugins (from the "plugins" directory in this path).
|
| WEECHAT_EXTRA_LIBDIR | An extra directory to load plugins (from the "plugins" directory in this path).
|
||||||
|===
|
|===
|
||||||
@@ -817,7 +822,7 @@ weechat --upgrade
|
|||||||
==== Upgrading notes
|
==== Upgrading notes
|
||||||
|
|
||||||
After an upgrade, it is *strongly recommended* to read the file
|
After an upgrade, it is *strongly recommended* to read the file
|
||||||
https://github.com/weechat/weechat/blob/master/UPGRADING.md[UPGRADING.md ^↗^^]
|
https://github.com/weechat/weechat/blob/main/UPGRADING.md[UPGRADING.md ^↗^^]
|
||||||
which contains important information about breaking changes and some
|
which contains important information about breaking changes and some
|
||||||
manual actions that could be required.
|
manual actions that could be required.
|
||||||
|
|
||||||
@@ -876,7 +881,7 @@ Example of terminal with WeeChat:
|
|||||||
│ │ │ │
|
│ │ │ │
|
||||||
│ │ │ │
|
│ │ │ │
|
||||||
│ │ │ │
|
│ │ │ │
|
||||||
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* [H: 3:#abc(2,5), 5] │
|
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* M [H: 3:#abc(2,5), 5] │
|
||||||
│ │[@Flashy(i)] hi peter!█ │
|
│ │[@Flashy(i)] hi peter!█ │
|
||||||
└──────────────────────────────────────────────────────────────────────────────────────┘
|
└──────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
▲ bars "status" and "input" bar "nicklist" ▲
|
▲ bars "status" and "input" bar "nicklist" ▲
|
||||||
@@ -915,39 +920,41 @@ Bar _status_ has following default items:
|
|||||||
|
|
||||||
[width="100%",cols="^3,^3,9",options="header"]
|
[width="100%",cols="^3,^3,9",options="header"]
|
||||||
|===
|
|===
|
||||||
| Item | Example | Description
|
| Item | Example | Description
|
||||||
| time | `[12:55]` | Time.
|
| time | `12:55` | Time.
|
||||||
| buffer_last_number | `[5]` | Number of last buffer in list.
|
| buffer_last_number | `5` | Number of the latest buffer (can be different from `buffer_count` if option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> is `off`).
|
||||||
| buffer_plugin | `[irc/libera]` | Plugin of current buffer (irc plugin can add IRC server name used by buffer).
|
| buffer_plugin | `irc/libera` | Plugin of current buffer (irc plugin can add IRC server name used by buffer).
|
||||||
| buffer_number | `2` | Current buffer number.
|
| buffer_number | `2` | Current buffer number.
|
||||||
| buffer_name | `#test` | Current buffer name.
|
| buffer_name | `#test` | Current buffer name.
|
||||||
| buffer_modes | `+n` | IRC channel modes.
|
| buffer_modes | `+n` | IRC channel modes.
|
||||||
| buffer_nicklist_count | `{4}` | Number of nicks displayed in nicklist.
|
| buffer_nicklist_count | `4` | Number of nicks displayed in nicklist.
|
||||||
| buffer_zoom | ! | `!` means the merged buffer is zoomed (only this one is displayed), empty value means all merged buffers are displayed.
|
| buffer_zoom | ! | `!` means the merged buffer is zoomed (only this one is displayed), empty value means all merged buffers are displayed.
|
||||||
| buffer_filter | `+*+` | Filtering indicator: `+*+` means some lines are filtered (hidden), empty value means all lines are displayed.
|
| buffer_filter | `+*+` | Filtering indicator: `+*+` means some lines are filtered (hidden), empty value means all lines are displayed.
|
||||||
| scroll | `-MORE(50)-` | Scroll indicator, with number of lines below last line displayed.
|
| mouse_status | `M` | Mouse status (empty if mouse is disabled), see command <<command_weechat_mouse,/mouse>> and <<key_bindings_toggle_keys,toggle keys>>.
|
||||||
| lag | `[Lag: 2.5]` | Lag indicator, in seconds (hidden if lag is low).
|
| scroll | `-MORE(50)-` | Scroll indicator, with number of lines below last line displayed.
|
||||||
| hotlist | `[H: 3:#abc(2,5), 5]` | List of buffers with activity (unread messages) (in example, 2 highlights and 5 unread messages on _#abc_, one unread message on buffer #5).
|
| lag | `Lag: 2.5` | Lag indicator, in seconds (hidden if lag is low).
|
||||||
| completion | `abc(2) def(5)` | List of words for completion, with number of possible completions for each word.
|
| hotlist | `H: 3:#abc(2,5), 5` | List of buffers with activity (unread messages) (in example, 2 highlights and 5 unread messages on _#abc_, one unread message on buffer #5).
|
||||||
|
| typing | `Typing: bob, (alice)` | Typing notification, see <<typing_notifications,typing notifications>>.
|
||||||
|
| completion | `abc(2) def(5)` | List of words for completion, with number of possible completions for each word.
|
||||||
|===
|
|===
|
||||||
|
|
||||||
Bar _input_ has following default items:
|
Bar _input_ has following default items:
|
||||||
|
|
||||||
[width="100%",cols="^3,^3,9",options="header"]
|
[width="100%",cols="^3,^3,9",options="header"]
|
||||||
|===
|
|===
|
||||||
| Item | Example | Description
|
| Item | Example | Description
|
||||||
| input_prompt | `[@Flashy(i)]` | Input prompt, for irc: nick and modes (mode "+i" means invisible on libera).
|
| input_prompt | `@Flashy(i)` | Input prompt, for irc: nick and modes (mode "+i" means invisible on libera).
|
||||||
| away | `(away)` | Away indicator.
|
| away | `away` | Away indicator.
|
||||||
| input_search | `[Search lines (~ str,msg)]` | Search indicator (see below)
|
| input_search | `Search lines (~ str,msg)` | Search indicator (see below)
|
||||||
| input_paste | `[Paste 7 lines ? [ctrl-y] Yes [ctrl-n] No]` | Question to user for pasting lines.
|
| input_paste | `Paste 7 lines ? [ctrl-y] Yes [ctrl-n] No` | Question to user for pasting lines.
|
||||||
| input_text | `hi peter!` | Input text.
|
| input_text | `hi peter!` | Input text.
|
||||||
|===
|
|===
|
||||||
|
|
||||||
There are two search modes:
|
There are two search modes:
|
||||||
|
|
||||||
* search in lines, for example `[Search lines (~ str,msg)]`, with the following info:
|
* search in lines, for example `[Search lines (~ str,msg)]`, with the following info:
|
||||||
** `~`: case insensitive
|
** `~`: case-insensitive
|
||||||
** `==`: case sensitive
|
** `==`: case-sensitive
|
||||||
** `str`: search string
|
** `str`: search string
|
||||||
** `regex`: search regular expression
|
** `regex`: search regular expression
|
||||||
** `msg`: search in messages
|
** `msg`: search in messages
|
||||||
@@ -955,8 +962,8 @@ There are two search modes:
|
|||||||
** `pre\|msg`: search in prefixes and messages.
|
** `pre\|msg`: search in prefixes and messages.
|
||||||
* search in commands history, for example `[Search command (~ str,local)]`,
|
* search in commands history, for example `[Search command (~ str,local)]`,
|
||||||
with the following info:
|
with the following info:
|
||||||
** `~`: case insensitive
|
** `~`: case-insensitive
|
||||||
** `==`: case sensitive
|
** `==`: case-sensitive
|
||||||
** `str`: search string
|
** `str`: search string
|
||||||
** `regex`: search regular expression
|
** `regex`: search regular expression
|
||||||
** `local`: search in buffer local history
|
** `local`: search in buffer local history
|
||||||
@@ -975,8 +982,7 @@ Other items available (not used in bars by default):
|
|||||||
[width="100%",cols="^3,^3,9",options="header"]
|
[width="100%",cols="^3,^3,9",options="header"]
|
||||||
|===
|
|===
|
||||||
| Item | Example | Description
|
| Item | Example | Description
|
||||||
| buffer_count | `10` | Total number of buffers opened.
|
| buffer_count | `5` | Total number of buffers opened.
|
||||||
| buffer_last_number | `10` | Number of the latest buffer (can be different from `buffer_count` if option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> is `off`).
|
|
||||||
| buffer_nicklist_count_all | `4` | Number of visible groups and nicks in nicklist.
|
| buffer_nicklist_count_all | `4` | Number of visible groups and nicks in nicklist.
|
||||||
| buffer_nicklist_count_groups | `0` | Number of visible groups in nicklist.
|
| buffer_nicklist_count_groups | `0` | Number of visible groups in nicklist.
|
||||||
| buffer_short_name | `#test` | Current buffer short name.
|
| buffer_short_name | `#test` | Current buffer short name.
|
||||||
@@ -991,7 +997,7 @@ Other items available (not used in bars by default):
|
|||||||
| irc_nick_host | `+Flashy!user@host.com+` | Current IRC nick and host.
|
| irc_nick_host | `+Flashy!user@host.com+` | Current IRC nick and host.
|
||||||
| irc_nick_modes | `i` | IRC modes for self nick.
|
| irc_nick_modes | `i` | IRC modes for self nick.
|
||||||
| irc_nick_prefix | `@` | IRC nick prefix on channel.
|
| irc_nick_prefix | `@` | IRC nick prefix on channel.
|
||||||
| mouse_status | `M` | Mouse status (empty if mouse is disabled).
|
| spacer | | Special item used to align text in bars, see <<item_spacer,Spacer item>>.
|
||||||
| spell_dict | `fr,en` | Spelling dictionaries used on current buffer.
|
| spell_dict | `fr,en` | Spelling dictionaries used on current buffer.
|
||||||
| spell_suggest | `print,prone,prune` | Spelling suggestions for word under cursor (if misspelled).
|
| spell_suggest | `print,prone,prune` | Spelling suggestions for word under cursor (if misspelled).
|
||||||
| tls_version | `TLS1.3` | TLS version in use for current IRC server.
|
| tls_version | `TLS1.3` | TLS version in use for current IRC server.
|
||||||
@@ -1057,6 +1063,7 @@ follow (press kbd:[Ctrl+c] then following letter, with optional value):
|
|||||||
kbd:[yyyyyy] | Text color `xxxxxx` and background `yyyyyy` (RGB as hexadecimal).
|
kbd:[yyyyyy] | Text color `xxxxxx` and background `yyyyyy` (RGB as hexadecimal).
|
||||||
| kbd:[Ctrl+c], kbd:[i] | Italic text.
|
| kbd:[Ctrl+c], kbd:[i] | Italic text.
|
||||||
| kbd:[Ctrl+c], kbd:[o] | Disable color and attributes.
|
| kbd:[Ctrl+c], kbd:[o] | Disable color and attributes.
|
||||||
|
| kbd:[Ctrl+c], kbd:[s] | Strikethrough text (displayed as half bright in ncurses interface because strikethrough is not supported).
|
||||||
| kbd:[Ctrl+c], kbd:[v] | Reverse video (revert text color with background).
|
| kbd:[Ctrl+c], kbd:[v] | Reverse video (revert text color with background).
|
||||||
| kbd:[Ctrl+c], kbd:[_] | Underlined text.
|
| kbd:[Ctrl+c], kbd:[_] | Underlined text.
|
||||||
|===
|
|===
|
||||||
@@ -1101,7 +1108,7 @@ data).
|
|||||||
|
|
||||||
Examples of buffers:
|
Examples of buffers:
|
||||||
|
|
||||||
* core buffer (created by WeeChat on startup, can not be closed)
|
* core buffer (created by WeeChat on startup, cannot be closed)
|
||||||
* irc server (displays messages from server)
|
* irc server (displays messages from server)
|
||||||
* irc channel
|
* irc channel
|
||||||
* irc private messages
|
* irc private messages
|
||||||
@@ -1339,7 +1346,7 @@ Tags commonly used (non-exhaustive list):
|
|||||||
[width="100%",cols="1m,4",options="header"]
|
[width="100%",cols="1m,4",options="header"]
|
||||||
|===
|
|===
|
||||||
| Tag | Description
|
| Tag | Description
|
||||||
| no_filter | Line can not be filtered.
|
| no_filter | Line cannot be filtered.
|
||||||
| no_highlight | No highlight is possible on line.
|
| no_highlight | No highlight is possible on line.
|
||||||
| no_log | Line is not written in log file.
|
| no_log | Line is not written in log file.
|
||||||
| log0 … log9 | Level of log for line (see the <<command_logger_logger,/logger>> command).
|
| log0 … log9 | Level of log for line (see the <<command_logger_logger,/logger>> command).
|
||||||
@@ -1626,6 +1633,7 @@ They can be changed and new ones can be added with the <<command_weechat_key,/ke
|
|||||||
| kbd:[Ctrl+c], kbd:[d] | Insert code for colored text (RGB color, as hexadecimal). | `+/input insert \x04+`
|
| kbd:[Ctrl+c], kbd:[d] | Insert code for colored text (RGB color, as hexadecimal). | `+/input insert \x04+`
|
||||||
| kbd:[Ctrl+c], kbd:[i] | Insert code for italic text. | `+/input insert \x1D+`
|
| kbd:[Ctrl+c], kbd:[i] | Insert code for italic text. | `+/input insert \x1D+`
|
||||||
| kbd:[Ctrl+c], kbd:[o] | Insert code for color reset. | `+/input insert \x0F+`
|
| kbd:[Ctrl+c], kbd:[o] | Insert code for color reset. | `+/input insert \x0F+`
|
||||||
|
| kbd:[Ctrl+c], kbd:[s] | Insert code for strikethrough text. | `+/input insert \x1E+`
|
||||||
| kbd:[Ctrl+c], kbd:[v] | Insert code for reverse color. | `+/input insert \x16+`
|
| kbd:[Ctrl+c], kbd:[v] | Insert code for reverse color. | `+/input insert \x16+`
|
||||||
| kbd:[Ctrl+c], kbd:[_] | Insert code for underlined text. | `+/input insert \x1F+`
|
| kbd:[Ctrl+c], kbd:[_] | Insert code for underlined text. | `+/input insert \x1F+`
|
||||||
|===
|
|===
|
||||||
@@ -1751,11 +1759,12 @@ They can be changed and new ones can be added with the <<command_weechat_key,/ke
|
|||||||
|
|
||||||
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|
||||||
|===
|
|===
|
||||||
| Key | Description | Command
|
| Key | Description | Command
|
||||||
| kbd:[Alt+m] | Toggle mouse. | `+/mouse toggle+`
|
| kbd:[Alt+m] | Toggle mouse. | `+/mouse toggle+`
|
||||||
| kbd:[Alt+s] | Toggle spell checker. | `+/mute spell toggle+`
|
| kbd:[Alt+s] | Toggle spell checker. | `+/mute spell toggle+`
|
||||||
| kbd:[Alt+=] | Toggle filters. | `+/filter toggle+`
|
| kbd:[Alt+=] | Toggle filters. | `+/filter toggle+`
|
||||||
| kbd:[Alt+-] | Toggle filters in current buffer. | `+/filter toggle @+`
|
| kbd:[Alt+-] | Toggle filters in current buffer. | `+/filter toggle @+`
|
||||||
|
| kbd:[Alt+Ctrl+l] (`L`) | Toggle between remote and local commands on a remote buffer (relay "api"). | `+/remote togglecmd+`
|
||||||
|===
|
|===
|
||||||
|
|
||||||
[[key_bindings_search_context]]
|
[[key_bindings_search_context]]
|
||||||
@@ -1966,9 +1975,9 @@ These keys and actions are used on the IRC /list buffer (see command <<command_i
|
|||||||
| kbd:[F11] | `pass:[<]` | Scroll horizontally on the left. | `+/list -left+`
|
| kbd:[F11] | `pass:[<]` | Scroll horizontally on the left. | `+/list -left+`
|
||||||
| kbd:[F12] | `pass:[>]` | Scroll horizontally on the right. | `+/list -right+`
|
| kbd:[F12] | `pass:[>]` | Scroll horizontally on the right. | `+/list -right+`
|
||||||
| kbd:[Ctrl+j] | `j` | Join IRC channel on selected line. | `+/list -join+`
|
| kbd:[Ctrl+j] | `j` | Join IRC channel on selected line. | `+/list -join+`
|
||||||
| | `xxx` | Show only channels with "xxx" in name or topic (case insensitive). |
|
| | `xxx` | Show only channels with "xxx" in name or topic (case-insensitive). |
|
||||||
| | `n:xxx` | Show only channels with "xxx" in name (case insensitive). |
|
| | `n:xxx` | Show only channels with "xxx" in name (case-insensitive). |
|
||||||
| | `t:xxx` | Show only channels with "xxx" in topic (case insensitive). |
|
| | `t:xxx` | Show only channels with "xxx" in topic (case-insensitive). |
|
||||||
| | `u:n` | Show only channels with at least "n" users. |
|
| | `u:n` | Show only channels with at least "n" users. |
|
||||||
| | `u:>n` | Show only channels with more than "n" users. |
|
| | `u:>n` | Show only channels with more than "n" users. |
|
||||||
| | `u:<n` | Show only channels with less than "n" users. |
|
| | `u:<n` | Show only channels with less than "n" users. |
|
||||||
@@ -2025,27 +2034,27 @@ Example of fset buffer displaying options starting with `weechat.look` :
|
|||||||
[subs="quotes"]
|
[subs="quotes"]
|
||||||
....
|
....
|
||||||
┌──────────────────────────────────────────────────────────────────────────────────────┐
|
┌──────────────────────────────────────────────────────────────────────────────────────┐
|
||||||
│1.weechat│1/121 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggle │
|
│1.weechat│7/125 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggl>>│
|
||||||
│2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c│
|
│2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c│
|
||||||
│ │hanges in input [default: on] │
|
│ │hanges in input [default: on] │
|
||||||
│ │----------------------------------------------------------------------------│
|
│ │----------------------------------------------------------------------------│
|
||||||
│ │ weechat.look.align_end_of_lines enum message │
|
│ │ weechat.look.align_end_of_lines enum message │
|
||||||
│ │ weechat.look.align_multiline_words boolean on │
|
│ │ weechat.look.align_multiline_words boolean on │
|
||||||
│ │ weechat.look.bar_more_down string "++" │
|
│ │ weechat.look.bar_more_down string "++" │
|
||||||
│ │ weechat.look.bar_more_left string "<<" │
|
│ │ weechat.look.bar_more_left string "<<" │
|
||||||
│ │ weechat.look.bar_more_right string ">>" │
|
│ │ weechat.look.bar_more_right string ">>" │
|
||||||
│ │ weechat.look.bar_more_up string "--" │
|
│ │ weechat.look.bar_more_up string "--" │
|
||||||
│ │## weechat.look.bare_display_exit_on_input boolean on ##│
|
│ │## weechat.look.bare_display_exit_on_input boolean on ##│
|
||||||
│ │ weechat.look.bare_display_time_format string "%H:%M" │
|
│ │ weechat.look.bare_display_time_format string "%H:%M" │
|
||||||
│ │ weechat.look.buffer_auto_renumber boolean on │
|
│ │ weechat.look.buffer_auto_renumber boolean on │
|
||||||
│ │ weechat.look.buffer_notify_default enum all │
|
│ │ weechat.look.buffer_notify_default enum all │
|
||||||
│ │ weechat.look.buffer_position enum end │
|
│ │ weechat.look.buffer_position enum end │
|
||||||
│ │ weechat.look.buffer_search_case_sensitive boolean off │
|
│ │ weechat.look.buffer_search_case_sensitive boolean off │
|
||||||
│ │ weechat.look.buffer_search_force_default boolean off │
|
│ │ weechat.look.buffer_search_force_default boolean off │
|
||||||
│ │ weechat.look.buffer_search_regex boolean off │
|
│ │ weechat.look.buffer_search_history enum local │
|
||||||
│ │ weechat.look.buffer_search_where enum prefix_message │
|
│ │ weechat.look.buffer_search_regex boolean off │
|
||||||
│ │ weechat.look.buffer_time_format string "%H:%M:%S" │
|
│ │ weechat.look.buffer_search_where enum prefix_message │
|
||||||
│ │ weechat.look.buffer_time_same string "" │
|
│ │ weechat.look.buffer_time_format string "%H:%M:%S" │
|
||||||
│ │[12:55] [2] [fset] 2:fset │
|
│ │[12:55] [2] [fset] 2:fset │
|
||||||
│ │█ │
|
│ │█ │
|
||||||
└──────────────────────────────────────────────────────────────────────────────────────┘
|
└──────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
@@ -2176,6 +2185,151 @@ Example of bold with terminal foreground color:
|
|||||||
/set weechat.color.status_time *99999
|
/set weechat.color.status_time *99999
|
||||||
----
|
----
|
||||||
|
|
||||||
|
[[themes]]
|
||||||
|
=== Themes
|
||||||
|
|
||||||
|
A theme is a named bundle of option overrides that can be applied with
|
||||||
|
the <<command_weechat_theme,/theme>> command. WeeChat ships a built-in
|
||||||
|
`"light"` theme tuned for light-background terminals and supports
|
||||||
|
user-defined themes loaded transiently from files.
|
||||||
|
|
||||||
|
[[themes_themable_options]]
|
||||||
|
==== Themable options
|
||||||
|
|
||||||
|
Themes can only set options marked as _themable_. All `*.color.*`
|
||||||
|
options are themable by default; a few string options that hold format
|
||||||
|
expressions with `+${color:...}+` references (such as
|
||||||
|
`+weechat.color.chat_nick_colors+`, `+weechat.look.prefix_error+` or the
|
||||||
|
`+buflist.format.*+` formats) are explicitly opted in.
|
||||||
|
|
||||||
|
You can list the full themable surface area from the
|
||||||
|
<<command_fset_fset,/fset>> buffer with the `+t:themable+` filter.
|
||||||
|
|
||||||
|
[[themes_apply]]
|
||||||
|
==== Applying a theme
|
||||||
|
|
||||||
|
To switch to the built-in light-background theme:
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme apply light
|
||||||
|
----
|
||||||
|
|
||||||
|
The current state of every themable option is saved beforehand to a
|
||||||
|
backup theme file named like `+backup-YYYYMMDD-HHMMSS-uuuuuu+` in
|
||||||
|
directory `+themes+` inside the WeeChat configuration directory, so the
|
||||||
|
previous look can be restored at any time with:
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme apply backup-YYYYMMDD-HHMMSS-uuuuuu
|
||||||
|
----
|
||||||
|
|
||||||
|
Backup creation can be disabled (not recommended):
|
||||||
|
|
||||||
|
----
|
||||||
|
/set weechat.look.theme_backup off
|
||||||
|
----
|
||||||
|
|
||||||
|
If backup is enabled and the backup file cannot be written, the apply
|
||||||
|
is aborted before any option is changed.
|
||||||
|
|
||||||
|
The name of the last applied theme is stored in
|
||||||
|
`+weechat.look.theme+` (informational only; not re-applied at startup).
|
||||||
|
|
||||||
|
[[themes_reset]]
|
||||||
|
==== Resetting to defaults
|
||||||
|
|
||||||
|
To restore the look shipped with WeeChat, reset every themable option
|
||||||
|
to its default value:
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme reset
|
||||||
|
----
|
||||||
|
|
||||||
|
A backup is written first (same gate as `+/theme apply+`); on backup
|
||||||
|
failure the reset is aborted before any option is changed.
|
||||||
|
`+weechat.look.theme+` is cleared too.
|
||||||
|
|
||||||
|
[[themes_save_delete]]
|
||||||
|
==== Saving and deleting user themes
|
||||||
|
|
||||||
|
Save the current themable options as a new user theme file:
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme save mytheme
|
||||||
|
----
|
||||||
|
|
||||||
|
Every themable option is written, so the file is self-contained and
|
||||||
|
applies the exact same look on any WeeChat, regardless of its current
|
||||||
|
configuration.
|
||||||
|
|
||||||
|
Reserved names (built-in theme names like `+light+` and any name
|
||||||
|
starting with `+backup-+`) are refused. Files live at
|
||||||
|
`+${weechat_config_dir}/themes/<name>.theme+`.
|
||||||
|
|
||||||
|
Rename a user theme (typical use: keep a useful automatic backup
|
||||||
|
under a meaningful name):
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme rename backup-20260525-094210-123456 mybackup
|
||||||
|
----
|
||||||
|
|
||||||
|
Built-in themes have no file and cannot be renamed; the target name
|
||||||
|
cannot match a built-in name or start with `+backup-+`, and the
|
||||||
|
target file must not already exist. The `+[info]+` `+name+` field
|
||||||
|
inside the file is rewritten so `/theme info` reports the new name
|
||||||
|
consistently.
|
||||||
|
|
||||||
|
Delete a user theme:
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme delete mytheme
|
||||||
|
----
|
||||||
|
|
||||||
|
This removes the file on disk; built-in themes cannot be deleted.
|
||||||
|
|
||||||
|
[[themes_file_format]]
|
||||||
|
==== Theme file format
|
||||||
|
|
||||||
|
A theme file is INI-like with two sections:
|
||||||
|
|
||||||
|
----
|
||||||
|
[info]
|
||||||
|
name = "solarized_light"
|
||||||
|
description = "Light-background theme inspired by Solarized"
|
||||||
|
date = "2026-05-25 09:42:10"
|
||||||
|
weechat = "4.10.0-dev"
|
||||||
|
|
||||||
|
[options]
|
||||||
|
weechat.color.chat = "darkgray"
|
||||||
|
weechat.color.separator = "blue"
|
||||||
|
irc.color.input_nick = "magenta"
|
||||||
|
buflist.format.number = "${color:28}${number}${if:${number_displayed}?.: }"
|
||||||
|
----
|
||||||
|
|
||||||
|
`+[info]+` is informational metadata shown by `/theme info`. `+[options]+`
|
||||||
|
holds the actual overrides; keys are the full option names that would
|
||||||
|
appear in `/set`. String values can be enclosed in double or single
|
||||||
|
quotes; quotes are stripped at parse time. Non-themable options listed
|
||||||
|
in a theme file are refused at apply time and logged to the core
|
||||||
|
buffer (so a `.theme` file imported from an untrusted source cannot
|
||||||
|
overwrite passwords, autoload lists, or startup commands).
|
||||||
|
|
||||||
|
User theme files are never cached: on every `/theme apply <name>` the
|
||||||
|
file is parsed, applied, and freed.
|
||||||
|
|
||||||
|
[[themes_resolution]]
|
||||||
|
==== Resolution order
|
||||||
|
|
||||||
|
When `+/theme apply <name>+` is run:
|
||||||
|
|
||||||
|
* If `+${weechat_config_dir}/themes/<name>.theme+` exists, the file
|
||||||
|
is parsed and used (it shadows any built-in with the same name).
|
||||||
|
* Otherwise the built-in theme registry is consulted; built-ins are
|
||||||
|
registered programmatically by core, plugins and scripts (see the
|
||||||
|
plugin and scripting documentation for `+weechat_theme_register+`).
|
||||||
|
|
||||||
|
If neither source provides the name, the apply is refused.
|
||||||
|
|
||||||
[[charset]]
|
[[charset]]
|
||||||
=== Charset
|
=== Charset
|
||||||
|
|
||||||
@@ -3277,7 +3431,7 @@ Alias plugin lets you create alias for commands (from WeeChat or other
|
|||||||
plugins).
|
plugins).
|
||||||
|
|
||||||
Some aliases are created by default, with name in upper case (to make them
|
Some aliases are created by default, with name in upper case (to make them
|
||||||
different from standard commands); commands are not case sensitive in WeeChat,
|
different from standard commands); commands are not case-sensitive in WeeChat,
|
||||||
so for example `/close` runs the alias `/CLOSE`.
|
so for example `/close` runs the alias `/CLOSE`.
|
||||||
|
|
||||||
List of default aliases:
|
List of default aliases:
|
||||||
@@ -3399,13 +3553,15 @@ weechat irc://alice@irc.libera.chat/#weechat,#weechat-fr
|
|||||||
By default no servers are defined. You can add as many servers as you want with
|
By default no servers are defined. You can add as many servers as you want with
|
||||||
the <<command_irc_server,/server>> command.
|
the <<command_irc_server,/server>> command.
|
||||||
|
|
||||||
For example to connect to https://libera.chat/[libera.chat ^↗^^]
|
For example to connect to https://libera.chat/[libera.chat ^↗^^]:
|
||||||
with TLS (encrypted trafic):
|
|
||||||
|
|
||||||
----
|
----
|
||||||
/server add libera irc.libera.chat/6697 -tls
|
/server add libera irc.libera.chat
|
||||||
----
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
Default port is 6697 and TLS (encrypted traffic) is enabled.
|
||||||
|
|
||||||
You can tell WeeChat to auto-connect to this server on startup:
|
You can tell WeeChat to auto-connect to this server on startup:
|
||||||
|
|
||||||
----
|
----
|
||||||
@@ -3446,11 +3602,11 @@ For example if you created the _libera_ server with the commands above, you'll
|
|||||||
see this with the command `/fset libera`:
|
see this with the command `/fset libera`:
|
||||||
|
|
||||||
....
|
....
|
||||||
irc.server.libera.addresses string "irc.libera.chat/6697"
|
irc.server.libera.addresses string "irc.libera.chat"
|
||||||
irc.server.libera.anti_flood_prio_high integer null -> 2
|
irc.server.libera.anti_flood integer null -> 2000
|
||||||
irc.server.libera.anti_flood_prio_low integer null -> 2
|
|
||||||
irc.server.libera.autoconnect boolean on
|
irc.server.libera.autoconnect boolean on
|
||||||
irc.server.libera.autojoin string null -> ""
|
irc.server.libera.autojoin string null -> ""
|
||||||
|
irc.server.libera.autojoin_delay integer null -> 0
|
||||||
irc.server.libera.autojoin_dynamic boolean null -> off
|
irc.server.libera.autojoin_dynamic boolean null -> off
|
||||||
irc.server.libera.autoreconnect boolean null -> on
|
irc.server.libera.autoreconnect boolean null -> on
|
||||||
irc.server.libera.autoreconnect_delay integer null -> 10
|
irc.server.libera.autoreconnect_delay integer null -> 10
|
||||||
@@ -3464,17 +3620,18 @@ irc.server.libera.command string null -> ""
|
|||||||
irc.server.libera.command_delay integer null -> 0
|
irc.server.libera.command_delay integer null -> 0
|
||||||
irc.server.libera.connection_timeout integer null -> 60
|
irc.server.libera.connection_timeout integer null -> 60
|
||||||
irc.server.libera.default_chantypes string null -> "#&"
|
irc.server.libera.default_chantypes string null -> "#&"
|
||||||
irc.server.libera.ipv6 boolean null -> on
|
irc.server.libera.ipv6 enum null -> auto
|
||||||
irc.server.libera.local_hostname string null -> ""
|
irc.server.libera.local_hostname string null -> ""
|
||||||
irc.server.libera.msg_kick string null -> ""
|
irc.server.libera.msg_kick string null -> ""
|
||||||
irc.server.libera.msg_part string null -> "WeeChat ${info:version}"
|
irc.server.libera.msg_part string null -> "WeeChat ${info:version}"
|
||||||
irc.server.libera.msg_quit string null -> "WeeChat ${info:version}"
|
irc.server.libera.msg_quit string null -> "WeeChat ${info:version}"
|
||||||
irc.server.libera.nicks string null -> "alice,alice1,alice2,alice3,alice4"
|
irc.server.libera.nicks string null -> "${username},${username}2,${username}3,${username}4,${username}5"
|
||||||
irc.server.libera.nicks_alternate boolean null -> on
|
irc.server.libera.nicks_alternate boolean null -> on
|
||||||
irc.server.libera.notify string null -> ""
|
irc.server.libera.notify string null -> ""
|
||||||
irc.server.libera.password string null -> ""
|
irc.server.libera.password string null -> ""
|
||||||
irc.server.libera.proxy string null -> ""
|
irc.server.libera.proxy string null -> ""
|
||||||
irc.server.libera.realname string null -> ""
|
irc.server.libera.realname string null -> ""
|
||||||
|
irc.server.libera.registered_mode string null -> "r"
|
||||||
irc.server.libera.sasl_fail enum null -> reconnect
|
irc.server.libera.sasl_fail enum null -> reconnect
|
||||||
irc.server.libera.sasl_key string null -> ""
|
irc.server.libera.sasl_key string null -> ""
|
||||||
irc.server.libera.sasl_mechanism enum null -> plain
|
irc.server.libera.sasl_mechanism enum null -> plain
|
||||||
@@ -3482,15 +3639,15 @@ irc.server.libera.sasl_password string "${sec.data.libera}"
|
|||||||
irc.server.libera.sasl_timeout integer null -> 15
|
irc.server.libera.sasl_timeout integer null -> 15
|
||||||
irc.server.libera.sasl_username string "alice"
|
irc.server.libera.sasl_username string "alice"
|
||||||
irc.server.libera.split_msg_max_length integer null -> 512
|
irc.server.libera.split_msg_max_length integer null -> 512
|
||||||
irc.server.libera.tls boolean on
|
irc.server.libera.tls boolean null -> on
|
||||||
irc.server.libera.tls_cert string null -> ""
|
irc.server.libera.tls_cert string null -> ""
|
||||||
irc.server.libera.tls_dhkey_size integer null -> 2048
|
irc.server.libera.tls_dhkey_size integer null -> 2048
|
||||||
irc.server.libera.tls_fingerprint string null -> ""
|
irc.server.libera.tls_fingerprint string null -> ""
|
||||||
irc.server.libera.tls_password string null -> ""
|
irc.server.libera.tls_password string null -> ""
|
||||||
irc.server.libera.tls_priorities string null -> "NORMAL:-VERS-SSL3.0"
|
irc.server.libera.tls_priorities string null -> "NORMAL"
|
||||||
irc.server.libera.tls_verify boolean null -> on
|
irc.server.libera.tls_verify boolean null -> on
|
||||||
irc.server.libera.usermode string null -> ""
|
irc.server.libera.usermode string null -> ""
|
||||||
irc.server.libera.username string null -> "alice"
|
irc.server.libera.username string null -> "${username}"
|
||||||
....
|
....
|
||||||
|
|
||||||
For example if you want to automatically connect to all servers you define
|
For example if you want to automatically connect to all servers you define
|
||||||
@@ -3612,7 +3769,7 @@ Options in servers are:
|
|||||||
[[irc_sasl_ecdsa_nist256p_challenge]]
|
[[irc_sasl_ecdsa_nist256p_challenge]]
|
||||||
===== SASL ECDSA-NIST256P-CHALLENGE
|
===== SASL ECDSA-NIST256P-CHALLENGE
|
||||||
|
|
||||||
You must generate a private key in order to authentify with the
|
You must generate a private key in order to authenticate with the
|
||||||
ECDSA-NIST256P-CHALLENGE mechanism (no password is required on connection).
|
ECDSA-NIST256P-CHALLENGE mechanism (no password is required on connection).
|
||||||
|
|
||||||
You can generate the key with this command:
|
You can generate the key with this command:
|
||||||
@@ -3748,7 +3905,7 @@ WeeChat supports the following https://ircv3.net/irc/[IRCv3 extensions ^↗^^]:
|
|||||||
* <<irc_ircv3_batch,batch>>
|
* <<irc_ircv3_batch,batch>>
|
||||||
* <<irc_ircv3_cap_notify,cap-notify>>
|
* <<irc_ircv3_cap_notify,cap-notify>>
|
||||||
* <<irc_ircv3_chghost,chghost>>
|
* <<irc_ircv3_chghost,chghost>>
|
||||||
* <<irc_ircv3_draft/multiline,draft/multiline>>
|
* <<irc_ircv3_draft_multiline,draft/multiline>>
|
||||||
* <<irc_ircv3_echo_message,echo-message>>
|
* <<irc_ircv3_echo_message,echo-message>>
|
||||||
* <<irc_ircv3_extended_join,extended-join>>
|
* <<irc_ircv3_extended_join,extended-join>>
|
||||||
* <<irc_ircv3_invite_notify,invite-notify>>
|
* <<irc_ircv3_invite_notify,invite-notify>>
|
||||||
@@ -3796,7 +3953,7 @@ Specification: https://ircv3.net/specs/extensions/account-tag[account-tag ^↗^
|
|||||||
This capability allows the server to send account as message tag to commands
|
This capability allows the server to send account as message tag to commands
|
||||||
sent to the client. +
|
sent to the client. +
|
||||||
WeeChat parses this tag and saves it in the message, but it is not used or
|
WeeChat parses this tag and saves it in the message, but it is not used or
|
||||||
displayed. It can be used in <<command_filter,/filter>> command to filter
|
displayed. It can be used in <<command_weechat_filter,/filter>> command to filter
|
||||||
messages matching specific accounts.
|
messages matching specific accounts.
|
||||||
|
|
||||||
Example of raw IRC message received:
|
Example of raw IRC message received:
|
||||||
@@ -4690,13 +4847,21 @@ For example:
|
|||||||
Now you can connect on port 9000 with a WeeChat or a remote interface using
|
Now you can connect on port 9000 with a WeeChat or a remote interface using
|
||||||
password "mypassword".
|
password "mypassword".
|
||||||
|
|
||||||
To connect to an _api_ relay with WeeChat:
|
To connect to an _api_ relay running locally with WeeChat:
|
||||||
|
|
||||||
----
|
----
|
||||||
/remote add weechat http://localhost:9000 -password=mypassword
|
/remote add weechat http://localhost:9000 -password=mypassword
|
||||||
/remote connect weechat
|
/remote connect weechat
|
||||||
----
|
----
|
||||||
|
|
||||||
|
To connect to an _api_ relay running elsewhere with WeeChat
|
||||||
|
(TLS is highly recommended):
|
||||||
|
|
||||||
|
----
|
||||||
|
/remote add weechat https://example.com:9000 -password=mypassword
|
||||||
|
/remote connect weechat
|
||||||
|
----
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
The remote WeeChat must expose the same API version as the local WeeChat, so
|
The remote WeeChat must expose the same API version as the local WeeChat, so
|
||||||
it's highly recommended to use exactly the same WeeChat version on remote
|
it's highly recommended to use exactly the same WeeChat version on remote
|
||||||
@@ -4711,7 +4876,7 @@ You can connect with a remote interface, see
|
|||||||
https://weechat.org/about/interfaces/[this page ^↗^^].
|
https://weechat.org/about/interfaces/[this page ^↗^^].
|
||||||
|
|
||||||
[IMPORTANT]
|
[IMPORTANT]
|
||||||
WeeChat itself can NOT connect to another WeeChat with this protocol.
|
WeeChat itself cannot connect to another WeeChat with this protocol.
|
||||||
|
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
@@ -4737,7 +4902,7 @@ A WebSocket can be opened in a HTML5 with a single line of JavaScript:
|
|||||||
|
|
||||||
[source,javascript]
|
[source,javascript]
|
||||||
----
|
----
|
||||||
websocket = new WebSocket("ws://server.com:9500/weechat");
|
websocket = new WebSocket("ws://example.com:9500/weechat");
|
||||||
----
|
----
|
||||||
|
|
||||||
The port (9500 in example) is the port defined in Relay plugin.
|
The port (9500 in example) is the port defined in Relay plugin.
|
||||||
@@ -4964,7 +5129,7 @@ A trigger has the following options (names are
|
|||||||
|
|
||||||
| enabled | `on`, `off`
|
| enabled | `on`, `off`
|
||||||
| When option is `off`, the trigger is disabled and actions are not executed
|
| When option is `off`, the trigger is disabled and actions are not executed
|
||||||
any more.
|
anymore.
|
||||||
|
|
||||||
| hook | `+signal+`, `+hsignal+`, `+modifier+`, `+line+`, `+print+`, `+command+`,
|
| hook | `+signal+`, `+hsignal+`, `+modifier+`, `+line+`, `+print+`, `+command+`,
|
||||||
`+command_run+`, `+timer+`, `+config+`, `+focus+`, `+info+`, `+info_hashtable+`
|
`+command_run+`, `+timer+`, `+config+`, `+focus+`, `+info+`, `+info_hashtable+`
|
||||||
@@ -5778,7 +5943,7 @@ For privacy considerations, the download of scripts is disabled by default. +
|
|||||||
To enable it, type this command:
|
To enable it, type this command:
|
||||||
|
|
||||||
----
|
----
|
||||||
/set script.scripts.download_enabled on
|
/script enable
|
||||||
----
|
----
|
||||||
|
|
||||||
Then you can download the list of scripts and display them in a new buffer
|
Then you can download the list of scripts and display them in a new buffer
|
||||||
@@ -5788,33 +5953,33 @@ with the <<command_script_script,/script>> command:
|
|||||||
:x: *
|
:x: *
|
||||||
....
|
....
|
||||||
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||||
│1.weechat│368/368 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, u=│
|
│1.weechat│322/322 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, >>│
|
||||||
│2.scripts│{x} autosort.py 3.9 2020-10-11 | Automatically keep buffers grouped by server│
|
│2.scripts│{x} autosort.py 3.10 2023-12-31 | Automatically keep buffers grouped by se│
|
||||||
│ │{x} multiline.pl 0.6.3 2016-01-02 | Multi-line edit box, also supports editing o│
|
│ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer. │
|
||||||
│ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer. │
|
│ │{x}ia r grep.py 0.8.6 0.8.6 2022-11-11 | Search regular expression in buffers or │
|
||||||
│ │##{x}ia r grep.py 0.8.5 0.8.5 2021-05-11 | Search regular expression in buffers or log ##│
|
│ │{x} colorize_nicks.py 32 2023-10-30 | Use the weechat nick colors in the chat │
|
||||||
│ │{x} autojoin.py 0.3.1 2019-10-06 | Configure autojoin for all servers according│
|
│ │##{x}ia r go.py 3.0.1 3.0.1 2024-05-30 | Quick jump to buffers. ##│
|
||||||
│ │{x} colorize_nicks.py 28 2021-03-06 | Use the weechat nick colors in the chat area│
|
│ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L│
|
||||||
│ │{x}ia r go.py 2.7 2.7 2021-05-26 | Quick jump to buffers. │
|
│ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for re│
|
||||||
│ │{x} text_item.py 0.9 2019-05-25 | Add bar items with plain text. │
|
│ │ alternatetz.py 0.4 2022-01-25 | Add an alternate timezone item. │
|
||||||
│ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L L Y│
|
│ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script.│
|
||||||
│ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for relays│
|
│ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to │
|
||||||
│ │ alternatetz.py 0.3 2018-11-11 | Add an alternate timezone item. │
|
│ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel│
|
||||||
│ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script. │
|
│ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highl│
|
||||||
│ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to an A│
|
│ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidental│
|
||||||
│ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel. │
|
│ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s│
|
||||||
│ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highlight│
|
│ │ arespond.py 0.1.2 2022-01-25 | Simple autoresponder. │
|
||||||
│ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidentally s│
|
│ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@│
|
||||||
│ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s/typ│
|
│ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currentl│
|
||||||
│ │ arespond.py 0.1.1 2020-10-11 | Simple autoresponder. │
|
│ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ│
|
||||||
│ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@". │
|
│ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script. │
|
||||||
│ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currently pl│
|
│ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changi│
|
||||||
│ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ usi│
|
│ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity. │
|
||||||
│ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script. │
|
│ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .wee│
|
||||||
│ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changing n│
|
│ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last │
|
||||||
│ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity. │
|
│ │ autojoin_on_invite.py 0.9 2022-10-25 | Auto joins channels when invited. │
|
||||||
│ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .weerc f│
|
│ │ automarkbuffer.py 1.0 2015-03-31 | Mark buffers as read if there is no new │
|
||||||
│ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last time│
|
│ │ automerge.py 0.2 2018-03-03 | Automatically merge new buffers accordin│
|
||||||
│ │[12:55] [2] [script] 2:scripts │
|
│ │[12:55] [2] [script] 2:scripts │
|
||||||
│ │█ │
|
│ │█ │
|
||||||
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2017-2020 Dan Allen, Sarah White, Ryan Waldron
|
||||||
|
// SPDX-FileCopyrightText: 2017-2020 Eddú Meléndez <eddu.melendez@gmail.com>
|
||||||
|
// SPDX-FileCopyrightText: 2017-2020 Fede Mendez <federicomh@gmail.com>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
//
|
||||||
|
// Spanish translation, courtesy of Eddú Meléndez <eddu.melendez@gmail.com> with updates from Fede Mendez <federicomh@gmail.com>
|
||||||
|
:appendix-caption: Apéndice
|
||||||
|
:appendix-refsig: {appendix-caption}
|
||||||
|
:caution-caption: Precaución
|
||||||
|
:chapter-signifier: Capítulo
|
||||||
|
:chapter-refsig: {chapter-signifier}
|
||||||
|
:example-caption: Ejemplo
|
||||||
|
:figure-caption: Figura
|
||||||
|
:important-caption: Importante
|
||||||
|
:last-update-label: Ultima actualización
|
||||||
|
ifdef::listing-caption[:listing-caption: Lista]
|
||||||
|
ifdef::manname-title[:manname-title: Nombre]
|
||||||
|
:note-caption: Nota
|
||||||
|
:part-signifier: Parte
|
||||||
|
:part-refsig: {part-signifier}
|
||||||
|
ifdef::preface-title[:preface-title: Prefacio]
|
||||||
|
:section-refsig: Sección
|
||||||
|
:table-caption: Tabla
|
||||||
|
:tip-caption: Sugerencia
|
||||||
|
:toc-title: Tabla de Contenido
|
||||||
|
:untitled-label: Sin título
|
||||||
|
:version-label: Versión
|
||||||
|
:warning-caption: Aviso
|
||||||
@@ -1,12 +1,13 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2021 Victorhck <victorhck.mailbox.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat preguntas frecuentes (FAQ)
|
= WeeChat preguntas frecuentes (FAQ)
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: es
|
:lang: es
|
||||||
:toc-title: Índice
|
include::includes/attributes-es.adoc[]
|
||||||
|
|
||||||
Traductores
|
|
||||||
|
|
||||||
* Victorhck <victorhck.mailbox.org>, 2021
|
|
||||||
|
|
||||||
[[general]]
|
[[general]]
|
||||||
== General
|
== General
|
||||||
@@ -453,7 +454,7 @@ información sobre la gestión de los colores.
|
|||||||
[[search_text]]
|
[[search_text]]
|
||||||
=== ¿Cómo busco texto en un buffer (como /lastlog en irssi)?
|
=== ¿Cómo busco texto en un buffer (como /lastlog en irssi)?
|
||||||
|
|
||||||
La tecla predeterminada es kbd:[Ctrl+r] (el comando es: `+/input texto_a_buscar_aquí+`).
|
La tecla predeterminada es kbd:[Ctrl+s] (el comando es: `+/input texto_a_buscar_aquí+`).
|
||||||
Y para saltar a los textos resaltados: kbd:[Alt+p] / kbd:[Alt+n].
|
Y para saltar a los textos resaltados: kbd:[Alt+p] / kbd:[Alt+n].
|
||||||
|
|
||||||
Vea la link:weechat_user.en.html#key_bindings[Guía del usuario / Atajos de teclado ^↗^^]
|
Vea la link:weechat_user.en.html#key_bindings[Guía del usuario / Atajos de teclado ^↗^^]
|
||||||
@@ -780,7 +781,7 @@ Puede intentar una cadena de prioridad diferente, reemplace "xxx" por el nombre
|
|||||||
de su servidor:
|
de su servidor:
|
||||||
|
|
||||||
----
|
----
|
||||||
/set irc.server.xxx.tls_priorities "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0:+VERS-SSL3.0:%COMPAT"
|
/set irc.server.xxx.tls_priorities "NORMAL:%COMPAT"
|
||||||
----
|
----
|
||||||
|
|
||||||
[[irc_tls_libera]]
|
[[irc_tls_libera]]
|
||||||
@@ -1280,7 +1281,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /ruta/a/weechat
|
|||||||
[[supported_os]]
|
[[supported_os]]
|
||||||
=== ¿Cual es la lista de plataformas para las que está disponible WeeChat? ¿Será portado a otros sistemas operativos?
|
=== ¿Cual es la lista de plataformas para las que está disponible WeeChat? ¿Será portado a otros sistemas operativos?
|
||||||
|
|
||||||
WeeChat se ejecuta sin problemas en la mayoría de distribuciones Linux/BSD, GNU/Hurd, Mac OS y Windows
|
WeeChat se ejecuta sin problemas en la mayoría de distribuciones Linux/BSD, GNU/Hurd, macOS y Windows
|
||||||
(Cygwin y Windows Subsystem para Linux).
|
(Cygwin y Windows Subsystem para Linux).
|
||||||
|
|
||||||
Hacemos todo lo posible para que pueda ser ejecutado en cuantas plataformas sea posible. La ayuda es bienvenida para
|
Hacemos todo lo posible para que pueda ser ejecutado en cuantas plataformas sea posible. La ayuda es bienvenida para
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
// SPDX-FileCopyrightText: 2012 Lázaro A. <uranio-235@myopera.com>
|
||||||
|
// SPDX-FileCopyrightText: 2021 Victorhck <victorhck@mailbox.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat guía rápida
|
= WeeChat guía rápida
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: es
|
:lang: es
|
||||||
:toc-title: Índice
|
include::includes/attributes-es.adoc[]
|
||||||
|
|
||||||
Traductores:
|
|
||||||
|
|
||||||
* Lázaro A. <uranio-235@myopera.com>, 2012
|
|
||||||
* Victorhck <victorhck@mailbox.org>, 2021
|
|
||||||
|
|
||||||
[[start]]
|
[[start]]
|
||||||
== Iniciar WeeChat
|
== Iniciar WeeChat
|
||||||
@@ -283,7 +284,7 @@ Cierra un servidor, canal o buffer privado (`/close` es un alias para
|
|||||||
/close
|
/close
|
||||||
----
|
----
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
Al cerrar el buffer del servidor cerrará todos los buffer de canales/privados
|
Al cerrar el buffer del servidor cerrará todos los buffer de canales/privados
|
||||||
|
|
||||||
Para desconectar del servidor, en el buffer del servidor ejecute:
|
Para desconectar del servidor, en el buffer del servidor ejecute:
|
||||||
@@ -341,9 +342,10 @@ Para eliminar esa división:
|
|||||||
[[key_bindings]]
|
[[key_bindings]]
|
||||||
== Atajos de teclado
|
== Atajos de teclado
|
||||||
|
|
||||||
WeeChat usa muchas teclas por defecto. Éstas, están bien
|
// TRANSLATION MISSING
|
||||||
explicadas en la documentación pero debe conocer al menos la mas
|
WeeChat usa muchas teclas por defecto. Éstas, están bien explicadas en la documentación
|
||||||
importantes.
|
(link:weechat_user.en.html#key_bindings[User's guide / Key bindings ^↗^^]),
|
||||||
|
pero debe conocer al menos la mas importantes.
|
||||||
|
|
||||||
- kbd:[Alt+←] / kbd:[Alt+→] o kbd:[F5] / kbd:[F6]: Cambiará al buffer
|
- kbd:[Alt+←] / kbd:[Alt+→] o kbd:[F5] / kbd:[F6]: Cambiará al buffer
|
||||||
siguiente/anterior
|
siguiente/anterior
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2017-2020 Dan Allen, Sarah White, Ryan Waldron
|
||||||
|
// SPDX-FileCopyrightText: 2017-2021 Nicolas Comet <nicolas.comet@gmail.com>
|
||||||
|
// SPDX-FileCopyrightText: 2017-2021 Maheva Bagard Laursen <mblaursen@gbif.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
//
|
||||||
|
// French translation, courtesy of Nicolas Comet <nicolas.comet@gmail.com> with updates from Maheva Bagard Laursen <mblaursen@gbif.org>
|
||||||
|
:appendix-caption: Annexe
|
||||||
|
:appendix-refsig: {appendix-caption}
|
||||||
|
:caution-caption: Attention
|
||||||
|
:chapter-signifier: Chapitre
|
||||||
|
:chapter-refsig: {chapter-signifier}
|
||||||
|
:example-caption: Exemple
|
||||||
|
:figure-caption: Figure
|
||||||
|
:important-caption: Important
|
||||||
|
:last-update-label: Dernière mise à jour
|
||||||
|
ifdef::listing-caption[:listing-caption: Liste]
|
||||||
|
ifdef::manname-title[:manname-title: Nom]
|
||||||
|
:note-caption: Note
|
||||||
|
:part-signifier: Partie
|
||||||
|
:part-refsig: {part-signifier}
|
||||||
|
ifdef::preface-title[:preface-title: Préface]
|
||||||
|
:section-refsig: Section
|
||||||
|
:table-caption: Tableau
|
||||||
|
:tip-caption: Astuce
|
||||||
|
:toc-title: Table des matières
|
||||||
|
:untitled-label: Sans titre
|
||||||
|
:version-label: Version
|
||||||
|
:warning-caption: Avertissement
|
||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// tag::standard[]
|
// tag::standard[]
|
||||||
*-a*, *--no-connect*::
|
*-a*, *--no-connect*::
|
||||||
Supprimer la connexion automatique aux serveurs lors du démarrage.
|
Supprimer la connexion automatique aux serveurs lors du démarrage.
|
||||||
|
|||||||
@@ -1,12 +1,15 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// tag::plugin_options[]
|
// tag::plugin_options[]
|
||||||
Pour une documentation complète sur les options des extensions, merci de
|
Pour une documentation complète sur les options des extensions, merci de
|
||||||
consulter la documentation des extensions dans le
|
consulter la documentation des extensions dans le
|
||||||
https://weechat.org/doc/[guide utilisateur de WeeChat].
|
https://weechat.org/doc/[guide utilisateur de WeeChat].
|
||||||
|
|
||||||
Avec l'extension irc, vous pouvez vous connecter à un serveur de manière
|
Avec l'extension irc, vous pouvez vous connecter à un serveur avec une URL, comme ceci :
|
||||||
temporaire avec une URL, comme ceci :
|
|
||||||
|
|
||||||
irc[6][s]://[[pseudo][:motdepasse]@]serveur[:port][/#canal1[,#canal2...]]
|
irc[6][s]://[[pseudo][:mot_de_passe]@]serveur[:port][/#canal1[,#canal2...]]
|
||||||
|
|
||||||
Pour rejoindre le canal IRC de support WeeChat avec le pseudo "monpseudo" :
|
Pour rejoindre le canal IRC de support WeeChat avec le pseudo "monpseudo" :
|
||||||
|
|
||||||
@@ -102,7 +105,9 @@ $HOME/.local/share/weechat/weechat.log::
|
|||||||
WeeChat est écrit par Sébastien Helleu et des contributeurs (la liste complète
|
WeeChat est écrit par Sébastien Helleu et des contributeurs (la liste complète
|
||||||
est dans le fichier AUTHORS.md).
|
est dans le fichier AUTHORS.md).
|
||||||
|
|
||||||
Copyright (C) 2003-2024 {author}
|
// REUSE-IgnoreStart
|
||||||
|
Copyright (C) 2003-2026 {author}
|
||||||
|
// REUSE-IgnoreEnd
|
||||||
|
|
||||||
WeeChat est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier
|
WeeChat est un logiciel libre ; vous pouvez le redistribuer et/ou le modifier
|
||||||
sous les termes de la GNU General Public License telle que publiée par la
|
sous les termes de la GNU General Public License telle que publiée par la
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
// tag::diagram[]
|
// tag::diagram[]
|
||||||
....
|
....
|
||||||
┌──────────┐ Station de travail
|
┌──────────┐ Station de travail
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= weechat-headless(1)
|
= weechat-headless(1)
|
||||||
:doctype: manpage
|
:doctype: manpage
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= weechat(1)
|
= weechat(1)
|
||||||
:doctype: manpage
|
:doctype: manpage
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
|
|||||||
+182
-132
@@ -1,8 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= Guide du développeur WeeChat
|
= Guide du développeur WeeChat
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: fr
|
:lang: fr
|
||||||
:toc-title: Table des matières
|
include::includes/attributes-fr.adoc[]
|
||||||
|
|
||||||
Ce manuel documente le client de messagerie instantanée WeeChat, il fait
|
Ce manuel documente le client de messagerie instantanée WeeChat, il fait
|
||||||
partie de WeeChat.
|
partie de WeeChat.
|
||||||
@@ -88,14 +92,23 @@ Les répertoires principaux de WeeChat sont :
|
|||||||
| typing/ | Extension Typing.
|
| typing/ | Extension Typing.
|
||||||
| xfer/ | Extension Xfer (IRC DCC fichier/discussion).
|
| xfer/ | Extension Xfer (IRC DCC fichier/discussion).
|
||||||
| tests/ | Tests.
|
| tests/ | Tests.
|
||||||
| scripts/ | Tests de l'API script.
|
| fuzz/ | Fuzzing (tests à données aléatoires).
|
||||||
| python/ | Scripts Python pour générer et lancer les tests de l'API script.
|
| core/ | Fuzzing pour les fonctions du cœur.
|
||||||
| unit/ | Tests unitaires.
|
| unit/ | Tests unitaires.
|
||||||
| core/ | Tests unitaires pour les fonctions du cœur.
|
| core/ | Tests unitaires pour les fonctions du cœur.
|
||||||
|
| hook/ | Tests unitaires pour les fonctions hook.
|
||||||
| gui/ | Tests unitaires pour les fonctions de l'interface.
|
| gui/ | Tests unitaires pour les fonctions de l'interface.
|
||||||
|
| curses/ | Tests unitaires pour les fonctions de l'interface Curses.
|
||||||
|
| scripts/ | Tests de l'API script.
|
||||||
|
| python/ | Scripts Python pour générer et lancer les tests de l'API script.
|
||||||
| plugins/ | Tests unitaires pour les extensions.
|
| plugins/ | Tests unitaires pour les extensions.
|
||||||
|
| alias/ | Tests unitaires pour l'extension alias.
|
||||||
| irc/ | Tests unitaires pour l'extension IRC.
|
| irc/ | Tests unitaires pour l'extension IRC.
|
||||||
|
| logger/ | Tests unitaires pour l'extension logger.
|
||||||
|
| relay/ | Tests unitaires pour l'extension relay.
|
||||||
| trigger/ | Tests unitaires pour l'extension trigger.
|
| trigger/ | Tests unitaires pour l'extension trigger.
|
||||||
|
| typing/ | Tests unitaires pour l'extension typing.
|
||||||
|
| xfer/ | Tests unitaires pour l'extension xfer.
|
||||||
| doc/ | Documentation.
|
| doc/ | Documentation.
|
||||||
| po/ | Fichiers de traductions (gettext).
|
| po/ | Fichiers de traductions (gettext).
|
||||||
| debian/ | Empaquetage Debian.
|
| debian/ | Empaquetage Debian.
|
||||||
@@ -116,6 +129,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|
|||||||
|===
|
|===
|
||||||
| Chemin/fichier | Description
|
| Chemin/fichier | Description
|
||||||
| core/ | Fonctions du cœur : point d'entrée, structures internes.
|
| core/ | Fonctions du cœur : point d'entrée, structures internes.
|
||||||
|
| core-args.c | Paramètres de ligne de commande.
|
||||||
| core-arraylist.c | Listes avec tableau (« arraylists »).
|
| core-arraylist.c | Listes avec tableau (« arraylists »).
|
||||||
| core-backtrace.c | Afficher une trace après un plantage.
|
| core-backtrace.c | Afficher une trace après un plantage.
|
||||||
| core-calc.c | Calcul du résultat d'expressions.
|
| core-calc.c | Calcul du résultat d'expressions.
|
||||||
@@ -328,6 +342,7 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|
|||||||
| relay/ | Extension Relay (proxy IRC et relai pour des interfaces distantes).
|
| relay/ | Extension Relay (proxy IRC et relai pour des interfaces distantes).
|
||||||
| relay.c | Fonctions principales de Relay.
|
| relay.c | Fonctions principales de Relay.
|
||||||
| relay-auth.c | Authentification des clients.
|
| relay-auth.c | Authentification des clients.
|
||||||
|
| relay-bar-item.c | Objets de barre Relay.
|
||||||
| relay-buffer.c | Tampon Relay.
|
| relay-buffer.c | Tampon Relay.
|
||||||
| relay-client.c | Clients du relai.
|
| relay-client.c | Clients du relai.
|
||||||
| relay-command.c | Commandes de Relay.
|
| relay-command.c | Commandes de Relay.
|
||||||
@@ -402,120 +417,139 @@ Le cœur de WeeChat est situé dans les répertoires suivants :
|
|||||||
|
|
||||||
[width="100%",cols="2m,3",options="header"]
|
[width="100%",cols="2m,3",options="header"]
|
||||||
|===
|
|===
|
||||||
| Chemin/fichier | Description
|
| Chemin/fichier | Description
|
||||||
| tests/ | Racine des tests.
|
| tests/ | Racine des tests.
|
||||||
| tests.cpp | Programme utilisé pour lancer tous les tests.
|
| fuzz/ | Racine du fuzzing (tests à données aléatoires).
|
||||||
| tests-record.cpp | Enregistrement et recherche dans les messages affichés.
|
| ossfuzz.sh | Script de construction pour https://github.com/google/oss-fuzz[OSS-Fuzz ^↗^^].
|
||||||
| scripts/ | Racine des tests de l'API script.
|
| core/ | Racine du fuzzing pour le cœur.
|
||||||
| test-scripts.cpp | Programme utilisé pour lancer les tests de l'API script.
|
| calc-fuzzer.c | Fuzzing : calcul d'expressions.
|
||||||
| python/ | Scripts Python pour générer et lancer les tests de l'API script.
|
| crypto-fuzzer.c | Fuzzing : fonctions cryptographiques.
|
||||||
| testapigen.py | Script Python générant des scripts dans tous les languages pour tester l'API script.
|
| secure-fuzzer.c | Fuzzing : données sécurisées.
|
||||||
| testapi.py | Script Python avec les tests API, utilisé par le script testapigen.py.
|
| string-fuzzer.c | Fuzzing : chaînes.
|
||||||
| unparse.py | Conversion de code Python vers d'autres langages, utilisé par le script testapigen.py.
|
| utf8-fuzzer.c | Fuzzing : UTF-8.
|
||||||
| unit/ | Racine des tests unitaires.
|
| util-fuzzer.c | Fuzzing : fonctions utiles.
|
||||||
| test-plugins.cpp | Tests : extensions.
|
| unit/ | Racine des tests unitaires.
|
||||||
| test-plugin-api-info.cpp | Tests : fonctions info de l'API extension.
|
| tests.cpp | Programme utilisé pour lancer tous les tests.
|
||||||
| test-plugin-config.cpp | Tests : fonctions config de l'extension.
|
| tests-record.cpp | Enregistrement et recherche dans les messages affichés.
|
||||||
| core/ | Racine des tests unitaires pour le cœur.
|
| core/ | Racine des tests unitaires pour le cœur.
|
||||||
| test-core-arraylist.cpp | Tests : listes avec tableau (« arraylists »).
|
| test-core-arraylist.cpp | Tests : listes avec tableau (« arraylists »).
|
||||||
| test-core-calc.cpp | Tests : calcul d'expressions.
|
| test-core-calc.cpp | Tests : calcul d'expressions.
|
||||||
| test-core-command.cpp | Tests : commandes.
|
| test-core-command.cpp | Tests : commandes.
|
||||||
| test-core-config-file.cpp | Tests : fichiers de configuration.
|
| test-core-config-file.cpp | Tests : fichiers de configuration.
|
||||||
| test-core-crypto.cpp | Tests : fonctions cryptographiques.
|
| test-core-crypto.cpp | Tests : fonctions cryptographiques.
|
||||||
| test-core-dir.cpp | Tests : répertoires/fichiers.
|
| test-core-dir.cpp | Tests : répertoires/fichiers.
|
||||||
| test-core-eval.cpp | Tests : évaluation d'expressions.
|
| test-core-eval.cpp | Tests : évaluation d'expressions.
|
||||||
| test-core-hashtble.cpp | Tests : tables de hachage.
|
| test-core-hashtable.cpp | Tests : tables de hachage.
|
||||||
| test-core-hdata.cpp | Tests : hdata.
|
| test-core-hdata.cpp | Tests : hdata.
|
||||||
| test-core-hook.cpp | Tests : hooks.
|
| test-core-hook.cpp | Tests : hooks.
|
||||||
| test-core-infolist.cpp | Tests : infolists.
|
| test-core-infolist.cpp | Tests : infolists.
|
||||||
| test-core-list.cpp | Tests : listes.
|
| test-core-input.cpp | Tests : fonctions d'entrée.
|
||||||
| test-core-network.cpp | Tests : fonctions réseau.
|
| test-core-list.cpp | Tests : listes.
|
||||||
| test-core-secure.cpp | Tests : données sécurisées.
|
| test-core-network.cpp | Tests : fonctions réseau.
|
||||||
| test-core-signal.cpp | Tests : signaux.
|
| test-core-secure.cpp | Tests : données sécurisées.
|
||||||
| test-core-string.cpp | Tests : chaînes.
|
| test-core-signal.cpp | Tests : signaux.
|
||||||
| test-core-url.cpp | Tests : URLs.
|
| test-core-string.cpp | Tests : chaînes.
|
||||||
| test-core-utf8.cpp | Tests : UTF-8.
|
| test-core-sys.cpp | Tests : fonctions système.
|
||||||
| test-core-util.cpp | Tests : fonctions utiles.
|
| test-core-url.cpp | Tests : URLs.
|
||||||
| test-core-sys.cpp | Tests : fonctions système.
|
| test-core-utf8.cpp | Tests : UTF-8.
|
||||||
| hook/ | Racine des tests pour les hooks.
|
| test-core-util.cpp | Tests : fonctions utiles.
|
||||||
| test-hook-command.cpp | Tests : hooks "command".
|
| hook/ | Racine des tests pour les hooks.
|
||||||
| test-hook-command-run.cpp | Tests: hooks "command_run".
|
| test-hook-command.cpp | Tests : hooks "command".
|
||||||
| test-hook-completion.cpp | Tests: hooks "completion".
|
| test-hook-command-run.cpp | Tests : hooks "command_run".
|
||||||
| test-hook-config.cpp | Tests: hooks "config".
|
| test-hook-completion.cpp | Tests : hooks "completion".
|
||||||
| test-hook-connect.cpp | Tests: hooks "connect".
|
| test-hook-config.cpp | Tests : hooks "config".
|
||||||
| test-hook-fd.cpp | Tests: hooks "fd".
|
| test-hook-connect.cpp | Tests : hooks "connect".
|
||||||
| test-hook-focus.cpp | Tests: hooks "focus".
|
| test-hook-fd.cpp | Tests : hooks "fd".
|
||||||
| test-hook-hdata.cpp | Tests: hooks "hdata".
|
| test-hook-focus.cpp | Tests : hooks "focus".
|
||||||
| test-hook-hsignal.cpp | Tests: hooks "hsignal".
|
| test-hook-hdata.cpp | Tests : hooks "hdata".
|
||||||
| test-hook-info-hashtable.cpp | Tests: hooks "info_hashtable".
|
| test-hook-hsignal.cpp | Tests : hooks "hsignal".
|
||||||
| test-hook-info.cpp | Tests: hooks "info".
|
| test-hook-info-hashtable.cpp | Tests : hooks "info_hashtable".
|
||||||
| test-hook-infolist.cpp | Tests: hooks "infolist".
|
| test-hook-info.cpp | Tests : hooks "info".
|
||||||
| test-hook-line.cpp | Tests: hooks "line".
|
| test-hook-infolist.cpp | Tests : hooks "infolist".
|
||||||
| test-hook-modifier.cpp | Tests : hooks "modifier".
|
| test-hook-line.cpp | Tests : hooks "line".
|
||||||
| test-hook-print.cpp | Tests: hooks "print".
|
| test-hook-modifier.cpp | Tests : hooks "modifier".
|
||||||
| test-hook-process.cpp | Tests: hooks "process".
|
| test-hook-print.cpp | Tests : hooks "print".
|
||||||
| test-hook-signal.cpp | Tests: hooks "signal".
|
| test-hook-process.cpp | Tests : hooks "process".
|
||||||
| test-hook-timer.cpp | Tests: hooks "timer".
|
| test-hook-signal.cpp | Tests : hooks "signal".
|
||||||
| test-hook-url.cpp | Tests: hooks "url".
|
| test-hook-timer.cpp | Tests : hooks "timer".
|
||||||
| gui/ | Racine des tests unitaires pour les interfaces.
|
| test-hook-url.cpp | Tests : hooks "url".
|
||||||
| test-gui-bar-window.cpp | Tests : fonctions de fenêtres de barre.
|
| gui/ | Racine des tests unitaires pour les interfaces.
|
||||||
| test-gui-buffer.cpp | Tests : fonctions de tampons.
|
| test-gui-bar-item-custom.cpp | Tests : fonctions d'objets de barre personnalisés.
|
||||||
| test-gui-chat.cpp | Tests : fonctions de discussion.
|
| test-gui-bar-item.cpp | Tests : fonctions d'objets de barre.
|
||||||
| test-gui-color.cpp | Tests : couleurs.
|
| test-gui-bar-window.cpp | Tests : fonctions de fenêtres de barre.
|
||||||
| test-gui-filter.cpp | Tests : filtres.
|
| test-gui-bar.cpp | Tests : fonctions de barres.
|
||||||
| test-gui-hotlist.cpp | Tests : fonctions hotlist.
|
| test-gui-buffer.cpp | Tests : fonctions de tampons.
|
||||||
| test-gui-input.cpp | Tests : fonctions d'entrée.
|
| test-gui-chat.cpp | Tests : fonctions de discussion.
|
||||||
| test-gui-key.cpp | Tests : touches.
|
| test-gui-color.cpp | Tests : couleurs.
|
||||||
| test-gui-line.cpp | Tests : lignes.
|
| test-gui-filter.cpp | Tests : filtres.
|
||||||
| test-gui-nick.cpp | Tests : pseudos.
|
| test-gui-hotlist.cpp | Tests : fonctions hotlist.
|
||||||
| test-gui-nicklist.cpp | Tests : fonctions de liste de pseudos.
|
| test-gui-input.cpp | Tests : fonctions d'entrée.
|
||||||
| curses/ | Racine des tests unitaires pour l'interface Curses.
|
| test-gui-key.cpp | Tests : touches.
|
||||||
| test-gui-curses-mouse.cpp | Tests : souris (interface Curses).
|
| test-gui-line.cpp | Tests : lignes.
|
||||||
| plugins/ | Racine des tests unitaires pour les extensions.
|
| test-gui-nick.cpp | Tests : pseudos.
|
||||||
| irc/ | Racine des tests unitaires pour l'extension IRC.
|
| test-gui-nicklist.cpp | Tests : fonctions de liste de pseudos.
|
||||||
| test-irc-batch.cpp | Tests : évènements batch IRC.
|
| curses/ | Racine des tests unitaires pour l'interface Curses.
|
||||||
| test-irc-buffer.cpp | Tests : tampons IRC.
|
| test-gui-curses-mouse.cpp | Tests : souris (interface Curses).
|
||||||
| test-irc-channel.cpp | Tests : canaux IRC.
|
| scripts/ | Racine des tests de l'API script.
|
||||||
| test-irc-color.cpp | Tests : couleurs IRC.
|
| test-scripts.cpp | Programme utilisé pour lancer les tests de l'API script.
|
||||||
| test-irc-command.cpp | Tests : commandes IRC.
|
| python/ | Scripts Python pour générer et lancer les tests de l'API script.
|
||||||
| test-irc-config.cpp | Tests : configuration IRC.
|
| testapigen.py | Script Python générant des scripts dans tous les languages pour tester l'API script.
|
||||||
| test-irc-ctcp.cpp | Tests : CTCP IRC.
|
| testapi.py | Script Python avec les tests API, utilisé par le script testapigen.py.
|
||||||
| test-irc-ignore.cpp | Tests : ignores IRC.
|
| unparse.py | Conversion de code Python vers d'autres langages, utilisé par le script testapigen.py.
|
||||||
| test-irc-info.cpp | Tests : infos IRC.
|
| plugins/ | Racine des tests unitaires pour les extensions.
|
||||||
| test-irc-join.cpp | Tests : fonctions de join IRC.
|
| test-plugin-api-info.cpp | Tests : fonctions info de l'API extension.
|
||||||
| test-irc-list.cpp | Tests : tampon IRC pour la réponse à la commande /list.
|
| test-plugin-config.cpp | Tests : fonctions config de l'extension.
|
||||||
| test-irc-message.cpp | Tests : messages IRC.
|
| test-plugins.cpp | Tests : extensions.
|
||||||
| test-irc-mode.cpp | Tests : modes IRC.
|
| alias/ | Racine des tests unitaires pour l'extension alias.
|
||||||
| test-irc-nick.cpp | Tests : pseudos IRC.
|
| test-alias.cpp | Tests : alias.
|
||||||
| test-irc-protocol.cpp | Tests : protocole IRC.
|
| irc/ | Racine des tests unitaires pour l'extension IRC.
|
||||||
| test-irc-sasl.cpp | Tests : authentification SASL avec le protocole IRC.
|
| test-irc-batch.cpp | Tests : évènements batch IRC.
|
||||||
| test-irc-server.cpp | Tests : serveur IRC.
|
| test-irc-buffer.cpp | Tests : tampons IRC.
|
||||||
| test-irc-tag.cpp | Tests : étiquettes des messages IRC.
|
| test-irc-channel.cpp | Tests : canaux IRC.
|
||||||
| logger/ | Racine des tests unitaires pour l'extension logger.
|
| test-irc-color.cpp | Tests : couleurs IRC.
|
||||||
| test-logger.cpp | Tests : logger.
|
| test-irc-command.cpp | Tests : commandes IRC.
|
||||||
| test-logger-backlog.cpp | Tests : backlog logger.
|
| test-irc-config.cpp | Tests : configuration IRC.
|
||||||
| test-logger-tail.cpp | Tests : fonctions "tail".
|
| test-irc-ctcp.cpp | Tests : CTCP IRC.
|
||||||
| trigger/ | Racine des tests unitaires pour l'extension trigger.
|
| test-irc-ignore.cpp | Tests : ignores IRC.
|
||||||
| test-trigger.cpp | Tests : triggers.
|
| test-irc-info.cpp | Tests : infos IRC.
|
||||||
| test-trigger-config.cpp | Tests : configuration trigger.
|
| test-irc-join.cpp | Tests : fonctions de join IRC.
|
||||||
| typing/ | Racine des tests unitaires pour l'extension typing.
|
| test-irc-list.cpp | Tests : tampon IRC pour la réponse à la commande /list.
|
||||||
| test-typing.cpp | Tests : typing.
|
| test-irc-message.cpp | Tests : messages IRC.
|
||||||
| test-typing-status.cpp | Tests : statut d'écriture.
|
| test-irc-mode.cpp | Tests : modes IRC.
|
||||||
| relay/ | Racine des tests unitaires pour l'extension Relay.
|
| test-irc-nick.cpp | Tests : pseudos IRC.
|
||||||
| test-relay-auth.cpp | Tests : authentification des clients.
|
| test-irc-protocol.cpp | Tests : protocole IRC.
|
||||||
| test-relay-http.cpp | Tests : fonctions HTTP pour l'extension Relay.
|
| test-irc-sasl.cpp | Tests : authentification SASL avec le protocole IRC.
|
||||||
| test-relay-raw.cpp | Tests : fonctions sur les messages bruts pour l'extension Relay.
|
| test-irc-server.cpp | Tests : serveur IRC.
|
||||||
| test-relay-remote.cpp | Tests : fonctions remote pour l'extension Relay.
|
| test-irc-tag.cpp | Tests : étiquettes des messages IRC.
|
||||||
| test-relay-websocket.cpp | Tests : fonctions websocket pour l'extension Relay.
|
| logger/ | Racine des tests unitaires pour l'extension logger.
|
||||||
| api/ | Racine des tests unitaires pour le protocole relay "api".
|
| test-logger.cpp | Tests : logger.
|
||||||
| test-relay-api.cpp | Tests : protocole relay "api" : fonctions générales.
|
| test-logger-backlog.cpp | Tests : backlog logger.
|
||||||
| test-relay-api-msg.cpp | Tests : protocole relay "api" : messages.
|
| test-logger-tail.cpp | Tests : fonctions "tail".
|
||||||
| test-relay-api-protocol.cpp | Tests : protocole relay "api" : protocole.
|
| relay/ | Racine des tests unitaires pour l'extension Relay.
|
||||||
| irc/ | Racine des tests unitaires pour le protocole relay "irc".
|
| test-relay-auth.cpp | Tests : authentification des clients.
|
||||||
| test-relay-irc.cpp | Tests : protocole relay "irc".
|
| test-relay-bar-item.cpp | Tests : objets de barre pour l'extension Relay.
|
||||||
| xfer/ | Racine des tests unitaires pour l'extension Xfer.
|
| test-relay-http.cpp | Tests : fonctions HTTP pour l'extension Relay.
|
||||||
| test-xfer-file.cpp | Tests : fonctions sur les fichiers.
|
| test-relay-raw.cpp | Tests : fonctions sur les messages bruts pour l'extension Relay.
|
||||||
| test-xfer-network.cpp | Tests : fonctions réseau.
|
| test-relay-remote.cpp | Tests : fonctions remote pour l'extension Relay.
|
||||||
|
| test-relay-websocket.cpp | Tests : fonctions websocket pour l'extension Relay.
|
||||||
|
| api/ | Racine des tests unitaires pour le protocole relay "api".
|
||||||
|
| test-relay-api.cpp | Tests : protocole relay "api" : fonctions générales.
|
||||||
|
| test-relay-api-msg.cpp | Tests : protocole relay "api" : messages.
|
||||||
|
| test-relay-api-protocol.cpp | Tests : protocole relay "api" : protocole.
|
||||||
|
| remote/ | Tests : protocole relay "api" : fonctions "remote" : évènement.
|
||||||
|
| test-relay-remote-event.cpp | Tests : protocole relay "api" : fonctions "remote" : réseau.
|
||||||
|
| test-relay-remote-network.cpp | Tests: Relay "api" protocol: remote network.
|
||||||
|
| irc/ | Racine des tests unitaires pour le protocole relay "irc".
|
||||||
|
| test-relay-irc.cpp | Tests : protocole relay "irc".
|
||||||
|
| trigger/ | Racine des tests unitaires pour l'extension trigger.
|
||||||
|
| test-trigger.cpp | Tests : triggers.
|
||||||
|
| test-trigger-config.cpp | Tests : configuration trigger.
|
||||||
|
| typing/ | Racine des tests unitaires pour l'extension typing.
|
||||||
|
| test-typing.cpp | Tests : typing.
|
||||||
|
| test-typing-status.cpp | Tests : statut d'écriture.
|
||||||
|
| xfer/ | Racine des tests unitaires pour l'extension Xfer.
|
||||||
|
| test-xfer-file.cpp | Tests : fonctions sur les fichiers.
|
||||||
|
| test-xfer-network.cpp | Tests : fonctions réseau.
|
||||||
|===
|
|===
|
||||||
|
|
||||||
[[documentation_translations]]
|
[[documentation_translations]]
|
||||||
@@ -563,20 +597,29 @@ fichiers sont dans le répertoire _po/_ :
|
|||||||
* Dans le code source, vos commentaires, noms de variables, ... doivent être
|
* Dans le code source, vos commentaires, noms de variables, ... doivent être
|
||||||
écrits en anglais *uniquement* (aucune autre langue n'est autorisée).
|
écrits en anglais *uniquement* (aucune autre langue n'est autorisée).
|
||||||
* Utilisez un en-tête de copyright dans chaque nouveau fichier source avec :
|
* Utilisez un en-tête de copyright dans chaque nouveau fichier source avec :
|
||||||
** une brève description du fichier (une seule ligne),
|
** la date
|
||||||
** la date,
|
** le nom
|
||||||
** le nom,
|
** l'e-mail
|
||||||
** l'e-mail,
|
** la licence
|
||||||
** la licence.
|
** une brève description du fichier (une seule ligne).
|
||||||
|
|
||||||
|
Le copyright et la licence doivent être définis en utilisant SPDX (System Package Data Exchange),
|
||||||
|
en suivant les recommandations de REUSE Software
|
||||||
|
(voir la https://reuse.software/spec/[spécification REUSE ^↗^^]).
|
||||||
|
|
||||||
|
Tous les fichiers du dépôt doivent avoir un copyright et une licence valide. +
|
||||||
|
Lorsque l'information ne peut pas être mise dans le fichier lui-même, vous pouvez
|
||||||
|
utiliser le fichier REUSE.toml à la racine du projet.
|
||||||
|
|
||||||
Exemple en C :
|
Exemple en C :
|
||||||
|
|
||||||
|
// REUSE-IgnoreStart
|
||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
/*
|
/*
|
||||||
* weechat.c - core functions for WeeChat
|
* SPDX-FileCopyrightText: 2026 Your Name <your@email.com>
|
||||||
*
|
*
|
||||||
* Copyright (C) 2024 Your Name <your@email.com>
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
*
|
*
|
||||||
* This file is part of WeeChat, the extensible chat client.
|
* This file is part of WeeChat, the extensible chat client.
|
||||||
*
|
*
|
||||||
@@ -593,7 +636,10 @@ Exemple en C :
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
* along with WeeChat. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Core functions for WeeChat */
|
||||||
----
|
----
|
||||||
|
// REUSE-IgnoreEnd
|
||||||
|
|
||||||
[[coding_c_style]]
|
[[coding_c_style]]
|
||||||
=== Style C
|
=== Style C
|
||||||
@@ -614,9 +660,9 @@ Exemple :
|
|||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
/*
|
/*
|
||||||
* Checks if a string with boolean value is valid.
|
* Check if a string with boolean value is valid.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Return:
|
||||||
* 1: boolean value is valid
|
* 1: boolean value is valid
|
||||||
* 0: boolean value is NOT valid
|
* 0: boolean value is NOT valid
|
||||||
*/
|
*/
|
||||||
@@ -897,9 +943,9 @@ Exemple : création d'une nouvelle fenêtre (de _src/gui/gui-window.c_) :
|
|||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
/*
|
/*
|
||||||
* Creates a new window.
|
* Create a new window.
|
||||||
*
|
*
|
||||||
* Returns pointer to new window, NULL if error.
|
* Return pointer to new window, NULL if error.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct t_gui_window *
|
struct t_gui_window *
|
||||||
@@ -1192,7 +1238,7 @@ server->hook_timer_sasl = weechat_hook_timer (timeout * 1000,
|
|||||||
Le dépôt Git est sur https://github.com/weechat/weechat[GitHub ^↗^^].
|
Le dépôt Git est sur https://github.com/weechat/weechat[GitHub ^↗^^].
|
||||||
|
|
||||||
Tout patch pour un bug ou une nouvelle fonctionnalité doit être effectué sur la
|
Tout patch pour un bug ou une nouvelle fonctionnalité doit être effectué sur la
|
||||||
branche master, le format préféré étant une "pull request" sur GitHub. Un patch
|
branche `main`, le format préféré étant une "pull request" sur GitHub. Un patch
|
||||||
peut aussi être envoyé par e-mail (fait avec `git diff` ou `git format-patch`).
|
peut aussi être envoyé par e-mail (fait avec `git diff` ou `git format-patch`).
|
||||||
|
|
||||||
Le format du message de commit est le suivant (avec fermeture automatique
|
Le format du message de commit est le suivant (avec fermeture automatique
|
||||||
@@ -1240,9 +1286,13 @@ Où _composant_ est :
|
|||||||
debian-stable/*
|
debian-stable/*
|
||||||
| Empaquetage Debian
|
| Empaquetage Debian
|
||||||
|
|
||||||
| tests
|
| tests/fuzz
|
||||||
| tests/*
|
| tests/fuzz/*
|
||||||
| Tests
|
| Fuzzing (tests à données aléatoires)
|
||||||
|
|
||||||
|
| tests/unit
|
||||||
|
| tests/unit/*
|
||||||
|
| Tests unitaires
|
||||||
|
|
||||||
| doc
|
| doc
|
||||||
| doc/*
|
| doc/*
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= WeeChat FAQ (Questions Fréquemment Posées)
|
= WeeChat FAQ (Questions Fréquemment Posées)
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: fr
|
:lang: fr
|
||||||
:toc-title: Table des matières
|
include::includes/attributes-fr.adoc[]
|
||||||
|
|
||||||
== Général
|
== Général
|
||||||
|
|
||||||
@@ -453,7 +457,7 @@ pour plus d'information sur la gestion des couleurs.
|
|||||||
[[search_text]]
|
[[search_text]]
|
||||||
=== Comment puis-je chercher du texte dans le tampon (comme /lastlog dans irssi) ?
|
=== Comment puis-je chercher du texte dans le tampon (comme /lastlog dans irssi) ?
|
||||||
|
|
||||||
La touche par défaut est kbd:[Ctrl+r] (la commande est : `+/input search_text_here+`).
|
La touche par défaut est kbd:[Ctrl+s] (la commande est : `+/input search_text_here+`).
|
||||||
Et sauter aux highlights : kbd:[Alt+p] / kbd:[Alt+n].
|
Et sauter aux highlights : kbd:[Alt+p] / kbd:[Alt+n].
|
||||||
|
|
||||||
Voir le link:weechat_user.fr.html#key_bindings[Guide utilisateur / Raccourcis clavier par défaut ^↗^^]
|
Voir le link:weechat_user.fr.html#key_bindings[Guide utilisateur / Raccourcis clavier par défaut ^↗^^]
|
||||||
@@ -785,7 +789,7 @@ Vous pouvez essayer une chaîne de priorité différente, remplacez "xxx" par
|
|||||||
le nom de votre serveur :
|
le nom de votre serveur :
|
||||||
|
|
||||||
----
|
----
|
||||||
/set irc.server.xxx.tls_priorities "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0:+VERS-SSL3.0:%COMPAT"
|
/set irc.server.xxx.tls_priorities "NORMAL:%COMPAT"
|
||||||
----
|
----
|
||||||
|
|
||||||
[[irc_tls_libera]]
|
[[irc_tls_libera]]
|
||||||
@@ -1288,7 +1292,7 @@ $ LD_PRELOAD=/lib/libpthread.so.0 gdb /path/to/weechat
|
|||||||
[[supported_os]]
|
[[supported_os]]
|
||||||
=== Quelle est la liste des plates-formes supportées par WeeChat ? Sera-t-il porté sur d'autres systèmes d'exploitation ?
|
=== Quelle est la liste des plates-formes supportées par WeeChat ? Sera-t-il porté sur d'autres systèmes d'exploitation ?
|
||||||
|
|
||||||
WeeChat tourne bien sur la plupart des distributions Linux/BSD, GNU/Hurd, Mac OS
|
WeeChat tourne bien sur la plupart des distributions Linux/BSD, GNU/Hurd, macOS
|
||||||
et Windows (Cygwin et Windows Subsystem for Linux).
|
et Windows (Cygwin et Windows Subsystem for Linux).
|
||||||
|
|
||||||
Nous faisons le maximum pour supporter le plus de plates-formes possible.
|
Nous faisons le maximum pour supporter le plus de plates-formes possible.
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= Référence API extension WeeChat
|
= Référence API extension WeeChat
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: fr
|
:lang: fr
|
||||||
:toc-title: Table des matières
|
include::includes/attributes-fr.adoc[]
|
||||||
|
|
||||||
Ce manuel documente le client de messagerie instantanée WeeChat, il fait
|
Ce manuel documente le client de messagerie instantanée WeeChat, il fait
|
||||||
partie de WeeChat.
|
partie de WeeChat.
|
||||||
@@ -2201,7 +2205,7 @@ Paramètres :
|
|||||||
Valeur de retour :
|
Valeur de retour :
|
||||||
|
|
||||||
* tableau de chaînes, NULL en cas de problème (doit être supprimé par un appel à
|
* tableau de chaînes, NULL en cas de problème (doit être supprimé par un appel à
|
||||||
<<_free_split_command,free_split_command>> après utilisation)
|
<<_string_free_split_command,string_free_split_command>> après utilisation)
|
||||||
|
|
||||||
Exemple en C :
|
Exemple en C :
|
||||||
|
|
||||||
@@ -4699,11 +4703,201 @@ if (weechat_file_compress ("/tmp/test.txt", "/tmp/test.txt.zst", "zstd", 50))
|
|||||||
[NOTE]
|
[NOTE]
|
||||||
Cette fonction n'est pas disponible dans l'API script.
|
Cette fonction n'est pas disponible dans l'API script.
|
||||||
|
|
||||||
|
==== file_compare
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.7.0._
|
||||||
|
|
||||||
|
Compare the content of two files.
|
||||||
|
|
||||||
|
Prototype:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int weechat_file_compare (const char *filename1, const char *filename2);
|
||||||
|
----
|
||||||
|
|
||||||
|
Arguments:
|
||||||
|
|
||||||
|
* _filename1_: first file to compare
|
||||||
|
* _filename2_: second file to compare
|
||||||
|
|
||||||
|
Return value:
|
||||||
|
|
||||||
|
* 0: both files have same content
|
||||||
|
* 1: content is different
|
||||||
|
* 2: error (file not found or read error)
|
||||||
|
|
||||||
|
C example:
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
if (weechat_file_compare ("/tmp/test.txt", "/tmp/test2.txt") == 0)
|
||||||
|
{
|
||||||
|
/* same content */
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
This function is not available in scripting API.
|
||||||
|
|
||||||
[[util]]
|
[[util]]
|
||||||
=== Util
|
=== Util
|
||||||
|
|
||||||
Quelques fonctions utiles.
|
Quelques fonctions utiles.
|
||||||
|
|
||||||
|
==== util_parse_int
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.8.0._
|
||||||
|
|
||||||
|
Analyser un nombre entier de type "int" dans une chaîne.
|
||||||
|
|
||||||
|
Prototype :
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int weechat_util_parse_int (const char *string, int base, int *result);
|
||||||
|
----
|
||||||
|
|
||||||
|
Paramètres :
|
||||||
|
|
||||||
|
* _string_ : chaîne à analyser
|
||||||
|
* _base_ : peut être 0 (automatique) ou un entier entre 2 et 36 (inclus)
|
||||||
|
* _result_ : pointeur vers une variable mise à jour si la chaîne est correctement analysée
|
||||||
|
(si le pointeur est NULL, le nombre trouvé n'est pas retourné)
|
||||||
|
|
||||||
|
Valeur de retour :
|
||||||
|
|
||||||
|
* 1 : OK
|
||||||
|
* 0 : erreur
|
||||||
|
|
||||||
|
Les chaînes suivantes sont invalides et la fonction retourne 0 :
|
||||||
|
|
||||||
|
* chaîne vide
|
||||||
|
* nombre avec des caractères non numériques après
|
||||||
|
* nombre < INT_MIN (valeur minimale pour une variable de type "int")
|
||||||
|
* nombre > INT_MAX (valeur maximale pour une variable de type "int")
|
||||||
|
* entier invalide pour la _base_ donnée
|
||||||
|
|
||||||
|
Exemples en C :
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int nombre;
|
||||||
|
if (weechat_util_parse_int ("1234", 10, &nombre))
|
||||||
|
{
|
||||||
|
/* nombre == 1234 */
|
||||||
|
}
|
||||||
|
if (!weechat_util_parse_int ("abc", 10, &nombre))
|
||||||
|
{
|
||||||
|
/* erreur d'analyse, nombre est inchangé */
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
Cette fonction n'est pas disponible dans l'API script.
|
||||||
|
|
||||||
|
==== util_parse_long
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.8.0._
|
||||||
|
|
||||||
|
Analyser un nombre entier de type "long" dans une chaîne.
|
||||||
|
|
||||||
|
Prototype :
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int weechat_util_parse_long (const char *string, int base, long *result);
|
||||||
|
----
|
||||||
|
|
||||||
|
Paramètres :
|
||||||
|
|
||||||
|
* _string_ : chaîne à analyser
|
||||||
|
* _base_ : peut être 0 (automatique) ou un entier entre 2 et 36 (inclus)
|
||||||
|
* _result_ : pointeur vers une variable mise à jour si la chaîne est correctement analysée
|
||||||
|
(si le pointeur est NULL, le nombre trouvé n'est pas retourné)
|
||||||
|
|
||||||
|
Valeur de retour :
|
||||||
|
|
||||||
|
* 1 : OK
|
||||||
|
* 0 : erreur
|
||||||
|
|
||||||
|
Les chaînes suivantes sont invalides et la fonction retourne 0 :
|
||||||
|
|
||||||
|
* chaîne vide
|
||||||
|
* nombre avec des caractères non numériques après
|
||||||
|
* nombre < LONG_MIN (valeur minimale pour une variable de type "long")
|
||||||
|
* nombre > LONG_MAX (valeur maximale pour une variable de type "long")
|
||||||
|
* entier invalide pour la _base_ donnée
|
||||||
|
|
||||||
|
Exemples en C :
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
long nombre;
|
||||||
|
if (weechat_util_parse_long ("1234", 10, &nombre))
|
||||||
|
{
|
||||||
|
/* nombre == 1234 */
|
||||||
|
}
|
||||||
|
if (!weechat_util_parse_long ("abc", 10, &nombre))
|
||||||
|
{
|
||||||
|
/* erreur d'analyse, nombre est inchangé */
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
Cette fonction n'est pas disponible dans l'API script.
|
||||||
|
|
||||||
|
==== util_parse_longlong
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.8.0._
|
||||||
|
|
||||||
|
Analyser un nombre entier de type "long long" dans une chaîne.
|
||||||
|
|
||||||
|
Prototype :
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int weechat_util_parse_longlong (const char *string, int base, long long *result);
|
||||||
|
----
|
||||||
|
|
||||||
|
Paramètres :
|
||||||
|
|
||||||
|
* _string_ : chaîne à analyser
|
||||||
|
* _base_ : peut être 0 (automatique) ou un entier entre 2 et 36 (inclus)
|
||||||
|
* _result_ : pointeur vers une variable mise à jour si la chaîne est correctement analysée
|
||||||
|
(si le pointeur est NULL, le nombre trouvé n'est pas retourné)
|
||||||
|
|
||||||
|
Valeur de retour :
|
||||||
|
|
||||||
|
* 1 : OK
|
||||||
|
* 0 : erreur
|
||||||
|
|
||||||
|
Les chaînes suivantes sont invalides et la fonction retourne 0 :
|
||||||
|
|
||||||
|
* chaîne vide
|
||||||
|
* nombre avec des caractères non numériques après
|
||||||
|
* nombre < LLONG_MIN (valeur minimale pour une variable de type "long long")
|
||||||
|
* nombre > LLONG_MAX (valeur maximale pour une variable de type "long long")
|
||||||
|
* entier invalide pour la _base_ donnée
|
||||||
|
|
||||||
|
Exemples en C :
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
long long nombre;
|
||||||
|
if (weechat_util_parse_longlong ("1234", 10, &nombre))
|
||||||
|
{
|
||||||
|
/* nombre == 1234 */
|
||||||
|
}
|
||||||
|
if (!weechat_util_parse_longlong ("abc", 10, &nombre))
|
||||||
|
{
|
||||||
|
/* erreur d'analyse, nombre est inchangé */
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
Cette fonction n'est pas disponible dans l'API script.
|
||||||
|
|
||||||
==== util_timeval_cmp
|
==== util_timeval_cmp
|
||||||
|
|
||||||
Comparer deux structures "timeval".
|
Comparer deux structures "timeval".
|
||||||
@@ -4841,7 +5035,7 @@ Cette fonction n'est pas disponible dans l'API script.
|
|||||||
|
|
||||||
==== util_strftimeval
|
==== util_strftimeval
|
||||||
|
|
||||||
_WeeChat ≥ 4.2.0, mis à jour dans la 4.3.0._
|
_WeeChat ≥ 4.2.0, mis à jour dans la 4.3.0, 4.7.0._
|
||||||
|
|
||||||
Formatter la date et l'heure comme la fonction `strftime` de la bibliothèque C,
|
Formatter la date et l'heure comme la fonction `strftime` de la bibliothèque C,
|
||||||
en utilisant un `struct timeval` en entrée et en supportant des caractères de
|
en utilisant un `struct timeval` en entrée et en supportant des caractères de
|
||||||
@@ -4860,6 +5054,8 @@ Paramètres :
|
|||||||
* _max_ : taille de la chaîne
|
* _max_ : taille de la chaîne
|
||||||
* _format_ : format, le même que celui de la fonction _strftime_, avec des
|
* _format_ : format, le même que celui de la fonction _strftime_, avec des
|
||||||
caractères de conversion supplémentaires :
|
caractères de conversion supplémentaires :
|
||||||
|
** `%@` : retourner la date exprimée en Temps Universel Coordonné (UTC)
|
||||||
|
au lieu de la date relative au fuseau horaire de l'utilisateur _(WeeChat ≥ 4.7.0)_
|
||||||
** `%.N` où `N` est entre 1 and 6: microsecondes remplies avec des zéros sur
|
** `%.N` où `N` est entre 1 and 6: microsecondes remplies avec des zéros sur
|
||||||
N chiffres (par exemple `%.3` pour les millisecondes)
|
N chiffres (par exemple `%.3` pour les millisecondes)
|
||||||
** `%f` : alias de `%.6`
|
** `%f` : alias de `%.6`
|
||||||
@@ -4876,8 +5072,8 @@ Exemple en C :
|
|||||||
char time[256];
|
char time[256];
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
gettimeofday (&tv, NULL);
|
gettimeofday (&tv, NULL);
|
||||||
weechat_util_strftimeval (time, sizeof (time), "%FT%T.%f", &tv);
|
weechat_util_strftimeval (time, sizeof (time), "%@%FT%T.%fZ", &tv);
|
||||||
/* résultat : 2023-12-26T18:10:04.460509 */
|
/* résultat : 2023-12-26T18:10:04.460509Z */
|
||||||
----
|
----
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
@@ -4885,7 +5081,7 @@ Cette fonction n'est pas disponible dans l'API script.
|
|||||||
|
|
||||||
==== util_parse_time
|
==== util_parse_time
|
||||||
|
|
||||||
_WeeChat ≥ 4.2.0._
|
_WeeChat ≥ 4.2.0, mis à jour dans la 4.8.0._
|
||||||
|
|
||||||
Analyser la date/heure avec le support des microsecondes.
|
Analyser la date/heure avec le support des microsecondes.
|
||||||
|
|
||||||
@@ -4898,20 +5094,108 @@ int util_parse_time (const char *datetime, struct timeval *tv);
|
|||||||
|
|
||||||
Paramètres :
|
Paramètres :
|
||||||
|
|
||||||
* _date_ : date/heure
|
* _date_ : date/heure (voir les formats supportés ci-dessous)
|
||||||
* _tv_: date/heure analysée (structure "timeval")
|
* _tv_: date/heure analysée (structure "timeval")
|
||||||
|
|
||||||
|
Les formats supportés pour la date/heure (en supposant que l'heure courante est
|
||||||
|
`2025-08-30 21:04:55` (Europe/Paris), donc avec le décalage horaire `+02:00`,
|
||||||
|
l'heure UTC étant `19:04:55`) :
|
||||||
|
|
||||||
|
[width="70%",cols="5,6m",options="header"]
|
||||||
|
|===
|
||||||
|
| Format | Exemples
|
||||||
|
|
||||||
|
| Date (minuit)
|
||||||
|
| 2025-08-30
|
||||||
|
|
||||||
|
| ISO 8601, date + heure locale
|
||||||
|
| 2025-08-30T21:04:55 +
|
||||||
|
2025-08-30T21:04:55.123456
|
||||||
|
|
||||||
|
| ISO 8601, date + heure locale + décalage horaire
|
||||||
|
| 2025-08-30T16:04:55-03 +
|
||||||
|
2025-08-30T16:04:55-0300 +
|
||||||
|
2025-08-30T21:04:55+0200 +
|
||||||
|
2025-08-30T21:04:55+02:00 +
|
||||||
|
2025-08-30T21:04:55.123456+0200
|
||||||
|
|
||||||
|
| ISO 8601, date + heure UTC
|
||||||
|
| 2025-08-30T19:04:55Z +
|
||||||
|
2025-08-30T19:04:55.123456Z
|
||||||
|
|
||||||
|
| RFC 3339, date + heure locale
|
||||||
|
| 2025-08-30 21:04:55 +
|
||||||
|
2025-08-30 21:04:55.123456
|
||||||
|
|
||||||
|
| RFC 3339, date + heure locale + décalage horaire
|
||||||
|
| 2025-08-30 16:04:55-03 +
|
||||||
|
2025-08-30 16:04:55-0300 +
|
||||||
|
2025-08-30 21:04:55+0200 +
|
||||||
|
2025-08-30 21:04:55 +0200 +
|
||||||
|
2025-08-30 21:04:55+02:00 +
|
||||||
|
2025-08-30 21:04:55 +02:00 +
|
||||||
|
2025-08-30 21:04:55.123456+0200 +
|
||||||
|
2025-08-30 21:04:55.123456 +02:00
|
||||||
|
|
||||||
|
| RFC 3339, date + heure UTC
|
||||||
|
| 2025-08-30 19:04:55Z +
|
||||||
|
2025-08-30 19:04:55.123456Z
|
||||||
|
|
||||||
|
| Heure locale
|
||||||
|
| 21:04:55 +
|
||||||
|
21:04:55.123456
|
||||||
|
|
||||||
|
| Heure locale + décalage horaire
|
||||||
|
| 16:04:55-03 +
|
||||||
|
16:04:55-0300 +
|
||||||
|
21:04:55+0200 +
|
||||||
|
21:04:55 +0200 +
|
||||||
|
21:04:55+02:00 +
|
||||||
|
21:04:55 +02:00 +
|
||||||
|
21:04:55.123456+0200 +
|
||||||
|
21:04:55.123456 +02:00
|
||||||
|
|
||||||
|
| Heure UTC
|
||||||
|
| 19:04:55Z +
|
||||||
|
19:04:55.123456Z
|
||||||
|
|
||||||
|
| Date d'horodatage
|
||||||
|
| 1756580695 +
|
||||||
|
1756580695.123456 +
|
||||||
|
1756580695,123456
|
||||||
|
|===
|
||||||
|
|
||||||
|
Notes :
|
||||||
|
|
||||||
|
* Pour ISO 8601, le séparateur entre la date et l'heure est `T` (majuscule) ou
|
||||||
|
`t` (minuscule).
|
||||||
|
* Pour l'heure UTC, le caractère final est `Z` (majuscule) ou `z` (minuscule).
|
||||||
|
* Le format du décalage horaire est l'un des suivants :
|
||||||
|
** `++[+/-]hh:mm++` (heures et minutes)
|
||||||
|
** `++[+/-]hhmm++` (heures et minutes)
|
||||||
|
** `++[+/-]hh++` (heures).
|
||||||
|
* La précision après les secondes peut aller d'un dixième de seconde (1 chiffre,
|
||||||
|
par exemple `21:04:55.1`) à une microseconde (6 chiffres, par exemple `21:04:55.123456`). +
|
||||||
|
Un point (`.`) ou une virgule (`,`) peut séparer les secondes des autres chiffres.
|
||||||
|
|
||||||
Valeur de retour :
|
Valeur de retour :
|
||||||
|
|
||||||
* 1 si OK, 0 si erreur
|
* 1 si OK, 0 si erreur
|
||||||
|
|
||||||
Exemple en C :
|
Exemples en C :
|
||||||
|
|
||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
weechat_util_parse_time ("2023-12-25T10:29:09.456789Z", &tv); /* == 1 */
|
|
||||||
/* result: tv.tv_sec == 1703500149, tv.tv_usec = 456789 */
|
weechat_util_parse_time ("2025-08-30T19:04:55.123456Z", &tv); /* == 1 */
|
||||||
|
/* résultat : tv.tv_sec == 1756580695, tv.tv_usec = 123456 */
|
||||||
|
|
||||||
|
weechat_util_parse_time ("2025-08-30 21:04:55.123456 +02:00", &tv); /* == 1 */
|
||||||
|
/* même résultat */
|
||||||
|
|
||||||
|
weechat_util_parse_time ("21:04:55.123456", &tv); /* == 1 */
|
||||||
|
/* même résultat */
|
||||||
----
|
----
|
||||||
|
|
||||||
[NOTE]
|
[NOTE]
|
||||||
@@ -4919,7 +5203,7 @@ Cette fonction n'est pas disponible dans l'API script.
|
|||||||
|
|
||||||
==== util_version_number
|
==== util_version_number
|
||||||
|
|
||||||
_WeeChat ≥ 0.3.9._
|
_WeeChat ≥ 0.3.9, mis à jour dans la 4.7.0._
|
||||||
|
|
||||||
Convertir une chaîne avec la version WeeChat en nombre.
|
Convertir une chaîne avec la version WeeChat en nombre.
|
||||||
|
|
||||||
@@ -4927,7 +5211,7 @@ Prototype :
|
|||||||
|
|
||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
int weechat_util_version_number (const char *version);
|
unsigned long weechat_util_version_number (const char *version);
|
||||||
----
|
----
|
||||||
|
|
||||||
Paramètres :
|
Paramètres :
|
||||||
@@ -8256,7 +8540,7 @@ def config_boolean_inherited(option: str) -> int: ...
|
|||||||
|
|
||||||
# exemple
|
# exemple
|
||||||
option = weechat.config_get("irc.server.libera.autoconnect")
|
option = weechat.config_get("irc.server.libera.autoconnect")
|
||||||
autoconect = weechat.config_boolean_inherited(option)
|
autoconnect = weechat.config_boolean_inherited(option)
|
||||||
----
|
----
|
||||||
|
|
||||||
==== config_integer
|
==== config_integer
|
||||||
@@ -9487,6 +9771,95 @@ elif rc == weechat.WEECHAT_CONFIG_OPTION_UNSET_ERROR:
|
|||||||
# ...
|
# ...
|
||||||
----
|
----
|
||||||
|
|
||||||
|
[[themes]]
|
||||||
|
=== Thèmes
|
||||||
|
|
||||||
|
Fonctions permettant de contribuer des surcharges d'options de couleur
|
||||||
|
(et autres options modifiables par un thème) à des thèmes intégrés.
|
||||||
|
Voir la section
|
||||||
|
link:weechat_user.fr.html#themes[guide utilisateur / Thèmes] pour le
|
||||||
|
côté utilisateur final et la commande `+/theme+`.
|
||||||
|
|
||||||
|
==== theme_register
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.10.0._
|
||||||
|
|
||||||
|
Enregistrer une contribution de surcharges d'options sous un thème
|
||||||
|
nommé. L'extension appelante est le propriétaire de la contribution ;
|
||||||
|
les appels suivants avec le même nom de thème depuis la même extension
|
||||||
|
sont fusionnés dans la contribution existante (en cas de doublons, les
|
||||||
|
dernières clés gagnent).
|
||||||
|
|
||||||
|
Lorsque l'extension appelante est déchargée, toutes ses contributions
|
||||||
|
sont automatiquement retirées de tous les thèmes.
|
||||||
|
|
||||||
|
Prototype :
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
struct t_theme *weechat_theme_register (const char *name,
|
||||||
|
struct t_hashtable *overrides);
|
||||||
|
----
|
||||||
|
|
||||||
|
Paramètres :
|
||||||
|
|
||||||
|
* _name_ : nom du thème (par exemple `+light+` ou un nom personnalisé)
|
||||||
|
* _overrides_ : table de hachage associant des noms d'options complets
|
||||||
|
(par exemple `+irc.color.input_nick+`) à leurs valeurs chaîne ;
|
||||||
|
l'appelant en conserve la propriété et peut la libérer juste après
|
||||||
|
l'appel
|
||||||
|
|
||||||
|
Valeur de retour :
|
||||||
|
|
||||||
|
* pointeur vers le thème enregistré (existant ou nouvellement créé),
|
||||||
|
NULL en cas d'erreur
|
||||||
|
|
||||||
|
Exemple en C :
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
struct t_hashtable *overrides = weechat_hashtable_new (
|
||||||
|
8,
|
||||||
|
WEECHAT_HASHTABLE_STRING,
|
||||||
|
WEECHAT_HASHTABLE_STRING,
|
||||||
|
NULL, NULL);
|
||||||
|
if (overrides)
|
||||||
|
{
|
||||||
|
weechat_hashtable_set (overrides, "irc.color.input_nick", "cyan");
|
||||||
|
weechat_hashtable_set (overrides, "irc.color.topic_old", "darkgray");
|
||||||
|
weechat_theme_register ("light", overrides);
|
||||||
|
weechat_hashtable_free (overrides);
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
Script (Python) :
|
||||||
|
|
||||||
|
[source,python]
|
||||||
|
----
|
||||||
|
# prototype
|
||||||
|
def theme_register(name: str, overrides: Dict[str, str]) -> str: ...
|
||||||
|
|
||||||
|
# exemple
|
||||||
|
weechat.theme_register("light", {
|
||||||
|
"irc.color.input_nick": "cyan",
|
||||||
|
"irc.color.topic_old": "darkgray",
|
||||||
|
})
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
Seules les options possédant le flag _themable_ seront modifiées par
|
||||||
|
`/theme apply`. Toutes les options `*.color.*` sont modifiables par
|
||||||
|
défaut ; les options de type chaîne contenant des références
|
||||||
|
`+${color:...}+` sont explicitement déclarées comme modifiables. Les
|
||||||
|
entrées ciblant des options non modifiables sont silencieusement
|
||||||
|
ignorées au moment de l'application avec un avertissement écrit sur
|
||||||
|
le tampon _core_.
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
Lorsqu'elle est appelée depuis un script, la contribution est
|
||||||
|
automatiquement retirée lorsque le script est déchargé (aucun nettoyage
|
||||||
|
manuel n'est nécessaire).
|
||||||
|
|
||||||
[[key_bindings]]
|
[[key_bindings]]
|
||||||
=== Associations de touches
|
=== Associations de touches
|
||||||
|
|
||||||
@@ -9568,7 +9941,7 @@ _WeeChat ≥ 0.3.6, mis à jour dans la 2.0._
|
|||||||
|
|
||||||
Supprimer une/des association(s) de touche(s).
|
Supprimer une/des association(s) de touche(s).
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
Lors de l'appel à cette fonction, assurez-vous que vous n'allez pas supprimer
|
Lors de l'appel à cette fonction, assurez-vous que vous n'allez pas supprimer
|
||||||
une touche définie par l'utilisateur.
|
une touche définie par l'utilisateur.
|
||||||
|
|
||||||
@@ -11185,6 +11558,11 @@ _WeeChat ≥ 4.1.0._
|
|||||||
|
|
||||||
Transfert d'URL.
|
Transfert d'URL.
|
||||||
|
|
||||||
|
Cette fonction est similaire à <<_hook_process,hook_process>> et
|
||||||
|
<<_hook_process_hashtable,hook_process_hashtable>> avec la commande "url:..."
|
||||||
|
mais elle utilise un thread au lieu d'un nouveau processus, la rendant plus
|
||||||
|
légère et donc recommandée pour cet usage.
|
||||||
|
|
||||||
Prototype :
|
Prototype :
|
||||||
|
|
||||||
[source,c]
|
[source,c]
|
||||||
@@ -11222,6 +11600,16 @@ Paramètres :
|
|||||||
*** _output_ : sortie standard (défini seulement si _file_out_ n'était pas défini
|
*** _output_ : sortie standard (défini seulement si _file_out_ n'était pas défini
|
||||||
dans les options)
|
dans les options)
|
||||||
*** _error_ : message d'erreur (défini seulement en cas d'erreur)
|
*** _error_ : message d'erreur (défini seulement en cas d'erreur)
|
||||||
|
*** _error_code_ : code d'erreur (entier, défini seulement en cas d'erreur) :
|
||||||
|
**** `1` : URL invalide
|
||||||
|
**** `2` : erreur de transfert (erreur Curl)
|
||||||
|
**** `3` : mémoire insuffisante
|
||||||
|
**** `4` : erreur de fichier
|
||||||
|
**** `5` : transfert stoppé (hook supprimé durant le transfert)
|
||||||
|
**** `6` : délai d'attente dépassé pour le transfert ("timeout")
|
||||||
|
**** `100` : erreur de création du thread
|
||||||
|
*** _error_code_pthread_ : code retour de la fonction _pthread_create_
|
||||||
|
(entier, défini seulement si _error_code_ vaut `100`)
|
||||||
** valeur de retour :
|
** valeur de retour :
|
||||||
*** _WEECHAT_RC_OK_
|
*** _WEECHAT_RC_OK_
|
||||||
*** _WEECHAT_RC_ERROR_
|
*** _WEECHAT_RC_ERROR_
|
||||||
@@ -11808,7 +12196,7 @@ Exemple en C :
|
|||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
int
|
int
|
||||||
my_line_cb (const void *pointer, void *data, struct t_hasbtable *line)
|
my_line_cb (const void *pointer, void *data, struct t_hashtable *line)
|
||||||
{
|
{
|
||||||
struct t_hashtable *hashtable;
|
struct t_hashtable *hashtable;
|
||||||
|
|
||||||
@@ -12740,7 +13128,7 @@ hook = weechat.hook_signal("quit;upgrade", "my_signal_cb", "")
|
|||||||
|
|
||||||
==== hook_signal_send
|
==== hook_signal_send
|
||||||
|
|
||||||
_Mis à jour dans la 1.0._
|
_Mis à jour dans la 1.0, 4.5.0._
|
||||||
|
|
||||||
Envoyer un signal.
|
Envoyer un signal.
|
||||||
|
|
||||||
@@ -12754,11 +13142,23 @@ int weechat_hook_signal_send (const char *signal, const char *type_data,
|
|||||||
|
|
||||||
Paramètres :
|
Paramètres :
|
||||||
|
|
||||||
* _signal_ : signal à envoyer
|
* _signal_ : signal à envoyer ; des drapeaux sont autorisés avant le nom du signal
|
||||||
|
(voir ci-dessous) _(WeeChat ≥ 4.5.0)_
|
||||||
* _type_data_ : type de données à envoyer avec le signal (voir
|
* _type_data_ : type de données à envoyer avec le signal (voir
|
||||||
<<_hook_signal,hook_signal>>)
|
<<_hook_signal,hook_signal>>)
|
||||||
* _signal_data_ : données envoyées avec le signal
|
* _signal_data_ : données envoyées avec le signal
|
||||||
|
|
||||||
|
Le nom du signal peut contenir des drapeaux avec le format suivant : `[flags:xxx,yyy]signal`
|
||||||
|
où `xxx` et `yyy` sont des noms de drapeaux et `signal` le nom du signal. +
|
||||||
|
Les drapeaux suivants sont supportés :
|
||||||
|
|
||||||
|
* _stop_on_error_ : sortir immédiatement si une fonction de rappel retourne
|
||||||
|
WEECHAT_RC_ERROR (les autres fonctions de rappel ne sont donc PAS exécutées)
|
||||||
|
_(WeeChat ≥ 4.5.0)_
|
||||||
|
* _ignore_eat_ : considérer que toute fonction de rappel renvoyant WEECHAT_RC_OK_EAT
|
||||||
|
est en fait WEECHAT_RC_OK et exécuter les fonctions de rappel restantes
|
||||||
|
_(WeeChat ≥ 4.5.0)_
|
||||||
|
|
||||||
Valeur de retour _(WeeChat ≥ 1.0)_ :
|
Valeur de retour _(WeeChat ≥ 1.0)_ :
|
||||||
|
|
||||||
* code retour de la dernière fonction de rappel exécutée (_WEECHAT_RC_OK_ si
|
* code retour de la dernière fonction de rappel exécutée (_WEECHAT_RC_OK_ si
|
||||||
@@ -12772,6 +13172,8 @@ Exemple en C :
|
|||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
int rc = weechat_hook_signal_send ("mon_signal", WEECHAT_HOOK_SIGNAL_STRING, ma_chaine);
|
int rc = weechat_hook_signal_send ("mon_signal", WEECHAT_HOOK_SIGNAL_STRING, ma_chaine);
|
||||||
|
int rc2 = weechat_hook_signal_send ("[flags:stop_on_error,ignore_eat]my_signal2",
|
||||||
|
WEECHAT_HOOK_SIGNAL_STRING, my_string);
|
||||||
----
|
----
|
||||||
|
|
||||||
Script (Python) :
|
Script (Python) :
|
||||||
@@ -12781,8 +13183,10 @@ Script (Python) :
|
|||||||
# prototype
|
# prototype
|
||||||
def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ...
|
def hook_signal_send(signal: str, type_data: str, signal_data: str) -> int: ...
|
||||||
|
|
||||||
# exemple
|
# exemples
|
||||||
rc = weechat.hook_signal_send("mon_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, ma_chaine)
|
rc = weechat.hook_signal_send("mon_signal", weechat.WEECHAT_HOOK_SIGNAL_STRING, ma_chaine)
|
||||||
|
rc2 = weechat.hook_signal_send("[flags:stop_on_error,ignore_eat]my_signal2",
|
||||||
|
weechat.WEECHAT_HOOK_SIGNAL_STRING, my_string)
|
||||||
----
|
----
|
||||||
|
|
||||||
[[signal_logger_backlog]]
|
[[signal_logger_backlog]]
|
||||||
@@ -13076,7 +13480,7 @@ hook = weechat.hook_hsignal("test", "my_hsignal_cb", "")
|
|||||||
|
|
||||||
==== hook_hsignal_send
|
==== hook_hsignal_send
|
||||||
|
|
||||||
_WeeChat ≥ 0.3.4, mis à jour dans la 1.0._
|
_WeeChat ≥ 0.3.4, mis à jour dans la 1.0, 4.5.0._
|
||||||
|
|
||||||
Envoyer un hsignal (signal avec table de hachage).
|
Envoyer un hsignal (signal avec table de hachage).
|
||||||
|
|
||||||
@@ -13089,7 +13493,8 @@ int weechat_hook_hsignal_send (const char *signal, struct t_hashtable *hashtable
|
|||||||
|
|
||||||
Paramètres :
|
Paramètres :
|
||||||
|
|
||||||
* _signal_ : signal à envoyer
|
* _signal_ : signal à envoyer ; des drapeaux sont autorisés avant le nom du signal
|
||||||
|
(voir la fonction <<_hook_signal_send,hook_signal_send>>) _(WeeChat ≥ 4.5.0)_
|
||||||
* _hashtable_ : table de hachage
|
* _hashtable_ : table de hachage
|
||||||
|
|
||||||
Valeur de retour _(WeeChat ≥ 1.0)_ :
|
Valeur de retour _(WeeChat ≥ 1.0)_ :
|
||||||
@@ -13104,7 +13509,7 @@ Exemple en C :
|
|||||||
|
|
||||||
[source,c]
|
[source,c]
|
||||||
----
|
----
|
||||||
int rc;
|
int rc, rc2;
|
||||||
struct t_hashtable *hashtable = weechat_hashtable_new (8,
|
struct t_hashtable *hashtable = weechat_hashtable_new (8,
|
||||||
WEECHAT_HASHTABLE_STRING,
|
WEECHAT_HASHTABLE_STRING,
|
||||||
WEECHAT_HASHTABLE_STRING,
|
WEECHAT_HASHTABLE_STRING,
|
||||||
@@ -13114,6 +13519,7 @@ if (hashtable)
|
|||||||
{
|
{
|
||||||
weechat_hashtable_set (hashtable, "clé", "valeur");
|
weechat_hashtable_set (hashtable, "clé", "valeur");
|
||||||
rc = weechat_hook_hsignal_send ("my_hsignal", hashtable);
|
rc = weechat_hook_hsignal_send ("my_hsignal", hashtable);
|
||||||
|
rc2 = weechat_hook_hsignal_send ("[flags:stop_on_error,ignore_eat]my_hsignal2", hashtable);
|
||||||
weechat_hashtable_free (hashtable);
|
weechat_hashtable_free (hashtable);
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
@@ -13125,8 +13531,9 @@ Script (Python) :
|
|||||||
# prototype
|
# prototype
|
||||||
def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ...
|
def hook_hsignal_send(signal: str, hashtable: Dict[str, str]) -> int: ...
|
||||||
|
|
||||||
# exemple
|
# exemples
|
||||||
rc = weechat.hook_hsignal_send("my_hsignal", {"clé": "valeur"})
|
rc = weechat.hook_hsignal_send("my_hsignal", {"clé": "valeur"})
|
||||||
|
rc2 = weechat.hook_hsignal_send("[flags:stop_on_error,ignore_eat]my_hsignal2", {"key": "value"})
|
||||||
----
|
----
|
||||||
|
|
||||||
[[hsignal_irc_redirect_command]]
|
[[hsignal_irc_redirect_command]]
|
||||||
@@ -14308,6 +14715,10 @@ Propriétés :
|
|||||||
| Nom de la sous-extension (couramment un nom de script, qui est affiché dans
|
| Nom de la sous-extension (couramment un nom de script, qui est affiché dans
|
||||||
`/help commande` pour un hook de type _command_).
|
`/help commande` pour un hook de type _command_).
|
||||||
|
|
||||||
|
| keep_spaces_right | 4.6.0 | _command_, _command_run_
|
||||||
|
| "0" ou "1"
|
||||||
|
| Garder les espaces à la fin des paramètres de la commande quand elle est exécutée.
|
||||||
|
|
||||||
| stdin | 0.4.3 | _process_, _process_hashtable_ | toute chaîne
|
| stdin | 0.4.3 | _process_, _process_hashtable_ | toute chaîne
|
||||||
| Envoyer les données sur l'entrée standard (_stdin_) du processus fils.
|
| Envoyer les données sur l'entrée standard (_stdin_) du processus fils.
|
||||||
|
|
||||||
@@ -15180,6 +15591,12 @@ Propriétés :
|
|||||||
ne sont *PAS* vérifiées) +
|
ne sont *PAS* vérifiées) +
|
||||||
"-1" : supprimer ce tampon de la hotlist _(WeeChat ≥ 1.0)_.
|
"-1" : supprimer ce tampon de la hotlist _(WeeChat ≥ 1.0)_.
|
||||||
|
|
||||||
|
| hotlist_conditions | 4.5.0 | WEECHAT_HOTLIST_LOW, WEECHAT_HOTLIST_MESSAGE,
|
||||||
|
WEECHAT_HOTLIST_PRIVATE, WEECHAT_HOTLIST_HIGHLIGHT
|
||||||
|
| priorité : ajouter ce tampon dans la hotlist avec cette priorité
|
||||||
|
(les conditions définies dans l'option _weechat.look.hotlist_add_conditions_
|
||||||
|
sont vérifiées).
|
||||||
|
|
||||||
| completion_freeze | | "0" ou "1"
|
| completion_freeze | | "0" ou "1"
|
||||||
| "0" : pas de gel de la complétion (valeur par défaut)
|
| "0" : pas de gel de la complétion (valeur par défaut)
|
||||||
(option globale, le pointeur vers le tampon n'est pas utilisé) +
|
(option globale, le pointeur vers le tampon n'est pas utilisé) +
|
||||||
@@ -15835,9 +16252,9 @@ void weechat_window_set_title (const char *title);
|
|||||||
|
|
||||||
Paramètres :
|
Paramètres :
|
||||||
|
|
||||||
* _title_ : nouveau titre pour le terminal (NULL pour réinitialiser le titre) ;
|
* _title_ : nouveau titre pour le terminal ; la chaîne est évaluée, donc les variables
|
||||||
la chaîne est évaluée, donc les variables comme `${info:version}` peuvent
|
comme `${info:version}` peuvent être utilisées
|
||||||
être utilisées (voir <<_string_eval_expression,string_eval_expression>>)
|
(voir <<_string_eval_expression,string_eval_expression>>)
|
||||||
|
|
||||||
Exemple en C :
|
Exemple en C :
|
||||||
|
|
||||||
@@ -17210,7 +17627,7 @@ rc = weechat.command(weechat.buffer_search("irc", "libera.#weechat"), "/whois Fl
|
|||||||
|
|
||||||
==== command_options
|
==== command_options
|
||||||
|
|
||||||
_WeeChat ≥ 2.5, mis à jour dans la 4.0.0._
|
_WeeChat ≥ 2.5, mis à jour dans la 4.0.0, 4.5.0._
|
||||||
|
|
||||||
Exécuter une commande ou envoyer du texte au tampon avec des options.
|
Exécuter une commande ou envoyer du texte au tampon avec des options.
|
||||||
|
|
||||||
@@ -17226,13 +17643,15 @@ Paramètres :
|
|||||||
|
|
||||||
* _buffer_ : pointeur vers le tampon (la commande est exécutée sur ce tampon,
|
* _buffer_ : pointeur vers le tampon (la commande est exécutée sur ce tampon,
|
||||||
NULL pour le tampon courant)
|
NULL pour le tampon courant)
|
||||||
* _command_ : commande à exécuter (si elle commence par "/"), ou texte à
|
* _command_ : commande à exécuter (si elle commence par `/` ou un caractère de
|
||||||
envoyer au tampon
|
commande), ou texte à envoyer au tampon
|
||||||
* _options_ : table de hachage avec des options (les clés et valeurs doivent
|
* _options_ : table de hachage avec des options (les clés et valeurs doivent
|
||||||
être des chaînes) (peut être NULL) :
|
être des chaînes) (peut être NULL) :
|
||||||
** _commands_ : une liste de commandes autorisées pendant l'appel, séparées par
|
** _commands_ : une liste de commandes autorisées pendant l'appel, séparées par
|
||||||
des virgules ; voir la fonction <<_string_match_list,string_match_list>>
|
des virgules (voir la fonction <<_string_match_list,string_match_list>>
|
||||||
pour le format
|
pour le format) ; la valeur spéciale `-` (moins) désactive l'exécution des
|
||||||
|
commandes et la chaîne dans _command_ est envoyée telle quelle au tampon
|
||||||
|
(_WeeChat ≥ 4.5.0_)
|
||||||
** _delay_ : délai pour exécuter la commande, en millisecondes
|
** _delay_ : délai pour exécuter la commande, en millisecondes
|
||||||
** _split_newline_ : `1` pour découper les commandes sur le caractère de retour
|
** _split_newline_ : `1` pour découper les commandes sur le caractère de retour
|
||||||
à la ligne (`\n`) (_WeeChat ≥ 4.0.0_)
|
à la ligne (`\n`) (_WeeChat ≥ 4.0.0_)
|
||||||
@@ -17266,7 +17685,7 @@ Script (Python) :
|
|||||||
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
|
def command_options(buffer: str, command: str, options: Dict[str, str]) -> int: ...
|
||||||
|
|
||||||
# exemple : autoriser toute commande sauf /exec
|
# exemple : autoriser toute commande sauf /exec
|
||||||
rc = weechat.command_options("", "/une_commande paramètres", {"commands": "*,!exec"})
|
rc = weechat.command_options("", "/une_commande paramètres", {"commands": "*,!exec", "delay": "2000"})
|
||||||
----
|
----
|
||||||
|
|
||||||
[[completion]]
|
[[completion]]
|
||||||
@@ -17420,6 +17839,71 @@ def my_completion_cb(data: str, completion_item: str, buffer: str, completion: s
|
|||||||
return weechat.WEECHAT_RC_OK
|
return weechat.WEECHAT_RC_OK
|
||||||
----
|
----
|
||||||
|
|
||||||
|
==== completion_set
|
||||||
|
|
||||||
|
_WeeChat ≥ 4.6.0._
|
||||||
|
|
||||||
|
Affecter une valeur à une propriété d'une complétion.
|
||||||
|
|
||||||
|
Prototype :
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
void weechat_completion_get_string (struct t_gui_completion *completion,
|
||||||
|
const char *property,
|
||||||
|
const char *value);
|
||||||
|
----
|
||||||
|
|
||||||
|
Paramètres :
|
||||||
|
|
||||||
|
* _completion_ : pointeur vers la complétion
|
||||||
|
* _property_ : nom de la propriété (voir le tableau ci-dessous)
|
||||||
|
* _value_ : nouvelle valeur pour la propriété
|
||||||
|
|
||||||
|
Properties:
|
||||||
|
|
||||||
|
[width="100%",cols="^2,^1,4,8",options="header"]
|
||||||
|
|===
|
||||||
|
| Name | Min WeeChat | Value | Description
|
||||||
|
|
||||||
|
| add_space | 4.6.0 | "0" or "1"
|
||||||
|
| "0": do not add space after completion +
|
||||||
|
"1": add space after completion (default).
|
||||||
|
|===
|
||||||
|
|
||||||
|
Exemple en C :
|
||||||
|
|
||||||
|
[source,c]
|
||||||
|
----
|
||||||
|
int
|
||||||
|
my_completion_cb (const void *pointer, void *data, const char *completion_item,
|
||||||
|
struct t_gui_buffer *buffer,
|
||||||
|
struct t_gui_completion *completion)
|
||||||
|
{
|
||||||
|
/* ne pas ajouter d'espace après la complétion */
|
||||||
|
weechat_completion_set (completion, "add_space", "0");
|
||||||
|
|
||||||
|
/* ... */
|
||||||
|
|
||||||
|
return WEECHAT_RC_OK;
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
Script (Python) :
|
||||||
|
|
||||||
|
[source,python]
|
||||||
|
----
|
||||||
|
# prototype
|
||||||
|
def completion_set(completion: str, property: str, value: str) -> int: ...
|
||||||
|
|
||||||
|
# exemple
|
||||||
|
def my_completion_cb(data: str, completion_item: str, buffer: str, completion: str) -> int:
|
||||||
|
# ne pas ajouter d'espace après la complétion
|
||||||
|
weechat.completion_set(completion, "add_space", "0")
|
||||||
|
# ...
|
||||||
|
return weechat.WEECHAT_RC_OK
|
||||||
|
----
|
||||||
|
|
||||||
==== completion_list_add
|
==== completion_list_add
|
||||||
|
|
||||||
_WeeChat ≥ 2.9._
|
_WeeChat ≥ 2.9._
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= Guide de démarrage rapide WeeChat
|
= Guide de démarrage rapide WeeChat
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: fr
|
:lang: fr
|
||||||
:toc-title: Table des matières
|
include::includes/attributes-fr.adoc[]
|
||||||
|
|
||||||
[[start]]
|
[[start]]
|
||||||
== Démarrer WeeChat
|
== Démarrer WeeChat
|
||||||
@@ -276,7 +280,7 @@ Fermer un tampon serveur, canal ou privé (`/close` est un alias sur
|
|||||||
/close
|
/close
|
||||||
----
|
----
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
Fermer le tampon du serveur fermera tous les tampons canaux/privés.
|
Fermer le tampon du serveur fermera tous les tampons canaux/privés.
|
||||||
|
|
||||||
Se déconnecter du serveur, sur le tampon du serveur :
|
Se déconnecter du serveur, sur le tampon du serveur :
|
||||||
@@ -334,8 +338,9 @@ Pour supprimer le découpage :
|
|||||||
== Raccourcis clavier
|
== Raccourcis clavier
|
||||||
|
|
||||||
WeeChat utilise un certain nombre de touches par défaut. Toutes ces
|
WeeChat utilise un certain nombre de touches par défaut. Toutes ces
|
||||||
touches sont dans la documentation, mais vous devriez connaître au moins
|
touches sont dans la documentation
|
||||||
les touches vitales :
|
(link:weechat_user.fr.html#key_bindings[Guide utilisateur / Raccourcis clavier ^↗^^]),
|
||||||
|
mais vous devriez connaître au moins les touches vitales :
|
||||||
|
|
||||||
- kbd:[Alt+←] / kbd:[Alt+→] ou kbd:[F5] / kbd:[F6] : aller au tampon précédent/suivant
|
- kbd:[Alt+←] / kbd:[Alt+→] ou kbd:[F5] / kbd:[F6] : aller au tampon précédent/suivant
|
||||||
- kbd:[F1] / kbd:[F2] : faire défiler la barre avec la liste des tampons ("buflist")
|
- kbd:[F1] / kbd:[F2] : faire défiler la barre avec la liste des tampons ("buflist")
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= Relai API WeeChat
|
= Relai API WeeChat
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: fr
|
:lang: fr
|
||||||
:toc-title: Table des matières
|
include::includes/attributes-fr.adoc[]
|
||||||
|
|
||||||
[[introduction]]
|
[[introduction]]
|
||||||
== Introduction
|
== Introduction
|
||||||
@@ -106,7 +110,8 @@ Exemples :
|
|||||||
== Authentification
|
== Authentification
|
||||||
|
|
||||||
Le mot de passe doit être envoyé dans l'en-tête `Authorization` avec le schéma
|
Le mot de passe doit être envoyé dans l'en-tête `Authorization` avec le schéma
|
||||||
d'authentification `Basic`.
|
d'authentification `Basic` ou l'en-tête `Sec-WebSocket-Protocol` (voir les
|
||||||
|
détails ci-dessous).
|
||||||
|
|
||||||
Le mot de passe peut être envoyé en clair ou haché, avec l'un des formats
|
Le mot de passe peut être envoyé en clair ou haché, avec l'un des formats
|
||||||
suivants pour l'utilisateur et le mot de passe :
|
suivants pour l'utilisateur et le mot de passe :
|
||||||
@@ -140,8 +145,9 @@ Exemple :
|
|||||||
`hash:sha256:1706431066:dfa1db3f6bb6445d18d9ec7427c10f6421274e3a4751e6c1ffc7dd28c94eadf6` :
|
`hash:sha256:1706431066:dfa1db3f6bb6445d18d9ec7427c10f6421274e3a4751e6c1ffc7dd28c94eadf6` :
|
||||||
`aGFzaDpzaGEyNTY6MTcwNjQzMTA2NjpkZmExZGIzZjZiYjY0NDVkMThkOWVjNzQyN2MxMGY2NDIxMjc0ZTNhNDc1MWU2YzFmZmM3ZGQyOGM5NGVhZGY2`.
|
`aGFzaDpzaGEyNTY6MTcwNjQzMTA2NjpkZmExZGIzZjZiYjY0NDVkMThkOWVjNzQyN2MxMGY2NDIxMjc0ZTNhNDc1MWU2YzFmZmM3ZGQyOGM5NGVhZGY2`.
|
||||||
|
|
||||||
L'en-tête `Authorization` est autorisé dans la première requête avec le protocole
|
Les en-têtes `Authorization` et `Sec-WebSocket-Protocol` sont autorisés dans
|
||||||
websocket ou toute requête HTTP dans les autres cas.
|
la première requête avec le protocole websocket ou toute requête HTTP dans
|
||||||
|
les autres cas.
|
||||||
|
|
||||||
Exemple de requête avec un mot de passe en clair :
|
Exemple de requête avec un mot de passe en clair :
|
||||||
|
|
||||||
@@ -267,6 +273,36 @@ HTTP/1.1 401 Unauthorized
|
|||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
[[authentication_sec_websocket_protocol]]
|
||||||
|
=== Sec-WebSocket-Protocol
|
||||||
|
|
||||||
|
L'API WebSocket de JavaScript utilisée dans les navigateurs actuels ne supporte pas
|
||||||
|
l'utilisation de l'en-tête `Authorization`. Il est donc aussi possible d'envoyer
|
||||||
|
le mot de passe dans l'en-tête `Sec-WebSocket-Protocol`, qui est le seul en-tête
|
||||||
|
utilisable avec cette API.
|
||||||
|
|
||||||
|
Pour utiliser cet en-tête, vous devez spécifier les sous-protocoles `api.weechat`
|
||||||
|
et `base64url.bearer.authorization.weechat.<auth>` où `<auth>` est la chaîne
|
||||||
|
encodée en base64url avec le mot de passe, dans le même format que ci-dessus.
|
||||||
|
|
||||||
|
Exemple avec un mot de passe `secret_password` en clair. Cela produit une chaîne
|
||||||
|
encodée en base64url avec le contenu `plain:secret_password` qui est
|
||||||
|
`cGxhaW46c2VjcmV0X3Bhc3N3b3Jk`.
|
||||||
|
|
||||||
|
----
|
||||||
|
Sec-WebSocket-Protocol: api.weechat, base64url.bearer.authorization.weechat.cGxhaW46c2VjcmV0X3Bhc3N3b3Jk
|
||||||
|
----
|
||||||
|
|
||||||
|
Cela peut être défini avec l'API WebSocket de JavaScript comme ceci :
|
||||||
|
|
||||||
|
[source,javascript]
|
||||||
|
----
|
||||||
|
const ws = new WebSocket("wss://localhost:9000/api", [
|
||||||
|
"api.weechat",
|
||||||
|
"base64url.bearer.authorization.weechat.cGxhaW46c2VjcmV0X3Bhc3N3b3Jk",
|
||||||
|
])
|
||||||
|
----
|
||||||
|
|
||||||
[[compression]]
|
[[compression]]
|
||||||
== Compression
|
== Compression
|
||||||
|
|
||||||
@@ -515,7 +551,8 @@ HTTP/1.1 200 OK
|
|||||||
"plugin": "core",
|
"plugin": "core",
|
||||||
"name": "weechat"
|
"name": "weechat"
|
||||||
},
|
},
|
||||||
"keys": []
|
"keys": [],
|
||||||
|
"last_read_line_id": -1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 1709932823423765,
|
"id": 1709932823423765,
|
||||||
@@ -544,7 +581,8 @@ HTTP/1.1 200 OK
|
|||||||
"tls_version": "TLS1.3",
|
"tls_version": "TLS1.3",
|
||||||
"host": "~alice@example.com"
|
"host": "~alice@example.com"
|
||||||
},
|
},
|
||||||
"keys": []
|
"keys": [],
|
||||||
|
"last_read_line_id": -1
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": 1709932823649069,
|
"id": 1709932823649069,
|
||||||
@@ -571,7 +609,8 @@ HTTP/1.1 200 OK
|
|||||||
"nick": "alice",
|
"nick": "alice",
|
||||||
"host": "~alice@example.com"
|
"host": "~alice@example.com"
|
||||||
},
|
},
|
||||||
"keys": []
|
"keys": [],
|
||||||
|
"last_read_line_id": -1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
----
|
----
|
||||||
@@ -627,7 +666,8 @@ HTTP/1.1 200 OK
|
|||||||
"message": "Plugins loaded: alias, buflist, charset, exec, fifo, fset, guile, irc, javascript, logger, lua, perl, php, python, relay, ruby, script, spell, tcl, trigger, typing, xfer",
|
"message": "Plugins loaded: alias, buflist, charset, exec, fifo, fset, guile, irc, javascript, logger, lua, perl, php, python, relay, ruby, script, spell, tcl, trigger, typing, xfer",
|
||||||
"tags": []
|
"tags": []
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"last_read_line_id": -1
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
@@ -673,6 +713,7 @@ HTTP/1.1 200 OK
|
|||||||
"host": "~alice@example.com"
|
"host": "~alice@example.com"
|
||||||
},
|
},
|
||||||
"keys": [],
|
"keys": [],
|
||||||
|
"last_read_line_id": -1,
|
||||||
"nicklist_root": {
|
"nicklist_root": {
|
||||||
"id": 0,
|
"id": 0,
|
||||||
"parent_group_id": -1,
|
"parent_group_id": -1,
|
||||||
@@ -870,7 +911,8 @@ HTTP/1.1 200 OK
|
|||||||
"key": "up",
|
"key": "up",
|
||||||
"command": "/fset -up"
|
"command": "/fset -up"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"last_read_line_id": -1
|
||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
@@ -1164,7 +1206,7 @@ Paramètres du corps :
|
|||||||
|
|
||||||
* `buffer_id` (entier, facultatif) : identifiant unique du tampon (à ne pas
|
* `buffer_id` (entier, facultatif) : identifiant unique du tampon (à ne pas
|
||||||
confondre avec le numéro du tampon, qui est différent)
|
confondre avec le numéro du tampon, qui est différent)
|
||||||
* `buffer_name` (chaîne, facultatif) : nom de tampon
|
* `buffer_name` (chaîne, facultatif, par défaut : `core.weechat`) : nom de tampon
|
||||||
* `command` (chaîne, **obligatoire**) : commande ou texte à envoyer au tampon
|
* `command` (chaîne, **obligatoire**) : commande ou texte à envoyer au tampon
|
||||||
|
|
||||||
Exemple de requête : dire "hello!" sur le canal #weechat :
|
Exemple de requête : dire "hello!" sur le canal #weechat :
|
||||||
@@ -1172,7 +1214,7 @@ Exemple de requête : dire "hello!" sur le canal #weechat :
|
|||||||
[source,shell]
|
[source,shell]
|
||||||
----
|
----
|
||||||
curl -L -u 'plain:secret_password' -X POST \
|
curl -L -u 'plain:secret_password' -X POST \
|
||||||
-d '{"buffer": "irc.libera.#weechat", "command": "hello!"}' \
|
-d '{"buffer_name": "irc.libera.#weechat", "command": "hello!"}' \
|
||||||
'https://localhost:9000/api/input'
|
'https://localhost:9000/api/input'
|
||||||
----
|
----
|
||||||
|
|
||||||
@@ -1200,6 +1242,58 @@ Réponse :
|
|||||||
HTTP/1.1 204 No content
|
HTTP/1.1 204 No content
|
||||||
----
|
----
|
||||||
|
|
||||||
|
[[resource_completion]]
|
||||||
|
=== Complétion
|
||||||
|
|
||||||
|
Compléter une commande ou du texte de l'utilisateur sur un tampon.
|
||||||
|
|
||||||
|
Point de terminaison :
|
||||||
|
|
||||||
|
----
|
||||||
|
POST /api/completion
|
||||||
|
----
|
||||||
|
|
||||||
|
Paramètres du corps :
|
||||||
|
|
||||||
|
* `buffer_id` (entier, facultatif) : identifiant unique du tampon (à ne pas
|
||||||
|
confondre avec le numéro du tampon, qui est différent)
|
||||||
|
* `buffer_name` (chaîne, facultatif, par défaut : `core.weechat`) : nom de tampon
|
||||||
|
* `command` (chaîne, **obligatoire**) : commande ou texte à compléter
|
||||||
|
* `position` (entier, facultatif, par défaut : fin de la chaîne) : position
|
||||||
|
dans la commande (la première position est 0)
|
||||||
|
|
||||||
|
Exemple de requête : compléter la commande `/qu` sur le canal #weechat :
|
||||||
|
|
||||||
|
[source,shell]
|
||||||
|
----
|
||||||
|
curl -L -u 'plain:secret_password' -X POST \
|
||||||
|
-d '{"buffer_name": "irc.libera.#weechat", "command": "/qu"}' \
|
||||||
|
'https://localhost:9000/api/completion'
|
||||||
|
----
|
||||||
|
|
||||||
|
Réponse :
|
||||||
|
|
||||||
|
[source,http]
|
||||||
|
----
|
||||||
|
HTTP/1.1 200 OK
|
||||||
|
----
|
||||||
|
|
||||||
|
[source,json]
|
||||||
|
----
|
||||||
|
{
|
||||||
|
"context": "command",
|
||||||
|
"base_word": "qu",
|
||||||
|
"position_replace": 1,
|
||||||
|
"add_space": true,
|
||||||
|
"list": [
|
||||||
|
"query",
|
||||||
|
"quiet",
|
||||||
|
"quit",
|
||||||
|
"quote"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
[[resource_ping]]
|
[[resource_ping]]
|
||||||
=== Ping
|
=== Ping
|
||||||
|
|
||||||
@@ -1406,6 +1500,10 @@ les champs suivants :
|
|||||||
* `body` (objet ou tableau) : le corps (facultatif, pour les méthodes `POST` et `PUT`)
|
* `body` (objet ou tableau) : le corps (facultatif, pour les méthodes `POST` et `PUT`)
|
||||||
* `request_id` (chaîne) : identifiant renvoyé dans la réponse
|
* `request_id` (chaîne) : identifiant renvoyé dans la réponse
|
||||||
|
|
||||||
|
Plusieurs requêtes peuvent être envoyées simultanément avec un tableau d'objets,
|
||||||
|
chaque objet étant une requête séparée. +
|
||||||
|
Les requêtes sont exécutées dans l'ordre reçu (voir l'exemple ci-dessous).
|
||||||
|
|
||||||
Les réponses vers le client sont faites avec un objet JSON qui contient
|
Les réponses vers le client sont faites avec un objet JSON qui contient
|
||||||
les champs suivants :
|
les champs suivants :
|
||||||
|
|
||||||
@@ -1499,6 +1597,69 @@ Réponse :
|
|||||||
}
|
}
|
||||||
----
|
----
|
||||||
|
|
||||||
|
Exemple de requêtes : envoyer deux requêtes en même temps : obtenir la liste des
|
||||||
|
tampons avec les lignes et les pseudos, puis se synchroniser avec le relay distant :
|
||||||
|
|
||||||
|
[source,json]
|
||||||
|
----
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"request": "GET /api/buffers?lines=-1000&nicks=true&colors=weechat",
|
||||||
|
"request_id": "initial_sync"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"request": "POST /api/sync",
|
||||||
|
"body": {
|
||||||
|
"colors": "weechat"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
Il est recommandé d'envoyer la requête de synchronisation en même temps que la
|
||||||
|
première requête qui récupère les données, afin qu'aucun évènement ne soit manqué.
|
||||||
|
|
||||||
|
Première réponse (le "body" avec les tampons est tronqué pour la lisibilité) :
|
||||||
|
|
||||||
|
[source,json]
|
||||||
|
----
|
||||||
|
{
|
||||||
|
"code": 200,
|
||||||
|
"message": "OK",
|
||||||
|
"request": "GET /api/buffers?lines=-1000&nicks=true&colors=weechat",
|
||||||
|
"request_body": null,
|
||||||
|
"request_id": "initial_sync",
|
||||||
|
"body_type": "buffers",
|
||||||
|
"body": [
|
||||||
|
{
|
||||||
|
"id": 1709932823238637,
|
||||||
|
"name": "core.weechat",
|
||||||
|
"short_name": "weechat",
|
||||||
|
"number": 1,
|
||||||
|
"type": "formatted"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
|
Seconde réponse :
|
||||||
|
|
||||||
|
[source,json]
|
||||||
|
----
|
||||||
|
{
|
||||||
|
"code": 204,
|
||||||
|
"message": "No Content",
|
||||||
|
"request": "POST /api/sync",
|
||||||
|
"request_body": {
|
||||||
|
"colors": "weechat"
|
||||||
|
},
|
||||||
|
"request_id": null,
|
||||||
|
"body_type": null,
|
||||||
|
"body": null
|
||||||
|
}
|
||||||
|
----
|
||||||
|
|
||||||
WeeChat pousse des données au client à tout moment sur des évènements : lorsque
|
WeeChat pousse des données au client à tout moment sur des évènements : lorsque
|
||||||
des lignes sont affichées, des tampons ajoutés/supprimés/changés, des pseudos
|
des lignes sont affichées, des tampons ajoutés/supprimés/changés, des pseudos
|
||||||
ajoutés/supprimés/changés, etc.
|
ajoutés/supprimés/changés, etc.
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= Protocole Relay de WeeChat
|
= Protocole Relay de WeeChat
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: fr
|
:lang: fr
|
||||||
:toc-title: Table des matières
|
include::includes/attributes-fr.adoc[]
|
||||||
|
|
||||||
[[introduction]]
|
[[introduction]]
|
||||||
== Introduction
|
== Introduction
|
||||||
|
|||||||
@@ -1,8 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= Guide pour scripts WeeChat
|
= Guide pour scripts WeeChat
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: fr
|
:lang: fr
|
||||||
:toc-title: Table des matières
|
include::includes/attributes-fr.adoc[]
|
||||||
|
|
||||||
Ce manuel documente le client de messagerie instantanée WeeChat, il fait
|
Ce manuel documente le client de messagerie instantanée WeeChat, il fait
|
||||||
partie de WeeChat.
|
partie de WeeChat.
|
||||||
@@ -73,7 +77,7 @@ link:weechat_plugin_api.fr.html#_hook_process[Référence API extension WeeChat
|
|||||||
|
|
||||||
WeeChat définit un module `weechat` qui doit être importé avec `import weechat`. +
|
WeeChat définit un module `weechat` qui doit être importé avec `import weechat`. +
|
||||||
Un "stub" Python pour l'API WeeChat est disponible dans le dépôt :
|
Un "stub" Python pour l'API WeeChat est disponible dans le dépôt :
|
||||||
https://raw.githubusercontent.com/weechat/weechat/master/src/plugins/python/weechat.pyi[weechat.pyi ^↗^^].
|
https://raw.githubusercontent.com/weechat/weechat/main/src/plugins/python/weechat.pyi[weechat.pyi ^↗^^].
|
||||||
|
|
||||||
[[python_functions]]
|
[[python_functions]]
|
||||||
===== Fonctions
|
===== Fonctions
|
||||||
|
|||||||
+321
-140
@@ -1,8 +1,12 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2003-2026 Sébastien Helleu <flashcode@flashtux.org>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
= Guide utilisateur WeeChat
|
= Guide utilisateur WeeChat
|
||||||
:author: Sébastien Helleu
|
:author: Sébastien Helleu
|
||||||
:email: flashcode@flashtux.org
|
:email: flashcode@flashtux.org
|
||||||
:lang: fr
|
:lang: fr
|
||||||
:toc-title: Table des matières
|
include::includes/attributes-fr.adoc[]
|
||||||
|
|
||||||
Ce manuel documente le client de messagerie instantanée WeeChat, il fait
|
Ce manuel documente le client de messagerie instantanée WeeChat, il fait
|
||||||
partie de WeeChat.
|
partie de WeeChat.
|
||||||
@@ -204,7 +208,7 @@ Le tableau suivant liste les paquets optionnels pour compiler WeeChat :
|
|||||||
| asciidoctor | ≥ 1.5.4
|
| asciidoctor | ≥ 1.5.4
|
||||||
| Construction de la page man et de la documentation.
|
| Construction de la page man et de la documentation.
|
||||||
|
|
||||||
| ruby-pygments.rb |
|
| python3-pygments, ruby-pygments.rb |
|
||||||
| Construction de la documentation.
|
| Construction de la documentation.
|
||||||
|
|
||||||
| libcpputest-dev | ≥ 3.4
|
| libcpputest-dev | ≥ 3.4
|
||||||
@@ -466,7 +470,7 @@ ce qui provoquera immédiatement un plantage de WeeChat en cas de problème :
|
|||||||
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
|
cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_FLAGS=-fsanitize=address -DCMAKE_CXX_FLAGS=-fsanitize=address -DCMAKE_EXE_LINKER_FLAGS=-fsanitize=address
|
||||||
----
|
----
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
Vous ne devriez activer la vérification des adresses que si vous essayez de
|
Vous ne devriez activer la vérification des adresses que si vous essayez de
|
||||||
provoquer un plantage, ce qui n'est pas recommandé en production.
|
provoquer un plantage, ce qui n'est pas recommandé en production.
|
||||||
|
|
||||||
@@ -607,7 +611,7 @@ include::includes/cmdline_options.fr.adoc[tag=standard]
|
|||||||
|
|
||||||
Quelques options supplémentaires sont disponibles pour du debug seulement :
|
Quelques options supplémentaires sont disponibles pour du debug seulement :
|
||||||
|
|
||||||
[WARNING]
|
[CAUTION]
|
||||||
N'utilisez *AUCUNE* de ces options in production !
|
N'utilisez *AUCUNE* de ces options in production !
|
||||||
|
|
||||||
include::includes/cmdline_options.fr.adoc[tag=debug]
|
include::includes/cmdline_options.fr.adoc[tag=debug]
|
||||||
@@ -620,7 +624,7 @@ Des variables d'environnement sont utilisées par WeeChat si elles sont définie
|
|||||||
[width="100%",cols="1m,6",options="header"]
|
[width="100%",cols="1m,6",options="header"]
|
||||||
|===
|
|===
|
||||||
| Nom | Description
|
| Nom | Description
|
||||||
| WEECHAT_HOME | Le répertoire "maison" de WeeChat (avec les fichiers de configuration, logs, scripts, etc.). Même comportement que <<compile_with_cmake,l'option CMake>> `WEECHAT_HOME`.
|
| WEECHAT_HOME | Le répertoire "maison" de WeeChat (avec les fichiers de configuration, logs, scripts, etc.). Même comportement que <<build,l'option CMake>> `WEECHAT_HOME`.
|
||||||
| WEECHAT_PASSPHRASE | La phrase secrète utilisée pour déchiffrer les données sécurisées.
|
| WEECHAT_PASSPHRASE | La phrase secrète utilisée pour déchiffrer les données sécurisées.
|
||||||
| WEECHAT_EXTRA_LIBDIR | Un répertoire supplémentaire pour charger les extensions (depuis le répertoire "plugins" sous ce chemin).
|
| WEECHAT_EXTRA_LIBDIR | Un répertoire supplémentaire pour charger les extensions (depuis le répertoire "plugins" sous ce chemin).
|
||||||
|===
|
|===
|
||||||
@@ -829,7 +833,7 @@ weechat --upgrade
|
|||||||
==== Notes de mise à jour
|
==== Notes de mise à jour
|
||||||
|
|
||||||
Après une mise à jour, il est *fortement recommandé* de lire le fichier
|
Après une mise à jour, il est *fortement recommandé* de lire le fichier
|
||||||
https://github.com/weechat/weechat/blob/master/UPGRADING.md[UPGRADING.md ^↗^^]
|
https://github.com/weechat/weechat/blob/main/UPGRADING.md[UPGRADING.md ^↗^^]
|
||||||
qui contient des informations importantes sur les changements majeurs et
|
qui contient des informations importantes sur les changements majeurs et
|
||||||
quelques actions manuelles qui pourraient être nécessaires.
|
quelques actions manuelles qui pourraient être nécessaires.
|
||||||
|
|
||||||
@@ -890,7 +894,7 @@ Exemple de terminal avec WeeChat :
|
|||||||
│ │ │ │
|
│ │ │ │
|
||||||
│ │ │ │
|
│ │ │ │
|
||||||
│ │ │ │
|
│ │ │ │
|
||||||
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* [H: 3:#abc(2,5), 5] │
|
│ │[12:55] [5] [irc/libera] 2:#test(+n){4}* M [H: 3:#abc(2,5), 5] │
|
||||||
│ │[@Flashy(i)] salut peter !█ │
|
│ │[@Flashy(i)] salut peter !█ │
|
||||||
└──────────────────────────────────────────────────────────────────────────────────────┘
|
└──────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
▲ barres "status" et "input" barre "nicklist" ▲
|
▲ barres "status" et "input" barre "nicklist" ▲
|
||||||
@@ -930,32 +934,34 @@ La barre _status_ contient les objets (items) suivants par défaut :
|
|||||||
|
|
||||||
[width="100%",cols="^3,^3,9",options="header"]
|
[width="100%",cols="^3,^3,9",options="header"]
|
||||||
|===
|
|===
|
||||||
| Objet (item) | Exemple | Description
|
| Objet (item) | Exemple | Description
|
||||||
| time | `[12:55]` | Heure.
|
| time | `12:55` | Heure.
|
||||||
| buffer_last_number | `[5]` | Numéro du dernier tampon de la liste.
|
| buffer_last_number | `5` | Numéro du dernier tampon (peut être différent de `buffer_count` si l'option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> est `off`).
|
||||||
| buffer_plugin | `[irc/libera]` | Extension du tampon courant (l'extension irc peut afficher le nom du serveur IRC auquel est rattaché ce tampon).
|
| buffer_plugin | `irc/libera` | Extension du tampon courant (l'extension irc peut afficher le nom du serveur IRC auquel est rattaché ce tampon).
|
||||||
| buffer_number | `2` | Numéro du tampon courant.
|
| buffer_number | `2` | Numéro du tampon courant.
|
||||||
| buffer_name | `#test` | Nom du tampon courant.
|
| buffer_name | `#test` | Nom du tampon courant.
|
||||||
| buffer_modes | `+n` | Modes du canal IRC.
|
| buffer_modes | `+n` | Modes du canal IRC.
|
||||||
| buffer_nicklist_count | `{4}` | Nombre de pseudos affichés dans la liste des pseudos.
|
| buffer_nicklist_count | `4` | Nombre de pseudos affichés dans la liste des pseudos.
|
||||||
| buffer_zoom | ! | `!` signifie que le tampon mélangé est zoomé, une valeur vide signifie que tous les tampons mélangés sont affichés.
|
| buffer_zoom | ! | `!` signifie que le tampon mélangé est zoomé, une valeur vide signifie que tous les tampons mélangés sont affichés.
|
||||||
| buffer_filter | `+*+` | Indicateur de filtrage : `+*+` signifie que des lignes sont filtrées (cachées), une valeur vide signifie que toutes les lignes sont affichées.
|
| buffer_filter | `+*+` | Indicateur de filtrage : `+*+` signifie que des lignes sont filtrées (cachées), une valeur vide signifie que toutes les lignes sont affichées.
|
||||||
| scroll | `-PLUS(50)-` | Indicateur de scroll, avec le nombre de lignes sous la dernière ligne affichée.
|
| mouse_status | `M` | Statut de la souris (vide si la souris est désactivée), voir la commande <<command_weechat_mouse,/mouse>> et <<key_bindings_toggle_keys,Touches de bascule>>.
|
||||||
| lag | `[Lag: 2.5]` | Indicateur de "lag" (ralentissements réseau), en secondes (caché si le lag est faible).
|
| scroll | `-PLUS(50)-` | Indicateur de scroll, avec le nombre de lignes sous la dernière ligne affichée.
|
||||||
| hotlist | `[H: 3:#abc(2,5), 5]` | Liste des tampons où il y a de l'activité (messages non lus) (dans cet exemple, 2 highlights et 5 messages non lus sur _#abc_, un message non lu sur le tampon numéro 5).
|
| lag | `Lag: 2.5` | Indicateur de "lag" (ralentissements réseau), en secondes (caché si le lag est faible).
|
||||||
| completion | `abc(2) def(5)` | Liste des mots pour la complétion, avec le nombre de complétions possibles pour chaque mot.
|
| hotlist | `H: 3:#abc(2,5), 5` | Liste des tampons où il y a de l'activité (messages non lus) (dans cet exemple, 2 highlights et 5 messages non lus sur _#abc_, un message non lu sur le tampon numéro 5).
|
||||||
|
| typing | `Écrit : bob, (alice)` | Notification de saisie, voir <<typing_notifications,Notifications de saisie>>.
|
||||||
|
| completion | `abc(2) def(5)` | Liste des mots pour la complétion, avec le nombre de complétions possibles pour chaque mot.
|
||||||
|===
|
|===
|
||||||
|
|
||||||
La barre _input_ contient les objets (items) suivants par défaut :
|
La barre _input_ contient les objets (items) suivants par défaut :
|
||||||
|
|
||||||
[width="100%",cols="^3,^3,9",options="header"]
|
[width="100%",cols="^3,^3,9",options="header"]
|
||||||
|===
|
|===
|
||||||
| Objet (item) | Exemple | Description
|
| Objet (item) | Exemple | Description
|
||||||
| input_prompt | `[@Flashy(i)]` | Prompt, pour irc : pseudo et modes (le mode "+i" signifie invisible sur libera).
|
| input_prompt | `@Flashy(i)` | Prompt, pour irc : pseudo et modes (le mode "+i" signifie invisible sur libera).
|
||||||
| away | `(absent)` | Indicateur d'absence.
|
| away | `absent` | Indicateur d'absence.
|
||||||
| input_search | `[Recherche lignes (~ str,msg)]` | Indicateur de recherche de texte (voir ci-dessous).
|
| input_search | `Recherche lignes (~ str,msg)` | Indicateur de recherche de texte (voir ci-dessous).
|
||||||
| input_paste | `[Coller 7 lignes ? [ctrl-y] Oui [ctrl-n] Non]` | Question à l'utilisateur pour coller des lignes.
|
| input_paste | `Coller 7 lignes ? [ctrl-y] Oui [ctrl-n] Non` | Question à l'utilisateur pour coller des lignes.
|
||||||
| input_text | `salut peter !` | Texte entré.
|
| input_text | `salut peter !` | Texte entré.
|
||||||
|===
|
|===
|
||||||
|
|
||||||
Il y a deux modes de recherche :
|
Il y a deux modes de recherche :
|
||||||
@@ -991,8 +997,7 @@ Autres objets (non utilisés dans des barres par défaut) :
|
|||||||
[width="100%",cols="^3,^3,9",options="header"]
|
[width="100%",cols="^3,^3,9",options="header"]
|
||||||
|===
|
|===
|
||||||
| Objet (item) | Exemple | Description
|
| Objet (item) | Exemple | Description
|
||||||
| buffer_count | `10` | Nombre total de tampons ouverts.
|
| buffer_count | `5` | Nombre total de tampons ouverts.
|
||||||
| buffer_last_number | `10` | Numéro du dernier tampon (peut être différent de `buffer_count` si l'option <<option_weechat.look.buffer_auto_renumber,weechat.look.buffer_auto_renumber>> est `off`).
|
|
||||||
| buffer_nicklist_count_all | `4` | Nombre de groupes et pseudos visibles dans la liste de pseudos.
|
| buffer_nicklist_count_all | `4` | Nombre de groupes et pseudos visibles dans la liste de pseudos.
|
||||||
| buffer_nicklist_count_groups | `0` | Nombre de groupes visibles dans la liste de pseudos.
|
| buffer_nicklist_count_groups | `0` | Nombre de groupes visibles dans la liste de pseudos.
|
||||||
| buffer_short_name | `#test` | Nom court du tampon courant.
|
| buffer_short_name | `#test` | Nom court du tampon courant.
|
||||||
@@ -1007,7 +1012,7 @@ Autres objets (non utilisés dans des barres par défaut) :
|
|||||||
| irc_nick_host | `+Flashy!user@host.com+` | Pseudo et hôte IRC.
|
| irc_nick_host | `+Flashy!user@host.com+` | Pseudo et hôte IRC.
|
||||||
| irc_nick_modes | `i` | Modes IRC pour le pseudo.
|
| irc_nick_modes | `i` | Modes IRC pour le pseudo.
|
||||||
| irc_nick_prefix | `@` | Préfixe de pseudo IRC sur le canal.
|
| irc_nick_prefix | `@` | Préfixe de pseudo IRC sur le canal.
|
||||||
| mouse_status | `M` | Statut de la souris (vide si la souris est désactivée).
|
| spacer | | Objet spécial utilisé pour aligner le texte dans les barres, voir <<item_spacer,Objet d'espacement>>.
|
||||||
| spell_dict | `fr,en` | Dictionnaires utilisés pour la vérification de l'orthographe sur le tampon courant.
|
| spell_dict | `fr,en` | Dictionnaires utilisés pour la vérification de l'orthographe sur le tampon courant.
|
||||||
| spell_suggest | `print,prone,prune` | Suggestions pour le mot sous le curseur (si mal orthographié).
|
| spell_suggest | `print,prone,prune` | Suggestions pour le mot sous le curseur (si mal orthographié).
|
||||||
| tls_version | `TLS1.3` | Version de TLS utilisée sur le serveur IRC courant.
|
| tls_version | `TLS1.3` | Version de TLS utilisée sur le serveur IRC courant.
|
||||||
@@ -1074,6 +1079,7 @@ suit et éventuellement une valeur) :
|
|||||||
kbd:[yyyyyy] | Couleur du texte `xxxxxx` et du fond `yyyyyy` (RGB en hexadécimal).
|
kbd:[yyyyyy] | Couleur du texte `xxxxxx` et du fond `yyyyyy` (RGB en hexadécimal).
|
||||||
| kbd:[Ctrl+c], kbd:[i] | Texte en italique.
|
| kbd:[Ctrl+c], kbd:[i] | Texte en italique.
|
||||||
| kbd:[Ctrl+c], kbd:[o] | Désactiver la couleur et tous les attributs.
|
| kbd:[Ctrl+c], kbd:[o] | Désactiver la couleur et tous les attributs.
|
||||||
|
| kbd:[Ctrl+c], kbd:[s] | Texte barré (affiché en demi-intensité dans l'interface ncurses car le texte barré n'est pas supporté).
|
||||||
| kbd:[Ctrl+c], kbd:[v] | Vidéo inverse (inversion de la couleur d'écriture et du fond).
|
| kbd:[Ctrl+c], kbd:[v] | Vidéo inverse (inversion de la couleur d'écriture et du fond).
|
||||||
| kbd:[Ctrl+c], kbd:[_] | Texte souligné.
|
| kbd:[Ctrl+c], kbd:[_] | Texte souligné.
|
||||||
|===
|
|===
|
||||||
@@ -1662,6 +1668,8 @@ Ils peuvent être modifiés et de nouveaux peuvent être ajoutés avec la comman
|
|||||||
| kbd:[Ctrl+c], kbd:[d] | Insérer le code pour écrire en couleur (couleur RGB, en hexadécimal). | `+/input insert \x04+`
|
| kbd:[Ctrl+c], kbd:[d] | Insérer le code pour écrire en couleur (couleur RGB, en hexadécimal). | `+/input insert \x04+`
|
||||||
| kbd:[Ctrl+c], kbd:[i] | Insérer le code pour mettre le texte en italique. | `+/input insert \x1D+`
|
| kbd:[Ctrl+c], kbd:[i] | Insérer le code pour mettre le texte en italique. | `+/input insert \x1D+`
|
||||||
| kbd:[Ctrl+c], kbd:[o] | Insérer le code pour réinitialiser la couleur. | `+/input insert \x0F+`
|
| kbd:[Ctrl+c], kbd:[o] | Insérer le code pour réinitialiser la couleur. | `+/input insert \x0F+`
|
||||||
|
// TRANSLATION MISSING
|
||||||
|
| kbd:[Ctrl+c], kbd:[s] | Insert code for strikethrough text. | `+/input insert \x1E+`
|
||||||
| kbd:[Ctrl+c], kbd:[v] | Insérer le code pour écrire en couleur inversée. | `+/input insert \x16+`
|
| kbd:[Ctrl+c], kbd:[v] | Insérer le code pour écrire en couleur inversée. | `+/input insert \x16+`
|
||||||
| kbd:[Ctrl+c], kbd:[_] | Insérer le code pour écrire en souligné. | `+/input insert \x1F+`
|
| kbd:[Ctrl+c], kbd:[_] | Insérer le code pour écrire en souligné. | `+/input insert \x1F+`
|
||||||
|===
|
|===
|
||||||
@@ -1787,11 +1795,12 @@ Ils peuvent être modifiés et de nouveaux peuvent être ajoutés avec la comman
|
|||||||
|
|
||||||
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|
||||||
|===
|
|===
|
||||||
| Touche | Description | Commande
|
| Touche | Description | Commande
|
||||||
| kbd:[Alt+m] | Activer/désactiver la souris. | `+/mouse toggle+`
|
| kbd:[Alt+m] | Activer/désactiver la souris. | `+/mouse toggle+`
|
||||||
| kbd:[Alt+s] | Activer/désactiver la vérification de l'orthographe. | `+/mute spell toggle+`
|
| kbd:[Alt+s] | Activer/désactiver la vérification de l'orthographe. | `+/mute spell toggle+`
|
||||||
| kbd:[Alt+=] | Activer/désactiver les filtres. | `+/filter toggle+`
|
| kbd:[Alt+=] | Activer/désactiver les filtres. | `+/filter toggle+`
|
||||||
| kbd:[Alt+-] | Activer/désactiver les filtres dans le tampon courant. | `+/filter toggle @+`
|
| kbd:[Alt+-] | Activer/désactiver les filtres dans le tampon courant. | `+/filter toggle @+`
|
||||||
|
| kbd:[Alt+Ctrl+l] (`L`) | Basculer entre les commandes distantes et locales sur un tampon distant (relay "api"). | `+/remote togglecmd+`
|
||||||
|===
|
|===
|
||||||
|
|
||||||
[[key_bindings_search_context]]
|
[[key_bindings_search_context]]
|
||||||
@@ -2064,27 +2073,27 @@ Exemple de tampon fset affichant les options commençant par `weechat.look` :
|
|||||||
[subs="quotes"]
|
[subs="quotes"]
|
||||||
....
|
....
|
||||||
┌──────────────────────────────────────────────────────────────────────────────────────┐
|
┌──────────────────────────────────────────────────────────────────────────────────────┐
|
||||||
│1.weechat│1/121 | Filter: weechat.look.* | Sort: ~name | Key(input): alt+space=toggle │
|
│1.weechat│7/125 | Filtre : weechat.look.* | Tri : ~name | Touche(entrée) : alt+space>>│
|
||||||
│2.fset │weechat.look.bare_display_exit_on_input: exit the bare display mode on any c│
|
│2.fset │weechat.look.bare_display_exit_on_input : sortir du mode d'affichage dépouil│
|
||||||
│ │hanges in input [default: on] │
|
│ │lé ("bare") sur tout changement dans la ligne de commande [défaut : on] │
|
||||||
│ │----------------------------------------------------------------------------│
|
│ │----------------------------------------------------------------------------│
|
||||||
│ │ weechat.look.align_end_of_lines enum message │
|
│ │ weechat.look.align_end_of_lines énuméré message │
|
||||||
│ │ weechat.look.align_multiline_words boolean on │
|
│ │ weechat.look.align_multiline_words booléen on │
|
||||||
│ │ weechat.look.bar_more_down string "++" │
|
│ │ weechat.look.bar_more_down chaîne "++" │
|
||||||
│ │ weechat.look.bar_more_left string "<<" │
|
│ │ weechat.look.bar_more_left chaîne "<<" │
|
||||||
│ │ weechat.look.bar_more_right string ">>" │
|
│ │ weechat.look.bar_more_right chaîne ">>" │
|
||||||
│ │ weechat.look.bar_more_up string "--" │
|
│ │ weechat.look.bar_more_up chaîne "--" │
|
||||||
│ │## weechat.look.bare_display_exit_on_input boolean on ##│
|
│ │## weechat.look.bare_display_exit_on_input booléen on ##│
|
||||||
│ │ weechat.look.bare_display_time_format string "%H:%M" │
|
│ │ weechat.look.bare_display_time_format chaîne "%H:%M" │
|
||||||
│ │ weechat.look.buffer_auto_renumber boolean on │
|
│ │ weechat.look.buffer_auto_renumber booléen on │
|
||||||
│ │ weechat.look.buffer_notify_default enum all │
|
│ │ weechat.look.buffer_notify_default énuméré all │
|
||||||
│ │ weechat.look.buffer_position enum end │
|
│ │ weechat.look.buffer_position énuméré end │
|
||||||
│ │ weechat.look.buffer_search_case_sensitive boolean off │
|
│ │ weechat.look.buffer_search_case_sensitive booléen off │
|
||||||
│ │ weechat.look.buffer_search_force_default boolean off │
|
│ │ weechat.look.buffer_search_force_default booléen off │
|
||||||
│ │ weechat.look.buffer_search_regex boolean off │
|
│ │ weechat.look.buffer_search_history énuméré local │
|
||||||
│ │ weechat.look.buffer_search_where enum prefix_message │
|
│ │ weechat.look.buffer_search_regex booléen off │
|
||||||
│ │ weechat.look.buffer_time_format string "%H:%M:%S" │
|
│ │ weechat.look.buffer_search_where énuméré prefix_message │
|
||||||
│ │ weechat.look.buffer_time_same string "" │
|
│ │ weechat.look.buffer_time_format chaîne "%H:%M:%S" │
|
||||||
│ │[12:55] [2] [fset] 2:fset │
|
│ │[12:55] [2] [fset] 2:fset │
|
||||||
│ │█ │
|
│ │█ │
|
||||||
└──────────────────────────────────────────────────────────────────────────────────────┘
|
└──────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
@@ -2218,6 +2227,166 @@ Exemple de gras avec la couleur de texte du terminal :
|
|||||||
/set weechat.color.status_time *99999
|
/set weechat.color.status_time *99999
|
||||||
----
|
----
|
||||||
|
|
||||||
|
[[themes]]
|
||||||
|
=== Thèmes
|
||||||
|
|
||||||
|
Un thème est un ensemble nommé de surcharges d'options qui peut être
|
||||||
|
appliqué par la commande <<command_weechat_theme,/theme>>. WeeChat est
|
||||||
|
livré avec un thème intégré `"light"` adapté aux terminaux à fond clair
|
||||||
|
et permet de charger temporairement des thèmes utilisateur depuis des
|
||||||
|
fichiers.
|
||||||
|
|
||||||
|
[[themes_themable_options]]
|
||||||
|
==== Options modifiables par un thème
|
||||||
|
|
||||||
|
Les thèmes ne peuvent modifier que les options marquées comme
|
||||||
|
_themable_ (modifiables par un thème). Toutes les options `*.color.*`
|
||||||
|
le sont par défaut ; certaines options de type chaîne contenant des
|
||||||
|
références `+${color:...}+` (par exemple
|
||||||
|
`+weechat.color.chat_nick_colors+`, `+weechat.look.prefix_error+` ou les
|
||||||
|
formats `+buflist.format.*+`) sont explicitement déclarées comme
|
||||||
|
modifiables.
|
||||||
|
|
||||||
|
La liste complète des options modifiables peut être affichée depuis le
|
||||||
|
tampon <<command_fset_fset,/fset>> avec le filtre `+t:themable+`.
|
||||||
|
|
||||||
|
[[themes_apply]]
|
||||||
|
==== Appliquer un thème
|
||||||
|
|
||||||
|
Pour basculer vers le thème intégré pour fond clair :
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme apply light
|
||||||
|
----
|
||||||
|
|
||||||
|
L'état actuel de toutes les options modifiables est sauvegardé au
|
||||||
|
préalable dans un fichier de sauvegarde nommé
|
||||||
|
`+backup-AAAAMMJJ-HHMMSS-uuuuuu+` dans le répertoire `+themes+` du
|
||||||
|
répertoire de configuration de WeeChat. L'apparence précédente peut
|
||||||
|
ainsi être restaurée à tout moment avec :
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme apply backup-AAAAMMJJ-HHMMSS-uuuuuu
|
||||||
|
----
|
||||||
|
|
||||||
|
La création de la sauvegarde peut être désactivée (déconseillé) :
|
||||||
|
|
||||||
|
----
|
||||||
|
/set weechat.look.theme_backup off
|
||||||
|
----
|
||||||
|
|
||||||
|
Si la sauvegarde est activée et que le fichier ne peut pas être écrit,
|
||||||
|
l'application est annulée avant qu'aucune option ne soit modifiée.
|
||||||
|
|
||||||
|
Le nom du dernier thème appliqué est conservé dans
|
||||||
|
`+weechat.look.theme+` (à titre informatif uniquement ; il n'est pas
|
||||||
|
ré-appliqué au démarrage).
|
||||||
|
|
||||||
|
[[themes_reset]]
|
||||||
|
==== Réinitialiser aux valeurs par défaut
|
||||||
|
|
||||||
|
Pour rétablir l'apparence d'origine livrée avec WeeChat, réinitialiser
|
||||||
|
toutes les options modifiables à leur valeur par défaut :
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme reset
|
||||||
|
----
|
||||||
|
|
||||||
|
Une sauvegarde est écrite au préalable (même garde-fou que
|
||||||
|
`+/theme apply+`) ; si la sauvegarde échoue, la réinitialisation est
|
||||||
|
annulée avant qu'aucune option ne soit modifiée. L'option
|
||||||
|
`+weechat.look.theme+` est également remise à vide.
|
||||||
|
|
||||||
|
[[themes_save_delete]]
|
||||||
|
==== Sauvegarder et supprimer des thèmes utilisateur
|
||||||
|
|
||||||
|
Sauvegarder l'état actuel des options modifiables en tant que nouveau
|
||||||
|
thème utilisateur :
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme save monTheme
|
||||||
|
----
|
||||||
|
|
||||||
|
Toutes les options modifiables sont écrites, donc le fichier est
|
||||||
|
autonome et applique exactement le même aspect sur n'importe quel
|
||||||
|
WeeChat, quelle que soit sa configuration actuelle.
|
||||||
|
|
||||||
|
Les noms réservés (noms de thèmes intégrés comme `+light+` et tout nom
|
||||||
|
commençant par `+backup-+`) sont refusés. Les fichiers sont placés
|
||||||
|
dans `+${weechat_config_dir}/themes/<nom>.theme+`.
|
||||||
|
|
||||||
|
Renommer un thème utilisateur (usage typique : conserver une
|
||||||
|
sauvegarde automatique utile sous un nom plus parlant) :
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme rename backup-20260525-094210-123456 maSauvegarde
|
||||||
|
----
|
||||||
|
|
||||||
|
Les thèmes intégrés n'ont pas de fichier et ne peuvent pas être
|
||||||
|
renommés ; le nom cible ne peut pas correspondre à un nom intégré ni
|
||||||
|
commencer par `+backup-+`, et le fichier cible ne doit pas déjà
|
||||||
|
exister. Le champ `+name+` de la section `+[info]+` à l'intérieur du
|
||||||
|
fichier est réécrit afin que `/theme info` affiche le nouveau nom de
|
||||||
|
manière cohérente.
|
||||||
|
|
||||||
|
Supprimer un thème utilisateur :
|
||||||
|
|
||||||
|
----
|
||||||
|
/theme delete monTheme
|
||||||
|
----
|
||||||
|
|
||||||
|
Cela supprime le fichier sur le disque ; les thèmes intégrés ne
|
||||||
|
peuvent pas être supprimés.
|
||||||
|
|
||||||
|
[[themes_file_format]]
|
||||||
|
==== Format du fichier de thème
|
||||||
|
|
||||||
|
Un fichier de thème est de type INI avec deux sections :
|
||||||
|
|
||||||
|
----
|
||||||
|
[info]
|
||||||
|
name = "solarized_light"
|
||||||
|
description = "Thème fond clair inspiré de Solarized"
|
||||||
|
date = "2026-05-25 09:42:10"
|
||||||
|
weechat = "4.10.0-dev"
|
||||||
|
|
||||||
|
[options]
|
||||||
|
weechat.color.chat = "darkgray"
|
||||||
|
weechat.color.separator = "blue"
|
||||||
|
irc.color.input_nick = "magenta"
|
||||||
|
buflist.format.number = "${color:28}${number}${if:${number_displayed}?.: }"
|
||||||
|
----
|
||||||
|
|
||||||
|
`+[info]+` est une section de métadonnées informatives affichées par
|
||||||
|
`/theme info`. `+[options]+` contient les surcharges réelles ; les clés
|
||||||
|
sont les noms complets d'options tels qu'affichés par `/set`. Les
|
||||||
|
valeurs de type chaîne peuvent être encadrées par des guillemets
|
||||||
|
simples ou doubles ; les guillemets sont retirés à l'analyse. Les
|
||||||
|
options non modifiables par un thème listées dans un fichier sont
|
||||||
|
refusées au moment de l'application et signalées sur le tampon _core_
|
||||||
|
(ainsi, un fichier `.theme` importé depuis une source non fiable ne
|
||||||
|
peut pas écraser des mots de passe, des listes d'auto-chargement ou
|
||||||
|
des commandes de démarrage).
|
||||||
|
|
||||||
|
Les fichiers de thème utilisateur ne sont jamais mis en cache : à
|
||||||
|
chaque `/theme apply <nom>`, le fichier est analysé, appliqué, puis
|
||||||
|
libéré.
|
||||||
|
|
||||||
|
[[themes_resolution]]
|
||||||
|
==== Ordre de résolution
|
||||||
|
|
||||||
|
Lors de l'exécution de `+/theme apply <nom>+` :
|
||||||
|
|
||||||
|
* Si `+${weechat_config_dir}/themes/<nom>.theme+` existe, le fichier
|
||||||
|
est analysé et utilisé (il masque tout thème intégré du même nom).
|
||||||
|
* Sinon, le registre des thèmes intégrés est consulté ; les thèmes
|
||||||
|
intégrés sont enregistrés par programmation par le cœur, les
|
||||||
|
extensions et les scripts (voir la documentation des extensions et
|
||||||
|
des scripts pour `+weechat_theme_register+`).
|
||||||
|
|
||||||
|
Si aucune des deux sources ne fournit le nom, l'application est
|
||||||
|
refusée.
|
||||||
|
|
||||||
[[charset]]
|
[[charset]]
|
||||||
=== Charset
|
=== Charset
|
||||||
|
|
||||||
@@ -3342,7 +3511,7 @@ Pour ajouter une donnée sécurisée, utilisez la commande `/secure set`, par
|
|||||||
exemple un mot de passe pour le serveur IRC _libera_ :
|
exemple un mot de passe pour le serveur IRC _libera_ :
|
||||||
|
|
||||||
----
|
----
|
||||||
/secure set libera motdepasse
|
/secure set libera mot_de_passe
|
||||||
----
|
----
|
||||||
|
|
||||||
Pour plus de confort, les données sécurisées peuvent être affichées dans un
|
Pour plus de confort, les données sécurisées peuvent être affichées dans un
|
||||||
@@ -3501,9 +3670,12 @@ Par exemple pour vous connecter à https://libera.chat/[libera.chat ^↗^^] ave
|
|||||||
(communications chiffrées) :
|
(communications chiffrées) :
|
||||||
|
|
||||||
----
|
----
|
||||||
/server add libera irc.libera.chat/6697 -tls
|
/server add libera irc.libera.chat
|
||||||
----
|
----
|
||||||
|
|
||||||
|
[NOTE]
|
||||||
|
Le port par défaut est 6697 et TLS (communications chiffrées) est activé.
|
||||||
|
|
||||||
Vous pouvez demander à WeeChat de se connecter automatiquement à ce serveur
|
Vous pouvez demander à WeeChat de se connecter automatiquement à ce serveur
|
||||||
au démarrage :
|
au démarrage :
|
||||||
|
|
||||||
@@ -3546,51 +3718,52 @@ Par exemple si vous avez créé le serveur _libera_ avec les commandes ci-dessus
|
|||||||
vous verrez ceci avec la commande `/fset libera` :
|
vous verrez ceci avec la commande `/fset libera` :
|
||||||
|
|
||||||
....
|
....
|
||||||
irc.server.libera.addresses string "irc.libera.chat/6697"
|
irc.server.libera.addresses chaîne "irc.libera.chat"
|
||||||
irc.server.libera.anti_flood_prio_high integer null -> 2
|
irc.server.libera.anti_flood entier null -> 2000
|
||||||
irc.server.libera.anti_flood_prio_low integer null -> 2
|
irc.server.libera.autoconnect booléen on
|
||||||
irc.server.libera.autoconnect boolean on
|
irc.server.libera.autojoin chaîne null -> ""
|
||||||
irc.server.libera.autojoin string null -> ""
|
irc.server.libera.autojoin_delay entier null -> 0
|
||||||
irc.server.libera.autojoin_dynamic boolean null -> off
|
irc.server.libera.autojoin_dynamic booléen null -> off
|
||||||
irc.server.libera.autoreconnect boolean null -> on
|
irc.server.libera.autoreconnect booléen null -> on
|
||||||
irc.server.libera.autoreconnect_delay integer null -> 10
|
irc.server.libera.autoreconnect_delay entier null -> 10
|
||||||
irc.server.libera.autorejoin boolean null -> off
|
irc.server.libera.autorejoin booléen null -> off
|
||||||
irc.server.libera.autorejoin_delay integer null -> 30
|
irc.server.libera.autorejoin_delay entier null -> 30
|
||||||
irc.server.libera.away_check integer null -> 0
|
irc.server.libera.away_check entier null -> 0
|
||||||
irc.server.libera.away_check_max_nicks integer null -> 25
|
irc.server.libera.away_check_max_nicks entier null -> 25
|
||||||
irc.server.libera.capabilities string null -> "*"
|
irc.server.libera.capabilities chaîne null -> "*"
|
||||||
irc.server.libera.charset_message enum null -> message
|
irc.server.libera.charset_message énuméré null -> message
|
||||||
irc.server.libera.command string null -> ""
|
irc.server.libera.command chaîne null -> ""
|
||||||
irc.server.libera.command_delay integer null -> 0
|
irc.server.libera.command_delay entier null -> 0
|
||||||
irc.server.libera.connection_timeout integer null -> 60
|
irc.server.libera.connection_timeout entier null -> 60
|
||||||
irc.server.libera.default_chantypes string null -> "#&"
|
irc.server.libera.default_chantypes chaîne null -> "#&"
|
||||||
irc.server.libera.ipv6 boolean null -> on
|
irc.server.libera.ipv6 énuméré null -> auto
|
||||||
irc.server.libera.local_hostname string null -> ""
|
irc.server.libera.local_hostname chaîne null -> ""
|
||||||
irc.server.libera.msg_kick string null -> ""
|
irc.server.libera.msg_kick chaîne null -> ""
|
||||||
irc.server.libera.msg_part string null -> "WeeChat ${info:version}"
|
irc.server.libera.msg_part chaîne null -> "WeeChat ${info:version}"
|
||||||
irc.server.libera.msg_quit string null -> "WeeChat ${info:version}"
|
irc.server.libera.msg_quit chaîne null -> "WeeChat ${info:version}"
|
||||||
irc.server.libera.nicks string null -> "alice,alice1,alice2,alice3,alice4"
|
irc.server.libera.nicks chaîne null -> "${username},${username}2,${username}3,${username}4,${username}5"
|
||||||
irc.server.libera.nicks_alternate boolean null -> on
|
irc.server.libera.nicks_alternate booléen null -> on
|
||||||
irc.server.libera.notify string null -> ""
|
irc.server.libera.notify chaîne null -> ""
|
||||||
irc.server.libera.password string null -> ""
|
irc.server.libera.password chaîne null -> ""
|
||||||
irc.server.libera.proxy string null -> ""
|
irc.server.libera.proxy chaîne null -> ""
|
||||||
irc.server.libera.realname string null -> ""
|
irc.server.libera.realname chaîne null -> ""
|
||||||
irc.server.libera.sasl_fail enum null -> reconnect
|
irc.server.libera.registered_mode chaîne null -> "r"
|
||||||
irc.server.libera.sasl_key string null -> ""
|
irc.server.libera.sasl_fail énuméré null -> reconnect
|
||||||
irc.server.libera.sasl_mechanism enum null -> plain
|
irc.server.libera.sasl_key chaîne null -> ""
|
||||||
irc.server.libera.sasl_password string "${sec.data.libera}"
|
irc.server.libera.sasl_mechanism énuméré null -> plain
|
||||||
irc.server.libera.sasl_timeout integer null -> 15
|
irc.server.libera.sasl_password chaîne "${sec.data.libera}"
|
||||||
irc.server.libera.sasl_username string "alice"
|
irc.server.libera.sasl_timeout entier null -> 15
|
||||||
irc.server.libera.split_msg_max_length integer null -> 512
|
irc.server.libera.sasl_username chaîne "alice"
|
||||||
irc.server.libera.tls boolean on
|
irc.server.libera.split_msg_max_length entier null -> 512
|
||||||
irc.server.libera.tls_cert string null -> ""
|
irc.server.libera.tls booléen null -> on
|
||||||
irc.server.libera.tls_dhkey_size integer null -> 2048
|
irc.server.libera.tls_cert chaîne null -> ""
|
||||||
irc.server.libera.tls_fingerprint string null -> ""
|
irc.server.libera.tls_dhkey_size entier null -> 2048
|
||||||
irc.server.libera.tls_password string null -> ""
|
irc.server.libera.tls_fingerprint chaîne null -> ""
|
||||||
irc.server.libera.tls_priorities string null -> "NORMAL:-VERS-SSL3.0"
|
irc.server.libera.tls_password chaîne null -> ""
|
||||||
irc.server.libera.tls_verify boolean null -> on
|
irc.server.libera.tls_priorities chaîne null -> "NORMAL"
|
||||||
irc.server.libera.usermode string null -> ""
|
irc.server.libera.tls_verify booléen null -> on
|
||||||
irc.server.libera.username string null -> "alice"
|
irc.server.libera.usermode chaîne null -> ""
|
||||||
|
irc.server.libera.username chaîne null -> "${username}"
|
||||||
....
|
....
|
||||||
|
|
||||||
Par exemple si vous voulez vous connecter automatiquement à tous les serveurs
|
Par exemple si vous voulez vous connecter automatiquement à tous les serveurs
|
||||||
@@ -3856,7 +4029,7 @@ WeeChat supporte les https://ircv3.net/irc/[extensions IRCv3 ^↗^^] suivantes
|
|||||||
* <<irc_ircv3_batch,batch>>
|
* <<irc_ircv3_batch,batch>>
|
||||||
* <<irc_ircv3_cap_notify,cap-notify>>
|
* <<irc_ircv3_cap_notify,cap-notify>>
|
||||||
* <<irc_ircv3_chghost,chghost>>
|
* <<irc_ircv3_chghost,chghost>>
|
||||||
* <<irc_ircv3_draft/multiline,draft/multiline>>
|
* <<irc_ircv3_draft_multiline,draft/multiline>>
|
||||||
* <<irc_ircv3_echo_message,echo-message>>
|
* <<irc_ircv3_echo_message,echo-message>>
|
||||||
* <<irc_ircv3_extended_join,extended-join>>
|
* <<irc_ircv3_extended_join,extended-join>>
|
||||||
* <<irc_ircv3_invite_notify,invite-notify>>
|
* <<irc_ircv3_invite_notify,invite-notify>>
|
||||||
@@ -3904,7 +4077,7 @@ Spécification : https://ircv3.net/specs/extensions/account-tag[account-tag ^
|
|||||||
Cette capacité autorise le serveur à envoyer le compte comme étiquette de message
|
Cette capacité autorise le serveur à envoyer le compte comme étiquette de message
|
||||||
dans les commandes envoyées au client. +
|
dans les commandes envoyées au client. +
|
||||||
WeeChat extrait cette étiquette et la sauve dans le message, mais elle n'est pas
|
WeeChat extrait cette étiquette et la sauve dans le message, mais elle n'est pas
|
||||||
utilisée ni affichée. Elle peut être utilisée dans la commande <<command_filter,/filter>>
|
utilisée ni affichée. Elle peut être utilisée dans la commande <<command_weechat_filter,/filter>>
|
||||||
pour filtrer les messages correspondants à des comptes spécifiques.
|
pour filtrer les messages correspondants à des comptes spécifiques.
|
||||||
|
|
||||||
Exemple de message IRC brut reçu :
|
Exemple de message IRC brut reçu :
|
||||||
@@ -4699,7 +4872,7 @@ Il est fortement recommandé de définir un mot de passe pour le relai, avec ces
|
|||||||
commandes :
|
commandes :
|
||||||
|
|
||||||
----
|
----
|
||||||
/secure set relay motdepasse
|
/secure set relay mot_de_passe
|
||||||
/set relay.network.password "${sec.data.relay}"
|
/set relay.network.password "${sec.data.relay}"
|
||||||
----
|
----
|
||||||
|
|
||||||
@@ -4780,7 +4953,7 @@ le nom interne du serveur dans la commande IRC "PASS", avec le format
|
|||||||
(voir l'exemple ci-dessous) :
|
(voir l'exemple ci-dessous) :
|
||||||
|
|
||||||
----
|
----
|
||||||
PASS serveur:motdepasse
|
PASS serveur:mot_de_passe
|
||||||
----
|
----
|
||||||
|
|
||||||
Exemple : proxy IRC avec TLS pour tout serveur (le client choisira) :
|
Exemple : proxy IRC avec TLS pour tout serveur (le client choisira) :
|
||||||
@@ -4796,7 +4969,7 @@ Exemple : proxy IRC sans TLS seulement pour le serveur "libera" :
|
|||||||
----
|
----
|
||||||
|
|
||||||
Maintenant vous pouvez vous connecter sur le port 8000 avec n'importe quel
|
Maintenant vous pouvez vous connecter sur le port 8000 avec n'importe quel
|
||||||
client IRC en utilisant le mot de passe "motdepasse" (ou "libera:motdepasse"
|
client IRC en utilisant le mot de passe "mot_de_passe" (ou "libera:mot_de_passe"
|
||||||
si aucun serveur n'a été spécifié dans le relai).
|
si aucun serveur n'a été spécifié dans le relai).
|
||||||
|
|
||||||
Par exemple si vous utilisez WeeChat comme client IRC du relai, avec un serveur
|
Par exemple si vous utilisez WeeChat comme client IRC du relai, avec un serveur
|
||||||
@@ -4809,7 +4982,7 @@ avec ces commandes :
|
|||||||
----
|
----
|
||||||
|
|
||||||
[[relay_api_protocol]]
|
[[relay_api_protocol]]
|
||||||
=== API protocol
|
=== Protocole API
|
||||||
|
|
||||||
L'extension Relay peut envoyer les données à un autre WeeChat ou une interface
|
L'extension Relay peut envoyer les données à un autre WeeChat ou une interface
|
||||||
distante avec un protocol HTTP de type API REST.
|
distante avec un protocol HTTP de type API REST.
|
||||||
@@ -4827,12 +5000,20 @@ Par exemple :
|
|||||||
----
|
----
|
||||||
|
|
||||||
Maintenant vous pouvez vous connecter sur le port 9000 avec une interface
|
Maintenant vous pouvez vous connecter sur le port 9000 avec une interface
|
||||||
distante en utilisant le mot de passe "motdepasse".
|
distante en utilisant le mot de passe "mot_de_passe".
|
||||||
|
|
||||||
Pour vous connecter à un relai _api_ avec WeeChat :
|
Pour vous connecter à un relai _api_ avec WeeChat :
|
||||||
|
|
||||||
----
|
----
|
||||||
/remote add weechat http://localhost:9000 -password=motdepasse
|
/remote add weechat http://localhost:9000 -password=mot_de_passe
|
||||||
|
/remote connect weechat
|
||||||
|
----
|
||||||
|
|
||||||
|
Pour vous connecter à un relai _api_ tournant ailleurs avec WeeChat
|
||||||
|
(TLS est fortement recommandé) :
|
||||||
|
|
||||||
|
----
|
||||||
|
/remote add weechat https://example.com:9000 -password=mypassword
|
||||||
/remote connect weechat
|
/remote connect weechat
|
||||||
----
|
----
|
||||||
|
|
||||||
@@ -4861,7 +5042,7 @@ Par exemple :
|
|||||||
----
|
----
|
||||||
|
|
||||||
Maintenant vous pouvez vous connecter sur le port 9500 avec une interface
|
Maintenant vous pouvez vous connecter sur le port 9500 avec une interface
|
||||||
distante en utilisant le mot de passe "motdepasse".
|
distante en utilisant le mot de passe "mot_de_passe".
|
||||||
|
|
||||||
[[relay_websocket]]
|
[[relay_websocket]]
|
||||||
=== WebSocket
|
=== WebSocket
|
||||||
@@ -4880,7 +5061,7 @@ JavaScript :
|
|||||||
|
|
||||||
[source,javascript]
|
[source,javascript]
|
||||||
----
|
----
|
||||||
websocket = new WebSocket("ws://server.com:9500/weechat");
|
websocket = new WebSocket("ws://example.com:9500/weechat");
|
||||||
----
|
----
|
||||||
|
|
||||||
Le port (9500 dans l'exemple) est le port défini dans l'extension Relay.
|
Le port (9500 dans l'exemple) est le port défini dans l'extension Relay.
|
||||||
@@ -5966,7 +6147,7 @@ désactivé par défaut. +
|
|||||||
Pour l'activer, tapez cette commande :
|
Pour l'activer, tapez cette commande :
|
||||||
|
|
||||||
----
|
----
|
||||||
/set script.scripts.download_enabled on
|
/script enable
|
||||||
----
|
----
|
||||||
|
|
||||||
Vous pouvez alors télécharger la liste des scripts et les afficher dans un tampon
|
Vous pouvez alors télécharger la liste des scripts et les afficher dans un tampon
|
||||||
@@ -5976,33 +6157,33 @@ avec la commande <<command_script_script,/script>> :
|
|||||||
:x: *
|
:x: *
|
||||||
....
|
....
|
||||||
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
┌──────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
|
||||||
│1.weechat│368/368 scripts (filter: {x}) | Sort: i,p,n | Alt+key/input: i=install, r=remove, l=load, L=reload, u=│
|
│1.weechat│322/322 scripts (filtre : {x}) | Tri : i,p,n | Alt+touche/entrée : i=installer, r=supprimer, l=charg>>│
|
||||||
│2.scripts│{x} autosort.py 3.9 2020-10-11 | Automatically keep buffers grouped by server│
|
│2.scripts│{x} autosort.py 3.10 2023-12-31 | Garder automatiquement les tampons group│
|
||||||
│ │{x} multiline.pl 0.6.3 2016-01-02 | Multi-line edit box, also supports editing o│
|
│ │{x} highmon.pl 2.7 2020-06-21 | Ajouter un tampon moniteur de highlights│
|
||||||
│ │{x} highmon.pl 2.7 2020-06-21 | Adds a highlight monitor buffer. │
|
│ │{x}ia r grep.py 0.8.6 0.8.6 2022-11-11 | Recherche d'expression régulière dans le│
|
||||||
│ │##{x}ia r grep.py 0.8.5 0.8.5 2021-05-11 | Search regular expression in buffers or log ##│
|
│ │{x} colorize_nicks.py 32 2023-10-30 | Utiliser la couleur des pseudos weechat │
|
||||||
│ │{x} autojoin.py 0.3.1 2019-10-06 | Configure autojoin for all servers according│
|
│ │##{x}ia r go.py 3.0.1 3.0.1 2024-05-30 | Déplacement rapide dans les tampons. ##│
|
||||||
│ │{x} colorize_nicks.py 28 2021-03-06 | Use the weechat nick colors in the chat area│
|
│ │ aesthetic.py 1.0.6 2020-10-25 | Affiche des messages de manière plus E S│
|
||||||
│ │{x}ia r go.py 2.7 2.7 2021-05-26 | Quick jump to buffers. │
|
│ │ aformat.py 0.2 2018-06-21 | Formatage de texte alternatif, pratique │
|
||||||
│ │{x} text_item.py 0.9 2019-05-25 | Add bar items with plain text. │
|
│ │ alternatetz.py 0.4 2022-01-25 | Ajouter un objet de barre avec un fuseau│
|
||||||
│ │ aesthetic.py 1.0.6 2020-10-25 | Make messages more A E S T H E T I C A L L Y│
|
│ │ amarok2.pl 0.7 2012-05-08 | Contrôler et afficher la musique jouée p│
|
||||||
│ │ aformat.py 0.2 2018-06-21 | Alternate text formatting, useful for relays│
|
│ │ amqp_notify.rb 0.1 2011-01-12 | Envoyer les messages privés et highlight│
|
||||||
│ │ alternatetz.py 0.3 2018-11-11 | Add an alternate timezone item. │
|
│ │ announce_url_title.py 19 2021-06-05 | Annoncer le titre de l'URL à l'utilisate│
|
||||||
│ │ amarok2.pl 0.7 2012-05-08 | Amarok 2 control and now playing script. │
|
│ │ anotify.py 1.0.2 2020-05-16 | Notifications des messages privés, highl│
|
||||||
│ │ amqp_notify.rb 0.1 2011-01-12 | Send private messages and highlights to an A│
|
│ │ anti_password.py 1.2.1 2021-03-13 | Empêcher un mot de passe d'être envoyé a│
|
||||||
│ │ announce_url_title.py 19 2021-06-05 | Announce URL title to user or to channel. │
|
│ │ apply_corrections.py 1.3 2018-06-21 | Afficher le texte corrigé quand un utili│
|
||||||
│ │ anotify.py 1.0.2 2020-05-16 | Notifications of private messages, highlight│
|
│ │ arespond.py 0.1.2 2022-01-25 | Simple auto-réponse. │
|
||||||
│ │ anti_password.py 1.2.1 2021-03-13 | Prevent a password from being accidentally s│
|
│ │ atcomplete.pl 0.001 2016-10-29 | Complétion avec Tab des pseudos préfixés│
|
||||||
│ │ apply_corrections.py 1.3 2018-06-21 | Display corrected text when user sends s/typ│
|
│ │ audacious.pl 0.3 2009-05-03 | Afficher la chanson actuellement jouée p│
|
||||||
│ │ arespond.py 0.1.1 2020-10-11 | Simple autoresponder. │
|
│ │ auth.rb 0.3 2014-05-30 | S'authentifier automatiquement avec Nick│
|
||||||
│ │ atcomplete.pl 0.001 2016-10-29 | Tab complete nicks when prefixed with "@". │
|
│ │ auto_away.py 0.4 2018-11-11 | Un script simple d'auto absence (away). │
|
||||||
│ │ audacious.pl 0.3 2009-05-03 | Display which song Audacious is currently pl│
|
│ │ autoauth.py 1.3 2021-11-07 | Identification automatique en cas de cha│
|
||||||
│ │ auth.rb 0.3 2014-05-30 | Automatically authenticate with NickServ usi│
|
│ │ autobump.py 0.1.0 2019-06-14 | Trier les tampons selon l'activité. │
|
||||||
│ │ auto_away.py 0.4 2018-11-11 | A simple auto-away script. │
|
│ │ autoconf.py 0.4 2021-05-11 | Charger/sauver automatiquement les optio│
|
||||||
│ │ autoauth.py 1.3 2021-11-07 | Permits to auto-authenticate when changing n│
|
│ │ autoconnect.py 0.3.3 2019-10-06 | Réouvrir les serveurs et canaux ouverts │
|
||||||
│ │ autobump.py 0.1.0 2019-06-14 | Bump buffers upon activity. │
|
│ │ autojoin_on_invite.py 0.9 2022-10-25 | Rejoindre automatiquement les canaux où │
|
||||||
│ │ autoconf.py 0.4 2021-05-11 | Auto save/load changed options in a .weerc f│
|
│ │ automarkbuffer.py 1.0 2015-03-31 | Marquer les tampons comme lus s'il n'y a│
|
||||||
│ │ autoconnect.py 0.3.3 2019-10-06 | Reopen servers and channels opened last time│
|
│ │ automerge.py 0.2 2018-03-03 | Fusionner automatiquement les tampons se│
|
||||||
│ │[12:55] [2] [script] 2:scripts │
|
│ │[12:55] [2] [script] 2:scripts │
|
||||||
│ │█ │
|
│ │█ │
|
||||||
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
||||||
|
|||||||
@@ -0,0 +1,28 @@
|
|||||||
|
// SPDX-FileCopyrightText: 2017-2020 Dan Allen, Sarah White, Ryan Waldron
|
||||||
|
// SPDX-FileCopyrightText: 2017-2021 Marco Ciampa <ciampix@posteo.net>
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
//
|
||||||
|
// Italian translation, courtesy of Marco Ciampa <ciampix@posteo.net>
|
||||||
|
:appendix-caption: Appendice
|
||||||
|
:appendix-refsig: {appendix-caption}
|
||||||
|
:caution-caption: Attenzione
|
||||||
|
:chapter-signifier: Capitolo
|
||||||
|
:chapter-refsig: {chapter-signifier}
|
||||||
|
:example-caption: Esempio
|
||||||
|
:figure-caption: Figura
|
||||||
|
:important-caption: Importante
|
||||||
|
:last-update-label: Ultimo aggiornamento
|
||||||
|
ifdef::listing-caption[:listing-caption: Elenco]
|
||||||
|
ifdef::manname-title[:manname-title: Nome]
|
||||||
|
:note-caption: Nota
|
||||||
|
:part-signifier: Parte
|
||||||
|
:part-refsig: {part-signifier}
|
||||||
|
ifdef::preface-title[:preface-title: Prefazione]
|
||||||
|
:section-refsig: Sezione
|
||||||
|
:table-caption: Tabella
|
||||||
|
:tip-caption: Suggerimento
|
||||||
|
:toc-title: Indice
|
||||||
|
:untitled-label: Senza titolo
|
||||||
|
:version-label: Versione
|
||||||
|
:warning-caption: Attenzione
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user