1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
|
= WeeChat ãŠãŒã¶ãŒãºã¬ã€ã
:author: Sébastien Helleu
:email: flashcode@flashtux.org
:lang: ja-jp
:toc: left
:toclevels: 4
:toc-title: ç®æ¬¡
:sectnums:
:sectnumlevels: 3
:docinfo1:
翻蚳è
:
* Ryuunosuke Ayanokouzi <i38w7i3@yahoo.co.jp>, 2012-2019
ãã®ããã¥ã¢ã«ã¯ WeeChat ãã£ããã¯ã©ã€ã¢ã³ãã«ã€ããŠã®ææžã§ããã㯠WeeChat ã®äžéšã§ãã
ãã®ææžã®ææ°çã¯ä»¥äžã®ããŒãžã«ãããŸã:
https://weechat.org/doc
[[introduction]]
== ã€ã³ãããã¯ã·ã§ã³
WeeChat (Wee Enhanced Environment for Chat)
ã¯ããªãŒã®ãã£ããã¯ã©ã€ã¢ã³ãã§ããé«éã§è»œéãå€ãã®ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã§åãããã«èšèšãããŠããŸãã
[[features]]
=== ç¹åŸŽ
äž»ãªç¹åŸŽ:
* ãã«ããããã³ã« (䞻㫠IRC)
* è€æ°ã®ãµãŒããžã®æ¥ç¶ (SSLãIPv6ããããã·ããµããŒã)
* ã³ã³ãã¯ããé«éã軜é
* ãã©ã°ã€ã³ãšã¹ã¯ãªããã§ã«ã¹ã¿ãã€ãºãæ¡åŒµãå¯èœ
* IRC ã® RFC ã«æºæ
https://tools.ietf.org/html/rfc1459[1459]ã
https://tools.ietf.org/html/rfc2810[2810]ã
https://tools.ietf.org/html/rfc2811[2811]ã
https://tools.ietf.org/html/rfc2812[2812]ã
https://tools.ietf.org/html/rfc2813[2813]ã
* ãªã¢ãŒãã€ã³ã¿ãŒãã§ãŒã¹çšã® IRC ãããã·ãšãªã¬ãŒ
* ãã«ããã©ãããã©ãŒã (GNU/Linuxã*BSDãmacOSãWindows ç)
* å®å
šãª GPLãããªãŒãœãããŠã§ã¢
WeeChat ã®ããŒã ããŒãž: https://weechat.org/
[[prerequisites]]
=== äºåã«å¿
èŠãªãã®
WeeChat ãã€ã³ã¹ããŒã«ããã«ã¯ã以äžã®ãã®ãå¿
èŠã§ã:
* GNU/Linux ã皌åããŠããã·ã¹ãã
(ãœãŒã¹ããã±ãŒãžã䜿ãå Žåã¯ãã³ã³ãã€ã©ããŒã«ãå¿
èŠ)ããŸãã¯äºæ OS
* _root_ ç¹æš© (WeeChat ãã·ã¹ãã ãã£ã¬ã¯ããªã«ã€ã³ã¹ããŒã«ããå Žå)
* äžéšã®ã©ã€ãã©ãª (<<dependencies,äŸåé¢ä¿>>ãåç
§)ã
[[install]]
== ã€ã³ã¹ããŒã«æ¹æ³
[[binary_packages]]
=== ãã€ããªããã±ãŒãž
å€ãã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ã§ã¯ãã€ããªããã±ãŒãžãå©çšã§ããŸããäŸãã°:
* Arch Linux: `pacman -S weechat`
* Cygwin (Windows): setup.exe 㧠WeeChat ããã±ãŒãžãéžæããŠãã ãã
// TRANSLATION MISSING
* Debian/Ubuntu (ãŸã㯠Debian äºæãã£ã¹ããªãã¥ãŒã·ã§ã³):
`apt-get install weechat-curses weechat-plugins` +
For latest versions and nightly builds: https://weechat.org/download/debian
* Fedora Core: `dnf install weechat`
* Gentoo: `emerge weechat`
* Mandriva/RedHat (ãŸã㯠RPM äºæãã£ã¹ããªãã¥ãŒã·ã§ã³):
`rpm -i /path/to/weechat-x.y.z-1.i386.rpm`
* openSUSE: `zypper in weechat`
* Sourcemage: `cast weechat`
äŸãã° weechat-plugins çã®è¿œå ããã±ãŒãžã䜿ããšããã«äŸ¿å©ã«ãªããããããŸããã
ãã®ä»ã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ã§ã¯ãã€ã³ã¹ããŒã«èª¬æããã¥ã¢ã«ãåç
§ããŠãã ããã
[[source_package]]
=== ãœãŒã¹ããã±ãŒãž
WeeChat 㯠CMake ãŸã㯠autotools ã䜿ã£ãŠã³ã³ãã€ã«ã§ããŸã (CMake ã䜿ãããšãæšå¥šãããŠããŸã)ã
[NOTE]
macOS ã§ã¯ https://brew.sh/[Homebrew] ã䜿ã£ãŠãã ãã:
`brew install weechat` (ãã«ããèŠãã«ã¯: `brew info weechat`)ã
[[dependencies]]
==== äŸåé¢ä¿
// TRANSLATION MISSING
The following table shows the list of packages that are *required* to compile
WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| ããã±ãŒãž ^(1)^ | ããŒãžã§ã³ | æ©èœ
| C ã³ã³ãã€ã©
(gcc, clang, ...) | | ãã«ã
| cmake | ⥠3.0 | ãã«ã (autotools ã§ãå¯èœã§ãããCMake ãæšå¥šããŸã)
| pkg-config | | ã€ã³ã¹ããŒã«æžã¿ã©ã€ãã©ãªãæ€åº
| libncursesw5-dev ^(2)^ | | ncurses ã€ã³ã¿ãŒãã§ãŒã¹
| libcurl4-gnutls-dev | | URL 転é
| zlib1g-dev | | relay ãã©ã°ã€ã³ã§ãã±ãããå§çž® (weechat ãããã³ã«)ãã¹ã¯ãªãããã©ã°ã€ã³
| libgcrypt20-dev | | ä¿è·ããŒã¿ãIRC SASL èªèšŒ (DH-BLOWFISH/DH-AES)
| libgnutls28-dev | 2.2.0 ä»¥äž ^(3)^ | IRC ãµãŒããžã® SSL æ¥ç¶ãIRC SASL èªèšŒ (ECDSA-NIST256P-CHALLENGE)
|===
[NOTE]
^(1)^ Debian GNU/Linux
ãã£ã¹ããªãã¥ãŒã·ã§ã³ã«ãããããã±ãŒãžåã§ããä»ã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ã§ã¯ããŒãžã§ã³ãšããã±ãŒãžåãç°ãªããããããŸããã +
^(2)^ WeeChat 㯠libncurses**w**5-dev ã§ã³ã³ãã€ã«ããããšãæšå¥šããŸã
(*w* ãéèŠã§ã)ãlibncurses5-dev ã§ãã³ã³ãã€ã«å¯èœã§ãããããã¯æšå¥š
*ãããŸãã* (ã¯ã€ããã£ã©ã¯ã¿ã®è¡šç€ºã«ãã°ãçããã§ããã)ã +
^(3)^ IRC SASL èªèšŒã§ ECDSA-NIST256P-CHALLENGE ã䜿ãã«ã¯ãGnuTLS
ããŒãžã§ã³ 3.0.21 以äžãå¿
èŠã§ãã
// TRANSLATION MISSING
The following table shows the list of packages that are optional to compile
WeeChat:
[width="100%",cols="5,^3,.^15",options="header"]
|===
| ããã±ãŒãž | ããŒãžã§ã³ | æ©èœ
| C++ ã³ã³ãã€ã© | | ãã«ããšãã¹ãã®å®è¡ãJavaScript ãã©ã°ã€ã³
| gettext | | åœéå (ã¡ãã»ãŒãžã®ç¿»èš³; ããŒã¹èšèªã¯è±èªã§ã)
| ca-certificates | | SSL æ¥ç¶ã«å¿
èŠãªèšŒææžãrelay ãã©ã°ã€ã³ã§ SSL ãµããŒã
| libaspell-dev
⥠libenchant-dev | | spell ãã©ã°ã€ã³
| python3-dev ^(1)^ | | python ãã©ã°ã€ã³
| libperl-dev | | perl ãã©ã°ã€ã³
| ruby2.5, ruby2.5-dev | 1.9.1 ä»¥äž | ruby ãã©ã°ã€ã³
| liblua5.3-dev | | lua ãã©ã°ã€ã³
| tcl-dev | 8.5 ä»¥äž | tcl ãã©ã°ã€ã³
| guile-2.0-dev | 2.0 ä»¥äž | guile (scheme) ãã©ã°ã€ã³
| libv8-dev | 3.24.3 ä»¥äž | javascript ãã©ã°ã€ã³
| php-dev, libphp-embed | 7.0 ä»¥äž | PHP ãã©ã°ã€ã³
| libxml2-dev | | PHP ãã©ã°ã€ã³
| libargon2-0-dev | | PHP ãã©ã°ã€ã³ (PHP 7.2 以äžã®å Žå)
| libsodium-dev | | PHP ãã©ã°ã€ã³ (PHP 7.2 以äžã®å Žå)
| asciidoctor | 1.5.4 ä»¥äž | man ããŒãžãšææžã®ãã«ã
| libcpputest-dev | 3.4 ä»¥äž | ãã«ããšãã¹ãã®å®è¡
|===
[NOTE]
// TRANSLATION MISSING
^(1)^ By default Python 3.x is used. If you enable option `+ENABLE_PYTHON2+` (see
below), only the version 2.7 of Python is recommended.
Debian ããã³ Ubuntu
ããŒã¹ã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ã䜿ã£ãŠããã_/etc/apt/sources.list_ ãã¡ã€ã«ã§ "deb-src"
ãœãŒã¹ãšã³ããªãæå®ããŠãããªãã°ããã¹ãŠã®äŸåé¢ä¿ã«ããããã±ãŒãžã以äžã®ã³ãã³ãã§ã€ã³ã¹ããŒã«å¯èœã§ã:
----
# apt-get build-dep weechat
----
[[compile_with_cmake]]
==== CMake ã«ããã³ã³ãã€ã«
* ã·ã¹ãã ãã£ã¬ã¯ããªã«ã€ã³ã¹ããŒã«ããå Žå (_root_ ç¹æš©ãå¿
èŠã§ã):
----
$ mkdir build
$ cd build
$ cmake ..
$ make
$ sudo make install
----
* ä»»æã®ãã£ã¬ã¯ã㪠(äŸãã°èªåã®ããŒã ãã£ã¬ã¯ããª) ã«ã€ã³ã¹ããŒã«ããå Žå:
----
$ mkdir build
$ cd build
$ cmake .. -DCMAKE_INSTALL_PREFIX=/path/to/directory
$ make
$ make install
----
CMake ã«å¯Ÿãããªãã·ã§ã³ãæå®ããã«ã¯ã以äžã®æžåŒã䜿ã£ãŠãã ãã: "-DOPTION=VALUE"ã
ããå©çšããããªãã·ã§ã³ã®ãªã¹ã:
[width="100%",cols="2m,2,5m,12",options="header"]
|===
| ãªãã·ã§ã³ | å€ | ããã©ã«ãå€ | 説æ
| CMAKE_BUILD_TYPE | `Debug`, `Release`, `RelWithDebInfo`, `MinSizeRel` | |
ãã«ã圢åŒ: WeeChat ã®éçºçã䜿ã£ãŠããå Žåã¯
`Debug` (ãŸã㯠`RelWithDebInfo`) ãæšå¥šããŸãã
| CMAKE_INSTALL_PREFIX | directory | /usr/local |
WeeChat ãã€ã³ã¹ããŒã«ãããã£ã¬ã¯ããªã
// TRANSLATION MISSING
| WEECHAT_HOME | directory | (empty string) |
WeeChat å®è¡æã®ããŒã ãã£ã¬ã¯ããªã +
With an empty value (recommended), XDG directories are used by default.
If non empty, a single directory for all files is used.
The value can also be 4 directories separated by colons, in this order:
config, data, cache, runtime.
| CA_FILE | file | /etc/ssl/certs/ca-certificates.crt |
èªèšŒå±ãå«ããã¡ã€ã«ãããã¯
<<option_weechat.network.gnutls_ca_file,weechat.network.gnutls_ca_file>>
ãªãã·ã§ã³ã®ããã©ã«ãå€ã§ãã
| ENABLE_ALIAS | `ON`, `OFF` | ON |
<<alias_plugin,Alias ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_BUFLIST | `ON`, `OFF` | ON |
<<buflist_plugin,Buflist ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_CHARSET | `ON`, `OFF` | ON |
<<charset_plugin,Charset ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_MAN | `ON`, `OFF` | OFF |
man ããŒãžã®ã³ã³ãã€ã«ã
| ENABLE_DOC | `ON`, `OFF` | OFF |
HTML ææžã®ã³ã³ãã€ã«ã
| ENABLE_ENCHANT | `ON`, `OFF` | OFF |
Enchant ãšå«ãã <<spell_plugin,Spell ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_EXEC | `ON`, `OFF` | ON |
<<exec_plugin,Exec ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_FIFO | `ON`, `OFF` | ON |
<<fifo_plugin,Fifo ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_FSET | `ON`, `OFF` | ON |
<<fset_plugin,Fset ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_GUILE | `ON`, `OFF` | ON |
<<scripts_plugins,Guile ãã©ã°ã€ã³>> (Scheme) ã®ã³ã³ãã€ã«ã
| ENABLE_IRC | `ON`, `OFF` | ON |
<<irc_plugin,IRC ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«
| ENABLE_JAVASCRIPT | `ON`, `OFF` | OFF |
<<scripts_plugins,JavaScript ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_LARGEFILE | `ON`, `OFF` | ON |
巚倧ãã¡ã€ã«ã®ãµããŒãã
| ENABLE_LOGGER | `ON`, `OFF` | ON |
<<logger_plugin,Logger ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_LUA | `ON`, `OFF` | ON |
<<scripts_plugins,Lua ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_NCURSES | `ON`, `OFF` | ON |
Ncurses ã€ã³ã¿ãŒãã§ãŒã¹ã®ã³ã³ãã€ã«ã
| ENABLE_NLS | `ON`, `OFF` | ON |
NLS ã®æå¹å (å€èšèªãµããŒã)ã
| ENABLE_PERL | `ON`, `OFF` | ON |
<<scripts_plugins,Perl ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_PHP | `ON`, `OFF` | ON |
<<scripts_plugins,PHP ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_PYTHON | `ON`, `OFF` | ON |
<<scripts_plugins,Python ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
// TRANSLATION MISSING
| ENABLE_PYTHON2 | `ON`, `OFF` | OFF |
Compile <<scripts_plugins,Python plugin>> using Python 2 instead of Python 3.
| ENABLE_RELAY | `ON`, `OFF` | ON |
<<relay_plugin,ãªã¬ãŒãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_RUBY | `ON`, `OFF` | ON |
<<scripts_plugins,Ruby ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_SCRIPT | `ON`, `OFF` | ON |
<<scripts_plugins,ã¹ã¯ãªãããã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_SCRIPTS | `ON`, `OFF` | ON |
ãã¹ãŠã®<<scripts_plugins,ã¹ã¯ãªãããã©ã°ã€ã³>>
(PythonãPerlãRubyãLuaãTclãGuileãJavaScriptãPHP) ã®ã³ã³ãã€ã«ã
| ENABLE_SPELL | `ON`, `OFF` | ON |
<<spell_plugin,Spell ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_TCL | `ON`, `OFF` | ON |
<<scripts_plugins,Tcl ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_TRIGGER | `ON`, `OFF` | ON |
<<trigger_plugin,Trigger ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_XFER | `ON`, `OFF` | ON |
<<xfer_plugin,Xfer ãã©ã°ã€ã³>>ã®ã³ã³ãã€ã«ã
| ENABLE_TESTS | `ON`, `OFF` | OFF |
ã³ã³ãã€ã«ãã¹ãã
| ENABLE_CODE_COVERAGE | `ON`, `OFF` | OFF |
ã³ãŒãã«ãã¬ããžãªãã·ã§ã³ãæå¹åããŠã³ã³ãã€ã«ã +
ãã®ãªãã·ã§ã³ã¯ãã¹ã網çŸ
çã枬å®ããããã«çšæãããŠããŸãã
|===
ãã®ä»ã®ãªãã·ã§ã³ã¯ä»¥äžã®ã³ãã³ãã§ç¢ºèªããŠãã ãã:
----
$ cmake -LA
----
Curses ã€ã³ã¿ãŒãã§ãŒã¹ã䜿ãå Žåã¯ä»¥äžã®ã³ãã³ãã䜿ã£ãŠãã ãã:
----
$ ccmake ..
----
[[compile_with_autotools]]
==== autotools ã«ããã³ã³ãã€ã«
[WARNING]
CMake 以å€ãçšãã WeeChat ã®ãã«ãã¯å
¬åŒã«ãµããŒããããŸãããCMake
ãå©çšã§ããªãå Žåã®ã¿ autotools ã䜿ã£ãŠãã ããã +
autotools ãçšããŠãã«ãããå ŽåãCMake ãããå€ãã®äŸåããã±ãŒãžãšããé·ãæéãå¿
èŠã§ãã
* ã·ã¹ãã ãã£ã¬ã¯ããªã«ã€ã³ã¹ããŒã«ããå Žå (_root_ ç¹æš©ãå¿
èŠã§ã):
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure
$ make
$ sudo make install
----
* ä»»æã®ãã£ã¬ã¯ã㪠(äŸãã°èªåã®ããŒã ãã£ã¬ã¯ããª) ã«ã€ã³ã¹ããŒã«ããå Žå:
----
$ ./autogen.sh
$ mkdir build
$ cd build
$ ../configure --prefix=/path/to/directory
$ make
$ make install
----
_configure_
ã¹ã¯ãªããã«å¯ŸããŠãªãã·ã§ã³ãæå®ããããšãã§ããŸãããªãã·ã§ã³ã衚瀺ããã«ã¯ä»¥äžã®ã³ãã³ãã䜿ã£ãŠãã ãã:
----
$ ./configure --help
----
[[run_tests]]
==== ãã¹ãã®å®è¡
ãã¹ããã³ã³ãã€ã«ããã«ã¯ä»¥äžã®ããã±ãŒãžã *å¿
é * ã§ã:
* libcpputest-dev
* C++ compiler
ãã¹ã㯠WeeChat ã®ã³ã³ãã€ã«æã«æå¹åããªããã°ãããŸãã (CMake ã䜿ãå Žå):
----
$ cmake .. -DENABLE_TESTS=ON
----
ã³ã³ãã€ã«çµäºåŸãbuild ãã£ã¬ã¯ããªã§ãã¹ããèµ·åããŠãã ãã (CMake ã䜿ãå Žå):
----
$ ctest -V
----
[[git_sources]]
=== Git ãœãŒã¹
èŠå: git ãœãŒã¹ãçšããæ¹æ³ã¯äžçŽè
åãã§ããã³ã³ãã€ã«ã«å€±æãããã
äžå®å®ãªå¯èœæ§ããããŸããèŠåããŸããã!
git ãœãŒã¹ãå
¥æããã«ã¯ã以äžã®ã³ãã³ãã䜿ã£ãŠãã ãã:
----
$ git clone https://github.com/weechat/weechat.git
----
ãã®åŸã¯ããœãŒã¹ããã±ãŒãžã®èª¬æã«åŸã£ãŠãã ãã
(<<source_package,ãœãŒã¹ããã±ãŒãž>>ãåç
§)ã
[[report_crashes]]
=== ã¯ã©ãã·ã¥ã¬ããŒã
WeeChat ãã¯ã©ãã·ã¥ããå ŽåããŸã㯠WeeChat
ãã¯ã©ãã·ã¥ãããæäœãå ±åããå Žåã以äžã®æé ã«åŸã£ãŠãã ãã:
// TRANSLATION MISSING
* Compile with:
** debug info (or install binary package with debug info),
** address sanitizer (optional).
* ã·ã¹ãã ã® _core_ ãã¡ã€ã«ãæå¹å
* gdb ã®ã€ã³ã¹ããŒã«
// TRANSLATION MISSING
[[build_debug]]
==== Build with debug options
CMake ã§ã³ã³ãã€ã«ããå Žå:
----
$ cmake .. -DCMAKE_BUILD_TYPE=Debug
----
// TRANSLATION MISSING
[[build_debug_address_sanitizer]]
==== Build with debug options and address sanitizer
// TRANSLATION MISSING
You can additionally enable the address sanitizer, which causes WeeChat to
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
----
// TRANSLATION MISSING
[WARNING]
You should enable address sanitizer only if you're trying to cause a crash,
this is not recommended in production.
// TRANSLATION MISSING
Then once compiled and installed, you must run WeeChat like this:
----
$ ASAN_OPTIONS="detect_odr_violation=0 log_path=asan.log" weechat
----
// TRANSLATION MISSING
In case of crash, the backtrace is in file `asan.log`.
[[core_files]]
==== Core ãã¡ã€ã«
_core_ ãã¡ã€ã«ãæå¹åããã«ã¯ã<<option_weechat.startup.sys_rlimit,weechat.startup.sys_rlimit>>
ãªãã·ã§ã³ã䜿ã£ãŠãã ãã:
----
/set weechat.startup.sys_rlimit "core:-1"
----
WeeChat ããŒãžã§ã³ 0.3.8 以äžãŸã㯠WeeChat ã®å®è¡åã« core
ãã¡ã€ã«ãæå¹åãããå Žåã«ã¯ã`ulimit` ã³ãã³ãã䜿ã£ãŠãã ããã
Linux 㧠_bash_ ã·ã§ã«ã䜿ã£ãŠããå Žåã以äžã®å
容ã `~/.bashrc` ã«è¿œå ããŠãã ãã:
----
ulimit -c unlimited
----
ãµã€ãºãæå®ããå Žåã¯:
----
ulimit -c 200000
----
[[gdb_backtrace]]
==== gdb ã§ããã¯ãã¬ãŒã¹ãåŸã
<<core_files,ãªãã·ã§ã³ãæå¹ã®å Žå>>ãWeeChat ãã¯ã©ãã·ã¥ãããšã·ã¹ãã ã¯
_core_ ãŸã㯠_core.12345_ ãã¡ã€ã«ãäœããŸã (_12345_
ã¯ããã»ã¹çªå·ã§ã)ããã®ãã¡ã€ã«ã¯ WeeChat ãèµ·åãããã£ã¬ã¯ããªã«äœãããŸã (ããã¯
WeeChat ãã€ã³ã¹ããŒã«ãããŠãããã£ã¬ã¯ããªã§ã¯ *ãããŸãã*!)ã
// TRANSLATION MISSING
[NOTE]
On some systems like Archlinux, core dumps could be in another directory like
_/var/lib/systemd/coredump_ and you must use the command `coredumpctl` to read it. +
For more information, see this wiki page: https://wiki.archlinux.org/index.php/Core_dump
äŸãã°ã_weechat_ ã _/usr/bin/_ ã«ã€ã³ã¹ããŒã«ããã_core_ ãã¡ã€ã«ã
_/home/user/_ ã«ããå Žåã以äžã®ã³ãã³ã㧠gdb ãèµ·åããŠãã ãã:
----
gdb /usr/bin/weechat /home/user/core
----
gdb ã®äžã§ `bt full`
ã³ãã³ããå®è¡ãããšããã¯ãã¬ãŒã¹ã衚瀺ãããŸãã以äžã®ãããªåºåãåŸãããã¯ãã§ã:
----
(gdb) set logging file /tmp/crash.txt
(gdb) set logging on
Copying output to /tmp/crash.txt.
(gdb) bt full
#0 0x00007f9dfb04a465 in raise () from /lib/libc.so.6
#1 0x00007f9dfb04b8e6 in abort () from /lib/libc.so.6
#2 0x0000000000437f66 in weechat_shutdown (return_code=1, crash=1)
at /some_path/src/core/weechat.c:351
#3 <signal handler called>
#4 0x000000000044cb24 in hook_process_timer_cb (arg_hook_process=0x254eb90,
remaining_calls=<value optimized out>) at /some_path/src/core/wee-hook.c:1364
hook_process = 0x254eb90
status = <value optimized out>
#5 0x000000000044cc7d in hook_timer_exec ()
at /some_path/src/core/wee-hook.c:1025
tv_time = {tv_sec = 1272693881, tv_usec = 212665}
ptr_hook = 0x2811f40
next_hook = 0x0
#6 0x000000000041b5b0 in gui_main_loop ()
at /some_path/src/gui/curses/gui-curses-main.c:319
hook_fd_keyboard = 0x173b600
tv_timeout = {tv_sec = 0, tv_usec = 0}
read_fds = {fds_bits = {0 <repeats 16 times>}}
write_fds = {fds_bits = {0 <repeats 16 times>}}
except_fds = {fds_bits = {0 <repeats 16 times>}}
max_fd = <value optimized out>
----
ãã®ããã¯ãã¬ãŒã¹ãéçºè
ã«å ±åããã¯ã©ãã·ã¥ãåŒãèµ·ãããåäœãäŒããŠãã ããã
ãååããããšãããããŸã!
[[debug_running_weechat]]
==== èµ·åäžã® WeeChat ã®ãããã°
èµ·åããŠãã WeeChat ããããã°ããã«ã¯ (äŸãã° WeeChat ãããªãŒãºããŠãããããªå Žå)ãgdb
ã®åŒæ°ã«ããã»ã¹çªå·ãäžããŠèµ·åããŸã (_12345_ 㯠weechat ããã»ã¹ã® PID ã«å€æŽããŠãã ãã):
----
gdb /usr/bin/weechat 12345
----
ã¯ã©ãã·ã¥ãèµ·ããå Žåãšåæ§ã«ã`bt full` ã³ãã³ãã䜿ã£ãŠãã ãã:
----
(gdb) bt full
----
// TRANSLATION MISSING
[[upgrade]]
=== Upgrade
If a new stable version of WeeChat is released, this is time for you to
switch to this version.
First of all, you must install the new version of WeeChat, either with your
package manager or by compiling yourself, so that the `weechat` binary and all
required files are in the same paths. +
This can be done while WeeChat is running.
// TRANSLATION MISSING
[[upgrade_command]]
==== Upgrade command
WeeChat can restart the new binary, in place, using the
<<command_weechat_upgrade,/upgrade>> command: the buffer contents and non-SSL
connections are preserved. +
The SSL connections are lost during upgrade and you are automatically
reconnected after the upgrade (reload of SSL sessions is currently not possible
with GnuTLS).
The command can also be used if you have to restart the machine, for example
to upgrade the kernel or to move your WeeChat to another machine:
----
/upgrade -quit
----
This saves the current state in `*.upgrade` files. You can then either reboot
or move the whole WeeChat directories (config, data, cache) to another machine,
and restart WeeChat later with this command:
----
$ weechat --upgrade
----
// TRANSLATION MISSING
[[restart_after_upgrade]]
==== Restart after upgrade
[[restart_release_notes]]
===== Release notes
After an upgrade, it is *strongly recommended* to read the
https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
which contain important information about breaking changes and some
manual actions that could be required.
You must read the release notes of all versions between your old (excluded) and
your new version (included). +
For example if you switch from version 3.0 to 3.2, you must read release notes
of versions 3.1 and 3.2.
[[restart_configuration_upgrade]]
===== Configuration upgrade
WeeChat has an automatic upgrade of configuration files (`*.conf`):
* new options are silently added with default value
* obsolete options are automatically discarded and WeeChat displays a warning
with the value read from file.
Example of warning when an option has been removed:
----
=!= èŠå: /home/user/.config/weechat/sec.conf, è¡ 15: ã»ã¯ã·ã§ã³ "crypt" ã®ç¡å¹ãªãªãã·ã§ã³: passphrase_file = ""
----
That means the option `sec.crypt.passphrase_file` has been removed, and you
had value set to empty string, which was the default value in the previous version
(in this case no manual action is required).
[[usage]]
== 䜿ãæ¹
[[running_weechat]]
=== WeeChat ã®èµ·å
WeeChat ãèµ·åãããã«ã¯ã以äžã³ãã³ããå®è¡:
----
$ weechat
----
WeeChat ã®ååèµ·åæã«ããã©ã«ãã®ãªãã·ã§ã³èšå®ãå«ãèšå®ãã¡ã€ã«ã
_~/.config/weechat_ ãã£ã¬ã¯ããªã®äžã«äœæãããŸã
(<<files_and_directories,ãã¡ã€ã«ãšãã£ã¬ã¯ããª>>ãåç
§ããŠãã ãã)ã
[[command_line_options]]
==== ã³ãã³ãã©ã€ã³ãªãã·ã§ã³
include::includes/cmdline_options.ja.adoc[tag=standard]
[[extra_debug_options]]
==== ãããã°ãªãã·ã§ã³
[WARNING]
以äžã®ãªãã·ã§ã³ã¯ãããã°çšã§ãã*éåžžå©çšæã«ã¯äœ¿ããªãã§ãã ãã!*
include::includes/cmdline_options.ja.adoc[tag=debug]
[[environment_variables]]
=== ç°å¢å€æ°
以äžã®ç°å¢å€æ°ãå®çŸ©ãããŠããå ŽåãWeeChat ã¯ãããå©çšããŸã:
[width="100%",cols="1m,6",options="header"]
|===
| å€æ°å | 説æ
// TRANSLATION MISSING
| WEECHAT_HOME | WeeChat ããŒã ãã£ã¬ã¯ã㪠(ããã«ã¯èšå®ãã¡ã€ã«ããã°ãã¹ã¯ãªãããªã©ããããŸã) Same behavior as <<compile_with_cmake,CMake option>> `WEECHAT_HOME`.
| WEECHAT_PASSPHRASE | æå·åããŒã¿ã埩å·åããããã®ãã¹ãã¬ãŒãº
| WEECHAT_EXTRA_LIBDIR | ãã©ã°ã€ã³ãããŒãããããã®è¿œå ãã£ã¬ã¯ããªãã¹ (èšå®ãããã¹å
ã® "plugins" ãã£ã¬ã¯ããªããããŒãããŸã)
|===
[[files_and_directories]]
=== ãã¡ã€ã«ãšãã£ã¬ã¯ããª
// TRANSLATION MISSING
[[xdg_directories]]
==== XDG directories
WeeChat uses XDG directories by default
(according to the https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html[XDG Base Directory Specification]). +
A single home directory for all files can be forced by CMake option `WEECHAT_HOME`,
the environment variable `WEECHAT_HOME` or the command-line option `-d` / `--dir`.
When a single WeeChat home directory is not forced, XDG directories are used
and set like this:
[width="100%",cols="1,2m,5",options="header"]
|===
| Directory | Default value | Fallback value
| config | $XDG_CONFIG_HOME/weechat | `$HOME/.config/weechat` if `$XDG_CONFIG_HOME` is not defined or empty.
| data | $XDG_DATA_HOME/weechat | `$HOME/.local/share/weechat` if `$XDG_DATA_HOME` is not defined or empty.
| cache | $XDG_CACHE_HOME/weechat | `$HOME/.cache/weechat` if `$XDG_CACHE_HOME` is not defined or empty.
| runtime | $XDG_RUNTIME_DIR/weechat | Same as _cache_ directory if `$XDG_RUNTIME_DIR` is not defined or empty.
|===
The configuration files are created with default values the first time you run WeeChat.
// TRANSLATION MISSING
[[weechat_directories]]
==== WeeChat directories
// TRANSLATION MISSING
The WeeChat directories are:
[width="100%",cols="1m,3",options="header"]
|===
// TRANSLATION MISSING
| Path ^(1)^ | 説æ
// TRANSLATION MISSING
| ~/.config/weechat/ | WeeChat configuration files: `*.conf`, certificates, etc.
// TRANSLATION MISSING
| ~/.local/share/weechat/ | WeeChat data files: logs, scripts, scripts data, xfer files, etc.
|    logs/ | ãã°ãã¡ã€ã« (ãããã¡ããšã« 1 ã€ã®ãã¡ã€ã«)
|    python/ | Python ã¹ã¯ãªãã
|       autoload/ | èµ·åæã«èªåããŒãããã Python ã¹ã¯ãªãã ^(2)^
|    perl/ | Perl ã¹ã¯ãªãã
|       autoload/ | èµ·åæã«èªåããŒãããã Perl ã¹ã¯ãªãã ^(2)^
|    ruby/ | Ruby ã¹ã¯ãªãã
|       autoload/ | èµ·åæã«èªåããŒãããã Ruby ã¹ã¯ãªãã ^(2)^
|    lua/ | Lua ã¹ã¯ãªãã
|       autoload/ | èµ·åæã«èªåããŒãããã Lua ã¹ã¯ãªãã ^(2)^
|    tcl/ | Tcl ã¹ã¯ãªãã
|       autoload/ | èµ·åæã«èªåããŒãããã Tcl ã¹ã¯ãªãã ^(2)^
|    guile/ | Guile ã¹ã¯ãªãã
|       autoload/ | èµ·åæã«èªåããŒãããã Guile ã¹ã¯ãªãã ^(2)^
|    javascript/ | JavaScript ã¹ã¯ãªãã
|       autoload/ | èµ·åæã«èªåããŒãããã JavaScript ã¹ã¯ãªãã ^(2)^
|    php/ | PHP ã¹ã¯ãªãã
|       autoload/ | èµ·åæã«èªåããŒãããã PHP ã¹ã¯ãªãã ^(2)^
// TRANSLATION MISSING
| ~/.cache/weechat/ | WeeChat cache files: scripts cache.
// TRANSLATION MISSING
| /run/user/1000/weechat/ | WeeChat runtime files: FIFO pipe, Relay UNIX sockets.
|===
[NOTE]
^(1)^ XDG directories may be different according to your environment variables `XDG_*`. +
^(2)^ ãã®ãã£ã¬ã¯ããªã«ã¯èŠªãã£ã¬ã¯ããªå
ã«ããã¹ã¯ãªãããžã®ã·ã³ããªãã¯ãªã³ã¯ã®ã¿ãå«ãŸããããšãå€ãã§ãã
// TRANSLATION MISSING
[[weechat_files]]
==== WeeChat files
WeeChat ããŒã ãã£ã¬ã¯ããªã«ã¯ä»¥äžã®ãã¡ã€ã«ãå«ãŸããŸã:
[width="100%",cols="1m,3,6",options="header"]
|===
| ãã¡ã€ã« | 説æ | ããŒã¿ä¿è·
| weechat.conf | WeeChat ã®äž»èŠèšå®ãã¡ã€ã« | ä¿è·ãããå ŽåããããŸã (äŸ: ä¿åããããããã¡ã¬ã€ã¢ãŠãã«å«ãŸãããã£ã³ãã«ã®ãªã¹ã)
| sec.conf | æ©å¯ããŒã¿ãå«ãèšå®ãã¡ã€ã« | *ä¿è·ãããŸããæ©å¯æ§ã®é«ãããŒã¿*: ãã®ãã¡ã€ã«ã誰ããšå
±æããŠã¯ãããŸãã
| plugins.conf | ãã©ã°ã€ã³èšå®ãã¡ã€ã« | ä¿è·ãããå ŽåããããŸãããã©ã°ã€ã³ããã³ã¹ã¯ãªããã«äŸåããŸã
| alias.conf | _alias_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããå ŽåããããŸãããšã€ãªã¢ã¹ã«äŸåããŸã
| buflist.conf | _buflist_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| charset.conf | _charset_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| exec.conf | _exec_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| fifo.conf | _fifo_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| fset.conf | _fset_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| guile.conf | _guile_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| irc.conf | _irc_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | *ä¿è·ãããŸã*: ãµãŒããnickservããã£ã³ãã«ã®ãã¹ã¯ãŒããä¿åããããšãå¯èœã§ã (ãããã®ããŒã¿ã `sec.conf` ã«ä¿åãããªãå Žå)
| javascript.conf | _javascript_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| logger.conf | _logger_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| lua.conf | _lua_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| perl.conf | _perl_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| php.conf | _php_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| python.conf | _python_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
// TRANSLATION MISSING
| relay.conf | _relay_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | *Yes*: it can contain relay password and TOTP secret (if not stored in `sec.conf`), allowed IP addresses/websocket origins and opened ports.
| ruby.conf | _ruby_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| script.conf | _script_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| spell.conf | _spell_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| tcl.conf | _tcl_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| trigger.conf | _trigger_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããå ŽåããããŸããããªã¬ã«äŸåããŸã
| xfer.conf | _xfer_ ãã©ã°ã€ã³çšã®èšå®ãã¡ã€ã« | ä¿è·ãããŸãã
| weechat.log | WeeChat ãã°ãã¡ã€ã« | ä¿è·ãããŸãã
|===
[IMPORTANT]
æäœæ¥ã§èšå®ãã¡ã€ã«ãç·šéããããšã¯ *æšå¥šãããŸãã*ããªããªã
WeeChat ã¯åžžæ (äŸãã° <<command_weechat_quit,/quit>> ã³ãã³ãã®å®è¡æãªã©)
èšå®ãã¡ã€ã«ã«æžã蟌ãå¯èœæ§ããããŸãããæäœæ¥ã§ä¿®æ£ãå ããåŸã«ã¯å¿
ã <<command_weechat_reload,/reload>>
ã³ãã³ããå®è¡ããªããã°ãããªã (ããã«ã¯ <<command_weechat_save,/save>>
ã䜿ã£ãŠä¿åãããŠããªãå€æŽã倱ããªã¹ã¯ããã) ããã§ãã +
èšå®ãç·šéããã«ã¯ <<command_weechat_set,/set>>
ã³ãã³ãã䜿ã£ãŠãã ãããããã¯å€ãæ€æ»ããèšå®ã®å€æŽãããã«é©çšããŸãã
[[screen_layout]]
=== ç»é¢ã¬ã€ã¢ãŠã
WeeChat ãèµ·åãã端æ«ã®äŸ:
....
⌠"buflist" ã㌠⌠"title" ããŒ
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â1.freenodeâWelcome to #test, this is a test channel â
â weechat â12:52:27 --> | Flashy (flashcode@weechat.org) has joined #test â@Flashyâ
â2. #test â12:52:27 -- | Nicks #test: [@Flashy @joe +weebot peter] â@joe â
â3. #abc â12:52:27 -- | Channel #test: 4 nicks (2 ops, 1 voice, 1 normal) â+weebotâ
â4. #def â12:52:27 -- | Channel created on Tue Jan 27 06:30:17 2009 âpeter â
â5. #ghi â12:54:15 peter | hey! â â
â â12:55:01 @joe | hello â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â[12:55] [5] [irc/freenode] 2:#test(+n){4}* [H: 3:#abc(2,5), 5] â
â â[@Flashy(i)] hi peter!â â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â² "status" ãš "input" ã㌠"nicklist" ã㌠â²
....
ç»é¢ã¯ä»¥äžã®ãšãªã¢ããæ§æãããŸã:
* ãã£ãããã°ã衚瀺ããããã£ãããšãªã¢ (ç»é¢ã®çãäž)ãããããã®è¡ã¯:
** æå»
** ãã¬ãã£ãã¯ã¹ ("|" ã®å)
** ã¡ãã»ãŒãž ("|" ã®åŸ)
* ãã£ãããšãªã¢ã®åšãã«ããããŒãããã©ã«ãããŒã¯:
** ãããã¡ãªã¹ã (_buflist_) ããŒã巊端
** ã¿ã€ãã« (_title_) ããŒããã£ãããšãªã¢ã®äž
** ç¶æ
(_status_) ããŒããã£ãããšãªã¢ã®äž
** å
¥å (_input_) ããŒãç¶æ
ããŒã®äž
** ããã¯ããŒã ãªã¹ã (_nicklist_) ããŒãå³ç«¯
ãããã¡ãªã¹ã (_buflist_) ããŒã¯ä»¥äžã®åæèŠçŽ ãæã£ãŠããŸã:
[width="100%",cols="^3,^3,9",options="header"]
|===
| èŠçŽ | äŸ | 説æ
| buflist | `1.weechat` | ãããã¡äžèŠ§
|===
ç¶æ
(_title_) ããŒã¯ä»¥äžã®åæèŠçŽ ãæã£ãŠããŸã:
[width="100%",cols="^3,^3,9",options="header"]
|===
| èŠçŽ | äŸ | 説æ
| buffer_title | `Welcome to #test` | ãããã¡ã¿ã€ãã«
|===
ç¶æ
(_status_) ããŒã¯ä»¥äžã®åæèŠçŽ ãæã£ãŠããŸã:
[width="100%",cols="^3,^3,9",options="header"]
|===
| èŠçŽ | äŸ | 説æ
| time | `[12:55]` | æå»
| buffer_last_number | `[5]` | ãªã¹ãäžã®æåŸã®ãããã¡çªå·
| buffer_plugin | `[irc/freenode]` | çŸåšã®ãããã¡ã®ãã©ã°ã€ã³ (irc ãã©ã°ã€ã³ã§ã¯ãããã¡ã§å©çšãããŠãã IRC ãµãŒãåãè¿œå ã§ããŸã)
| buffer_number | `2` | çŸåšã®ãããã¡ã®çªå·
| buffer_name | `#test` | çŸåšã®ãããã¡ã®åå
| buffer_modes | `+n` | IRC ãã£ã³ãã«ã¢ãŒã
// TRANSLATION MISSING
| buffer_nicklist_count | `{4}` | Number of nicks displayed in nicklist.
| buffer_zoom | ! | `!` ã¯ããŒãžããããããã¡ããºãŒã ãããŠããç¶æ
(ãºãŒã ããããã®ã ãã衚瀺ããç¶æ
) ã瀺ããŸãã空ã®å Žåã¯ãã¹ãŠã®ããŒãžããããããã¡ã衚瀺ãããŠããããšã瀺ããŸã
| buffer_filter | `+*+` | ãã£ã«ã¿è¡šç€º: `+*+` ã®å Žåããã€ãã®è¡ããã£ã«ã¿ãã (é ãã) ãŸãã空ã®å Žåãã¹ãŠã®è¡ã衚瀺ãããŸãã
| scroll | `-MORE(50)-` | ã¹ã¯ããŒã«è¡šç€ºãæåŸã®è¡ã衚瀺ãããŠããè¿œå ãããè¡æ°ãå«ãã
| lag | `[Lag: 2.5]` | é
延ç§è¡šç€º (é
延ãçãå Žåã¯é衚瀺)
| hotlist | `[H: 3:#abc(2,5), 5]` | å€åã®ãã£ããããã¡ã®ãªã¹ã (æªèªã¡ãã»ãŒãž) (äŸã§ã¯ã_#abc_ ã« 2 åã®ãã€ã©ã€ããš 5 åã®æªèªã¡ãã»ãŒãžã5 çªç®ã®ãããã¡ã« 1 åã®æªèªã¡ãã»ãŒãžãããããšãæå³ããŸãã)
| completion | `abc(2) def(5)` | è£å®åè£ã®åèªãªã¹ããååèªã«å¯ŸããŠé©å¿ãããè£å®åè£ã®æ°ãå«ãã
|===
å
¥å (_input_) ããŒã¯ä»¥äžã®åæèŠçŽ ãæã£ãŠããŸã:
[width="100%",cols="^3,^3,9",options="header"]
|===
| èŠçŽ | äŸ | 説æ
| input_prompt | `[@Flashy]` | å
¥åããã³ãããirc ã®å Žå: ããã¯ããŒã ãšã¢ãŒã (freenode ã§ã¯ "+i" ã¢ãŒãã¯äžå¯èŠç¶æ
ãæå³ããŸã)
| away | `(away)` | é¢åžç¶æ
衚瀺
| input_search | `[Search (~ str,msg)]` | æ€çŽ¢ã€ã³ãžã±ãŒã¿ ("`~`": 倧æåå°æåãåºå¥ããªãã"`==`": 倧æåå°æåãåºå¥ããã"`str`": æ€çŽ¢æååã"`regex`": æ€çŽ¢æ£èŠè¡šçŸã"`msg`": ã¡ãã»ãŒãžéšåããæ€çŽ¢ã"`pre`": ãã¬ãã£ãã¯ã¹éšåããæ€çŽ¢ã"`pre\|msg`": ãã¬ãã£ãã¯ã¹éšåãšã¡ãã»ãŒãžéšåããæ€çŽ¢)
| input_paste | `[Paste 7 lines ? [ctrl-Y] Yes [ctrl-N] No]` | è¡ãããŒã¹ãããå Žåã«ãŠãŒã¶ãžè¡ããã質å
| input_text | `hi peter!` | å
¥åããã¹ã
|===
ããã¯ããŒã ãªã¹ã (_nicklist_) ããŒã¯ä»¥äžã®åæèŠçŽ ãæã£ãŠããŸã:
[width="100%",cols="^3,^3,9",options="header"]
|===
| èŠçŽ | äŸ | 説æ
| buffer_nicklist | `@Flashy` | çŸåšã®ãããã¡ã®ããã¯ããŒã äžèŠ§
|===
ãã®ä»ã®å©çšå¯èœãªèŠçŽ (åæç¶æ
ã®ããŒã¯ãããã®èŠçŽ ãæã¡ãŸãã):
[width="100%",cols="^3,^3,9",options="header"]
|===
| èŠçŽ | äŸ | 説æ
| buffer_count | `10` | éããŠãããããã¡ã®ç·æ°
// TRANSLATION MISSING
| 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`).
// TRANSLATION MISSING
| buffer_nicklist_count_all | `4` | Number of visible groups and nicks in nicklist.
// TRANSLATION MISSING
| buffer_nicklist_count_groups | `0` | Number of visible groups in nicklist.
| buffer_short_name | `#test` | çŸåšã®ãããã¡ã®çãåå
// TRANSLATION MISSING
| buflist2 | `1.weechat` | List of buffers, second bar item (see option <<option_buflist.look.use_items,buflist.look.use_items>>).
// TRANSLATION MISSING
| buflist3 | `1.weechat` | List of buffers, third bar item (see option <<option_buflist.look.use_items,buflist.look.use_items>>).
// TRANSLATION MISSING
| fset | `+buflist.look.sort: âŠ+` | Help on currently selected option on fset buffer.
| irc_channel | `#test` | çŸåšã® IRC ãã£ã³ãã«å
// TRANSLATION MISSING
| irc_host | `+user@host.com+` | Current IRC host.
// TRANSLATION MISSING
| irc_nick | `+Flashy+` | Current IRC nick.
// TRANSLATION MISSING
| irc_nick_host | `+Flashy!user@host.com+` | Current IRC nick and host.
| irc_nick_modes | `i` | èªåã®ããã¯ããŒã ã«å¯Ÿãã IRC ã¢ãŒã
// TRANSLATION MISSING
| irc_nick_prefix | `@` | IRC nick prefix on channel.
| mouse_status | `M` | ããŠã¹ã®ç¶æ
(ããŠã¹ãç¡å¹åãããŠããå Žåã¯ç©ºæåå)
| spell_dict | `fr,en` | çŸåšã®ãããã¡ã«ãããã¹ããªã³ã°èŸæž
| spell_suggest | `print,prone,prune` | ã«ãŒãœã«äžã®åèªã«å¯Ÿããã¹ããªã³ã°åè£ (ã¹ãã«ãééã£ãŠããå Žå)
| window_number | `2` | çŸåšã®ãŠã£ã³ããŠçªå·
|===
[[command_line]]
=== ã³ãã³ãã©ã€ã³
WeeChat ã³ãã³ãã©ã€ã³ (ãŠã£ã³ããŠã®äžçªäžã«ãããŸã)
ã¯ã³ãã³ãã®å®è¡ããããã¡ã«ããã¹ããéä¿¡ããããã«å©çšããŸãã
[[command_line_syntax]]
==== ææ³
ã³ãã³ã㯠"/"
æåã§å§ãŸããã³ãã³ãã®ååãç¶ããŸããäŸãã°ããã¹ãŠã®ãªãã·ã§ã³ã衚瀺ããã«ã¯:
----
/set
----
"/" ãæåã«ç¡ãå Žåããã®ããã¹ãã¯ãããã¡ã«éä¿¡ãããŸããäŸãã°ã_hello_
ãšããããã¹ãããããã¡ã«éä¿¡ããã«ã¯:
----
hello
----
"/" æåããå§ãŸãããã¹ããéä¿¡ãããå Žåã2 éã« "/" ãã€ããŸããäŸãã°ã`/set`
ãšããããã¹ããçŸåšã®ãããã¡ã«éä¿¡ããã«ã¯:
----
//set
----
[[command_line_colors]]
==== è²ã³ãŒã
IRC çã®ãã©ã°ã€ã³ã§ã¯ã以äžã®è²ã³ãŒããšå±æ§ãå©çšã§ããŸã
(kbd:[Ctrl+c] ã®åŸã«ããªãã·ã§ã³ãšãšãã«ä»¥äžã®ããŒãæŒããŠãã ãã):
[width="100%",cols="1,2",options="header"]
|===
| ã㌠| 説æ
| kbd:[Ctrl+c], kbd:[b] | ããã¹ãã倪åã«
| kbd:[Ctrl+c], kbd:[c],
kbd:[xx] | ããã¹ã衚瀺è²ã `xx` ã« (以äžã®è²ãªã¹ããåç
§)
| kbd:[Ctrl+c], kbd:[c],
kbd:[xx], kbd:[,],
kbd:[yy] | ããã¹ã衚瀺è²ã `xx` ã«ãèæ¯è²ã `yy` ã« (以äžã®è²ãªã¹ããåç
§)
| kbd:[Ctrl+c], kbd:[i] | ããã¹ããã€ã¿ãªãã¯äœã«
| kbd:[Ctrl+c], kbd:[o] | ããã¹ã衚瀺è²ãšå±æ§ããªã»ãã
| kbd:[Ctrl+c], kbd:[v] | ããã¹ããå転 (ããã¹ã衚瀺è²ãšèæ¯è²ã®å
¥ãæ¿ã)
| kbd:[Ctrl+c], kbd:[_] | ããã¹ãã«äžç·ãåŒã
|===
[NOTE]
åãã³ãŒã㧠(è²ã³ãŒããå
¥åããã« kbd:[Ctrl+c], kbd:[c]
ã䜿ãããšã§) å±æ§ããã£ã³ã»ã«ããããšãã§ããŸãã
kbd:[Ctrl+c], kbd:[c] çšã®è²ã³ãŒã:
include::includes/autogen_user_irc_colors.ja.adoc[tag=irc_colors]
[NOTE]
端æ«ã§å©çšå¯èœãªãã¹ãŠã®è²ã衚瀺ããã«ã¯ãWeeChat 㧠`/color` ãå®è¡ããåŸ
kbd:[Alt+c] ãå
¥åãããã端æ«ã§ä»¥äžã®ã³ãã³ããå®è¡ããŠãã ãã: `weechat --colors`ã
// TRANSLATION MISSING
Example: display of "hello Alice!" with "hello" in light blue bold and
"Alice" in light red underlined:
// TRANSLATION MISSING
----
^Cc12^Cbhello ^Cb^Cc04^C_Alice^C_^Cc!
----
// TRANSLATION MISSING
Keys:
// TRANSLATION MISSING
kbd:[Ctrl+c] kbd:[c] kbd:[1] kbd:[2] kbd:[Ctrl+c] kbd:[b] +
kbd:[h] kbd:[e] kbd:[l] kbd:[l] kbd:[o] kbd:[Space] +
kbd:[Ctrl+c] kbd:[b] kbd:[Ctrl+c] kbd:[c] kbd:[0] kbd:[4] kbd:[Ctrl+c] kbd:[pass:[_]] +
kbd:[A] kbd:[l] kbd:[i] kbd:[c] kbd:[e] +
kbd:[Ctrl+c] kbd:[pass:[_]] kbd:[Ctrl+c] kbd:[c] +
kbd:[!]
[NOTE]
irc ãã©ã°ã€ã³ã§ã¯ã<<option_irc.color.mirc_remap,irc.color.mirc_remap>>
ã䜿ã£ãŠãããã®è²ãå¥ã®è²ã«å¯Ÿå¿ä»ããããšãã§ããŸãã
[[colors]]
=== è²
WeeChat ã§ã¯ããŒããã£ãããšãªã¢ã«ãããããã¹ã衚瀺㫠32767 åã®è²ãã¢ãå©çšã§ããŸã
(ãã®æ©èœãå©çšããã«ã¯ WeeChat ãå®è¡ãããŠãã端æ«ã 256 è²è¡šç€ºã«å¯Ÿå¿ããŠããå¿
èŠããããŸã)ã
_TERM_ ç°å¢å€æ°ã®å€ã«ãã£ãŠãWeeChat
ã§å©çšã§ããè²ãšè²ãã¢ã«ä»¥äžã®å¶éããããŸã:
[width="75%",cols="8,>3,>3",options="header"]
|===
| $TERM | è² | ãã¢
| "rxvt-unicode", "xterm", ... | 88 | 32767
| "rxvt-256color", "xterm-256color", ... | 256 | 32767
| "screen" | 8 | 64
| "screen-256color" | 256 | 32767
| "tmux" | 8 | 64
| "tmux-256color" | 256 | 32767
|===
`weechat --colors` ãå®è¡ãããã`/color` ã³ãã³ãã WeeChat
ã®äžã§å®è¡ããããšã§ãè²è¡šç€ºã®å¶éã確èªã§ããŸãã
256 è²ãå©çšãããå Žåã«æšå¥šããã _TERM_ ç°å¢å€æ°ã®å€ã¯:
* screen å
ã®å Žå: _screen-256color_
* tmux å
ã®å Žå: _screen-256color_ã_tmux-256color_
* screen ããã³ tmux ã®å€ã®å Žå: _xterm-256color_ã_rxvt-256color_ã_putty-256color_ã...
[NOTE]
_TERM_ ç°å¢å€æ°ã®å€ã«äžã®å€ãèšå®ããã«ã¯ã"ncurses-term"
ããã±ãŒãžãã€ã³ã¹ããŒã«ããå¿
èŠããããããããŸããã
screen ã䜿ã£ãŠããå Žåã_~/.screenrc_ ã«ä»¥äžã®å
容ãè¿œå ããŠãã ãã:
----
term screen-256color
----
_TERM_ å€æ°ãééã£ãå€ã«èšå®ãããç¶æ
㧠WeeChat ãèµ·åå®äºããŠããå Žåã¯ã以äžã®
2 ã€ã®ã³ãã³ãã䜿ã£ãŠå€æ°ã®å€ãå€æŽããŠãã ãã:
----
/set env TERM screen-256color
/upgrade
----
[[colors_basic]]
==== åºæ¬è²
WeeChat ã«ãããåºæ¬è²ãšã¯:
[width="75%",cols="1m,4",options="header"]
|===
| åå | è²
| default | ããã©ã«ãã®ç«¯æ«è² (èæ¯è²ãééè²ãšãã)
| black | é»
| darkgray | æãç°è²
| red | æãèµ€
| lightred | æããèµ€
| green | æãç·è²
| lightgreen | æããç·è²
| brown | è¶è²
| yellow | é»è²
| blue | æãé
| lightblue | æããé
| magenta | æã赀玫è²
| lightmagenta | æãã赀玫è²
| cyan | æãéç·è²
| lightcyan | æããéç·è²
| gray | ç°è²
| white | çœ
|===
[[colors_extended]]
==== æ¡åŒµè²
WeeChat ã¯ç»é¢ã«è²ã衚瀺ãããæç¹ã§è²ãã¢ãåçã«å²ãåœãŠãŸã
(ãããã¡ãšããŒã衚瀺ããæç¹ã§)ã
åºæ¬è²ã«å ããŠã1 çª
ãã端æ«ã®å¯Ÿå¿ç¶æ³ã«äŸåããçªå·ãŸã§ã®è²çªå·ãå©çšã§ããŸãã
`/color` ã³ãã³ãã§çŸåšã®è²ãšè²å¶éã確èªã§ããŸããkbd:[Alt+c]
ãã¿ã€ãããããšã§ãäžæçã«ç«¯æ«è²ãéžæãããè²ã«å€æŽã§ããŸãã
äŸãã°ããããã¡äžã®ã«è¡šç€ºãããæå»ããªã¬ã³ãžè²ã«ãããå Žåã以äžã®ããã«ããŠãã ãã:
----
/set weechat.color.chat_time 214
----
ã¹ããŒã¿ã¹ããŒã®è²ãéåžžã«æãç·è²ã«ãããå Žå:
----
/set weechat.bar.status.color_bg 22
----
[[colors_aliases]]
==== å¥å
`/color alias` ã³ãã³ãã䜿ãã°è²ã®å¥åãè¿œå ã§ããŸãã
è¿œå åŸã¯ä»»æã®è²é¢é£ãªãã·ã§ã³ã§å¥åã䜿ããŸãã
äŸ:
----
/color alias 214 orange
/set weechat.color.chat_delimiters orange
----
[[colors_attributes]]
==== å±æ§
è²ã«å¯ŸããŠããã€ãã®å±æ§ãä»å ããããšãã§ããŸãã1
ã€ä»¥äžã®å±æ§ãè²åãŸãã¯è²çªå·ã®åã«ä»å ã§ããŸã:
* `+*+` : ããã¹ãã倪åã«
* `+!+` : ããã¹ããå転
* `+/+` : ããã¹ããã€ã¿ãªãã¯äœã«
* `+_+` : ããã¹ãã«äžç·ãåŒã
* `+|+` : å±æ§ãä¿æ:
è²ãå€ããéã«å€ªå/å転/äžç·å±æ§ããªã»ããããªã
äŸãã°ãèªåèªèº«ã®ããã¯ããŒã ã®è¡šç€ºè²ãçœã«ããŠãäžç·ãåŒãããå Žå:
----
/set weechat.color.chat_nick_self _white
----
ã¹ããŒã¿ã¹ããŒã®æå»ã®è¡šç€ºè²ãæ©è²ã«ããŠãäžç·ãåŒããŠã倪åã«ãããå Žå:
----
/set weechat.color.status_time *_214
----
ããã©ã«ã端æ«è² (-1) ã«å¯ŸããŠå±æ§ãèšå®ãããå Žåã端æ«è²çªå·ã®æ倧å€ããã倧ããªå€ãå©çšããŠãã ãããäŸãã°ãWeeChat
ã«ãããè²çªå·ã®æ倧å€ã¯ 99999 ã§ãã
端æ«ã®è¡šç€ºè²ã«å€ªåã®å±æ§ãä»å ããäŸ:
----
/set weechat.color.status_time *99999
----
[[buffers_and_windows]]
=== ãããã¡ãšãŠã£ã³ããŠ
_ãããã¡_ ã¯çªå·ãååã衚瀺ãããè¡
(ãšãã®ä»ã®æ
å ±) ã§æ§æãããŠããŸãã
ãããã¡ã®äŸ:
* ã³ã¢ãããã¡ (èµ·åæã« WeeChat ãäœæãéããããšã¯ã§ããŸãã)
* irc ãµãŒã (ãµãŒãããã®ã¡ãã»ãŒãžã衚瀺)
* irc ãã£ã³ãã«
* irc ãã©ã€ããŒãã¡ãã»ãŒãž
_window_
ã¯ãããã¡ã衚瀺ããç»é¢ãšãªã¢ã®ããšã§ããç»é¢ãè€æ°ã®ãŠã£ã³ããŠã«åå²ããããšãã§ããŸãã
ããããã®ãŠã£ã³ããŠã¯ 1 ã€ã®ãããã¡ã衚瀺ããŸãããããã¡ã¯é ããã
(ãŠã£ã³ããŠã«è¡šç€ºããªã)ãè€æ°ã®ãŠã£ã³ããŠã«è¡šç€ºããããšã§ããŸãã
æ°Žå¹³æ¹ååå²ã®äŸ (`/window splith`):
....
⌠ãŠã£ã³ã㊠#2 (ãããã¡ #4)
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â1.freenodeâWelcome to #def â
â weechat â12:55:12 Max | hi â@Flashyâ
â2. #test â12:55:20 @Flashy | hi Max! âMax â
â3. #abc â â â
â4. #def â â â
â5. #ghi â â â
â â â â
â â â â
â â â â
â â[12:55] [5] [irc/freenode] 4:#def(+n){2} â
â â[@Flashy] â
â âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â âWelcome to #abc â
â â12:54:15 peter | hey! â@Flashyâ
â â12:55:01 @joe | hello â@joe â
â â â+weebotâ
â â âpeter â
â â â â
â â â â
â â â â
â â â â
â â[12:55] [5] [irc/freenode] 3:#abc(+n){4} â
â â[@Flashy] hi peter!â â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â² ãŠã£ã³ã㊠#1 (ãããã¡ #3)
....
åçŽæ¹ååå²ã®äŸ (`/window splitv`):
....
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â1.freenodeâWelcome to #abc âWelcome to #def â
â weechat â12:54:15 peter | hey! â@Flashyâ12:55:12 Max | hi â@Flashyâ
â2. #test â12:55:01 @joe | hello â@joe â12:55:20 @Flashy | hi Max! âMax â
â3. #abc â â+weebotâ â â
â4. #def â âpeter â â â
â5. #ghi â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â[12:55] [5] [irc/freenode] 3:#abc(+n)â[12:55] [5] [irc/freenode] 4:#def(+n)â
â â[@Flashy] hi peter!â â[@Flashy] â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â² ãŠã£ã³ã㊠#1 (ãããã¡ #3) â² ãŠã£ã³ã㊠#2 (ãããã¡ #4)
....
åçŽæ¹å + æ°Žå¹³æ¹ååå²ã®äŸ:
....
⌠ãŠã£ã³ã㊠#3 (ãããã¡ #5)
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â1.freenodeâWelcome to #abc âWelcome to #ghi â
â weechat â12:54:15 peter | hey! â@Flashyâ12:55:42 @Flashy | hi â@Flashyâ
â2. #test â12:55:01 @joe | hello â@joe â12:55:56 alex | hi Flashy âalex â
â3. #abc â â+weebotâ â â
â4. #def â âpeter â â â
â5. #ghi â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â[12:55] [5] [irc/freenode] 5:#ghi(+n)â
â â â â[@Flashy] â
â â â âââââââââââââââââââââââââââââââââââââââ
â â â âWelcome to #def â
â â â â12:55:12 Max | hi â@Flashyâ
â â â â12:55:20 @Flashy | hi Max! âMax â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â â â â â
â â[12:55] [5] [irc/freenode] 3:#abc(+n)â[12:55] [5] [irc/freenode] 4:#def(+n)â
â â[@Flashy] hi peter!â â[@Flashy] â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â² ãŠã£ã³ã㊠#1 (ãããã¡ #3) â² ãŠã£ã³ã㊠#2 (ãããã¡ #4)
....
// TRANSLATION MISSING
[[buffers]]
=== Buffers
[[lines_format]]
==== è¡ã®æžåŒ
æžåŒä»ããããã¡ã«è¡šç€ºãããåè¡ã¯ä»¥äžã®ãã£ãŒã«ãããæ§æãããŸã:
[width="100%",cols="2,2,10",options="header"]
|===
| ãã£ãŒã«ã | 衚瀺ç¶æ
| 説æ
| æ¥ä»/æé (ã¡ãã»ãŒãž) | 衚瀺 | ã¡ãã»ãŒãžã®æ¥ä»ããã³æé (ããããéå»)ã
| æ¥ä»/æé (衚瀺) | é衚瀺 | WeeChat ãã¡ãã»ãŒãžã衚瀺ããæéã
| ãã¬ãã£ãã¯ã¹ | 衚瀺 | ã¡ãã»ãŒãžã®ãã¬ãã£ãã¯ã¹ãéåžžããã¯ããŒã ã
| ã¡ãã»ãŒãž | 衚瀺 | ã¡ãã»ãŒãžèªäœã
| 衚瀺ç¶æ
| é衚瀺 | ããŒã«å€: è¡ã衚瀺ãããå Žåã«ã¯çãè¡ã <<command_weechat_filter,/filter>> ã³ãã³ãã§ãã£ã«ã¿ãããå Žåã«ã¯åœã
| ãã€ã©ã€ã | é衚瀺 | ããŒã«å€: è¡ããã€ã©ã€ããããŠããå Žåã«ã¯çããã以å€ã®å Žåã«ã¯åœã
| ã¿ã° | `/debug tags` ã®å®è¡ã§è¡šç€ºç¶æ
ãåãæ¿ã | è¡ã«é¢é£ä»ããããã¿ã° (<<lines_tags,è¡ã®ã¿ã°>>åç
§)ã
|===
å€èŠ³ãªãã·ã§ã³(_pass:[weechat.look.*]_) ãšè²ãªãã·ã§ã³ (_pass:[weechat.color.chat_*]_)
ã䜿ãã°ãè¡ã®è¡šç€ºãã«ã¹ã¿ãã€ãºããããšãå¯èœã§ãã
[[lines_tags]]
==== è¡ã®ã¿ã°
WeeChat ã¯æ§ã
ãªç®çã§åè¡ã«ã¿ã°ãä»ããŸã:
* ãã€ã©ã€ã
* éç¥ã¬ãã«
* ãã°èšé²
* <<command_weechat_filter,/filter>> ã³ãã³ãã®äœ¿çš
`/debug tags` ã³ãã³ãã§ã¿ã°ã衚瀺ããããšãå¯èœã§ã (ã¿ã°ãé衚瀺ã«ããå Žåãåãã³ãã³ãã䜿ããŸã)ã
é垞䜿çšããã¿ã° (äžéšæç²ãããªã¹ã):
[width="100%",cols="1m,4",options="header"]
|===
| ã¿ã° | 説æ
| no_filter | ãã£ã«ã¿ã§ããªãè¡
| no_highlight | ãã€ã©ã€ãã§ããªãè¡
| no_log | ãã°ãã¡ã€ã«ã«æžã蟌ãŸããªãè¡
| log0 ⊠log9 | è¡ã«å¯Ÿãããã°ã¬ãã« (`/help logger` ãåç
§)
// TRANSLATION MISSING
| notify_none | The line must not be added to hotlist. ^(1)^
// TRANSLATION MISSING
| notify_message | The line is a user message. ^(1)^
// TRANSLATION MISSING
| notify_private | The line is a private message. ^(1)^
// TRANSLATION MISSING
| notify_highlight | The line is a message with highlight. ^(1)^
| self_msg | èªåã®ã¡ãã»ãŒãž
| nick_xxx | ããã¯ããŒã "xxx" ããã®ã¡ãã»ãŒãž
| prefix_nick_ccc | ãã¬ãã£ãã¯ã¹ãè² "ccc" ã®ããã¯ããŒã ã«ããŸã
| host_xxx | ã¡ãã»ãŒãžäžã®ãŠãŒã¶åãšãã¹ã
| irc_xxx | IRC ã¡ãã»ãŒãž "xxx" (ã³ãã³ããŸã㯠3 æ¡ã®çªå·)
| irc_numeric | IRC çªå·ã¡ãã»ãŒãž
| irc_error | IRC ããã®ãšã©ãŒ
| irc_action | ããããã¯ããŒã ããã®ã¢ã¯ã·ã§ã³ (`/me` ã³ãã³ã)
| irc_ctcp | CTCP ã¡ãã»ãŒãž
| irc_ctcp_reply | CTCP ã¡ãã»ãŒãžã«å¯Ÿããè¿ä¿¡
| irc_smart_filter | "smart filter" ã§ãã£ã«ã¿ãªã³ã°å¯èœãª IRC ã¡ãã»ãŒãž
| away_info | é¢åžç¶æ
ã®ã¡ãã»ãŒãž
|===
// TRANSLATION MISSING
[NOTE]
^(1)^ When no tag "notify_xxx" is present, the default level is "low". If a tag
"notify_xxx" is present, the real notify level can be different, for example
if a max hotlist level is used for a nick, the notify level can be lower than
the value in the tag.
// TRANSLATION MISSING
[[local_variables]]
==== Local variables
Local variables can be defined in all buffers.
A local variable has:
* a name (string)
* a value (string, can be empty).
Local variables can be set by WeeChat, plugins, scripts, or manually on the
command line in the buffer;
For example to add the local variable "completion_default_template":
----
/buffer setvar completion_default_template %(my_completion)
----
To list local variables in the current buffer:
----
/buffer listvar
----
To remove the local variable "completion_default_template":
----
/buffer delvar completion_default_template
----
By default WeeChat and its default plugins interpret these variables:
[width="100%",cols="^2m,2,5",options="header"]
|===
| Name | Value | Description
| away |
any string |
Away message on the server, set by irc plugin.
| channel |
any string |
Channel name, set by irc/xfer plugins and debug buffer of relay/trigger plugins.
| charset_modifier |
any string |
Charset modifier for the server buffer, set by irc plugin.
| completion_default_template |
any string |
Default completion template for the buffer, overriding the option
`weechat.completion.default_template`.
| filter |
any string |
Filter defined on some buffers like `/fset`, `/server raw` (irc) and `/script`.
| host |
any string |
Self host (if known), set by irc plugin.
| lag |
any string |
Lag on the server, set by irc plugin.
| name |
any string |
Buffer name (be careful, this is not the full name and this name is not
enough to identify or search a buffer).
| nick |
any string |
Self nick, set by irc and xfer plugins.
| no_log |
`1` (or any non-empty string) |
If set, the logger plugin does not log anything for the buffer.
| plugin |
any string |
Name of plugin which created the buffer (`core` for WeeChat buffers).
| script_close_cb |
any string |
Close callback defined by a script for a buffer.
| script_close_cb_data |
any string |
Data for close callback defined by a script for a buffer.
| script_input_cb |
any string |
Input callback defined by a script for a buffer.
| script_input_cb_data |
any string |
Data for input callback defined by a script for a buffer.
| script_name |
any string |
Name of the script which created the buffer.
| server |
any string |
Server name, set by irc plugin and debug buffer of relay/trigger plugins.
| spell_suggest |
any string |
Misspelled word and suggestions (format: "misspelled:suggestions"), set by
spell plugin.
| trigger_filter |
any string |
Trigger filter, set by trigger plugin.
| type |
any string, for example:
`channel`,
`debug`,
`exec`,
`option`,
`private`,
`relay`,
`script`,
`server`,
`user`,
`xfer` |
Type of buffer, set by WeeChat and many plugins.
|===
[NOTE]
External plugins and scripts can define and use other local variables.
[[bars]]
=== ããŒ
_ããŒ_ ãšã¯ä»»æã®ããã¹ããå«ããããšãã§ãããã£ãããšãªã¢ä»¥å€ã®å Žæã§ãã
ããŒãªãã·ã§ã³ã¯ `weechat.bar.name.option` ãªãã·ã§ã³ã§èšå®ããŸããããã§
`name` ã¯ããŒã®ååã`option` ã¯ãã®ããŒã®ãªãã·ã§ã³åã§ãã
ããŒãªãã·ã§ã³ã®ãªã¹ã:
[width="100%",cols="2m,2,10",options="header"]
|===
| ãªãã·ã§ã³å | å€ | 説æ
| type | `root`ã`window` |
`root` åããŒã¯ç»é¢äžã®å
šãŠã£ã³ããŠã®å€åŽã«ãã£ãã 1 åã ã衚瀺ãããŸãã
ããã©ã«ãããŒã§ãã _buflist_ 㯠`root` åã®ããŒã§ãã +
`window` åããŒã¯åãŠã£ã³ããŠã®äžã«è¡šç€ºãããŸããäŸãã°ã`/window splith`
ã `/window splitv` ãªã©ã®æ¹æ³ã§ç»é¢ã 1 ååå²ããå Žåã1
ã€ã®ããŒãããããã®ãŠã£ã³ããŠã«è¡šç€ºãããŸããããã©ã«ãã® `window`
åããŒã«ã¯ _title_ã_status_ã_input_ã_nicklist_ ãªã©ããããŸãã
| position | `top`ã`bottom`ã`left`ã`right` |
ããŒã®äœçœ®: ãã£ãããšãªã¢ã®äžãäžãå·Šãå³ã
| priority | 0 以äžã®æŽæ° |
ããŒã®è¡šç€ºåªå
床:
åãšäœçœ®ãåãè€æ°ã®ããŒãç»é¢ã«è¡šç€ºããé çªã«å©çšãããã +
ããŒã¯ç»é¢ã®ç«¯ããäžå¿ã«åãã£ãŠè¡šç€ºããããé«ãåªå
床ãæã€ããŒãå
ã«
(ç»é¢ã®ç«¯ã«è¿ãåŽã«) 衚瀺ãããã +
äŸ: åªå
床 1000 ã® _input_ ããŒã¯åªå
床 500 㮠_status_
ããŒãããå
ã«è¡šç€ºãããã
| size | 0 以äžã®æŽæ° |
ããŒã®ãµã€ãº:
äœçœ®ãå³/å·Šã®å Žåã¯åæ°ãäœçœ®ãäž/äžã®å Žåã¯è¡æ°ãå€ã `0`
ã®å Žåã¯èªå (ããŒã®ãµã€ãºã¯ããŒã®å
容ãåºã«èšç®ããã)ã
| size_max | 0 以äžã®æŽæ° |
ããŒã®æ倧ãµã€ãºã`0` = å¶éç¡ã (ãã®ãªãã·ã§ã³ã¯
`size` = `0` ã®å Žåã®ã¿äœ¿ããã)ã
| color_bg | è² |
ããŒã®ããã©ã«ãã®èæ¯è²
| color_fg | è² |
ããŒã®ããã©ã«ãã®ããã¹ãè²
| color_delim | è² |
ããŒã®åºåãæåã®è²
| hidden | `on`ã`off` |
ãã®ãªãã·ã§ã³ã `on` ã®å ŽåãããŒã¯è¡šç€ºãããŸããã +
泚æ: ãã®ãªãã·ã§ã³ãå€æŽãã代ããã«ã`/bar` ã³ãã³ãã䜿ããšäŸ¿å©ã§ããäŸ:
`/bar toggle nicklist` (<<command_weechat_bar,/bar>> ã³ãã³ããåç
§)ã
| separator | `on`ã`off` |
ãã®ãªãã·ã§ã³ã `on` ã®å Žåãã»ãã¬ãŒã¿ (åºåãç·)
ãããŒå士ãŸãã¯ããŒãšãã£ãããšãªã¢ã®éã«è¡šç€ºãããŸãã
| items | æåå |
_items_ ã®ãªã¹ã (詳现ã¯<<bar_items,ããŒèŠçŽ >>ãåç
§)ã
| filling_left_right | `+horizontal+`ã`+vertical+`ã`+columns_horizontal+`ã`+columns_vertical+` |
äœçœ®ã `left` ãŸã㯠`right` ã®ããŒã«å¯Ÿãããã£ãªã³ã°ã¿ã€ã
(詳现ã¯<<bar_filling,ããŒãã£ãªã³ã°>>ãåç
§)ã
| filling_top_bottom | `+horizontal+`ã`+vertical+`ã`+columns_horizontal+`ã`+columns_vertical+` |
äœçœ®ã `top` ãŸã㯠`bottom` ã®ããŒã«å¯Ÿãããã£ãªã³ã°ã¿ã€ã
(詳现ã¯<<bar_filling,ããŒãã£ãªã³ã°>>ãåç
§)ã
| conditions | æåå |
ããŒã衚瀺ããç¶æ
(詳现ã¯<<bar_conditions,ããŒç¶æ
>>ãåç
§)ã
|===
[[bar_items]]
==== ããŒèŠçŽ
_items_ ãªãã·ã§ã³ã¯ããŒèŠçŽ ãã³ã³ã (ç»é¢äžã®èŠçŽ å士ã«ééã空ãã)
ãŸã㯠`+++` (ééã空ããªã) ã§åºåã£ãæååã§ãã
ããŒèŠçŽ ã®ãªã¹ã㯠`/bar listitems` ã³ãã³ãã§è¡šç€ºãããŸãã
èŠçŽ åã®åãŸãã¯åŸã«æåã衚瀺ãããããšãã§ããŸã (è±æ°å以å€ã®æåã`+-+`
ãŸã㯠`+_+`)ããã®æåã¯ã㌠(_color_delim_ ãªãã·ã§ã³)
ã§å®çŸ©ãããåºåãæåã®è²ãã€ããŠèŠçŽ ã®åãŸãã¯åŸã«è¡šç€ºãããŸãã
ããŒèŠçŽ ãå«ãããŒã®äŸ "[time],buffer_number+:+buffer_plugin+.+buffer_name":
....
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â[12:55] 3:irc/freenode.#weechat â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
....
ç¹æ®æ§æã䜿ãããšã§ãããŒèŠçŽ : "@buffer:item"
("buffer" ã¯ãããã¡ã®å®å
šãªååã"item" ã¯ããŒèŠçŽ ã®åå)
ã衚瀺ããéã«åŒ·å¶çã«æå®ããããããã¡ãå©çšããããšãå¯èœã§ãã
ããã¯ã«ãŒãããŒã«çŸåšã®ãŠã£ã³ããŠã§è¡šç€ºãããªã (ãŸãã¯ã©ãã«ã衚瀺ãããªã)
ç¹å®ã®ãããã¡ã®èŠçŽ ã衚瀺ãããéã«äŸ¿å©ã§ãã
äŸ: bitlbee ã®ããã¯ããŒã ãªã¹ããã«ãŒãããŒã«è¡šç€ºããã
(ããŒã _bitlist_ 㧠bitlbee ãµãŒãã _bitlbee_ ã®å Žå):
----
/set weechat.bar.bitlist.items "@irc.bitlbee.&bitlbee:buffer_nicklist"
----
[[bar_filling]]
==== ããŒãã£ãªã³ã°
ãã£ãªã³ã°ã¿ã€ãã«ã¯ 4 ã€ã®çš®é¡ããããŸã:
* `+horizontal+`:
å·Šããå³ã«åãã£ãŠèŠçŽ ãæ°Žå¹³ã«è¡šç€ºãèŠçŽ å
ã«æ¹è¡ãããå Žåã空çœãè¡åºåãã«å©çšããŸãã
* `+vertical+`:
äžããäžã«åãã£ãŠèŠçŽ ã衚瀺ãèŠçŽ å
ã«æ¹è¡ãããå Žåãæ¹è¡ãè¡åºåãã«å©çšããŸãã
* `+columns_horizontal+`:
ããã¹ããå·Šå¯ãããŠãå圢åŒã§èŠçŽ ã衚瀺ãæåã®èŠçŽ ã¯å·Šäžã2
çªç®ã¯åãè¡ã® 1 åå³åŽã
* `+columns_vertical+`: ããã¹ããå·Šå¯ãããŠãå圢åŒã§èŠçŽ ã衚瀺ãæåã®èŠçŽ ã¯å·Šäžã2
çªç®ã¯åãåã® 1 è¡äžåŽã
ããã©ã«ãããŒã§ãã _title_ã_status_ã_input_ ã¯
_horizontal_ ãã£ãªã³ã°ã_nicklist_ 㯠_vertical_ ãã£ãªã³ã°ã
_nicklist_ ããŒã«å¯Ÿãããã£ãªã³ã°ã®äŸ:
....
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âWelcome to #test, this is a test channel â
â12:54:15 peter | hey! â@carl â
â12:55:01 +Max | hello â@jessikaâ
â â@maddy â
â â%Diego â
â â%Melody â
â â+Max â
â â celia â
â â Eva â
â â freddy â
â â Harold^â
â â henry4 â
â â jimmy17â
â â jodie âŒâ
â[12:55] [6] [irc/freenode] 3:#test(+n){24} â
â[@carl] â â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
filling_left_right = vertical â²
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
âWelcome to #test, this is a test channel â
â12:54:15 peter | hey! â@carl lee â
â12:55:01 +Max | hello â@jessika louise â
â â@maddy mario â
â â%Diego mark â
â â%Melody peter â
â â+Max Rachel â
â â celia richardâ
â â Eva sheryl â
â â freddy Vince â
â â Harold^ warren â
â â henry4 zack â
â â jimmy17 â
â â jodie â
â[12:55] [6] [irc/freenode] 3:#test(+n){24} â
â[@carl] â â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
filling_left_right = columns_vertical â²
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â@carl %Diego celia Harold^ jodie mario Rachel Vince â
â@jessika %Melody Eva henry4 lee mark richard warren â
â@maddy +Max freddy jimmy17 louise peter sheryl zack â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â â
filling_top_bottom = columns_vertical â²
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â@carl @jessika @maddy %Diego %Melody +Max celia Eva â
â freddy Harold^ henry4 jimmy17 jodie lee louise mario â
â mark peter Rachel richard sheryl Vince warren zack â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â â
filling_top_bottom = columns_horizontal â²
....
[[bar_conditions]]
==== ããŒç¶æ
_conditions_
ãªãã·ã§ã³ã¯ããŒã衚瀺ãããåŠããè©äŸ¡ããæååã§ãã
æååã¯ä»¥äžã®ãããã:
* _active_: éã¢ã¯ãã£ãç¶æ
ã®ãŠã£ã³ããŠ
* _inactive_: éã¢ã¯ãã£ãç¶æ
ã®ãŠã£ã³ããŠ
* _nicklist_: ããã¯ããŒã ãªã¹ããå«ãŸãããããã¡ã®ãŠã£ã³ããŠ
* åŒ: ããŒã«å€ãšããŠè©äŸ¡
(<<command_weechat_eval,/eval>> ã³ãã³ããåç
§)
åŒã«äœ¿ããå€æ°ã¯ä»¥äž:
* `+${active}+`: ãŠã£ã³ããŠãã¢ã¯ãã£ãç¶æ
ã®æã«ç
* `+${inactive}+`: ãŠã£ã³ããŠãéã¢ã¯ãã£ãç¶æ
ã®æã«ç
* `+${nicklist}+`: ãŠã£ã³ããŠã«è¡šç€ºããããããã¡ãããã¯ããŒã ãªã¹ãã®å Žåã«çã
åŒã«äœ¿ãããã€ã³ã¿ã¯ä»¥äž:
* `+${window}+`: ç¶æ
ãè©äŸ¡ããããŠã£ã³ããŠ
* `+${buffer}+`: ç¶æ
ãè©äŸ¡ããããŠã£ã³ããŠã®ãããã¡
// TRANSLATION MISSING
Example to display nicklist bar in all buffers with a nicklist, and only if
width of terminal is > 100:
----
/set weechat.bar.nicklist.conditions "${nicklist} && ${info:term_width} > 100"
----
// TRANSLATION MISSING
Same condition, but always display nicklist on buffer _&bitlbee_
(even if terminal is small):
----
/set weechat.bar.nicklist.conditions "${nicklist} && (${info:term_width} > 100 || ${buffer.full_name} == irc.bitlbee.&bitlbee)"
----
[[bare_display]]
=== æå°é衚瀺
ãæå°é衚瀺ããšåŒã°ããç¹æ®ãªè¡šç€ºç¶æ
ã䜿ãããšã§ã(ããŠã¹ã䜿ã£ãŠ) é·ã
URL ãç°¡åã«ã¯ãªãã¯ããããããã¹ããç°¡åã«éžæã§ããããã«ãªã£ãŠããŸãã
æå°é衚瀺ã¯ä»¥äžã®æ©èœãæã£ãŠããŸã:
* çŸåšã®ãããã¡ã®å
容ã ãã衚瀺: åå²ãŠã£ã³ããŠãããŒç
(ã¿ã€ãã«ãããã¯ããŒã ãªã¹ããç¶æ
ãå
¥åã...) ã衚瀺ããªã
* WeeChat ããŠã¹ãµããŒããç¡å¹å (æå¹åãããŠããå Žå):
端æ«ã§ããã®ãšåãããã« URL ãã¯ãªãã¯ãããããã¹ããéžæã§ããŸã
* ncurses ã䜿ããªãããã®ãã URL ãè¡ã®æåŸã§åæãããããšããªããªããŸãã
æå°é衚瀺ãæå¹åããããã©ã«ãããŒã¯ kbd:[Alt+l] (`L`) ã§ãçµäºããã«ã¯åãããŒãæŒããŠãã ãã
(ãŸããããã©ã«ãã§ã¯å
¥åãå€æŽãããå Žåã«æå°é衚瀺ãçµäºããŸãã<<option_weechat.look.bare_display_exit_on_input,weechat.look.bare_display_exit_on_input>>
ãªãã·ã§ã³ãåç
§)ã
<<option_weechat.look.bare_display_time_format,weechat.look.bare_display_time_format>>
ãªãã·ã§ã³ã䜿ãã°ãæéæžåŒãå€æŽããããšãå¯èœã§ãã
<<command_weechat_window,/window>>
ã³ãã³ãã䜿ãã°ãæå®ç§åŸã«æå°é衚瀺ãæå¹åããããšãã§ããŸãã
WeeChat ã以äžã®ãããªè¡šç€ºç¶æ
ã®å Žå:
....
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â1.freenodeâWelcome to #abc â
â weechat â12:52:27 --> | Flashy (flashcode@weechat.org) has joined #abc â@Flashyâ
â2. #test â12:52:27 -- | Nicks #abc: [@Flashy @joe +weebot peter] â@joe â
â3. #abc â12:52:27 -- | Channel #abc: 4 nicks (2 ops, 1 voice, 1 normal) â+weebotâ
â4. #def â12:52:27 -- | Channel created on Tue Jan 27 06:30:17 2009 âpeter â
â5. #ghi â12:54:15 peter | hey! â â
â â12:55:01 @joe | peter: hook_process: https://weechat.org/files/do â â
â â | c/devel/weechat_plugin_api.en.html#_weechat_hook_ â â
â â | process â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â â â
â â[12:55] [5] [irc/freenode] 3:#abc(+n){4} â
â â[@Flashy(i)] hi peter!â â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
....
æå°é衚瀺ã§ã¯ä»¥äžã®æ§ã«è¡šç€ºãããŸã:
....
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
â â
â â
â â
â â
â â
â â
â â
â â
â â
â â
â â
â â
â â
â â
â â
â â
â12:52 --> Flashy (flashcode@weechat.org) has joined #abc â
â12:52 -- Nicks #abc: [@Flashy @joe +weebot peter] â
â12:52 -- Channel #abc: 4 nicks (2 ops, 1 voice, 1 normal) â
â12:52 -- Channel created on Tue Jan 27 06:30:17 2009 â
â12:54 <peter> hey! â
â12:55 <@joe> peter: hook_process: https://weechat.org/files/doc/devel/weechat_plugin_aâ
âpi.en.html#_weechat_hook_process â
ââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
....
ãã®ããã端æ«ã§åé¡ãªã _joe_ ããããã® URL ãã¯ãªãã¯ã§ããŸã
(ãã¡ããã䜿çšäžã®ç«¯æ«ã§ URL ãã¯ãªãã¯ã§ããããã«èšå®ãããŠããªããã°ãããŸããã)ã
[[notify_levels]]
=== éç¥ã¬ãã«
[[setup_notify_levels]]
==== éç¥ã¬ãã«ã®èšå®
ãããã¡ã«è¡šç€ºãããåã¡ãã»ãŒãžã«ã¯ 4 ã€ã®ã¬ãã«ãèšå®ãããŠããŸããã¬ãã«ã®äœããã®ããé ã«:
* _low_: éèŠæ§ã®äœãã¡ãã»ãŒãž (äŸãã° irc ã®åå /éåº/çµäºã¡ãã»ãŒãž)
* _message_: ãŠãŒã¶ããã®ã¡ãã»ãŒãž
* _private_: ãã©ã€ããŒããããã¡ã®ã¡ãã»ãŒãž
* _highlight_: ãã€ã©ã€ããããã¡ãã»ãŒãž
ããããã®ãããã¡ã«ã¯éç¥ã¬ãã«ãèšå®ãããŠãããéç¥ã¬ãã«ã«å¯Ÿå¿ããã¡ãã»ãŒãžã®æ°ãããããªã¹ãã«è¡šç€ºãããŸãã
ããã©ã«ãã®éç¥ã¬ãã«ã¯
<<option_weechat.look.buffer_notify_default,weechat.look.buffer_notify_default>>
ãªãã·ã§ã³ã§æå®ããããã©ã«ã㯠_all_ ã§ãã
[width="75%",cols="2m,7",options="header"]
|===
| éç¥ã¬ãã« | ããããªã¹ãã«è¿œå ãããã¡ãã»ãŒãžã®ã¬ãã«
| none | (ç¡å¹)
| highlight | _highlight_ + _private_
| message | _highlight_ + _private_ + _message_
| all | _highlight_ + _private_ + _message_ + _low_
|===
éç¥ã¬ãã«ã¯ãããã¡ã°ã«ãŒãã«å¯ŸããŠèšå®ããããšãå¯èœã§ãäŸãã°
irc ãµãŒã "freenode" ã«å«ãŸããå
šãŠã®ãããã¡ã«å¯ŸããŠèšå®ããå Žå:
----
/set weechat.notify.irc.freenode message
----
"#weechat" ãã£ã³ãã«ã ãã«å¯ŸããŠãéç¥ã¬ãã«ã _highlight_ ã«èšå®ããå Žå:
----
/set weechat.notify.irc.freenode.#weechat highlight
----
`/buffer` ã³ãã³ãã§ããããããã¡ã«å¯Ÿããéç¥ã¬ãã«ãèšå®ã§ããŸã:
----
/buffer notify highlight
----
[[max_hotlist_level_nicks]]
==== ããã¯ããŒã ã«å¯Ÿããããããªã¹ãã¬ãã«ã®æ倧å€
ããã¯ããŒã ããããã¡ããããã¡ã°ã«ãŒã (IRC ãµãŒããªã©)
ã«å¯ŸããŠããããªã¹ãã¬ãã«ã®æ倧å€ãèšå®ããããšãå¯èœã§ãã
ããããã¯ããŒã ã®ãªã¹ãã«å¯ŸããŠãããã¡ãããã㣠"hotlist_max_level_nicks"
ãèšå®ããããåããã¯ããŒã ã«å¯ŸããŠããããªã¹ãã¬ãã«ã®æ倧å€ãèšå®ããããšãå¯èœã§ããèšå®å¯èœãªã¬ãã«ã¯ä»¥äžã§ã:
* -1: ããã¯ããŒã ãããããªã¹ããå€æŽããªãåªå
床
* 0: äœåªå
床 (åå ããã³éåºã¡ãã»ãŒãžãªã©)
* 1: éåžžã¡ãã»ãŒãž
* 2: ãã©ã€ããŒãã¡ãã»ãŒãž
* 3: ãã€ã©ã€ã (ããã¯ãã¹ãŠã®ã¡ãã»ãŒãžã®ããã©ã«ãæ倧å€ã§ãããããéåžžãããæå®ããããšã¯ãããŸãã)
äŸãã°çŸåšã®ãããã¡ã§ "joe" ãš "mike" ããã®ã¡ãã»ãŒãžã«å¯Ÿãããã€ã©ã€ããç¡å¹åããã«ã¯ä»¥äžã®ããã«èšå®ããŸã:
----
/buffer set hotlist_max_level_nicks_add joe:2,mike:2
----
[NOTE]
ãããã¡ãããã㣠"hotlist_max_level_nicks" ã¯èšå®ãã¡ã€ã«ã«ä¿åãããŸããã +
ãããä¿åããã«ã¯ _buffer_autoset.py_ ã¹ã¯ãªããã䜿ã£ãŠãã ãã: ãã®ã¹ã¯ãªãããã€ã³ã¹ããŒã«ããã«ã¯
`+/script install buffer_autoset.py+` ã³ãã³ãã䜿ãããã«ããèŠãã«ã¯ `+/help buffer_autoset+` ã³ãã³ãã䜿ã£ãŠãã ããã
[[highlights]]
=== ãã€ã©ã€ã
[[highlights_words]]
==== ãã€ã©ã€ãããåèªã®è¿œå
ããã©ã«ã㧠WeeChat
ã¯èªåã®ããã¯ããŒã ãå«ãŸããä»ã®ãŠãŒã¶ããã®ã¡ãã»ãŒãžããã€ã©ã€ãããŸãããã®ããããã€ã©ã€ãã¯ãããã¡ã«äŸåããŸã
(ããã¯ããŒã ã¯ãããã¡ããšã«ç°ãªãå ŽåããããŸã)ã
ä»ã®åèªãè¿œå ããã«ã¯ <<option_weechat.look.highlight,weechat.look.highlight>>
ãªãã·ã§ã³ã䜿ããŸããäŸãã°èªåã®ããã¯ããŒã ã"word1"ã"word2"ã"test"
ããå§ãŸãä»»æã®åèªããã€ã©ã€ãããã«ã¯ä»¥äžã®ããã«èšå®ããŸã:
----
/set weechat.look.highlight word1,word2,test*
----
åèªã«å¯ŸããŠããã«å
·äœçãªã«ãŒã«ãèšå®ããå¿
èŠãããå Žåã<<option_weechat.look.highlight_regex,weechat.look.highlight_regex>>
ãªãã·ã§ã³ã䜿ã£ãŠæ£èŠè¡šçŸã§æå®ããããšãå¯èœã§ããäŸãã° "flashcode"ã"flashcöde"ã"flashy"
ãšããåèªããã€ã©ã€ãããã«ã¯ä»¥äžã®ããã«èšå®ããŸã:
----
/set weechat.look.highlight_regex flashc[oö]de|flashy
----
ãã€ã©ã€ãããåèªã®åºåã㯠<<option_weechat.look.word_chars_highlight,weechat.look.word_chars_highlight>>
ãªãã·ã§ã³ã䜿ã£ãŠèšå®ããŸãã
[[highlights_tags]]
==== ãã€ã©ã€ãããã¿ã°ã®è¿œå
衚瀺ãããè¡ã«ã¯ãã¿ã°ããå«ããããšãå¯èœã§ãããã¿ã°ããšã¯ã¡ãã»ãŒãžã®åºèªãã¡ãã»ãŒãžèªèº«ã«é¢ããæ
å ±ãäžãããã®ã§ãã +
`/debug tags` ã³ãã³ãã§ã¿ã°ã衚瀺ããããšãå¯èœã§ã
(ã¿ã°ãé衚瀺ã«ããå Žåãåãã³ãã³ãã䜿ããŸã)ã
ãã€ã©ã€ãããã¿ã°ãæ瀺ããã«ã¯
<<option_weechat.look.highlight_tags,weechat.look.highlight_tags>>
ãªãã·ã§ã³ã䜿ããŸããè€æ°ã®ã¿ã°ãæå®ããã«ã¯ã³ã³ãã§åºåããè€æ°ã®ã¿ã°ã®è«ç
"and" ãè¡šãã«ã¯ `+++` ã§åºåããŸãã
äŸãã° "FlashCode" ãšããããã¯ããŒã ããã®ãã¹ãŠã®ã¡ãã»ãŒãžãš "toto"
ã§å§ãŸãããã¯ããŒã ããã®ãã¹ãŠã®éç¥ã¡ãã»ãŒãžããã€ã©ã€ãããã«ã¯ä»¥äžã®ããã«èšå®ããŸã:
----
/set weechat.look.highlight_tags "nick_flashcode,irc_notice+nick_toto*"
----
[[highlights_regex_buffer]]
==== ãããã¡ã«å¯Ÿããç¹å¥ãªãã€ã©ã€ãã®èšå®
ãããã¡ãããã㣠"highlight_regex"
ãšæ£èŠè¡šçŸã䜿ã£ãŠãã€ã©ã€ãã匷å¶ã§ããŸãã
äŸãã°çŸåšã®ãããã¡å®ã®ãã¹ãŠã®ã¡ãã»ãŒãžããã€ã©ã€ãããã«ã¯ä»¥äžã®ããã«èšå®ããŸã:
----
/buffer set highlight_regex .*
----
[NOTE]
ãããã¡ãããã㣠"highlight_regex" ã¯èšå®ãã¡ã€ã«ã«ä¿åãããŸããã +
ãããä¿åããã«ã¯ _buffer_autoset.py_ ã¹ã¯ãªããã䜿ã£ãŠãã ãã: ãã®ã¹ã¯ãªãããã€ã³ã¹ããŒã«ããã«ã¯
`+/script install buffer_autoset.py+` ã³ãã³ãã䜿ãããã«ããèŠãã«ã¯ `+/help buffer_autoset+` ã³ãã³ãã䜿ã£ãŠãã ããã
[[key_bindings]]
=== ããã©ã«ãã®ããŒå²ãåœãŠ
[[key_bindings_command_line]]
==== ã³ãã³ãã©ã€ã³çšã®ããŒ
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| ã㌠| 説æ | ã³ãã³ã
| kbd:[â] +
kbd:[Ctrl+b] | ã³ãã³ãã©ã€ã³ã§åã®æåã«ç§»å | `+/input move_previous_char+`
| kbd:[â] +
kbd:[Ctrl+f] | ã³ãã³ãã©ã€ã³ã§æ¬¡ã®æåã«ç§»å | `+/input move_next_char+`
| kbd:[Ctrl+â] +
kbd:[Alt+b] | ã³ãã³ãã©ã€ã³ã§åã®åèªã«ç§»å | `+/input move_previous_word+`
| kbd:[Ctrl+â] +
kbd:[Alt+f] | ã³ãã³ãã©ã€ã³ã§æ¬¡ã®åèªã«ç§»å | `+/input move_next_word+`
| kbd:[Home] +
kbd:[Ctrl+a] | ã³ãã³ãã©ã€ã³ã§è¡é ã«ç§»å | `+/input move_beginning_of_line+`
| kbd:[End] +
kbd:[Ctrl+e] | ã³ãã³ãã©ã€ã³ã§è¡æ«ã«ç§»å | `+/input move_end_of_line+`
| kbd:[Ctrl+c],
kbd:[b] | ããã¹ãã倪ååããã³ãŒãã®æ¿å
¥ | `+/input insert \x02+`
| kbd:[Ctrl+c],
kbd:[c] | ããã¹ãã«è²ãã€ããã³ãŒãã®æ¿å
¥ | `+/input insert \x03+`
| kbd:[Ctrl+c],
kbd:[i] | ããã¹ããã€ã¿ãªãã¯äœã«ããã³ãŒãã®æ¿å
¥ | `+/input insert \x1D+`
| kbd:[Ctrl+c],
kbd:[o] | ããã¹ãè²ã®ãªã»ãããè¡ãã³ãŒãã®æ¿å
¥ | `+/input insert \x0F+`
| kbd:[Ctrl+c],
kbd:[v] | ããã¹ãè²ã®å転ãè¡ãã³ãŒãã®æ¿å
¥ | `+/input insert \x16+`
| kbd:[Ctrl+c],
kbd:[_] | ããã¹ãã«äžç·ãåŒãã³ãŒãã®æ¿å
¥ | `+/input insert \x1F+`
| kbd:[Del] +
kbd:[Ctrl+d] | ã³ãã³ãã©ã€ã³ã§æ¬¡ã®æåãåé€ | `+/input delete_next_char+`
| kbd:[Backsp.] +
kbd:[Ctrl+h] | ã³ãã³ãã©ã€ã³ã§åã®æåãåé€ | `+/input delete_previous_char+`
| kbd:[Ctrl+k] | ã³ãã³ãã©ã€ã³ã§ã«ãŒãœã«ããåŸã®æååãåé€ (åé€ãããæåå㯠WeeChat å°çšã®å
éšã¯ãªããããŒãã«ä¿å) | `+/input delete_end_of_line+`
| kbd:[Ctrl+r] | ãããã¡äžã®å±¥æŽããããã¹ãæ€çŽ¢ (<<key_bindings_search_context,æ€çŽ¢ã¢ãŒãçšã®ããŒ>>ãåç
§) | `+/input search_text_here+`
| kbd:[Ctrl+t] | æåã®å
¥ãæ¿ã | `+/input transpose_chars+`
| kbd:[Ctrl+u] | ã³ãã³ãã©ã€ã³ã§ã«ãŒãœã«ããåã®æååãåé€ (åé€ãããæåå㯠WeeChat å°çšã®å
éšã¯ãªããããŒãã«ä¿å) | `+/input delete_beginning_of_line+`
| kbd:[Ctrl+w] | ã³ãã³ãã©ã€ã³ã§åã®åèªãåé€ (åé€ãããæåå㯠WeeChat å°çšã®å
éšã¯ãªããããŒãã«ä¿å) | `+/input delete_previous_word+`
| kbd:[Ctrl+y] | WeeChat å°çšã®å
éšã¯ãªããããŒãã®å
容ãããŒã¹ã | `+/input clipboard_paste+`
| kbd:[Ctrl+_] | ã³ãã³ãã©ã€ã³ã®æåŸã®åäœãããçŽã | `+/input undo+`
| kbd:[Alt+_] | ã³ãã³ãã©ã€ã³ã®æåŸã®åäœãåãæ¶ã | `+/input redo+`
| kbd:[Tab] | ã³ãã³ããããã¯ããŒã ãè£å® (å床 kbd:[Tab] ããããšã§æ¬¡ã®è£å®åè£ã衚瀺) | `+/input complete_next+`
| kbd:[Shift+Tab] | è£å®åè£ãç¡ãå Žå: éšåè£å®ãè¡ããè£å®åè£ãæãå Žå: åã®è£å®åè£ã衚瀺 | `+/input complete_previous+`
| kbd:[Enter] +
kbd:[Ctrl+j] +
kbd:[Ctrl+m] | ã³ãã³ããå®è¡ããããã¡ãã»ãŒãžãéä¿¡ãã (æ€çŽ¢ã¢ãŒãã®å Žå: æ€çŽ¢ã®çµäº) | `+/input return+`
// TRANSLATION MISSING
| kbd:[Alt+Enter] | Insert a newline. | `+/input insert \n+`
| kbd:[â] | åã®ã³ãã³ã/ã¡ãã»ãŒãžãåŒã³åºã (æ€çŽ¢ã¢ãŒãã®å Žå: äžæ¹åã«æ€çŽ¢) | `+/input history_previous+`
| kbd:[â] | 次ã®ã³ãã³ã/ã¡ãã»ãŒãžãåŒã³åºã (æ€çŽ¢ã¢ãŒãã®å Žå: äžæ¹åã«æ€çŽ¢) | `+/input history_next+`
| kbd:[Ctrl+â] | ã°ããŒãã«å±¥æŽããåã®ã³ãã³ã/ã¡ãã»ãŒãžãåŒã³åºã (ãã¹ãŠã®ãããã¡ã«å¯ŸããŠå
±éã®å±¥æŽ) | `+/input history_global_previous+`
| kbd:[Ctrl+â] | ã°ããŒãã«å±¥æŽãã次ã®ã³ãã³ã/ã¡ãã»ãŒãžãåŒã³åºã (ãã¹ãŠã®ãããã¡ã«å¯ŸããŠå
±éã®å±¥æŽ) | `+/input history_global_next+`
| kbd:[Alt+d] | ã³ãã³ãã©ã€ã³ã§æ¬¡ã®åèªãåé€ (åé€ãããæåå㯠WeeChat å°çšã®å
éšã¯ãªããããŒãã«ä¿å) | `+/input delete_next_word+`
| kbd:[Alt+k] | ããŒå
¥åã奪ã£ãŠãã³ãã³ãã©ã€ã³ã«ã³ãŒã (ããŒãå²ãåœãŠãããŠããã°ã³ãã³ã) ãå
¥å | `+/input grab_key_command+`
| kbd:[Alt+r] | ã³ãã³ãã©ã€ã³ãžã®å
¥åããã¹ãŠåé€ | `+/input delete_line+`
| kbd:[Alt+s] | ã¹ãã«ãã§ãã«ã®æå¹ç¡å¹ãåãæ¿ã | `+/mute spell toggle+`
|===
[[key_bindings_buffers_windows]]
==== ãããã¡ / ãŠã£ã³ããŠçšã®ããŒ
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| ã㌠| 説æ | ã³ãã³ã
| kbd:[Ctrl+l] (`L`) | å
šãŠã£ã³ããŠãåæç» | `+/window refresh+`
| kbd:[Ctrl+s],
kbd:[Ctrl+u] | ãã¹ãŠã®ãããã¡ã«æªèªããŒã¯ãã»ãã | `+/input set_unread+`
| kbd:[Ctrl+x] | åãçªå·ãæã€ãããã¡ã«ã¢ã¿ãããããŠããå ŽåãçŸåšã®ãããã¡ã«ç§»å | `+/input switch_active_buffer+`
| kbd:[Alt+x] | ããŒãžããããããã¡ã«åãºãŒã (kbd:[Alt+x]: å
šãŠã®ããŒãžããããããã¡ã衚瀺) | `+/input zoom_merged_buffer+`
| kbd:[PgUp] | ãããã¡å±¥æŽã 1 ããŒãžåäžæ¹åã«ã¹ã¯ããŒã« | `+/window page_up+`
| kbd:[PgDn] | ãããã¡å±¥æŽã 1 ããŒãžåäžæ¹åã«ã¹ã¯ããŒã« | `+/window page_down+`
| kbd:[Alt+PgUp] | ãããã¡å±¥æŽãæ°è¡åäžæ¹åã«ã¹ã¯ããŒã« | `+/window scroll_up+`
| kbd:[Alt+PgDn] | ãããã¡å±¥æŽãæ°è¡åäžæ¹åã«ã¹ã¯ããŒã« | `+/window scroll_down+`
| kbd:[Alt+Home] | ãããã¡å±¥æŽãæåãŸã§ã¹ã¯ããŒã« | `+/window scroll_top+`
| kbd:[Alt+End] | ãããã¡å±¥æŽãæåŸãŸã§ã¹ã¯ããŒã« | `+/window scroll_bottom+`
| kbd:[F1] +
kbd:[Ctrl+F1] | ãããã¡ãªã¹ããäžæ¹ã« 1 ããŒãžã¹ã¯ããŒã« | `+/bar scroll buflist * -100%+`
| kbd:[F2] +
kbd:[Ctrl+F2] | ãããã¡ãªã¹ããäžæ¹ã« 1 ããŒãžã¹ã¯ããŒã« | `+/bar scroll buflist * +100%+`
| kbd:[Alt+F1] | ãããã¡ãªã¹ããäžç«¯ãŸã§ã¹ã¯ããŒã« | `+/bar scroll buflist * b+`
| kbd:[Alt+F2] | ãããã¡ãªã¹ããäžç«¯ãŸã§ã¹ã¯ããŒã« | `+/bar scroll buflist * e+`
| kbd:[Alt+â] +
kbd:[Alt+â] +
kbd:[Ctrl+p] +
kbd:[F5] | åã®ãããã¡ã«ç§»å | `+/buffer -1+`
| kbd:[Alt+â] +
kbd:[Alt+â] +
kbd:[Ctrl+n] +
kbd:[F6] | åŸã®ãããã¡ã«ç§»å | `+/buffer +1+`
| kbd:[F7] | ãŠã£ã³ããŠãåã«ç§»å | `+/window -1+`
| kbd:[F8] | ãŠã£ã³ããŠãåŸã«ç§»å | `+/window +1+`
| kbd:[F9] | ãããã¡ã¿ã€ãã«ãå·Šæ¹åã«ã¹ã¯ããŒã« | `+/bar scroll title * -30%+`
| kbd:[F10] | ãããã¡ã¿ã€ãã«ãå³æ¹åã«ã¹ã¯ããŒã« | `+/bar scroll title * +30%+`
| kbd:[F11] +
kbd:[Ctrl+F11] | ããã¯ããŒã ãªã¹ããäžæ¹åã«ã¹ã¯ããŒã« | `+/bar scroll nicklist * -100%+`
| kbd:[F12] +
kbd:[Ctrl+F12] | ããã¯ããŒã ãªã¹ããäžæ¹åã«ã¹ã¯ããŒã« | `+/bar scroll nicklist * +100%+`
| kbd:[Alt+F11] | ããã¯ããŒã ãªã¹ããäžçªäžã«ã¹ã¯ããŒã« | `+/bar scroll nicklist * b+`
| kbd:[Alt+F12] | ããã¯ããŒã ãªã¹ããäžçªäžã«ã¹ã¯ããŒã« | `+/bar scroll nicklist * e+`
| kbd:[Alt+a] | å€æŽã®ãã£ã次ã®ãããã¡ã«ç§»å (åªå
é äœ: ãã€ã©ã€ããæ°èŠã¡ãã»ãŒãžããã®ä») | `+/input jump_smart+`
// TRANSLATION MISSING
| kbd:[Alt+Shift+B] | Toggle buflist. | `+/buflist toggle+`
| kbd:[Alt+h] | ããããªã¹ã (ä»ã®ãããã¡ã«ãã£ãå€æŽéç¥ãªã¹ã) ãæ¶å» | `+/input hotlist_clear+`
| kbd:[Alt+j],
kbd:[Alt+f] | æåã®ãããã¡ã«ç§»å | `+/buffer -+`
| kbd:[Alt+j],
kbd:[Alt+l] (`L`) | æåŸã®ãããã¡ã«ç§»å | `+/buffer ++`
| kbd:[Alt+j],
kbd:[Alt+r] | IRC çãããã¡ã«ç§»å | `+/server raw+`
| kbd:[Alt+j],
kbd:[Alt+s] | IRC ãµãŒããããã¡ã«ç§»å | `+/server jump+`
| kbd:[Alt+0...9] | çªå·ã®ãããã¡ã«ç§»å (0 = 10) | `+/buffer *N+`
| kbd:[Alt+j],
kbd:[01...99] | çªå·ã®ãããã¡ã«ç§»å | `+/buffer *NN+`
| kbd:[Alt+l] (`L`) | æå°é衚瀺ã®æå¹ç¡å¹ãåãæ¿ã | `+/window bare+`
| kbd:[Alt+m] | ããŠã¹ã®æå¹ç¡å¹ãåãæ¿ã | `+/mouse toggle+`
| kbd:[Alt+n] | 次ã®ãã€ã©ã€ããŸã§ã¹ã¯ããŒã« | `+/window scroll_next_highlight+`
// TRANSLATION MISSING
| kbd:[Alt+Shift+N] | Toggle nicklist bar. | `+/bar toggle nicklist+`
| kbd:[Alt+p] | åã®ãã€ã©ã€ããŸã§ã¹ã¯ããŒã« | `+/window scroll_previous_highlight+`
| kbd:[Alt+u] | ãããã¡ãæåã®æªèªè¡ãŸã§ã¹ã¯ããŒã« | `+/window scroll_unread+`
| kbd:[Alt+w],
kbd:[Alt+â] | äžã®ãŠã£ã³ããŠã«ç§»å | `+/window up+`
| kbd:[Alt+w],
kbd:[Alt+â] | äžã®ãŠã£ã³ããŠã«ç§»å | `+/window down+`
| kbd:[Alt+w],
kbd:[Alt+â] | å·Šã®ãŠã£ã³ããŠã«ç§»å | `+/window left+`
| kbd:[Alt+w],
kbd:[Alt+â] | å³ã®ãŠã£ã³ããŠã«ç§»å | `+/window right+`
| kbd:[Alt+w],
kbd:[Alt+b] | ãã¹ãŠã®ãŠã£ã³ããŠãµã€ãºãåçã« | `+/window balance+`
| kbd:[Alt+w],
kbd:[Alt+s] | 2 ã€ã®ãŠã£ã³ããŠãå
¥ãæ¿ã | `+/window swap+`
| kbd:[Alt+z] | çŸåšã®ãŠã£ã³ããŠãæ倧å (å床 kbd:[Alt+z] ããããšã§: æåã®ãŠã£ã³ããŠç¶æ
ã«æ»ããæ倧ååã®ç¶æ
) | `+/window zoom+`
| kbd:[Alt+<] | ãããã¡èšªåå±¥æŽã§åã®ãããã¡ã«ç§»å | `+/input jump_previously_visited_buffer+`
| kbd:[Alt+>] | ãããã¡èšªåå±¥æŽã§æ¬¡ã®ãããã¡ã«ç§»å | `+/input jump_next_visited_buffer+`
| kbd:[Alt+/] | æåŸã«è¡šç€ºãããããã¡ã«ç§»å (ãããã¡ç§»ååã«è¡šç€ºããŠãããŠã£ã³ããŠ) | `+/input jump_last_buffer_displayed+`
| kbd:[Alt+=] | ãã£ã«ã¿ã®æå¹ç¡å¹ãåãæ¿ã | `+/filter toggle+`
| kbd:[Alt+-] | çŸåšã®ãããã¡ã®ãã£ã«ã¿ã®æå¹ç¡å¹ãåãæ¿ã | `+/filter toggle @+`
|===
[[key_bindings_search_context]]
==== ãæ€çŽ¢ãã¢ãŒãçšã®ããŒ
以äžã®ããŒã¯ãæ€çŽ¢ãæ€çŽ¢ã¢ãŒã (ãããã¡å
ã®ããã¹ãæ€çŽ¢çšã«
kbd:[Ctrl+r] ãæŒãããç¶æ
) ã§ã®ã¿æå¹ã§ãã
[width="100%",cols="^.^3,.^8,.^5",options="header"]
|===
| ã㌠| 説æ | ã³ãã³ã
| kbd:[Ctrl+r] | æ€çŽ¢ã¿ã€ããåãæ¿ã: æåå (ããã©ã«ã)ãæ£èŠè¡šçŸ | `+/input search_switch_regex+`
| kbd:[Alt+c] | 倧æåå°æåãåºå¥ããŠæ€çŽ¢ | `+/input search_switch_case+`
| kbd:[Tab] | æ€çŽ¢ç¯å²: ã¡ãã»ãŒãž (ããã©ã«ã)ããã¬ãã£ãã¯ã¹ããã¬ãã£ãã¯ã¹ãšã¡ãã»ãŒãž | `+/input search_switch_where+`
| kbd:[â] | åã®ããŒã¯ãŒãã§æ€çŽ¢ | `+/input search_previous+`
| kbd:[â] | 次ã®ããŒã¯ãŒãã§æ€çŽ¢ | `+/input search_next+`
| kbd:[Enter] +
kbd:[Ctrl+j] +
kbd:[Ctrl+m] | çŸåšã®äœçœ®ã§æ€çŽ¢ãçµäº | `+/input search_stop_here+`
| kbd:[Ctrl+q] | æ€çŽ¢ãçµäºããŠãããã¡ã®æåŸãŸã§ã¹ã¯ããŒã« | `+/input search_stop+`
|===
[[key_bindings_cursor_context]]
==== ãã«ãŒãœã«ãã¢ãŒãçšã®ããŒ
以äžã®ããŒã¯ãã«ãŒãœã«ãã¢ãŒã (ç»é¢äžã§ã«ãŒãœã«ãèªç±ã«åãããç¶æ
) ã§ã®ã¿æå¹ã§ãã
[width="100%",cols="^.^3,^.^2,.^7,.^7",options="header"]
|===
| ã㌠| ãšãªã¢ | 説æ | ã³ãã³ã
| kbd:[â] | - | ã«ãŒãœã«ãäžã®è¡ã«ç§»å | `+/cursor move up+`
| kbd:[â] | - | ã«ãŒãœã«ãäžã®è¡ã«ç§»å | `+/cursor move down+`
| kbd:[â] | - | ã«ãŒãœã«ãå·Šã®åã«ç§»å | `+/cursor move left+`
| kbd:[â] | - | ã«ãŒãœã«ãå³ã®åã«ç§»å | `+/cursor move right+`
| kbd:[Alt+â] | - | ã«ãŒãœã«ãäžã®ãšãªã¢ã«ç§»å | `+/cursor move area_up+`
| kbd:[Alt+â] | - | ã«ãŒãœã«ãäžã®ãšãªã¢ã«ç§»å | `+/cursor move area_down+`
| kbd:[Alt+â] | - | ã«ãŒãœã«ãå·Šã®ãšãªã¢ã«ç§»å | `+/cursor move area_left+`
| kbd:[Alt+â] | - | ã«ãŒãœã«ãå³ã®ãšãªã¢ã«ç§»å | `+/cursor move area_right+`
| kbd:[m] | ãã£ãã | ã¡ãã»ãŒãžãåŒçš | `+hsignal:chat_quote_message;/cursor stop+`
| kbd:[q] | ãã£ãã | ãã¬ãã£ãã¯ã¹ãšã¡ãã»ãŒãžãåŒçš | `+hsignal:chat_quote_prefix_message;/cursor stop+`
| kbd:[Q] | ãã£ãã | æéããã¬ãã£ãã¯ã¹ãã¡ãã»ãŒãžãåŒçš | `+hsignal:chat_quote_time_prefix_message;/cursor stop+`
| kbd:[b] | ããã¯ããŒã ãªã¹ã| ããã¯ããŒã ããã³ãã | `+/window ${_window_number};/ban ${nick}+`
| kbd:[k] | ããã¯ããŒã ãªã¹ã| ããã¯ããŒã ãããã¯ãã | `+/window ${_window_number};/kick ${nick}+`
| kbd:[K] | ããã¯ããŒã ãªã¹ã| ããã¯ããŒã ããã³ãšããã¯ãã | `+/window ${_window_number};/kickban ${nick}+`
| kbd:[q] | ããã¯ããŒã ãªã¹ã| ããã¯ããŒã ã«å¯Ÿããã¯ãšãªãéã | `+/window ${_window_number};/query ${nick};/cursor stop+`
| kbd:[w] | ããã¯ããŒã ãªã¹ã| ããã¯ããŒã ã«å¯Ÿã㊠whois ãè¡ã | `+/window ${_window_number};/whois ${nick}+`
| kbd:[Enter] +
kbd:[Ctrl+j] +
kbd:[Ctrl+m] | - | ã«ãŒãœã«ã¢ãŒããçµäº | `+/cursor stop+`
|===
[[key_bindings_mouse_context]]
==== ãããŠã¹ãã¢ãŒãçšã®ããŒ
以äžã®ããŒã¯ãããŠã¹ãã¢ãŒã (ããŠã¹ã€ãã³ããçºçãããšã) ã§ã®ã¿æå¹ã§ãã
[width="100%",cols="^.^3,^.^3,^.^3,.^8,.^8",options="header"]
|===
| ãã¿ã³/ãã€ãŒã« ^(1)^ | ãžã§ã¹ãã£ãŒ | ãšãªã¢ | 説æ | ã³ãã³ã
| âŸâœâœ | - | ãã£ãã | ãŠã£ã³ããŠã«ç§»å | `+/window ${_window_number}+`
| âŸâœâœ | å·Š | ãã£ãã | åã®ãããã¡ã«ç§»å | `+/window ${_window_number};/buffer +1+`
| âŸâœâœ | å³ | ãã£ãã | 次ã®ãããã¡ã«ç§»å | `+/window ${_window_number};/buffer +1+`
| âŸâœâœ | å·Š (é·ã) | ãã£ãã | æåã®ãããã¡ã«ç§»å | `+/window ${_window_number};/buffer 1+`
| âŸâœâœ | å³ (é·ã) | ãã£ãã | æåŸã®ãããã¡ã«ç§»å | `+/window ${_window_number};/input jump_last_buffer+`
| kbd:[â²] | - | ãã£ãã | ãããã¡å±¥æŽãäžæ¹åã«ã¹ã¯ããŒã« | `+/window scroll_up -window ${_window_number}+`
| kbd:[âŒ] | - | ãã£ãã | ãããã¡å±¥æŽãäžæ¹åã«ã¹ã¯ããŒã« | `+/window scroll_down -window ${_window_number}+`
| kbd:[Ctrl+â²] | - | ãã£ãã | 氎平巊æ¹åã«ã¹ã¯ããŒã« | `+/window scroll_horiz -window ${_window_number} -10%+`
| kbd:[Ctrl+âŒ] | - | ãã£ãã | æ°Žå¹³å³æ¹åã«ã¹ã¯ããŒã« | `+/window scroll_horiz -window ${_window_number} +10%+`
// TRANSLATION MISSING
| kbd:[â²] | - | chat: fset buffer | Move five lines up in fset buffer. | `+/fset -up 5+`
// TRANSLATION MISSING
| kbd:[âŒ] | - | chat: fset buffer | Move five lines down in fset buffer. | `+/fset -down 5+`
// TRANSLATION MISSING
| âŸâœâœ | - | chat: fset buffer | Select line in fset buffer. | `+/window ${_window_number};/fset -go ${_chat_line_y}+`
// TRANSLATION MISSING
| âœâœâŸ | - | chat: fset buffer | Toggle boolean (on/off) or edit the option value. | `+hsignal:fset_mouse+`
// TRANSLATION MISSING
| âœâœâŸ | left | chat: fset buffer | Decrease value for integer/color, set/append to value for other types. | `+hsignal:fset_mouse+`
// TRANSLATION MISSING
| âœâœâŸ | right | chat: fset buffer | Increase value for integer/color, set/append to value for other types. | `+hsignal:fset_mouse+`
// TRANSLATION MISSING
| âœâœâŸ | up / down | chat: fset buffer | Mark/unmark multiple options. | `+hsignal:fset_mouse+`
| kbd:[â²] | - | ãã£ãã: ã¹ã¯ãªãããããã¡ | ã¹ã¯ãªãããããã¡ã 5 è¡äžæ¹åã«ã¹ã¯ããŒã« | `+/script up 5+`
| kbd:[âŒ] | - | ãã£ãã: ã¹ã¯ãªãããããã¡ | ã¹ã¯ãªãããããã¡ã§ 5 è¡äžæ¹åã«ã¹ã¯ããŒã« | `+/script down 5+`
| âŸâœâœ | - | ãã£ãã: ã¹ã¯ãªãããããã¡ | ã¹ã¯ãªãããããã¡ã§è¡éžæ | `+/script go ${_chat_line_y}+`
| âœâœâŸ | - | ãã£ãã: ã¹ã¯ãªãããããã¡ | ã¹ã¯ãªããã®ã€ã³ã¹ããŒã« `+/ åé€ | /script go ${_chat_line_y};/script installremove ${script_name_with_extension}+`
| âŸâœâœ | äž / å·Š | ãããã¡ãªã¹ã | æå®ãããããã¡ãäžã®çªå·ã«ç§»å | `+buflist_mouse+` ã·ã°ãã«
| âŸâœâœ | äž / å³ | ãããã¡ãªã¹ã | æå®ãããããã¡ãäžã®çªå·ã«ç§»å | `+buflist_mouse+` ã·ã°ãã«
| âŸâœâœ | - | ãããã¡ãªã¹ã | æå®ãããããã¡ã«åãæ¿ãã (çŸåšã®ãããã¡ãæå®ããå Žåããããã¡åãæ¿ãå±¥æŽã§åã®ãããã¡ã«åãæ¿ãã) | `+buflist_mouse+` ã·ã°ãã«
| âœâœâŸ | - | ãããã¡ãªã¹ã | çŸåšã®ãããã¡ãæå®ããå Žåããããã¡åãæ¿ãå±¥æŽã§æ¬¡ã®ãããã¡ã«åãæ¿ãã | `+buflist_mouse+` ã·ã°ãã«
| kbd:[Ctrl+â²] | - | ãããã¡ãªã¹ã | ãããã¡åãæ¿ãå±¥æŽã§åã®ãããã¡ã«åãæ¿ãã | `+buflist_mouse+` ã·ã°ãã«
| kbd:[Ctrl+âŒ] | - | ãããã¡ãªã¹ã | ãããã¡åãæ¿ãå±¥æŽã§æ¬¡ã®ãããã¡ã«åãæ¿ãã | `+buflist_mouse+` ã·ã°ãã«
| âŸâœâœ | äž | ããã¯ããŒã ãªã¹ã | ããã¯ããŒã ãªã¹ãã 1 ããŒãžåäžæ¹åã«ã¹ã¯ããŒã« | `+/bar scroll nicklist ${_window_number} -100%+`
| âŸâœâœ | äž | ããã¯ããŒã ãªã¹ã | ããã¯ããŒã ãªã¹ãã 1 ããŒãžåäžæ¹åã«ã¹ã¯ããŒã« | `+/bar scroll nicklist ${_window_number} +100%+`
| âŸâœâœ | äž (é·ã) | ããã¯ããŒã ãªã¹ã | ããã¯ããŒã ãªã¹ãã®æåã«ç§»å | `+/bar scroll nicklist ${_window_number} b+`
| âŸâœâœ | äž (é·ã) | ããã¯ããŒã ãªã¹ã | ããã¯ããŒã ãªã¹ãã®æåŸã«ç§»å | `+/bar scroll nicklist ${_window_number} e+`
| âŸâœâœ | - | ããã¯ããŒã ãªã¹ã | ããã¯ããŒã ã«å¯Ÿããã¯ãšãªãéã | `+/window ${_window_number};/query ${nick}+`
| âœâœâŸ | - | ããã¯ããŒã ãªã¹ã | ããã¯ããŒã ã«å¯Ÿãã whois ãè¡ã | `+/window ${_window_number};/whois ${nick}+`
| âŸâœâœ | å·Š | ããã¯ããŒã ãªã¹ã | ããã¯ããŒã ãããã¯ãã | `+/window ${_window_number};/kick ${nick}+`
| âŸâœâœ | å·Š (é·ã) | ããã¯ããŒã ãªã¹ã | ããã¯ããŒã ãããã¯ãšãã³ãã | `+/window ${_window_number};/kickban ${nick}+`
| âœâœâŸ | å·Š | ããã¯ããŒã ãªã¹ã | ããã¯ããŒã ããã³ãã | `+/window ${_window_number};/ban ${nick}+`
| âœâœâŸ | - | å
¥å | ããŠã¹ã€ãã³ãã奪ã£ãŠã³ãã³ãã©ã€ã³ã«ã³ãŒããå
¥å | `+/input grab_mouse_area+`
| kbd:[â²] | - | ä»»æã®ã㌠| ããŒã -20% ã¹ã¯ããŒã« | `+/bar scroll ${_bar_name} ${_window_number} -20%+`
| kbd:[âŒ] | - | ä»»æã®ã㌠| ããŒã +20% ã¹ã¯ããŒã« | `+/bar scroll ${_bar_name} ${_window_number} +20%+`
| âœâŸâœ | - | ä»»æã®å Žæ | ãã®å Žæã§ã«ãŒãœã«ã¢ãŒããéå§ | `+/cursor go ${_x},${_y}+`
|===
[NOTE]
^(1)^ kbd:[â²] ãš kbd:[âŒ] ã¯ãã€ãŒã«ã®äžæ¹åå転ãšäžæ¹åå転ã«å¯Ÿå¿ããŸãã
// TRANSLATION MISSING
[[key_bindings_fset_buffer]]
==== Keys for fset buffer
// TRANSLATION MISSING
These keys and actions are used on the fset buffer (see <<fset_plugin,Fset plugin>>).
// TRANSLATION MISSING
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Key | Action ^(1)^ | Description | Command
| kbd:[â] | | Move one line up. | `+/fset -up+`
| kbd:[â] | | Move one line down. | `+/fset -down+`
| kbd:[PgUp] | | Move one page up. | `+/window page_up+`
| kbd:[PgDn] | | Move one page down. | `+/window page_down+`
| kbd:[Alt+Home] | `pass:[<<]` | Move to first line. | `+/fset -go 0+`
| kbd:[Alt+End] | `pass:[>>]` | Move to last line. | `+/fset -go end+`
| kbd:[F11] | `pass:[<]` | Scroll horizontally on the left. | `+/fset -left+`
| kbd:[F12] | `pass:[>]` | Scroll horizontally on the right. | `+/fset -right+`
| kbd:[Alt+Space] | `t` | Toggle boolean value. | `+/fset -toggle+`
| kbd:[Alt+-] | `-` | Subtract 1 from value for integer/color, set value for other types. | `+/fset -add -1+`
| kbd:[Alt++] | `+` | Add 1 to value for integer/color, append to value for other types. | `+/fset -add 1+`
| kbd:[Alt+f],
kbd:[Alt+r] | `r` | Reset value. | `+/fset -reset+`
| kbd:[Alt+f],
kbd:[Alt+u] | `u` | Unset value. | `+/fset -unset+`
| kbd:[Alt+Enter] | `s` | Set value. | `+/fset -set+`
| kbd:[Alt+f],
kbd:[Alt+n] | `n` | Set new value. | `+/fset -setnew+`
| kbd:[Alt+f],
kbd:[Alt+a] | `a` | Append to value. | `+/fset -append+`
| kbd:[Alt+,] | `,` | Mark/unmark option. | `+/fset -mark 1+`
| kbd:[Shift+â] | | Move one line up and mark/unmark option. | `+/fset -up; /fset -mark+`
| kbd:[Shift+â] | | Mark/unmark option and move one line down. | `+/fset -mark; /fset -down+`
| | `m:xxx` | Mark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see <<command_fset_fset,fset command>>). |
| | `u:xxx` | Unmark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see <<command_fset_fset,fset command>>). |
| kbd:[Ctrl+l] (`L`) | | Refresh options and whole screen. | `+/fset -refresh+`
| | `$` | Refresh options (keep marked options). |
| | `$$` | Refresh options (unmark all options). |
| kbd:[Alt+p] | | Toggle plugin description options (`pass:[plugins.desc.*]`). | `+/mute /set fset.look.show_plugins_desc toggle+`
| kbd:[Alt+v] | | Toggle help bar. | `+/bar toggle fset+`
| | `s:x,y` | Sort options by fields x,y (see option <<option_fset.look.sort,fset.look.sort>>). | `+/mute /set fset.look.sort x,y+`
| | `s:` | Reset sort to its default value (see option <<option_fset.look.sort,fset.look.sort>>). | `+/mute /unset fset.look.sort+`
| | `w:xxx` | Export options in file "xxx". | `+/fset -export xxx+`
| | `w-:xxx` | Export options in file "xxx" without help. | `+/fset -export -nohelp xxx+`
| | `w+:xxx` | Export options in file "xxx" with help. | `+/fset -export -help xxx+`
| kbd:[Ctrl+x] | `x` | Switch the format used to display options. | `+/fset -format+`
| | `q` | Close fset buffer. | `+/buffer close+`
|===
// TRANSLATION MISSING
[NOTE]
^(1)^ The action must be entered as input on the command line, followed by kbd:[Enter].
// TRANSLATION MISSING
[[key_bindings_script_buffer]]
==== Keys for script buffer
// TRANSLATION MISSING
These keys and actions are used on the script buffer (see <<scripts_plugins,Script plugin>>).
// TRANSLATION MISSING
[width="100%",cols="^.^3,^.^2,.^8,.^5",options="header"]
|===
| Key | Action ^(1)^ | Description | Command
| kbd:[â] | | Move one line up. | `+/script up+`
| kbd:[â] | | Move one line down. | `+/script down+`
| kbd:[PgUp] | | Move one page up. | `+/window page_up+`
| kbd:[PgDn] | | Move one page down. | `+/window page_down+`
| kbd:[Alt+i] | `i` | Install script. | `+/script install+`
| kbd:[Alt+r] | `r` | Remove script. | `+/script remove+`
| kbd:[Alt+l] (`L`) | `l` | Load script. | `+/script load+`
| kbd:[Alt+u] | `u` | Unload script. | `+/script unload+`
| kbd:[Alt+Shift+A] | `A` | Autoload script. | `+/script toggleautoload+`
| kbd:[Alt+h] | `h` | Hold/unhold script. | `+/script hold+`
| kbd:[Alt+v] | `v` | View script. | `+/script show+`
|===
// TRANSLATION MISSING
[NOTE]
^(1)^ The action must be entered as input on the command line, followed by kbd:[Enter].
[[mouse]]
=== ããŠã¹ãµããŒã
WeeChat ã¯ããŠã¹ã¯ãªãã¯ãšããŠã¹ãžã§ã¹ãã£ãŒããµããŒãããŠããŸãã
ããŒã«ã«ç«¯æ«ãš screen/tmux ã®æç¡ã«ããããã ssh æ¥ç¶çµç±ã§å©çšå¯èœã§ãã
[[mouse_enable]]
==== ããŠã¹ã®æå¹å
èµ·åæã«ããŠã¹ãæå¹åããã«ã¯:
----
/set weechat.look.mouse on
----
ããŠã¹ãæå¹åããã«ã¯ kbd:[Alt+m] ãæŒããã以äžã®ã³ãã³ãã䜿ããŸã:
----
/mouse enable
----
ããŒã«ããŠã¹ã®äžæçãªç¡å¹åãå²ãåœãŠãããšãã§ããŸããäŸãã°ãkbd:[Alt+%]
ããŒã«ããŠã¹ã 10 ç§éç¡å¹åããæ©èœãå²ãåœãŠãã«ã¯:
----
/key bind meta-% /mouse toggle 10
----
[IMPORTANT]
WeeChat ã§ããŠã¹ãæå¹åããå Žåããã¹ãŠã®ããŠã¹ã€ãã³ã㯠WeeChat
ã«ãã£ãŠææãããŸãããããã£ãŠãã«ãã/ããŒã¹ããªã©ã®æäœã URL
ã®ã¯ãªãã¯ãªã©ã¯ç«¯æ«ã«éä¿¡ãããŸãããkbd:[Shift]
ããŒã䜿ãã°ãäžæçã«ããŠã¹ãç¡å¹åããŠã端æ«ãžçŽæ¥ã€ãã³ããéä¿¡ããäºãå¯èœã§ã
(äžéšã®ç«¯æ«ãäŸãã° iTerm ãªã©ã§ã¯ kbd:[Shift] ã®ä»£ããã« kbd:[Alt] ã䜿ã£ãŠãã ãã)ã
[NOTE]
ããŠã¹ã«é¢ãããã©ãã«ãããã° link:weechat_faq.ja.html#mouse[WeeChat FAQ (ãããã質å) / ããŠã¹]ãåç
§ããŠãã ããã
[[mouse_bind_events]]
==== ã³ãã³ãã«å¯ŸããŠããŠã¹ã€ãã³ããå²ãåœãŠã
WeeChat ã¯ããã©ã«ãããŠã¹ã€ãã³ãã®å€ããå®çŸ©ããŠããŸã
(<<key_bindings_mouse_context,ãããŠã¹ãã¢ãŒãçšã®ããŒ>>ãåç
§)ã
`/key` ã³ãã³ã㧠"mouse" ã³ã³ããã¹ããæå®ããããšã§å²ãåœãŠãè¿œå ãå€æŽã§ããŸã
(詳ãã䜿ãæ¹ã¯ <<command_weechat_key,/key>> ã³ãã³ããåç
§)ã
ã€ãã³ãåã«ã¯ä¿®é£Ÿã㌠(ä»»æ)ããã¿ã³/ãã€ãŒã«åããžã§ã¹ãã£ãŒ (ä»»æ)
ãå©çšã§ããŸããç°ãªãã€ãã³ã㯠`+-+` ã§åå²ããŠãã ããã
修食ããŒãªã¹ã:
[width="100%",cols="2m,3",options="header"]
|===
| 修食ã㌠| 説æ
| ctrl | kbd:[Ctrl] ããŒ
| alt | kbd:[Alt] ããŒ
| ctrl-alt | kbd:[Ctrl] + kbd:[Alt] ããŒ
|===
ãã¿ã³/ãã€ãŒã«ã®ãªã¹ã:
[width="100%",cols="2m,3",options="header"]
|===
| ãã¿ã³/ãã€ãŒã« | 説æ
| button1 | å·Šãã¿ã³ã¯ãªãã¯
| button2 | å³ãã¿ã³ã¯ãªãã¯
| button3 | äžãã¿ã³ã¯ãªã㯠(å€ãã®å Žåãã€ãŒã«ã¯ãªãã¯)
| button4 ... button9 | ãã®ä»ã®ãã¿ã³ã¯ãªãã¯
| wheelup | ãã€ãŒã« (äžæ¹å)
| wheeldown | ãã€ãŒã« (äžæ¹å)
|===
ãžã§ã¹ãã£ãŒã®ãªã¹ã (ãã¿ã³ã®ã¿å¯Ÿå¿ããã€ãŒã«æªå¯Ÿå¿):
[width="100%",cols="2m,3",options="header"]
|===
| ãžã§ã¹ãã£ãŒ | è·é¢
| gesture-up | 3 ãã 19
| gesture-up-long | 20 以äž
| gesture-down | 3 ãã 19
| gesture-down-long | 20 以äž
| gesture-left | 3 ãã 39
| gesture-left-long | 40 以äž
| gesture-right | 3 ãã 39
| gesture-right-long | 40 以äž
|===
æªå®äºã€ãã³ãã®ãªã¹ã (ãã¿ã³ã®ã¿ããã©ã°ã€ã³/ã¹ã¯ãªããã§äŸ¿å©):
[width="100%",cols="2m,3",options="header"]
|===
| ã€ãã³ã | 説æ
| event-down | ããŠã¹ãã¿ã³ãæŒãããé¢ãããŠããªãç¶æ
| event-drag | ããŠã¹ãã¿ã³ãæŒãããç¶æ
ã§ããŠã¹ãåãããã
|===
ã€ãã³ãã®è¡šèšäŸ:
* `button1`
* `ctrl-button1`
* `button1-gesture-right`
* `button1-event-down`
* `button1-event-drag`
* `alt-button2-gesture-down-long`
* `wheelup`
* `ctrl-alt-wheeldown`
* ...
[TIP]
"mouse" ã€ãã³ãã«ããŒãå²ãåœãŠãå Žåãã€ãã³ãåã®æåãŸãã¯æåŸã« `+*+`
ã䜿ãããšã§è€æ°ã®ã€ãã³ãã«ããããããããšãã§ããŸããäŸãã°
`+button1-gesture-*+` ã¯å·Šã¯ãªãã¯ãå©çšãããã¹ãŠã®ãžã§ã¹ãã£ãŒã«ãããããŸãã
[TIP]
`+/input grab_mouse+`
ã³ãã³ãã®åŸã«ããŠã¹ãåããããšã§ã³ãã³ãã©ã€ã³ã«ããŠã¹ã€ãã³ããå
¥åãããŸããããã«ãã察å¿ããã€ãã³ãã確èªã§ããŸãã
[[secured_data]]
=== æå·åããŒã¿
[[secured_data_storage]]
==== ããŒã¿ã®ä¿å
WeeChat ã¯ãã¹ã¯ãŒãããã³ _sec.conf_
ãã¡ã€ã«ã«ä¿åãããŠããå人ããŒã¿ãæå·åããããšãã§ããŸãã
ãã®èšå®ãã¡ã€ã«ã¯ä»ã®ã©ã®ãã¡ã€ã«ãããå
ã«èªãŸãããã¡ã€ã«ã«ä¿åãããŠããå€ã
WeeChat ããã³ãã©ã°ã€ã³/ã¹ã¯ãªããã®ãªãã·ã§ã³ã§äœ¿ãããšãã§ããŸãã
_sec.conf_
ã«å«ãŸããããŒã¿ãæå·åãããã¹ãã¬ãŒãºãèšå®ããããšãå¯èœã§ããããã¯å¿
é ã§ã¯ãããŸãããããã¹ãã¬ãŒãºãèšå®ããããšã匷ãå§ããŸãããã¹ãã¬ãŒãºãèšå®ããªãå ŽåãããŒã¿ã¯å¹³æã§ãã¡ã€ã«ã«ä¿åãããŸãã
----
/secure passphrase this is my passphrase
----
// TRANSLATION MISSING
[[secured_data_passphrase_on_startup]]
===== Passphrase on startup
When a passphrase is set, WeeChat will ask you to enter it on startup
(but not on `/upgrade`).
If you are using a password manager, you can run an external program to read
the passphrase instead of having to type it manually on WeeChat startup. +
For example with password-store (command `pass`):
----
/set sec.crypt.passphrase_command "/usr/bin/pass show weechat/passphrase"
----
The program may ask you unlock your GPG key or enter another passphrase to
read the secret. WeeChat will wait for the end of the command to read the
passphrase on the standard output (it must be on the first line without any
extra character). +
If the output contains no passphrase or if it is wrong, WeeChat will then ask
you to enter it.
[[secured_data_encryption]]
===== æå·å
ããŒã¿ã®æå·å㯠3 段éã«åããŠè¡ãããŸã:
. ãã¹ãã¬ãŒãºããéµãçæ (ä»»æã® salt ãå ããŸã)ã
. æå·åããããŒã¿ã®ããã·ã¥ãèšç®ã
. ããã·ã¥ãšããŒã¿ãæå·å (åºå: salt + æå·åæžã¿ã®ããã·ã¥/ããŒã¿)ã
[NOTE]
ãããã¯æå·ã¢ãŒã㯠_CFB_ ã§ãã
çµæ㯠16 é²æ°æååãšã㊠_sec.conf_ ãã¡ã€ã«ã«ä¿åãããŸããäŸ:
----
[data]
__passphrase__ = on
freenode = "53B1C86FCDA28FC122A95B0456ABD79B5AB74654F21C3D099A6CCA8173239EEA59533A1D83011251F96778AC3F5166A394"
----
[[secured_data_decryption]]
===== 埩å·å
ããŒã¿ã®åŸ©å·å㯠3 段éã«åããŠè¡ãããŸã:
. salt ãšãã¹ãã¬ãŒãºã䜿ã£ãŠéµãçæã
. ããã·ã¥ãšããŒã¿ã埩å·åã
. 埩å·åããããã·ã¥ãšããŒã¿ã®ããã·ã¥ãåãããšã確èªã
[[secured_data_manage]]
==== æå·åããŒã¿ã®ç®¡ç
æå·åããŒã¿ãè¿œå ããã«ã¯ã`/secure set` ã䜿ã£ãŠãã ããã_freenode_
IRC ãµãŒãã®ãã¹ã¯ãŒããèšå®ããäŸ:
----
/secure set freenode mypassword
----
å©äŸ¿æ§ãèæ
®ããŠãæå·åããŒã¿ãå°çšã®ãããã¡ã«è¡šç€ºã§ããããã«ãªã£ãŠããŸã
(å€ãèŠãã«ã¯ãããã¡ã§ kbd:[Alt+v]ã以äžã®ã³ãã³ããå®è¡ããŠãã ãã:
----
/secure
----
äŸãã°ãã¹ã¯ãŒããªã©ã®å人ããŒã¿ãå«ããªãã·ã§ã³ã§æå·åããŒã¿ã䜿ãããšãã§ããŸããæžåŒ:
"${sec.data.xxx}" ãã㧠"xxx" ã¯æå·åããŒã¿ã®ååã§ã
(`/secure set xxx ...` ã®ããã«äœ¿ããŸã)ã +
å©çšã§ãããªãã·ã§ã³ã®å®å
šãªãªã¹ãã¯ãèŠãã«ã¯ã`/help secure` ã䜿ã£ãŠãã ããã
äŸãã°äžã® _freenode_ ãã¹ã¯ãŒãã
<<irc_sasl_authentication,SASL èªèšŒ>>ã§äœ¿ãã«ã¯:
----
/set irc.server.freenode.sasl_password "${sec.data.freenode}"
----
[[commands_and_options]]
=== ã³ãã³ããšãªãã·ã§ã³
[[weechat_commands]]
==== WeeChat ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=weechat_commands]
[[sec_options]]
==== ä¿è·ããŒã¿ã®ãªãã·ã§ã³
_sec.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| crypt | /set sec.crypt.* | æå·åã«é¢ãããªãã·ã§ã³
| data | <<command_weechat_secure,/secure>> | ä¿è·ããŒã¿
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=sec_options]
[[weechat_options]]
==== WeeChat ãªãã·ã§ã³
_weechat.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| debug | <<command_weechat_debug,/debug set>> +
/set weechat.debug.* | core ãšãã©ã°ã€ã³ã®ãããã°ã¬ãã« (ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
| startup | /set weechat.startup.* | èµ·åãªãã·ã§ã³
| look | /set weechat.look.* | å€èŠ³
| palette | <<command_weechat_color,/color alias>> +
/set weechat.palette.* | è²ã®å¥å (ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
| color | /set weechat.color.* | è²
| completion | /set weechat.completion.* | è£å®ãªãã·ã§ã³
| history | /set weechat.history.* | å±¥æŽãªãã·ã§ã³ (ã³ãã³ããšãããã¡)
| proxy | <<command_weechat_proxy,/proxy>> +
/set weechat.proxy.* | ãããã·ãªãã·ã§ã³
| network | /set weechat.network.* | ãããã¯ãŒã¯/SSL ãªãã·ã§ã³
// TRANSLATION MISSING
| plugin | /set weechat.plugin.* | Options on plugins.
// TRANSLATION MISSING
| signal | /set weechat.signal.* | Options on signals.
| bar | <<command_weechat_bar,/bar>> +
/set weechat.bar.* | ããŒãªãã·ã§ã³
| layout | <<command_weechat_layout,/layout>> | ã¬ã€ã¢ãŠã
| notify | <<command_weechat_buffer,/buffer notify>> | ãããã¡ã«å¯Ÿããéç¥ã¬ãã« (ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
| filter | <<command_weechat_filter,/filter>> | ãã£ã«ã¿
| key | <<command_weechat_key,/key>> | ããã©ã«ãã³ã³ããã¹ãã®ããŒ
| key_search | <<command_weechat_key,/key>> | æ€çŽ¢ã³ã³ããã¹ãã®ããŒ
| key_cursor | <<command_weechat_key,/key>> | ã«ãŒãœã«ã³ã³ããã¹ãã®ããŒ
| key_mouse | <<command_weechat_key,/key>> | ããŠã¹ã³ã³ããã¹ãã®ããŒ
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=weechat_options]
[[plugins]]
== ãã©ã°ã€ã³
ãã©ã°ã€ã³ãšã¯åçã©ã€ãã©ãªã®ããšã§ãC
èšèªã§æžãããŠã³ã³ãã€ã«ãããŠããŸãããã©ã°ã€ã³ã¯ WeeChat ã«ãã£ãŠèªã¿èŸŒãŸããŸããGNU/Linux
ã®å Žåããã©ã°ã€ã³ãã¡ã€ã«ã¯ ".so" ãšããæ¡åŒµåãæã¡ãWindows ã®å Žåã".dll" ã§ãã
èŠã€ãã£ããã©ã°ã€ã³ã¯ WeeChat ã®èµ·åæã«èªåçã«èªã¿èŸŒãŸããŸããWeeChat
ã®èµ·åæã«ãã©ã°ã€ã³ãèªã¿èŸŒããåŠãã¯éžæå¯èœã§ãã
_ãã©ã°ã€ã³_ ãš _ã¹ã¯ãªãã_ ã®éããæããã«ããããšã¯éèŠã§ã:
_ãã©ã°ã€ã³_ ãšã¯ `/plugin` ã³ãã³ãã§èªã¿èŸŒãŸããã³ã³ãã€ã«æžã¿ãã€ããªãã¡ã€ã«ã§ããããã«å¯ŸããŠã
_ã¹ã¯ãªãã_ ãšã¯ `/python` çã®ã³ãã³ã㧠_python_
çã®ãã©ã°ã€ã³ãšãšãã«èªã¿èŸŒãŸããããã¹ããã¡ã€ã«ã§ãã
`/plugin`
ã³ãã³ãã䜿ãããšã§ããã©ã°ã€ã³ã®ããŒã/ã¢ã³ããŒããããŒãæžã¿ãã©ã°ã€ã³ã®è¡šç€ºãè¡ãããšãã§ããŸãã
// TRANSLATION MISSING
When a plugin is unloaded, WeeChat removes:
* buffers
* configuration options (options are written in files)
* all hooks: commands, modifiers, process, etc.
* infos and infolists
* hdata
* bar items.
ãã©ã°ã€ã³ãããŒããã¢ã³ããŒããããŒãæžã¿ãã©ã°ã€ã³ã衚瀺ããäŸ:
----
/plugin load irc
/plugin unload irc
/plugin list
----
ããã©ã«ããã©ã°ã€ã³ã®ãªã¹ã:
[width="100%",cols="1,5",options="header"]
|===
| ãã©ã°ã€ã³ | 説æ
| alias | ã³ãã³ãã®å¥åãå®çŸ©
| buflist | ãããã¡ãªã¹ãã衚瀺ããããã®ããŒèŠçŽ
| charset | ãããã¡ã®æåã³ãŒãã«åŸã£ãŠãã³ãŒã/ãšã³ã³ãŒã
| exec | WeeChat å
éšããå€éšã³ãã³ããå®è¡
| fifo | å€éšãã WeeChat ã«ã³ãã³ããéä¿¡ããããã® FIFO ãã€ã
| fset | WeeChat ãšãã©ã°ã€ã³ã®ãªãã·ã§ã³ãé«éèšå®
| irc | IRC ãã£ãããããã³ã«
| logger | ãããã¡ã®å
容ããã¡ã€ã«ã«ä¿å
| relay | ãããã¯ãŒã¯çµç±ã§ããŒã¿ãäžç¶
| script | ã¹ã¯ãªãããããŒãžã£
| python | Python ã¹ã¯ãªãã API
| perl | Perl ã¹ã¯ãªãã API
| ruby | Ruby ã¹ã¯ãªãã API
| lua | Lua ã¹ã¯ãªãã API
| tcl | Tcl ã¹ã¯ãªãã API
| guile | Guile (scheme) ã¹ã¯ãªãã API
| javascript | JavaScript ã¹ã¯ãªãã API
| php | PHP ã¹ã¯ãªãã API
| spell | ã³ãã³ãã©ã€ã³ã®ã¹ãã«ãã§ãã¯
| trigger | WeeChat ããã³ãã©ã°ã€ã³ãçºçãããã€ãã³ãã«å¯Ÿããããã¹ã眮æãšã³ãã³ãå®è¡
| xfer | ãã¡ã€ã«è»¢éãšãã€ã¬ã¯ããã£ãã
|===
API ã䜿ã£ããã©ã°ã€ã³ãã¹ã¯ãªããã®éçºã«ã€ããŠãã詳ããåŠã¶ã«ã¯
link:weechat_plugin_api.ja.html[WeeChat ãã©ã°ã€ã³ API ãªãã¡ã¬ã³ã¹]ãŸãã¯
link:weechat_scripting.ja.html[WeeChat ã¹ã¯ãªããäœæã¬ã€ã]ãåç
§ããŠãã ããã
[[alias_plugin]]
=== Alias
Alias ãã©ã°ã€ã³ã䜿ãããšã§ãã³ãã³ãã®å¥åãå®çŸ©ã§ããŸã (WeeChat
ã ãã§ãªãä»ã®ãã©ã°ã€ã³ãæäŸããã³ãã³ãã®å¥åãå®çŸ©ããããšãã§ããŸã)ã
倧æåã®å¥åã¯ããã©ã«ãã§å®çŸ©ããããã®ã§ã (æšæºã³ãã³ããšåºå¥ããããã«å€§æåã䜿ã£ãŠããŸã);
WeeChat ã¯ã³ãã³ãã®å€§æåå°æåãåºå¥ããªãã®ã§ãã³ãã³ã
`/close` ã¯å¥åã§ãã `/CLOSE` ãå®è¡ããŸãã
ããã©ã«ãã§å®çŸ©ãããå¥åã®ãªã¹ã:
include::includes/autogen_user_default_aliases.ja.adoc[tag=default_aliases]
[[alias_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=alias_commands]
[[alias_options]]
==== ãªãã·ã§ã³
_alias.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| cmd | <<command_alias_alias,/alias>> +
/set alias.cmd.* | å¥åã«å²ãåœãŠãã³ãã³ã
| completion | <<command_alias_alias,/alias>> +
/set alias.completion.* | å¥åã«å²ãåœãŠãè£å®
|===
[[buflist_plugin]]
=== Buflist
Buflist ãã©ã°ã€ã³ã䜿ãããšã§ã"buflist" ãšåŒã°ããããŒèŠçŽ ã®äžã«ãããã¡ãªã¹ãã衚瀺ãããããšãå¯èœã«ãªããŸã
(ãã以å€ã« "buflist2" ãš "buflist3" ãšåŒã°ããããŒèŠçŽ ãå©çšå¯èœã§ã)ã +
ãã©ã°ã€ã³ã¯éå§æã«ããŒèŠçŽ "buflist" ãæã€ããã©ã«ãã㌠"buflist" ãäœæããŸãã
[[buflist_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=buflist_commands]
[[buflist_options]]
==== ãªãã·ã§ã³
_buflist.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| format | /set buflist.format.* | ãããã¡ãªã¹ãã®è¡šç€ºæžåŒ
| look | /set buflist.look.* | å€èŠ³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=buflist_options]
[[charset_plugin]]
=== Charset
Charset ãã©ã°ã€ã³ã䜿ãããšã§ãæåã³ãŒãã«åŸã£ãŠããŒã¿ã®ãã³ãŒããšãšã³ã³ãŒããã§ããŸãã
ãã³ãŒã/ãšã³ã³ãŒãçšã«ããã©ã«ãã®æåã³ãŒããèšå®ãããŠããŸãããããããã®ãããã¡
(ãããã¡ã°ã«ãŒã) ã«å¯ŸããŠåå¥ã«æåã³ãŒããèšå®ããããšãã§ããŸãã
ãã®ãã©ã°ã€ã³ã®å°å
¥ã¯ä»»æã§ãããå°å
¥ãæšå¥šããŸã:
ãã®ãã©ã°ã€ã³ãããŒããããŠããªãå ŽåãWeeChat ãèªã¿æžãã§ããããŒã¿ã¯ UTF-8 ããŒã¿ã®ã¿ã«ãªããŸãã
Charset ãã©ã°ã€ã³ã¯ WeeChat
ã«ãã£ãŠèªåçã«ããŒããããã¹ãã§ãããã©ã°ã€ã³ãããŒããããŠããããšã確èªããã«ã¯ã以äžã®ããã«ããŠãã ãã:
----
/charset
----
ã³ãã³ããèŠã€ãããªãå Žåã以äžã®ã³ãã³ãã§ãã©ã°ã€ã³ãããŒãããŠãã ãã:
----
/plugin load charset
----
ãã©ã°ã€ã³ãèŠã€ãããªãå Žåãæåã³ãŒããµããŒããæå¹åããç¶æ
ã§
WeeChat ãåã³ã³ãã€ã«ããŠãã ããã
Charset ãã©ã°ã€ã³ãããŒããããå Žåã端æ«æåã³ãŒããšå
éšæåã³ãŒãã衚瀺ãããŸãã端æ«æåã³ãŒãã¯ãã±ãŒã«ã«äŸåããå
éšæåã³ãŒãã¯
UTF-8 ã§ãã
äŸ:
....
charset: terminal: ISO-8859-15, internal: UTF-8
....
[[charset_set]]
==== æåã³ãŒãã®èšå®
ã°ããŒãã«ãã³ãŒãæåã³ãŒããšãšã³ã³ãŒãæåã³ãŒããèšå®ããã«ã¯ã`/set` ã³ãã³ãã䜿ã£ãŠãã ããã
äŸ:
----
/set charset.default.decode ISO-8859-15
/set charset.default.encode ISO-8859-15
----
ã°ããŒãã«ãã³ãŒãæåã³ãŒããèšå®ãããŠããªãå Žå (äŸãã° Charset
ãã©ã°ã€ã³ãå§ããŠããŒãããå Žå)ãããã¯èªåçã«ç«¯æ«ã®æåã³ãŒãã
(UTF-8 ã§ãªããã°)ãããã©ã«ãã® _ISO-8859-1_ ã«èšå®ãããŸãã
ããã©ã«ãã®ãšã³ã³ãŒãæåã³ãŒãã¯ãããŸãããåŸã£ãŠãå
éšæåã³ãŒã
(UTF-8) ã䜿ãããŸãã
IRC ãµãŒãã®æåã³ãŒããèšå®ããã«ã¯ããµãŒããããã¡ã§ `/charset`
ã³ãã³ãã䜿ã£ãŠãã ãããæåã³ãŒãã®ã¿ãåŒæ°ãšããŠäžããå Žåããã®æåã³ãŒãããã³ãŒããšãšã³ã³ãŒãã«å©çšãããŸãã
äŸ:
----
/charset ISO-8859-15
----
ããã¯ä»¥äžãšç䟡ã§ã:
----
/charset decode ISO-8859-15
/charset encode ISO-8859-15
----
IRC ãã£ã³ãã« (ãŸãã¯ãã©ã€ããŒãã¡ãã»ãŒãž) ã®æåã³ãŒããèšå®ããã«ã¯ããµãŒãã®æåã³ãŒãèšå®ãšåæ§ã®ã³ãã³ãããã£ã³ãã«
(ãŸãã¯ãã©ã€ããŒãã¡ãã»ãŒãž) ãããã¡ã§äœ¿ã£ãŠãã ããã
IRC ãµãŒãã®å
šãŠã®ãã£ã³ãã«ããã³ãã©ã€ããŒããããã¡ã«å¯Ÿããæåã³ãŒããèšå®ããã«ã¯:
----
/set charset.encode.irc.freenode ISO-8859-15
----
ãã¹ãŠã®æåã³ãŒãèšå®ã確èªããã«ã¯ã以äžã®ã³ãã³ããå©çšããŠãã ãã:
----
/set charset.*
----
[[charset_troubleshooting]]
==== ãã©ãã«ã·ã¥ãŒãã£ã³ã°
æåã³ãŒãã«é¢ããåé¡ãããã°ãlink:weechat_faq.ja.html#charset[WeeChat FAQ (ãããã質å) / ããã€ãã®æåãèŠããŸãããã©ãããã°è¯ãã§ããã]ãåç
§ããŠãã ããã
[[charset_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=charset_commands]
[[charset_options]]
==== ãªãã·ã§ã³
_charset.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| default | /set charset.default.* | ããã©ã«ãã®ãã³ãŒã/ãšã³ã³ãŒãæåã»ãã
| decode | <<command_charset_charset,/charset decode>> +
/set charset.decode.* | ãããã¡ã®ãã³ãŒãæåã»ãã (ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
| encode | <<command_charset_charset,/charset encode>> +
/set charset.encode.* | ãããã¡ã®ãšã³ã³ãŒãæåã»ãã (ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=charset_options]
[[exec_plugin]]
=== Exec
`/exec` ã³ãã³ãã䜿ãããšã§ WeeChat
å
éšããå€éšã³ãã³ããå®è¡ãããã®çµæã衚瀺ããããããã¡ã«éä¿¡ããããšãå¯èœã«ãªããŸãã
[[exec_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=exec_commands]
[[exec_options]]
==== ãªãã·ã§ã³
_exec.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| command | /set exec.command.* | ã³ãã³ãã«å¯Ÿãããªãã·ã§ã³
| color | /set exec.color.* | è²
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=exec_options]
[[fifo_plugin]]
=== Fifo
å€éšãã WeeChat ãæäœããã«ã¯ãFIFO ãã€ãã«ã³ãã³ããããã¹ããæžã蟌ãã§ãã ãã ("fifo.file.enabled"
ãªãã·ã§ã³ãæå¹åãããŠããå¿
èŠããããŸãããããã©ã«ãã§æå¹åãããŠããã¯ãã§ã)ã
// TRANSLATION MISSING
The FIFO pipe is located in WeeChat runtime directory and is called
_weechat_fifo_ by default.
FIFO ãã€ãã«æžã蟌ãã³ãã³ã/ããã¹ãã®ææ³ã¯ä»¥äžã®äŸã®äžã€ã§ã:
....
plugin.buffer *ããã¹ããŸãã¯ã³ãã³ã
*ããã¹ããŸãã¯ã³ãã³ã
....
äŸ:
* IRC ãµãŒã freenode ã§äœ¿ãããã¯ããŒã ã "newnick" ã«å€æŽãã:
----
$ echo 'irc.server.freenode */nick newnick' >/run/user/1000/weechat/weechat_fifo
----
* IRC ãã£ã³ãã« #weechat ã«å¯ŸããŠããã¹ããéä¿¡:
----
$ echo 'irc.freenode.#weechat *hello!' >/run/user/1000/weechat/weechat_fifo
----
* çŸåšã®ãããã¡ã«å¯ŸããŠããã¹ããéä¿¡:
----
$ echo '*hello!' >/run/user/1000/weechat/weechat_fifo
----
* Python ã¹ã¯ãªããã®ã¢ã³ããŒããšããŒããè¡ã 2 ã€ã®ã³ãã³ããéä¿¡
(è€æ°ã®ã³ãã³ã㯠"\n" ã§åå²ããŠãã ãã):
----
$ printf '%b' '*/python unload\n*/python autoload\n' >/run/user/1000/weechat/weechat_fifo
----
[[fifo_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=fifo_commands]
[[fifo_options]]
==== ãªãã·ã§ã³
_fifo.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| file | /set fifo.file.* | FIFO ãã€ãã«é¢ãããªãã·ã§ã³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=fifo_options]
[[fset_plugin]]
=== Fset
fset (é«éèšå®) ãã©ã°ã€ã³ã¯ãããã¡å
ã«ãªãã·ã§ã³ã®ãªã¹ãã衚瀺ããWeeChat
ãšãã©ã°ã€ã³ã®ãªãã·ã§ã³èšå®ãæ¯æŽããŸãã
[[fset_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=fset_commands]
[[fset_options]]
==== ãªãã·ã§ã³
_fset.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| color | /set fset.color.* | è²
| format | /set fset.format.* | ãªãã·ã§ã³ãªã¹ãã®è¡šç€ºæžåŒ
| look | /set fset.look.* | å€èŠ³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=fset_options]
[[irc_plugin]]
=== IRC
IRC ãã©ã°ã€ã³ã¯ IRC ãããã³ã«ã«åŸã£ãŠä»ã®äººãšäŒè©±ãè¡ãããã«èšèšãããŠããŸãã
ãã«ããµãŒãã«å¯Ÿå¿ããDCC ãã£ãããšãã¡ã€ã«è»¢é (xfer
ãã©ã°ã€ã³ã䜿ããŸãã<<xfer_plugin,Xfer ãã©ã°ã€ã³>>ãåç
§) ãå«ãå
šãŠã® IRC ã³ãã³ãããµããŒãããŠããŸãã
[[irc_command_line_options]]
==== ã³ãã³ãã©ã€ã³ãªãã·ã§ã³
以äžã®ããã« 1 ã€ä»¥äžã® IRC ãµãŒãã«å¯Ÿå¿ãã URL ãåŒæ°ãšããŠäžããããšãã§ããŸã:
----
irc[6][s]://[nick[:password]@]irc.example.org[:port][/channel][,channel[...]]
----
_nono_ ãšããããã¯ããŒã ã䜿ã£ãŠ _chat.freenode.net_ ãã¹ãã®ããã©ã«ãããŒã (6667)
ã§çšŒåäžã® IRC ãµãŒãäžã® _#weechat_ ãš _#toto_ ãã£ã³ãã«ã«åå ããäŸ:
----
$ weechat irc://nono@chat.freenode.net/#weechat,#toto
----
[[irc_ssl_certificates]]
==== SSL 蚌ææž
SSL ã䜿ã£ãŠ IRC ãµãŒãã«æ¥ç¶ããå ŽåãWeeChat
ã¯ããã©ã«ãã§æ¥ç¶ãå®å
šã«ä¿¡é Œã§ãããã®ãã©ããã確èªããŸãã
以äžã®ãªãã·ã§ã³ã§ SSL æ¥ç¶ãèšå®ããŸã:
weechat.network.gnutls_ca_file::
èªèšŒå±ãã¡ã€ã«ãžã®ãã¹
irc.server.xxx.ssl_cert::
èªåçã«ããã¯ããŒã ã確èªããããã«å©çšããã SSL 蚌ææžãã¡ã€ã« (äŸãã°
oftc ãµãŒãã«ããã CertFP ã®å Žåã以äžã確èªããŠãã ãã)
irc.server.xxx.ssl_dhkey_size::
Diffie-Hellman ããŒäº€æã®éã«å©çšãããéµãµã€ãº (ããã©ã«ã:
2048)
irc.server.xxx.ssl_verify::
SSL æ¥ç¶ãå®å
šã«ä¿¡é Œã§ããããšã®ç¢ºèªãè¡ã (ããã©ã«ãã§æå¹)
[NOTE]
"ssl_verify" ãªãã·ã§ã³ã¯ããã©ã«ãã§æå¹ã§ãããããã£ãŠå³å¯ãªç¢ºèªãè¡ããã0.3.1
ããåã®ããŒãžã§ã³ã§ã¯ä¿¡é Œæ§ã®ç¢ºèªã«æåããŠãããã®ã倱æããå ŽåããããŸãã
[[irc_connect_oftc_with_certificate]]
===== æåã®äŸ: oftc ã«æ¥ç¶ããŠã蚌ææžã確èª
* ã·ã§ã«ã䜿ã£ãŠèšŒææžãã€ã³ããŒã:
----
$ mkdir -p ~/.config/weechat/ssl
$ wget -O ~/.config/weechat/ssl/CAs.pem https://www.spi-inc.org/ca/spi-cacert.crt
----
// TRANSLATION MISSING
[NOTE]
You must replace `~/.config/weechat` by the path to your WeeChat config directory
which can also be for example `~/.weechat`.
[NOTE]
CAs.pem ãã¡ã€ã«äžã§è€æ°ã®èšŒææžãé£çµããããšãã§ããŸãã
* WeeChat ã§ã¯ã"oftc" ãµãŒããæ¢ã«è¿œå ãããŠããŸã:
----
/connect oftc
----
[[irc_connect_oftc_with_certfp]]
===== 2 çªç®ã®äŸ: CertFP ã䜿ã£ãŠ oftc ã«æ¥ç¶
* ã·ã§ã«ã§èšŒææžãäœæ:
----
$ mkdir -p ~/.config/weechat/ssl
$ cd ~/.config/weechat/ssl
$ openssl req -nodes -newkey rsa:2048 -keyout nick.pem -x509 -days 365 -out nick.pem
----
// TRANSLATION MISSING
[NOTE]
You must replace `~/.config/weechat` by the path to your WeeChat config directory
which can also be for example `~/.weechat`.
* WeeChat ã§ã¯ã"oftc" ãµãŒããæ¢ã«è¿œå ãããŠããŸã:
----
/set irc.server.oftc.ssl_cert "${weechat_config_dir}/ssl/nick.pem"
/connect oftc
/msg nickserv cert add
----
ãã詳ããæ
å ±ã¯ https://www.oftc.net/NickServ/CertFP ã確èªããŠãã ããã
[[irc_sasl_authentication]]
==== SASL èªèšŒ
WeeChat 㯠SASL èªèšŒããµããŒãããŸãã以äžã®èªèšŒã¡ã«ããºã ãå©çšã§ããŸã:
* _plain_: å¹³æãã¹ã¯ãŒã (ããã©ã«ã)
* _ecdsa-nist256p-challenge_: å
¬ééµ/ç§å¯éµã䜿ããã£ã¬ã³ãžèªèšŒ
* _external_: ã¯ã©ã€ã¢ã³ãåŽ SSL 蚌ææž
* _dh-blowfish_: blowfish æå·ãã¹ã¯ãŒã (*å±éº*ãéæšå¥š)
* _dh-aes_: AES æå·ãã¹ã¯ãŒã (*å±éº*ãéæšå¥š)
ãµãŒããªãã·ã§ã³:
* _sasl_mechanism_: å©çšããèªèšŒã¡ã«ããºã (äžèšåç
§)
* _sasl_timeout_: èªèšŒæã®ã¿ã€ã ã¢ãŠã (ç§åäœ)
* _sasl_fail_: èªèšŒã«å€±æããå Žåã®æå
* _sasl_username_: ãŠãŒã¶å (ããã¯ããŒã )
* _sasl_password_: ãã¹ã¯ãŒã
* _sasl_key_: ECC ç§å¯éµãå«ããã¡ã€ã«
(_ecdsa-nist256p-challenge_ çš)
[[irc_sasl_ecdsa_nist256p_challenge]]
===== SASL ECDSA-NIST256P-CHALLENGE èªèšŒ
ECDSA-NIST256P-CHALLENGE ã䜿ã£ãŠèªèšŒãè¡ãããã«ã¯ãç§å¯éµãäœæããŠãã ãã
(æ¥ç¶ã®éã«ãã¹ã¯ãŒãã¯äžèŠã§ã)ã
éµãäœæããã«ã¯ã以äžã®ã³ãã³ãã䜿ã£ãŠãã ãã:
----
$ openssl ecparam -genkey -name prime256v1 -out ~/.config/weechat/ecdsa.pem
----
// TRANSLATION MISSING
[NOTE]
You must replace `~/.config/weechat` by the path to your WeeChat config directory
which can also be for example `~/.weechat`.
å
¬ééµã (base64 ãšã³ã³ãŒã圢åŒã§) äœæããã«ã¯ã以äžã®ã³ãã³ãã䜿ã£ãŠãã ãã:
----
$ openssl ec -noout -text -conv_form compressed -in ~/.config/weechat/ecdsa.pem | grep '^pub:' -A 3 | tail -n 3 | tr -d ' \n:' | xxd -r -p | base64
----
ãµãŒãã«æ¥ç¶ãæ¬äººç¢ºèª (äŸãã° "nickserv identify" ã䜿ã£ãŠ)ãnickserv
ã䜿ã£ãŠã¢ã«ãŠã³ãã«å
¬ééµãèšå® (ã¢ã«ãŠã³ãã®å
¬ééµã« base64
æååãæå®ãã):
----
/connect freenode
/msg nickserv identify your_password
/msg nickserv set pubkey Av8k1FOGetUDq7sPMBfufSIZ5c2I/QYWgiwHtNXkVe/q
----
ãµãŒãã® SASL ãªãã·ã§ã³ãèšå®:
----
/set irc.server.freenode.sasl_mechanism ecdsa-nist256p-challenge
/set irc.server.freenode.sasl_username "your_nickname"
/set irc.server.freenode.sasl_key "${weechat_config_dir}/ecdsa.pem"
----
ãµãŒãã«åæ¥ç¶:
----
/reconnect freenode
----
[[irc_tor_freenode]]
==== TOR/SASL ã䜿ã£ãŠ Freenode ã«æ¥ç¶ããå Žå
SSL ã«å ããŠãFreenode ãµãŒã㯠TOR (https://www.torproject.org/)
çµç±ã®æ¥ç¶ããµããŒãããŠããŸããTOR
ãšã¯ããŒãã£ã«ãã³ãã«ã®ãããã¯ãŒã¯ã§ãããã䜿ãããšã§å人ãã°ã«ãŒããã€ã³ã¿ãŒãããå©çšã«äŒŽããã©ã€ãã·ãŒãšã»ãã¥ãªãã£ãåäžãããããšãã§ããŸãã
æåã«ãTOR ãã€ã³ã¹ããŒã«ããŠãã ãããDebian (ãšãã®æŽŸçãã£ã¹ããªãã¥ãŒã·ã§ã³) ã®å Žå:
----
$ sudo apt-get install tor
----
WeeChat 㧠TOR ãµãŒãã¹ã䜿ã£ã socks5 ãããã·ãäœæããŠãã ãã
(ãã¹ãå/IP ã¢ãã¬ã¹ãããŒãçªå·ã¯ TOR ã®èšå®ã«äŸåããŸã):
----
/proxy add tor socks5 127.0.0.1 9050
----
ãããŠãæ°ãããµãŒããè¿œå ããŸããäŸãã°:
----
/server add freenode-tor ajnvpgl6prmkb7yktvue6im5wiedlz2w32uhcwaamdiecdrfpwwgnlqd.onion
----
// TRANSLATION MISSING
[NOTE]
If you are using an old version of TOR (before 0.3.5) you should use the address
`freenodeok2gncmy.onion` instead.
TOR ãããã·ãèšå®:
----
/set irc.server.freenode-tor.proxy "tor"
----
ECDSA-NIST256P-CHALLENGE ã¡ã«ããºã 㧠SASL èªèšŒãèšå® (ç§å¯éµãäœæããã«ã¯
<<irc_sasl_ecdsa_nist256p_challenge,SASL ECDSA-NIST256P-CHALLENGE èªèšŒ>>ãåç
§ããŠãã ãã):
----
/set irc.server.freenode-tor.sasl_mechanism ecdsa-nist256p-challenge
/set irc.server.freenode-tor.sasl_username "your_nickname"
/set irc.server.freenode-tor.sasl_key "${weechat_config_dir}/ecdsa.pem"
----
æåŸã«ããµãŒãã«æ¥ç¶ããŠãã ãã:
----
/connect freenode-tor
----
Freenode ãš TOR ã«é¢ãããã詳ããæ
å ±:
https://freenode.net/kb/answer/chat#accessing-freenode-via-tor
[[irc_smart_filter_join_part_quit]]
==== åå /éåº/çµäºã¡ãã»ãŒãžã«å¯Ÿããã¹ããŒããã£ã«ã¿
ãã£ã³ãã«å
ã§ã®çºèšãéå» X
åéãªãã£ãå Žåã«åå /éåº/çµäºã¡ãã»ãŒãžããã£ã«ã¿ãªã³ã°ããã¹ããŒããã£ã«ã¿ãå©çšã§ããŸãã
ã¹ããŒããã£ã«ã¿ã¯ããã©ã«ãã§æå¹åãããŠããŸããããããã¡å
ã®ã¡ãã»ãŒãžãé ãã«ã¯ãã£ã«ã¿ãè¿œå ããå¿
èŠããããŸããäŸãã°:
----
/filter add irc_smart * irc_smart_filter *
----
ç¹å®ã®ãã£ã³ãã«ã®ã¿ããŸãã¯ããååã§å§ãŸããã£ã³ãã«ã«å¯ŸããŠãã£ã«ã¿ãäœæããããšãã§ããŸã
(`/help filter` ãåç
§):
----
/filter add irc_smart_weechat irc.freenode.#weechat irc_smart_filter *
/filter add irc_smart_weechats irc.freenode.#weechat* irc_smart_filter *
----
以äžã®ã³ãã³ãã§åå ã¡ãã»ãŒãžã ãããŸãã¯éåº/çµäºã¡ãã»ãŒãžã ããé ãããšãã§ããŸã:
----
/set irc.look.smart_filter_join on
/set irc.look.smart_filter_quit on
----
é
延æé (ååäœ) ãèšå®ããããšãã§ããŸã:
----
/set irc.look.smart_filter_delay 5
----
éå» 5
åéããããã¯ããŒã ããã®çºèšãç¡ãã£ãå Žåããã®ããã¯ããŒã ã«å¯Ÿããåå ãŸãã¯éåº/çµäºã¡ãã»ãŒãžããã£ã³ãã«ããé ãããŸãã
[[irc_ctcp_replies]]
==== CTCP å¿ç
CTCP å¿çãã«ã¹ã¿ãã€ãºããããããã€ãã® CTCP
èŠæ±ãããã㯠(ç¡å¿ç) ããããšãã§ããŸãã
äŸãã°ãCTCP "VERSION" èŠæ±ã«å¯Ÿããå¿çãã«ã¹ã¿ãã€ãºããã«ã¯ã以äžã®ã³ãã³ãã䜿ã£ãŠãã ãã:
----
/set irc.ctcp.version "I'm running WeeChat $version, it rocks!"
----
CTCP "VERSION" èŠæ±ããããã¯ãã (èŠæ±ã«å¯Ÿããå¿çãè¡ããªã)
ã«ã¯ã空æååãèšå®ããŠãã ãã:
----
/set irc.ctcp.version ""
----
æªå®çŸ©ã® CTCP èŠæ±ã«å¯Ÿããå¿çãã«ã¹ã¿ãã€ãºã§ããŸããäŸãã°
CTCP "BLABLA" èŠæ±ã«å¯Ÿããå¿çã以äžã®ããã«èšå®ã§ããŸã:
----
/set irc.ctcp.blabla "This is my answer to CTCP BLABLA"
----
ç¹å®ã®ãµãŒãã«å¯Ÿã㊠CTCP å¿çãã«ã¹ã¿ãã€ãºããã«ã¯ãCTCP
åã®åã«å
éšãµãŒãåãã€ããŠãã ãã:
----
/set irc.ctcp.freenode.version "WeeChat $version (for freenode)"
----
æšæºã® CTCP å¿çã埩å
ããã«ã¯ããªãã·ã§ã³ãåé€ããŠãã ãã:
----
/unset irc.ctcp.version
----
以äžã®ã³ãŒããèšå®å€ã«å«ããããšãå¯èœã§ãããããã®ã³ãŒãã¯
CTCP å¿çæã«èªåçã« WeeChat ã«ãã£ãŠå±éãããŸã:
[width="100%",cols="2l,4,8",options="header"]
|===
| ã³ãŒã | 説æ | å€/äŸ
| $clientinfo | ãµããŒãããŠãã CTCP ãªãã·ã§ã³ã®ãªã¹ã | `+ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION+`
| $version | WeeChat ããŒãžã§ã³ | `+0.4.0-dev+`
| $versiongit | WeeChat ããŒãžã§ã³ + git ããŒãžã§ã³ ^(1)^ | `+0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| $git | git ããŒãžã§ã³ ^(1)^ | `+v0.3.9-104-g7eb5cc4+`
| $compilation | WeeChat ã³ã³ãã€ã«æ¥æ | `+Dec 16 2012+`
| $osinfo | OS ã«é¢ããæ
å ± | `+Linux 2.6.32-5-amd64 / x86_64+`
| $site | WeeChat ãŠã§ããµã€ã | `+https://weechat.org/+`
| $download | WeeChat ãŠã§ããµã€ãã®ããŠã³ããŒãããŒãž | `+https://weechat.org/download+`
| $time | çŸåšã®æ¥æ | `+Sun, 16 Dec 2012 10:40:48 +0100+`
| $username | IRC ãµãŒãäžã§äœ¿ããŠãŒã¶å | `+name+`
| $realname | IRC ãµãŒãäžã§äœ¿ãå®å | `+John Doe+`
|===
[NOTE]
^(1)^ git ããŒãžã§ã³ãšã¯ `git describe` ã³ãã³ãã®åºåã§ããgit ãªããžããªã§
WeeChat ãã³ã³ãã€ã«ããgit ãã€ã³ã¹ããŒã«ãããŠããå Žåã®ã¿å€ãèšå®ãããŸãã
CTCP ãªãã·ã§ã³ãèšå®ãããŠããªã (ããã©ã«ãã®) å ŽåãCTCP å¿çã¯ä»¥äžã®ããã«ãªããŸã:
[width="100%",cols="2,4,8",options="header"]
|===
| CTCP | å¿çæžåŒ | äŸ
| CLIENTINFO | `+$clientinfo+` | `+ACTION DCC CLIENTINFO FINGER PING SOURCE TIME USERINFO VERSION+`
| FINGER | `+WeeChat $versiongit+` | `+WeeChat 0.4.0-dev (git: v0.3.9-104-g7eb5cc4)+`
| SOURCE | `+$download+` | `+https://weechat.org/download+`
| TIME | `+$time+` | `+Sun, 16 Dec 2012 10:40:48 +0100+`
| USERINFO | `+$username ($realname)+` | `+name (John Doe)+`
| VERSION | `+WeeChat $versiongit ($compilation)+` | `+WeeChat 0.4.0-dev (git: v0.3.9-104-g7eb5cc4) (Dec 16 2012)+`
|===
[[irc_target_buffer]]
==== IRC ã¡ãã»ãŒãžã®ã¿ãŒã²ãããããã¡
`+irc.msgbuffer.*+` ãªãã·ã§ã³ã䜿ãã°ãIRC ã¡ãã»ãŒãžã«å¯Ÿããã¿ãŒã²ãããããã¡
(ã¡ãã»ãŒãžã衚瀺ãããããã¡) ãã«ã¹ã¿ãã€ãºããããšãã§ããŸãã
äžéšã® IRC ã¡ãã»ãŒãž (以äžã®ãªã¹ããåç
§) ã«å¯ŸããŠã以äžã®å€ãèšå®ã§ããŸã:
current::
çŸåšã®ãããã¡ (IRC ãããã¡ãŸãã¯ãµãŒããããã¡ã®å Žåã®ããã©ã«ã)
private::
ããã¯ããŒã ã«å¯Ÿãããã©ã€ããŒããããã¡ãèŠã€ãããªãå Žåã¯çŸåšã®ãããã¡ãŸãã¯ãµãŒããããã¡
(_irc.look.msgbuffer_fallback_ ãªãã·ã§ã³ã«äŸå)
server::
ãµãŒããããã¡
weechat::
WeeChat "core" ãããã¡
ãªãã·ã§ã³ãèšå®ãããŠããªã (ããã©ã«ãã®) å ŽåãWeeChat
ã¯é©åœãªãããã¡ãéžã³ãŸããéåžžã§ã¯ãµãŒããŸãã¯ãã£ã³ãã«ãããã¡ã§ãã
ã«ã¹ã¿ãã€ãºã§ããäžéšã® IRC ã¡ãã»ãŒãžãå¥åã®ãªã¹ãã¯ä»¥äžã§ã:
[width="100%",cols="^1m,^3m,8",options="header"]
|===
| ã¡ãã»ãŒãž | å¥å | 説æ
| error | | ãšã©ãŒ
| invite | | ãã£ã³ãã«ãžã®æåŸ
| join | | åå
| kick | | ããã¯
| kill | | ãã«
| mode | | ã¢ãŒã
| notice | | éç¥
| part | | éåº
| quit | | çµäº
| topic | | ãããã¯
| wallops | | IRC ãªãã¬ãŒã¿ã¡ãã»ãŒãž
| | ctcp | ctcp (ãã©ã€ããŒããŸã㯠notice ã¡ãã»ãŒãžå
ã®ãéä¿¡ãŸãã¯åä¿¡ã¡ãã»ãŒãž)
| 221 | | ãŠãŒã¶ã¢ãŒãæåå
| 275 | whois | whois (ã»ãã¥ã¢ãªæ¥ç¶)
| 301 | whois | whois (é¢åžç¶æ
)
| 303 | | ãµãŒããžã®æ¥ç¶ç¶æ
| 305 | unaway | çåžç¶æ
| 306 | away | é¢åžç¶æ
| 307 | whois | whois (ç»é²æžã¿ããã¯ããŒã )
| 310 | whois | whois (ãã«ãã¢ãŒã)
| 311 | whois | whois (ãŠãŒã¶)
| 312 | whois | whois (ãµãŒã)
| 313 | whois | whois (ãªãã¬ãŒã¿)
| 314 | whowas | whowas
| 315 | who | who (çµäº)
| 317 | whois | whois (ã¢ã€ãã«ç¶æ
)
| 318 | whois | whois (çµäº)
| 319 | whois | whois (ãã£ã³ãã«)
| 320 | whois | whois (身å
確èªæžã¿ãŠãŒã¶)
| 321 | list | list (éå§)
| 322 | list | list (ãã£ã³ãã«)
| 323 | list | list (çµäº)
| 326 | whois | whois (ãªãã¬ãŒã¿æš©éãæã£ãŠãããŠãŒã¶)
| 327 | whois | whois (ãã¹ã)
| 328 | | ãã£ã³ãã«ã® URL
| 329 | | ãã£ã³ãã«äœææ¥æ
| 330 | whois | whois (ãã°ã€ã³æã®åå)
| 331 | | ãããã¯ãæªèšå®ã®ãã£ã³ãã«
| 332 | | ãã£ã³ãã«ã®ãããã¯
| 333 | | ãããã¯ã«é¢ããæ
å ±
| 335 | whois | whois (ããããæå¹åãããŠããã)
| 338 | whois | whois (ãã¹ã)
| 341 | | æåŸ
äž
| 343 | whois | whois (ãªãã¬ãŒã¿)
| 344 | reop | ãã£ã³ãã«ãªãã¬ãŒã¿ã埩掻
| 345 | reop | ãã£ã³ãã«ãªãã¬ãŒã¿ã埩掻 (çµäº)
| 346 | invitelist | æåŸ
ãªã¹ã
| 347 | invitelist | æåŸ
ãªã¹ã (çµäº)
| 348 | exceptionlist | é€å€ãªã¹ã
| 349 | exceptionlist | é€å€ãªã¹ã (çµäº)
| 351 | | ãµãŒãããŒãžã§ã³
| 352 | who | who
| 353 | names | ãã£ã³ãã«å
ãŠãŒã¶ã®ãªã¹ã
| 366 | names | ãã£ã³ãã«å
ãŠãŒã¶ã®ãªã¹ãã®çµäº
| 367 | banlist | çŠæ¢ãªã¹ã
| 368 | banlist | çŠæ¢ãªã¹ãã®çµäº
| 369 | whowas | whowas (çµäº)
| 378 | whois | whois (æ¥ç¶å
)
| 379 | whois | whois (ã¢ãŒã)
| 401 | whois | æå®ããããã¯ããŒã ããã³ãã£ã³ãã«ããããŸãã
| 402 | whois | æå®ãããµãŒãããããŸãã
| 432 | | ããã¯ããŒã ã«ãšã©ãŒããããŸã
| 433 | | ããã¯ããŒã ã䜿çšãããŠããŸã
| 438 | | ããã¯ããŒã ãå€æŽããæš©éããããŸãã
| 671 | whois | whois (ã»ãã¥ã¢ãªæ¥ç¶)
| 728 | quietlist | çºèšçŠæ¢ãªã¹ã
| 729 | quietlist | çºèšçŠæ¢ãªã¹ãã®çµäº
| 732 | monitor | ç£èŠäžã®ããã¯ããŒã ã®ãªã¹ã
| 733 | monitor | ç£èŠäžã®ããã¯ããŒã ã®ãªã¹ã (çµäº)
| 901 | | ãã°ã€ã³ã«æå
|===
ãã®ä»ã®æ°å€ã³ãã³ããåæ§ã«ã«ã¹ã¿ãã€ãºã§ããŸãã
ãµãŒãåãåã«ã€ããããšã§ãç¹å®ã®ãµãŒãã«å¯ŸããŠèšå®ããããšãã§ããŸã
(äŸ: `freenode.whois`)ã
äŸ:
* `/whois` ã®çµæããã©ã€ããŒããããã¡ã«è¡šç€º:
----
/set irc.msgbuffer.whois private
----
* whois ã«å¯Ÿããèšå®ãããã©ã«ãã«æ»ã (ãµãŒããããã¡ã«è¡šç€º):
----
/unset irc.msgbuffer.whois
----
* "freenode" ãµãŒãã®å ŽåãæåŸ
ã¡ãã»ãŒãžãçŸåšã®ãããã¡ã«è¡šç€º:
----
/set irc.msgbuffer.freenode.invite current
----
* "303" (ison) ã¡ãã»ãŒãžã WeeChat "core" ãããã¡ã«è¡šç€º:
----
/set irc.msgbuffer.303 weechat
----
[[irc_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=irc_commands]
[[irc_options]]
==== ãªãã·ã§ã³
_irc.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set irc.look.* | å€èŠ³
| color | /set irc.color.* | è²
| network | /set irc.network.* | ãããã¯ãŒã¯ãªãã·ã§ã³
| msgbuffer | /set irc.msgbuffer.* | <<irc_target_buffer,IRC ã¡ãã»ãŒãžã®ã¿ãŒã²ãããããã¡>> (ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
| ctcp | /set irc.ctcp.* | <<irc_ctcp_replies,CTCP å¿ç>> (ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
| ignore | <<command_irc_ignore,/ignore>> | ç¡èŠãŠãŒã¶
| server_default | /set irc.server_default.* | ãµãŒãã«å¯Ÿããããã©ã«ãå€ (ãµãŒããªãã·ã§ã³ãå®çŸ©ãããŠããªãå Žåã«å©çšãããŸã)
| server | <<command_irc_server,/server>> +
/set irc.server.* | ãµãŒã
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=irc_options]
[[logger_plugin]]
=== Logger
Logger
ãã©ã°ã€ã³ã䜿ãããšã§ããããã¡ã®å
容ããã¡ã€ã«ã«ä¿åã§ããŸããä¿å圢åŒãšãã®æ¹æ³ããªãã·ã§ã³ã§èšå®ã§ããŸãã
[[logger_log_levels]]
==== ãã°ã¬ãã«
ãã°ä¿åã¯ããããã®ãããã¡ã«å¯ŸããŠèšå®ããããã°ã¬ãã«ã«åŸã£ãŠè¡ãããŸããããã©ã«ãã®ã¬ãã«ã¯
9 (ãããã¡ã«è¡šç€ºãããã¡ãã»ãŒãžããã¹ãŠä¿å)
ã§ããç¹å®ã®ãããã¡ããããã¡ã°ã«ãŒãã«å¯ŸããŠåå¥ã«ãã°ã¬ãã«ãèšå®ã§ããŸãã
èšå®å¯èœãªã¬ãã«ã¯ 0 ãã 9 ã§ãã0 㯠"ä¿åããªã"ã9
ã¯ããã¹ãŠã®ã¡ãã»ãŒãžãä¿åããæå³ããŸãã
ããããã®ãã©ã°ã€ã³ã§ã¬ãã«ã®æå³ãå€ãããŸããIRC
ãã©ã°ã€ã³ã«å¯ŸããŠã¯ä»¥äžã®ã¬ãã«ãå©çšãããŸã:
* ã¬ãã« 1: ãŠãŒã¶ããã®ã¡ãã»ãŒãž (ãã£ã³ãã«ãŸãã¯ãã©ã€ããŒã)
* ã¬ãã« 2: ããã¯ããŒã ã®å€æŽ (èªèº«ãšä»ã®ãŠãŒã¶)
* ã¬ãã« 3: ä»»æã®ãµãŒãã¡ãã»ãŒãž (åå /éåº/çµäºã¡ãã»ãŒãžãé€ã)
* ã¬ãã« 4: åå /éåº/çµäºã¡ãã»ãŒãž
åŸã£ãŠãIRC ãã£ã³ãã«ã«å¯ŸããŠã¬ãã« 3 ãèšå®ããå ŽåãWeeChat
ã¯åå /éåº/çµäºã¡ãã»ãŒãžãé€ããŠå
šãŠã®ã¡ãã»ãŒãžãä¿åããŸãã
äŸ:
* IRC ãã£ã³ãã« #weechat ã«å¯ŸããŠã¬ãã« 3 ãèšå®:
----
/set logger.level.irc.freenode.#weechat 3
----
* freenode ãµãŒããããã¡ã«å¯ŸããŠã¬ãã« 3 ãèšå®:
----
/set logger.level.irc.server.freenode 3
----
* freenode ãµãŒãã®å
šãŠã®ãã£ã³ãã«ã«å¯ŸããŠã¬ãã« 3 ãèšå®:
----
/set logger.level.irc.freenode 3
----
* å
šãŠã® IRC ãããã¡ã«å¯ŸããŠã¬ãã« 2 ãèšå®:
----
/set logger.level.irc 2
----
[[logger_filenames_masks]]
==== ãã¡ã€ã«åãã¹ã¯
// TRANSLATION MISSING
It is possible to define a filename mask for each buffer, and use local buffer
variables to build filename. To see available local variables for current buffer:
----
/buffer listvar
----
// TRANSLATION MISSING
Masks will be matched on options in descending order of specificity on
`logger.mask.$plugin.*`, with `logger.file.mask` as fallback option.
äŸãã° "irc.freenode.#weechat" ãããã¡ã®å ŽåãWeeChat
ã¯ä»¥äžã®é çªã§ãªãã·ã§ã³ã«èšå®ããããã¡ã€ã«åãã¹ã¯ãæ€çŽ¢ããŸã:
----
logger.mask.irc.freenode.#weechat
logger.mask.irc.freenode
logger.mask.irc
logger.file.mask
----
ç¹å®ã® IRC ãµãŒã ("logger.mask.irc.freenode") ãŸãã¯ãã©ã°ã€ã³
("logger.mask.irc") ã®ã°ã«ãŒãã«å¯ŸããŠå
±éã®ãã¹ã¯ãé©çšã§ããŸãã
[[logger_files_by_date]]
===== ãã°ãã¡ã€ã«ã«æ¥ä»ãå©çšãã
ãã°ãã¡ã€ã«ã«æ¥ä»ã䜿ãã«ã¯ããã¹ã¯ã«æ¥æ/æéæå®åãå©çšã§ããŸã
(æžåŒã«é¢ããŠã¯ `man strftime` ãåç
§ããŠãã ãã)ãäŸãã°:
----
/set logger.file.mask "%Y/%m/$plugin.$name.weechatlog"
----
以äžã®ãã¡ã€ã«ãäœæãããŸã:
....
~/.local/share/weechat
âââ logs
âââ 2010
â âââ 11
â â âââ irc.server.freenode.weechatlog
â â âââ irc.freenode.#weechat.weechatlog
â âââ 12
â âââ irc.server.freenode.weechatlog
â âââ irc.freenode.#weechat.weechatlog
âââ 2011
â âââ 01
â â âââ irc.server.freenode.weechatlog
â â âââ irc.freenode.#weechat.weechatlog
â âââ 02
...
....
[[logger_irc_files_by_server_channel]]
===== IRC ãã°ãã¡ã€ã«ã«ãµãŒããšãã£ã³ãã«åãå©çšãã
IRC ãµãŒãåã䜿ã£ããã£ã¬ã¯ããªã«ããã£ã³ãã«åã䜿ã£ããã¡ã€ã«ãäœæããå Žå:
----
/set logger.mask.irc "irc/$server/$channel.weechatlog"
----
以äžã®ãã¡ã€ã«ãäœæãããŸã:
....
~/.local/share/weechat
âââ logs
âââ irc
âââ freenode
â âââ freenode.weechatlog
â âââ #weechat.weechatlog
â âââ #mychan.weechatlog
âââ oftc
â âââ oftc.weechatlog
â âââ #chan1.weechatlog
â âââ #chan2.weechatlog
...
....
[[logger_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=logger_commands]
[[logger_options]]
==== ãªãã·ã§ã³
_logger.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set logger.look.* | å€èŠ³
| color | /set logger.color.* | è²
| file | /set logger.file.* | ãã°ãã¡ã€ã«ã®ãªãã·ã§ã³
| level | /set logger.level.* | ãããã¡ã®ãã°ã¬ãã« (ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
| mask | /set logger.mask.* | ãããã¡ã®ãã¡ã€ã«åãã¹ã¯ (ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=logger_options]
[[relay_plugin]]
=== Relay
Relay ãã©ã°ã€ã³ã¯ãããã¯ãŒã¯ãä»ããŠç°ãªããããã³ã«ãçšããŠããŒã¿ãäžç¶ããããã«å©çšããŸã:
* _irc_: IRC ãããã·: IRC ãµãŒãã«å¯Ÿããæ¥ç¶ããåäžãŸãã¯è€æ°ã® IRC
ã¯ã©ã€ã¢ã³ãã§å
±æããããã«çšããŸãã
* _weechat_: ãªã¢ãŒãã€ã³ã¿ãŒãã§ãŒã¹ãéã㊠WeeChat
ã衚瀺ããã³æäœããéã«å©çšããããããã³ã«ããªã¢ãŒãã€ã³ã¿ãŒãã§ãŒã¹ã®äžäŸ:
** Glowing Bear (HTML5): https://www.glowing-bear.org/
** QWeeChat (Qt): https://weechat.org/download
** WeeChat-Android (Android): https://github.com/ubergeek42/weechat-android
** weechat.el (Emacs): https://github.com/the-kenny/weechat.el
** WeeCloud (JavaScript): https://github.com/eirikb/weecloud
[[relay_password]]
==== ãã¹ã¯ãŒã
以äžã®ã³ãã³ããå©çšããŠããªã¬ãŒçšã®ãã¹ã¯ãŒããèšå®ããããšã匷ããå§ãããŸã:
----
/set relay.network.password "mypass"
----
ãã®ãã¹ã¯ãŒã㯠_irc_ ãš _weechat_ ãããã³ã«ã§å©çšãããŸãã
[[relay_totp]]
==== TOTP
_weechat_ ãããã³ã«ã§ã¯ããã¹ã¯ãŒãã«å ããŠãäºèŠçŽ èªèšŒã®
TOTP (æéããŒã¹ã®ã¯ã³ã¿ã€ã ãã¹ã¯ãŒã) ã䜿ãããšãå¯èœã§ãã
ããã¯ä»»æèšå®é
ç®ã§ãããã»ãã¥ãªãã£ã¬ãã«ãåäžãããŸãã
ã¯ã³ã¿ã€ã ãã¹ã¯ãŒãã¯ä»¥äžã®ãããªã¢ããªã±ãŒã·ã§ã³ã䜿ã£ãŠçæããŸã:
* FreeOTP:
https://play.google.com/store/apps/details?id=org.fedorahosted.freeotp[Android],
https://itunes.apple.com/fr/app/freeotp-authenticator/id872559395[iOS]
(https://freeotp.github.io/[website])
* Google Authenticator:
https://play.google.com/store/apps/details?id=com.google.android.apps.authenticator2[Android],
https://itunes.apple.com/fr/app/google-authenticator/id388497605[iOS]
TOTP ã® secret ã WeeChat
ãšã¯ã³ã¿ã€ã ãã¹ã¯ãŒããçæããã¢ããªã±ãŒã·ã§ã³å
éšã«èšå®ããªããã°ãããŸããã
TOTP ã® secret 㯠base32 ã§ãšã³ã³ãŒããããæåå
(æåããã³ 2 ãã 7 ãŸã§ã®æ°å) ã§ãªããã°ãããŸããã以äžã¯ãã®äŸã§ã:
----
/set relay.network.totp_secret "secretpasswordbase32"
----
[[relay_ssl]]
==== SSL
蚌ææžãšç§å¯éµãäœãããããã³ã«åã®æåã« "ssl." ãä»ããããšã§
SSL çµç±ã§ãªã¬ãŒãå©çšããããšãã§ããŸãã
// TRANSLATION MISSING
The default path to certificate/key is defined by option
<<option_relay.network.ssl_cert_key,relay.network.ssl_cert_key>>.
以äžã®ã³ãã³ãã䜿ã£ãŠèšŒææžãšç§å¯éµãã¡ã€ã«ãäœæããŸã:
----
$ mkdir -p ~/.config/weechat/ssl
$ cd ~/.config/weechat/ssl
$ openssl req -nodes -newkey rsa:2048 -keyout relay.pem -x509 -days 365 -out relay.pem
----
// TRANSLATION MISSING
[NOTE]
You must replace `~/.config/weechat` by the path to your WeeChat config directory
which can also be for example `~/.weechat`.
WeeChat
ãæ¢ã«èµ·åããŠããå Žåã以äžã®ã³ãã³ãã§èšŒææžãšç§å¯éµããªããŒãã§ããŸã:
----
/relay sslcertkey
----
[[relay_irc_proxy]]
==== IRC ãããã·
Relay ãã©ã°ã€ã³ã¯ IRC ãããã·ãšããŠã䜿ããŸã: Relay ãã©ã°ã€ã³ã¯ IRC
ãµãŒãã®ãµããããŠãä»ã® IRC ã¯ã©ã€ã¢ã³ã (WeeChat èªèº«ã) 㯠WeeChat ã«æ¥ç¶ã§ããŸãã
IRC ãµãŒãããšã«ç°ãªãããŒãããããã¯å
šãŠã®ãµãŒãã«å¯ŸããŠå
±éã®ããŒããå®çŸ©ããããšãã§ããŸãã
// TRANSLATION MISSING
ãã¹ãŠã®ãµãŒãã«å¯ŸããŠå
±éã®ããŒããå®çŸ©ããå Žåã«ã¯ãã¯ã©ã€ã¢ã³ããããµãŒãã®å
éšåã
IRC ã® "PASS" ã³ãã³ãã«å«ããŠéä¿¡ããããã«ããŠãã ããã以äžã®æžåŒã䜿ã£ãŠãã ãã
(see example below):
----
PASS server:mypass
----
äŸ: SSL ã䜿ããå
šãŠã®ãµãŒãã«å¯ŸããŠå
±éã® IRC ãããã·ãèšå® (ãµãŒãã¯ã¯ã©ã€ã¢ã³ããéžæ):
----
/relay add ssl.irc 8000
----
äŸ: SSL ã䜿ãããå
éšå "freenode" ã®ãµãŒãã«å¯Ÿã㊠IRC ãããã·ãèšå®:
----
/relay add irc.freenode 8000
----
ä»»æã® IRC ã¯ã©ã€ã¢ã³ããããµãŒããã¹ã¯ãŒã "mypass" (å
šãŠã®ãµãŒãã«å¯ŸããŠå
±éã®
IRC ãããã·ãèšå®ããå Žåã«ã¯ "freenode:mypass") 㧠8000 çªããŒãã«æ¥ç¶åºæ¥ãŸãã
// TRANSLATION MISSING
For example if you use WeeChat as IRC client of the relay, with a server called
"relay" and the relay password "secret", you can setup the password with this
command:
----
/set irc.server.relay.password "freenode:secret"
----
[[relay_weechat_protocol]]
==== WeeChat ãããã³ã«
Relay ãã©ã°ã€ã³ã¯ WeeChat ãããã³ã«ã䜿ã£ãŠãªã¢ãŒãã€ã³ã¿ãŒãã§ãŒã¹ã«å¯ŸããŠããŒã¿ãéä¿¡ã§ããŸãã
ãªã¢ãŒãã€ã³ã¿ãŒãã§ãŒã¹ã䜿ã£ãŠæ¥ç¶ã§ããŸãã<<relay_plugin>> ã®ãªã¹ããåç
§ããŠãã ããã
[IMPORTANT]
ãã®ãããã³ã«ã䜿ã£ãå Žå WeeChat ããä»ã® WeeChat ã«æ¥ç¶ããããšã¯ã§ããŸããã
äŸ:
----
/relay add weechat 9000
----
ãã®åŸããªã¢ãŒãã€ã³ã¿ãŒãã§ãŒã¹ã䜿ã£ãŠ 9000
çªããŒãã«å¯ŸããŠããã¹ã¯ãŒã "mypass" ã§æ¥ç¶ããããšãã§ããŸãã
[[relay_websocket]]
==== WebSocket
Relay ãã©ã°ã€ã³ã¯ãã¹ãŠã®ãããã³ã«ã«å¯Ÿã㊠WebSocket ãããã³ã«
(https://tools.ietf.org/html/rfc6455[RFC 6455]) ããµããŒãããŸãã
WebSocket ãã³ãã·ã§ã€ã¯ã¯èªåçã«æ€ç¥ããããã³ãã·ã§ã€ã¯äžã«å¿
èŠãªããããèŠã€ãã
origin ãèš±å¯ãããŠããã° WebSocket çšã®ãœã±ãããæºåãããŸã (ãªãã·ã§ã³
<<option_relay.network.websocket_allowed_origins,relay.network.websocket_allowed_origins>>
ãåç
§)ã
HTML5 ã䜿ãã°ãã£ã 1 è¡ã® JavaScript 㧠WebSocket ããªãŒãã³ããããšãå¯èœã§ã:
[source,js]
----
websocket = new WebSocket("ws://server.com:9000/weechat");
----
ããŒãçªå· (äŸã§ã¯ 9000 çª) 㯠Relay ãã©ã°ã€ã³ã§å®çŸ©ãããã®ã§ããURI
ã®æåŸã«ã¯å¿
ã "/weechat" ãã€ããŸã (_irc_ ãš _weechat_ ãããã³ã«ã®å Žå)ã
[[relay_unix_socket]]
==== UNIX ãã¡ã€ã³ãœã±ãã
`/relay add` ã³ãã³ãã«ãããã³ã«ãªãã·ã§ã³ "unix" ãã€ããããšã§ãæå®ãããã¹ã§åäœãã
UNIX ãã¡ã€ã³ãœã±ããäžã®ä»»æã®ãããã³ã«ããªãã¹ã³ã§ããŸããäŸ:
----
/relay add unix.weechat ${weechat_runtime_dir}/relay_socket
----
ããããããšã§ãã¯ã©ã€ã¢ã³ã㯠weechat ãããã³ã«ã䜿ã£ãŠ _/run/user/1000/weechat/relay_socket_
ã«æ¥ç¶ã§ããŸããããã¯ãä»ã®ããŒãããªãŒãã³ãçŠæ¢ãããŠããç¶æ³äžã§ããªã¬ãŒã¯ã©ã€ã¢ã³ãã®
SSH 転éãèš±å¯ããéã«ç¹ã«äŸ¿å©ã§ãã
OpenSSH ã䜿ã£ãäŸ:
----
$ ssh -L 9000:.weechat/relay_socket user@hostname
----
ããã§ããŒã 9000 çªã«æ¥ç¶ããŠããããŒã«ã«ã®ãªã¬ãŒã¯ã©ã€ã¢ã³ãã¯
"hostname" äžã§åäœäžã® WeeChat ã€ã³ã¹ã¿ã³ã¹ãžè»¢éãããŸãã
[[relay_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=relay_commands]
[[relay_options]]
==== ãªãã·ã§ã³
_relay.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set relay.look.* | å€èŠ³
| color | /set relay.color.* | è²
| network | /set relay.network.* | ãããã¯ãŒã¯ãªãã·ã§ã³
| irc | /set relay.irc.* | ç¹å®ã® irc ãããã³ã«ã®ãªãã·ã§ã³ (irc ãããã·)
| port | <<command_relay_relay,/relay add>> +
/set relay.port.* | ãªã¬ãŒã«äœ¿ãããŒã(irc ã weechat ãããã³ã«) (ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=relay_options]
[[scripts_plugins]]
=== ã¹ã¯ãªãã
WeeChat 㯠8 çš®é¡ã®ã¹ã¯ãªãããã©ã°ã€ã³ãåããŠããŸã:
PythonãPerlãRubyãLuaãTclãGuile
(scheme)ãJavaScriptãPHPããããã®ãã©ã°ã€ã³ã§ããããã®èšèªã§æžãããã¹ã¯ãªããã®ããŒããå®è¡ãã¢ã³ããŒããã§ããŸãã
ã¹ã¯ãªãããããŒãžã£ã䜿ãã°ãä»»æã®èšèªã§æžãããã¹ã¯ãªãããããŒã/ã¢ã³ããŒãããããWeeChat
ã¹ã¯ãªãããªããžã㪠(https://weechat.org/scripts ããåç
§å¯èœ)
ã®ã¹ã¯ãªãããã€ã³ã¹ããŒã«/åé€ãããããäºãå¯èœã§ãã
ã¹ã¯ãªããã®æžãæ¹ãã¹ã¯ãªããçšã® WeeChat API ã«ã€ããŠã®è©³ããæ
å ±ã¯
link:weechat_scripting.ja.html[WeeChat ã¹ã¯ãªããäœæã¬ã€ã]ãåç
§ããŠãã ããã
[[script_commands]]
==== Script ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=script_commands]
[[python_commands]]
==== Python ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=python_commands]
[[perl_commands]]
==== Perl ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=perl_commands]
[[ruby_commands]]
==== Ruby ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=ruby_commands]
[[lua_commands]]
==== Lua ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=lua_commands]
[[tcl_commands]]
==== Tcl ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=tcl_commands]
[[guile_commands]]
==== Guile ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=guile_commands]
[[javascript_commands]]
==== JavaScript ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=javascript_commands]
[[php_commands]]
==== PHP ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=php_commands]
[[script_options]]
==== ã¹ã¯ãªãããªãã·ã§ã³
_script.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set script.look.* | å€èŠ³
| color | /set script.color.* | è²
| scripts | /set script.scripts.* | ã¹ã¯ãªããã®ããŠã³ããŒãã«é¢ãããªãã·ã§ã³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=script_options]
[[python_options]]
==== Python ãªãã·ã§ã³
_python.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set python.look.* | å€èŠ³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=python_options]
[[perl_options]]
==== Perl ãªãã·ã§ã³
_perl.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set perl.look.* | å€èŠ³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=perl_options]
[[ruby_options]]
==== Ruby ãªãã·ã§ã³
_ruby.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set ruby.look.* | å€èŠ³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=ruby_options]
[[lua_options]]
==== Lua ãªãã·ã§ã³
_lua.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set lua.look.* | å€èŠ³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=lua_options]
[[tcl_options]]
==== Tcl ãªãã·ã§ã³
_tcl.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set tcl.look.* | å€èŠ³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=tcl_options]
[[guile_options]]
==== Guile ãªãã·ã§ã³
_guile.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set guile.look.* | å€èŠ³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=guile_options]
[[javascript_options]]
==== Javascript ãªãã·ã§ã³
_javascript.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set javascript.look.* | å€èŠ³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=javascript_options]
[[php_options]]
==== PHP ãªãã·ã§ã³
_php.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set php.look.* | å€èŠ³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=php_options]
[[spell_plugin]]
=== Spell
Spell
ãã©ã°ã€ã³ã䜿ãããšã§ãã³ãã³ãã©ã€ã³ã«å
¥åããæååã®ã¹ãã«ãã§ãã¯ãã§ããŸãããããã¡ããšã«ç°ãªãèšèªã«å¯Ÿããã¹ãã«ãã§ãã¯ãå®è¡ã§ããŸãã
ã¹ãã«ãã§ãã¯æ©èœã¯ããã©ã«ãã§ç¡å¹åãããŠããŸããkbd:[Alt+s] ã§æå¹ç¡å¹ãåãæ¿ããäºãå¯èœã§ãã
[[spell_dictionaries]]
==== èŸæž
ã¹ãã«ãã§ãã¯æ©èœã䜿ãåã«ããã¹ãŠã®ãããã¡ãŸãã¯ç¹å®ã®ãããã¡ã«å¯ŸããŠèŸæžãå®çŸ©ããªããã°ãããŸããã
åæã«è€æ°ã®èŸæžã䜿çšå¯èœã§ã:
WeeChat ã¯ãã¹ãŠã®èŸæžã䜿ã£ãŠåèªããã§ãã¯ããŸãã
è±èªãšãã©ã³ã¹èªã®èŸæžã䜿ãäŸ:
----
/set spell.check.default_dict "en,fr"
----
ç¹å®ã®ãããã¡ã§äœ¿çšããèŸæžãå®çŸ©ããããšãå¯èœã§ãããã€ãèªã®ãã£ã³ãã«ã§ãã€ãèªã®èŸæžã䜿ãäŸ:
----
/spell setdict de
----
ãããã¡ã°ã«ãŒãã«å¯ŸããŠç¹å®ã®èŸæžãæå®ããããšãå¯èœã§ããfreenode
IRC ãµãŒãã«å¯ŸããŠè±èªã®èŸæžã䜿ãäŸ:
----
/set spell.dict.irc.freenode en
----
詳ããæ
å ±ã¯ã³ãã³ã <<command_spell_spell,/spell>> ãåç
§ããŠãã ããã
[[spell_speller_options]]
==== Speller ãªãã·ã§ã³
Speller ãªãã·ã§ã³ã¯ aspell èšå®ã® "option"
ã»ã¯ã·ã§ã³ã«ãããªãã·ã§ã³ãè¿œå ããŠå®çŸ©ããŸãã
ããã§å©çšãããªãã·ã§ã³å㯠aspell
èšå®ãªãã·ã§ã³ãšåããã®ã§ãããªãã·ã§ã³ã®ãªã¹ãã¯ã·ã§ã«ã§ä»¥äžã®ã³ãã³ããå®è¡ããããšã§ç¢ºèªã§ããŸã:
----
$ aspell config
----
äŸãã°ã"ignore-case" ãªãã·ã§ã³ãæå¹åããã«ã¯:
----
/set spell.option.ignore-case "true"
----
[[spell_suggestions]]
==== ä¿®æ£åè£
"spell_suggest" ããŒèŠçŽ å
ã«ä¿®æ£åè£ã衚瀺ãããŸããä¿®æ£åè£ã®æ°ã¯
_spell.check.suggestions_ ãªãã·ã§ã³ã§èšå®ããŸãã
ä¿®æ£åè£ãå©çšããã«ã¯ã_spell.check.suggestions_ ãªãã·ã§ã³ããŒã以äžã®æŽæ°ã«èšå®ãã_status_
ããŒãªã©ã« "spell_suggest" ããŒèŠçŽ ãè¿œå ããŠãã ããã
è±èªèŸæž (`en`) ãçšããä¿®æ£åè£ã®äŸ:
....
â[12:55] [6] [irc/freenode] 3:#test(+n){4} [print,prone,prune] â
â[@Flashy] prinr â â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
....
è±èªãšãã©ã³ã¹èªèŸæž (`en,fr`) ãçšããä¿®æ£åè£ã®äŸ:
....
â[12:55] [6] [irc/freenode] 3:#test(+n){4} [print,prone,prune/prime,primer,primé] â
â[@Flashy] prinr â â
âââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
....
[[spell_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=spell_commands]
[[spell_options]]
==== ãªãã·ã§ã³
_spell.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| color | /set spell.color.* | è²
| check | /set spell.check.* | ã¹ãã«ãã§ãã¯ã®æäœã³ãã³ã
| dict | <<command_spell_spell,/spell setdict>> +
/set spell.dict.* | ãããã¡ãå©çšãããã£ã¬ã¯ã㪠(ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
| look | /set spell.look.* | å€èŠ³
| option | /set spell.option.* | <<spell_speller_options,Speller ãªãã·ã§ã³>> (ãªãã·ã§ã³ãã»ã¯ã·ã§ã³ã«è¿œå /åé€åºæ¥ãŸã)
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=spell_options]
[[trigger_plugin]]
=== Trigger
ããªã¬ã¯ WeeChat ã®äŸ¿å©ããŒã«ã§ã:
æ§ã
ãªãã®
(signalãmodifierãprintã...)
ãããã¯ããŠãããŒã¿ã®å
容ãæžãæããããè€æ°ã®ã³ãã³ããå®è¡ããããšãã§ããŸããæ¡ä»¶ãã€ããããšã§äžéšã®å Žåã ãããªã¬ãå®è¡ããããã«èšå®ããããšãã§ããŸãã
ããªã¬ã䜿ãã«ã¯ã·ã°ãã«ã修食åã...
ãã©ã®ããã«åããŠããããç¥ããªããã°ãããŸããããããç¥ãã«ã¯
link:weechat_plugin_api.ja.html#hooks[WeeChat ãã©ã°ã€ã³ API ãªãã¡ã¬ã³ã¹ / ããã¯]ãèªãããšããå§ãããŸãã
[[trigger_default]]
==== ããã©ã«ãããªã¬
WeeChat ã¯ããã©ã«ã㧠5
ã€ã®ããªã¬ãäœæããŸãããããããç¡å¹åãæŽæ°ãåé€ããããšãå¯èœã§ã:
* éç¥çšã® _beep_ ããªã¬
* ãã以å€ã® 4 ã€ã¯ç»é¢äžã§ãã¹ã¯ãŒããé ãããã®ããªã¬
ããã©ã«ãããªã¬ã®ãªã¹ã:
[width="100%",cols="5m,3,22",options="header"]
|===
| åå | ãã㯠| 説æ
| beep | print |
ãã€ã©ã€ã/ãã©ã€ããŒãã¡ãã»ãŒãžãåä¿¡ããéã«ããŒãã鳎ããã
| cmd_pass | modifier |
ã³ãã³ãå
ã®ãã¹ã¯ãŒããé ã:
`pass:[/msg nickserv id\|identify\|set password\|ghost\|release\|regain\|recover]`ã
`pass:[/oper]`ã
`pass:[/quote pass]`ã
`pass:[/secure passphrase\|decrypt\|set]`ã
| cmd_pass_register | modifier |
ã³ãã³ãå
ã®ãã¹ã¯ãŒããé ã `pass:[/msg nickserv register]`ã
| msg_auth | modifier |
IRC auth ã¡ãã»ãŒãž
(ãŠãŒã¶ãã³ãã³ããå®è¡ããåŸã«ãµãŒãããåä¿¡ããã¡ãã»ãŒãž)
ã®è¡šç€ºæã«ãã¹ã¯ãŒããé ãã
| server_pass | modifier |
`/server` ãš `/connect` ã³ãã³ãå
ã®ãã¹ã¯ãŒããé ãã
|===
[[trigger_anatomy]]
==== ããªã¬ã®æ§é
ããªã¬ã¯ä»¥äžã®ãªãã·ã§ã³ããšããŸã (ååã¯
`trigger.trigger.<name>.<option>`):
[width="100%",cols="2m,3,10",options="header"]
|===
| ãªãã·ã§ã³ | å€ | 説æ
| enabled | `on`ã`off` |
ãªãã·ã§ã³ã `off`
ã®å Žåãããªã¬ã¯ç¡å¹åãããã¢ã¯ã·ã§ã³ã¯å®è¡ãããŸããã
| hook | `+signal+`ã`+hsignal+`ã`+modifier+`ã`+line+`, `+print+`ã`+command+`ã
`+command_run+`ã`+timer+`ã`+config+`ã`+focus+`ã`+info+`ã`+info_hashtable+` |
ããªã¬ã®äžã§äœ¿ãããããã¯ããã詳ããæ
å ±ã¯
link:weechat_plugin_api.ja.html#hooks[WeeChat ãã©ã°ã€ã³ API ãªãã¡ã¬ã³ã¹ / ããã¯]ãåç
§ããŠãã ããã
| arguments | æåå |
ããã¯ã«å¯ŸããåŒæ°ãæå®ããããã¯ã®åã«äŸåããŸãã
| conditions | æåå |
ããªã¬ãå®è¡ããæ¡ä»¶; å
容ã¯è©äŸ¡ãããŸã (ã³ãã³ã
<<command_weechat_eval,/eval>> ãåç
§)ã
| regex | æåå |
1 ã€ä»¥äžã® POSIX æ¡åŒµæ£èŠè¡šçŸãããã¯ã³ãŒã«ããã¯
(ãšããªã¬ãã©ã°ã€ã³ã«ãã£ãŠè¿œå ããããã®)
ãåãåãããŒã¿ã«å€æŽãå ããããã®ãã®ã<<trigger_regex,æ£èŠè¡šçŸ>>ãåç
§ã
| command | æåå |
å®è¡ããã³ãã³ã (è€æ°ã®ã³ãã³ãã䜿ãå Žåã«ã¯åã³ãã³ããã»ãã³ãã³ã§åºåã£ãŠãã ãã);
å
容ã¯è©äŸ¡ãããŸã (ã³ãã³ã <<command_weechat_eval,/eval>> ãåç
§)ã
| return_code | `+ok+`ã`+ok_eat+`ã`+error+` |
ã³ãŒã«ããã¯ã®æ»ãå€ (ããã©ã«ãã¯
`ok`ãã»ãšãã©ãã¹ãŠã®ããªã¬ã§æ»ãå€ã¯ããã䜿ãã¹ãã§ãã»ãã®å€ã䜿ãããšã¯æ¥µããŠãŸãã§ã)ã
| post_action | `none` (äœãããªã)ã`disable` (ç¡å¹å)ã`delete` (åé€) |
å®è¡åŸã®ããªã¬ã«å¯ŸããåŠé (ã»ãšãã©ãã¹ãŠã®ããªã¬ã§ã¯ããã©ã«ãã® `none`
ãèšå®ããã¹ãã§ããã以å€ã®å€ãèšå®ããããšã¯ã»ãšãã©ãããŸãã)ã
|===
äŸãã°ãããã©ã«ãã® _beep_ ããªã¬ã¯ä»¥äžã®ãªãã·ã§ã³ããšããŸã:
----
trigger.trigger.beep.enabled = on
trigger.trigger.beep.hook = print
trigger.trigger.beep.arguments = ""
trigger.trigger.beep.conditions = "${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})"
trigger.trigger.beep.regex = ""
trigger.trigger.beep.command = "/print -beep"
trigger.trigger.beep.return_code = ok
trigger.trigger.beep.post_action = none
----
[[trigger_execution]]
==== å®è¡
ããªã¬æ©èœãæå¹ã«ãªã£ãŠããŠããã«å¯Ÿè±¡ã®ããªã¬ãæå¹åãããŠããå Žåã«ãããªã¬ã³ãŒã«ããã¯ãåŒã³åºããããšã以äžã®ã¢ã¯ã·ã§ã³ããã®é çªã§å®è¡ãããŸã:
. ããªã¬æ¡ä»¶ã®ç¢ºèª: åœã®å Žåãçµäº
. æ£èŠè¡šçŸã䜿ã£ãŠããªã¬å
ã§ããã¹ã眮æ
. ã³ãã³ããå®è¡
. æ»ãå€ãè¿ããŠçµäº
(_modifier_ã_line_ã_focus_ã_info_ã_info_hashtable_ ããã¯ãé€ã)
. ããªã¬å®è¡åŸã®åŠéãé©çš (`none` 以å€ã®å Žå)ã
[[trigger_hook_arguments]]
==== ããã¯åŒæ°
åŒæ°ã¯äœ¿çšããããã¯ã®çš®é¡ã«äŸåããŸããåŒæ°ã¯ã»ãã³ãã³ã§åºåã£ãŠãã ããã
[width="100%",cols="2,6,7,2",options="header"]
|===
| ãã㯠| åŒæ° | äŸ | 解説 (API)
| signal |
1. ã·ã°ãã«å (åªå
床ã®æå®ãå¯) (å¿
é ) +
2. ã·ã°ãã«å (åªå
床ã®æå®ãå¯) +
3. ... |
`+*,irc_in_privmsg+` +
`+*,irc_in_privmsg;*,irc_in_notice+` +
`+signal_sigwinch+` |
link:weechat_plugin_api.ja.html#_hook_signal[hook_signal]
| hsignal |
1. ã·ã°ãã«å (åªå
床ã®æå®ãå¯) (å¿
é ) +
2. ã·ã°ãã«å (åªå
床ã®æå®ãå¯) +
3. ... |
`+nicklist_nick_added+` |
link:weechat_plugin_api.ja.html#_hook_hsignal[hook_hsignal]
| modifier |
1. 修食åå (åªå
床ã®æå®ãå¯) (å¿
é ) +
2. 修食åå (åªå
床ã®æå®ãå¯) +
3. ... |
`+weechat_print+` +
`+5000\|input_text_display;5000\|history_add+` |
link:weechat_plugin_api.ja.html#_hook_modifier[hook_modifier]
| line |
1. ãããã¡å +
2. ãããã¡å +
3. ã¿ã° |
`+formatted+` +
`+free+` +
`+*;irc.freenode.*+` +
`+*;irc.freenode.#weechat+` +
`+formatted;irc.freenode.#weechat;irc_notice+` |
link:weechat_plugin_api.en.html#_hook_line[hook_line]
| print |
1. ãããã¡å +
2. ã¿ã° +
3. ã¡ãã»ãŒãž +
4. è²ã®åé€ (0/1) |
`+irc.freenode.*+` +
`+irc.freenode.#weechat+` +
`+irc.freenode.#weechat;irc_notice+` +
`+*;;;1+` |
link:weechat_plugin_api.ja.html#_hook_print[hook_print]
// TRANSLATION MISSING
| command |
1. ã³ãã³ãå (åªå
床ã®æå®ãå¯) (å¿
é ) +
2. 説æ (evaluated, <<command_weechat_eval,/eval>> ã³ãã³ããåç
§) +
3. åŒæ° (evaluated, <<command_weechat_eval,/eval>> ã³ãã³ããåç
§) +
4. åŒæ°ã®èª¬æ (evaluated, <<command_weechat_eval,/eval>> ã³ãã³ããåç
§) +
5. è£å® (evaluated, <<command_weechat_eval,/eval>> ã³ãã³ããåç
§) |
`+test+` +
`+5000\|test+` +
`+test;test command;arg1 arg2;arg1: description 1${\n}arg2: description 2+` |
link:weechat_plugin_api.ja.html#_hook_command[hook_command]
| command_run |
1. ã³ãã³ã (åªå
床ã®æå®ãå¯) (å¿
é ) +
2. ã³ãã³ã (åªå
床ã®æå®ãå¯) +
3. ... |
`+/cmd arguments+` |
link:weechat_plugin_api.ja.html#_hook_command_run[hook_command_run]
| timer |
1. ã€ã³ã¿ãŒãã«ããããªç§æ° (å¿
é ) +
2. ç§ã®èª¿æŽ (ããã©ã«ã: 0) +
3. åŒã³åºãåæ°ã®æå€§å€ (ããã©ã«ã: 0ããç¡éã«ãåŒã³åºãããšãæå³ããŸã) |
`+3600000+` +
`+60000;0;5+` |
link:weechat_plugin_api.ja.html#_hook_timer[hook_timer]
| config |
1. ãªãã·ã§ã³å (åªå
床ã®æå®ãå¯) (å¿
é ) +
2. ãªãã·ã§ã³å (åªå
床ã®æå®ãå¯) +
3. ... |
`+weechat.look.*+` |
link:weechat_plugin_api.ja.html#_hook_config[hook_config]
| focus |
1. ãšãªã¢å (åªå
床ã®æå®ãå¯) (å¿
é ) +
2. ãšãªã¢å (åªå
床ã®æå®ãå¯) +
3. ... |
`+buffer_nicklist+` |
link:weechat_plugin_api.ja.html#_hook_focus[hook_focus]
| info |
1. ã€ã³ãã©å (åªå
床ã®æå®ãå¯) (å¿
é ) +
2. ã€ã³ãã©å (åªå
床ã®æå®ãå¯) +
3. ... |
`+my_info+` |
link:weechat_plugin_api.ja.html#_hook_info[hook_info]
| info_hashtable |
1. ã€ã³ãã©å (åªå
床ã®æå®ãå¯) (å¿
é ) +
2. ã€ã³ãã©å (åªå
床ã®æå®ãå¯) +
3. ... |
`+my_info+` |
link:weechat_plugin_api.ja.html#_hook_info_hashtable[hook_info_hashtable]
|===
[[trigger_conditions]]
==== æ¡ä»¶
æ¡ä»¶ãæå®ããããšã§ãããªã¬å
ã§åŠçãç¶ç¶ãããå®å
šã«æ¢ããããå¶åŸ¡ã§ããŸãã
æ¡ä»¶ã¯è©äŸ¡ãããã³ãŒã«ããã¯å
ã§å©çšã§ããããŒã¿ãæ¡ä»¶ãšããŠå©çšã§ããŸã
(<<trigger_callback_data,ã³ãŒã«ããã¯å
ã®ããŒã¿>>ãšã³ãã³ã
<<command_weechat_eval,/eval>> ãåç
§)ã
äŸ: ããã©ã«ãã® _beep_
ããªã¬ã¯ä»¥äžã®æ¡ä»¶ã䜿ãããã€ã©ã€ããŸãã¯ãã©ã€ããŒãã¡ãã»ãŒãžã®å Žåã ãããŒãã鳎ããããã«ããŠããŸã:
----
${tg_displayed} && (${tg_highlight} || ${tg_msg_pv})
----
[[trigger_regex]]
==== æ£èŠè¡šçŸ
æ£èŠè¡šçŸã¯ã³ãŒã«ããã¯ããã·ã¥ããŒãã«å
ã®å€æ°ãå€æŽããããã«äœ¿ãããŸãã
æžåŒ: "/regex/replace" ãŸã㯠"/regex/replace/var" (ããã§
_var_ ã¯ããã·ã¥ããŒãã«ã®å€æ°)ã
ããã·ã¥ããŒãã«å
ã« _var_ ãååšããªãå Žåã空ã®å€ãæ〠_var_
ãèªåçã«äœãããŸããããã䜿ãããšã§äžæçãªä»»æã®å€æ°ãäœããŸãã
_var_
ãæå®ãããªãã£ãå Žåãããã©ã«ãå€æ°ã䜿ããŸããããã¯ããã¯ã®çš®é¡ã«äŸåããŸã:
[width="100%",cols="2,3,7",options="header"]
|===
| ãã㯠| ããã©ã«ãå€æ° | æŽæ°ãèš±å¯Update allowed ^(1)^
| signal | tg_signal_data |
| hsignal | |
| modifier | tg_string | tg_string
| line | message | bufferãbuffer_nameãyãdateãdate_printedãstr_timeãtagsãnotify_levelãhighlightãprefixãmessage
| print | tg_message |
| command | tg_argv_eol1 |
| command_run | tg_command |
| timer | tg_remaining_calls |
| config | tg_value |
| focus | |
| info | tg_info | tg_info
| info_hashtable | | ããã·ã¥ããŒãã«ã§åãåã£ããã¹ãŠã®å€æ°
|===
[NOTE]
^(1)^ ããªã¬ã¯ãã¹ãŠã®å€ãæŽæ°ã§ããŸãããããã§æããå€æ°ã ããããªã¬ã«ãã£ãŠè¿ãããŠ
WeeChat ã«ãã£ãŠäœ¿ãããå€ã«åœ±é¿ãåãŒããŸã
è€æ°ã®æ£èŠè¡šçŸã䜿ãå Žåã¯ç©ºçœã§åºåã£ãŠãã ãããäŸ:
"/regex1/replace1/var1 /regex2/replace2/var2"ã
æå "/" ãä»»æã®æå (1 ã€ä»¥äžã®åãæå) ã«å€ããããšãã§ããŸãã
ãããã°ã«ãŒãã "replace" ã®äžã§å©çšã§ããŸã:
* `+${re:0}+` ãã `+${re:99}+`: `+${re:0}+` ã¯ãããéšåã®å
šäœã`+${re:1}+` ãã
`+${re:99}+` ã¯ã°ã«ãŒãåããããããéšå
* `+${re:+}+`: æåŸã®ãããéšå (æ倧ã®ã°ã«ãŒãçªå·ãæã€)
* `+${hide:c,${re:N}}+`: ãããã°ã«ãŒã "N" ã®ãã¹ãŠã®æåã "c" ã§çœ®æããæåå
(äŸ: `+${hide:*,${re:2}}+` ã¯ã°ã«ãŒã #2 ã®ãã¹ãŠã®æåã `+*+`
ã§çœ®æããæåå)ã
äŸ: `+*+` ã§å²ãŸããæåã倪åã«ãã:
----
/\*([^ ]+)\*/*${color:bold}${re:1}${color:-bold}*/
----
äŸ: ããã©ã«ãããªã¬ _server_pass_ ã¯ãã®æ£èŠè¡šçŸã䜿ã£ãŠã`/server`
ãš `/connect` ã³ãã³ãã®ãã¹ã¯ãŒããé ããŠããŸã (ãã¹ã¯ãŒãéšåã®æåã
`*` ã§çœ®æããŠããŸã):
----
==^(/(server|connect) .*-(sasl_)?password=)([^ ]+)(.*)==${re:1}${hide:*,${re:4}}${re:5}
----
[NOTE]
ãã®äŸã§ã¯ãåºåãæåãšã㊠"==" ã䜿ã£ãŠããŸããããã¯æ£èŠè¡šçŸå
ã§
"/" ã䜿ãããã§ãã
[[trigger_command]]
==== ã³ãã³ã
ã³ãã³ãã¯æ£èŠè¡šçŸã䜿ã£ãããã¹ã眮æã®åŸã«å®è¡ãããŸããè€æ°ã®ã³ãã³ããå®è¡ããã«ã¯ã»ãã³ãã³ã§åºåã£ãŠãã ããã
ã³ãã³ãã¯è©äŸ¡ãã (ã³ãã³ã <<command_weechat_eval,/eval>> ãåç
§)
ã³ãã³ãå
ã§ã¯æ£èŠè¡šçŸã䜿ã£ãŠçœ®æããããã¹ãã䜿ãããšãã§ããŸãã
äŸ: ããã©ã«ãã® _beep_ ããªã¬ã¯ä»¥äžã®ã³ãã³ããå®è¡ããŠããŒã (BEL) ã鳎ãããŠããŸã:
----
/print -beep
----
[[trigger_callback_data]]
==== ã³ãŒã«ããã¯å
ã«ãããããŒã¿
ã³ãŒã«ããã¯å
ã§åãåã£ãããŒã¿ã¯ããã·ã¥ããŒãã« (ãã€ã³ã¿ãšæåå)
ã®äžã«ä¿åããã以äžã®ãªãã·ã§ã³ã§äœ¿ãããšãã§ããŸã:
* _conditions_
* _regex_
* _command_
ããã·ã¥ããŒãã«ã®å
容ã¯ããã¯ã®çš®é¡ã«äŸåããŸãã
ããªã¬å
éšã«ãããããŒã¿ãç°¡åã«ç¢ºèªããã«ã¯ã以äžã®ã³ãã³ãã䜿ã£ãŠããªã¬ç£èŠãããã¡ãéããŠãã ãã:
----
/trigger monitor
----
// TRANSLATION MISSING
All callbacks set following variables in hashtable:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
// TRANSLATION MISSING
| tg_trigger_name | string | Name of trigger.
|===
[[trigger_data_signal]]
===== Signal
"signal" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| tg_signal | string | ã·ã°ãã«å
| tg_signal_data | string | ã·ã°ãã«ãšäžç·ã«éä¿¡ãããããŒã¿
|===
ã·ã°ãã«ã IRC
ã¡ãã»ãŒãžãå«ãå Žåãã¡ãã»ãŒãžã¯è§£æãã以äžã®ããŒã¿ãããã·ã¥ããŒãã«ã«è¿œå ãããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| irc_server | pointer | IRC ãµãŒããžã®ãã€ã³ã¿ (`+${irc_server.name}+` ã®ããã«äœ¿ãããšã§ã"irc_server" åã® hdata ã«å«ãŸããå€æ°ã䜿ãããšãå¯èœã§ã)
| irc_channel | pointer | IRC ãã£ã³ãã«ãžã®ãã€ã³ã¿ (`+${irc_channel.name}+` ã®ããã«äœ¿ãããšã§ã"irc_channel" åã® hdata ã«å«ãŸããå€æ°ã䜿ãããšãå¯èœã§ã)
| server | string | ãµãŒãã®åå (äŸ: "freenode")
| tags | string | ã¡ãã»ãŒãžå
ã®ã¿ã° (䜿ãããããšã¯ãŸãã§ã)
| message_without_tags | string | ã¿ã°ãå«ãŸãªãã¡ãã»ãŒãž
| nick | string | ããã¯ããŒã
| host | string | ãã¹ãå
| command | string | IRC ã³ãã³ã (äŸ: "PRIVMSG"ã"NOTICE"ã...)
| channel | string | IRC ãã£ã³ãã«
| arguments | string | ã³ãã³ãã®åŒæ° (_channel_ ã®å€ãå«ã¿ãŸã)
| text | string | ããã¹ã (äŸãã°ãŠãŒã¶ã¡ãã»ãŒãž)
| pos_command | string | ã¡ãã»ãŒãžå
ã«ããã _command_ ã®ã€ã³ããã¯ã¹ (_command_ ãèŠã€ãããªãå Žå "-1")
| pos_arguments | string | ã¡ãã»ãŒãžå
ã«ããã _arguments_ ã®ã€ã³ããã¯ã¹ (_arguments_ ãèŠã€ãããªãå Žå "-1")
| pos_channel | string | ã¡ãã»ãŒãžå
ã«ããã _channel_ ã®ã€ã³ããã¯ã¹ (_channel_ ãèŠã€ãããªãå Žå "-1")
| pos_text | string | ã¡ãã»ãŒãžå
ã«ããã _text_ ã®ã€ã³ããã¯ã¹ (_text_ ãèŠã€ãããªãå Žå "-1")
|===
ããŒã¿ããã€ã³ã¿ã®å Žåãhdata ã®å±æ§ãèªãããã«å€æ° `+tg_signal_data+`
ã以äžã®ããã«ããŠäœ¿ãããšãå¯èœã§ã (以äžã®äŸã§ã¯ããããã¡ã®ãã€ã³ã¿ãšããŠäœ¿ã£ãŠããŸã):
----
${buffer[${tg_signal_data}].full_name}
----
[[trigger_data_hsignal]]
===== Hsignal
"hsignal" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| tg_signal | string | ã·ã°ãã«å
|===
ããã·ã¥ããŒãã«ã«ã¯åãåã£ãããã·ã¥ããŒãã«ã«å«ãŸããå
šãŠã®ããŒããã³å€ (å:
string/string) ãå«ãŸããŠããŸãã
[[trigger_data_modifier]]
===== Modifier
"modifier" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| tg_modifier | string | 修食åã®åå
| tg_modifier_data | string | 修食åãšäžç·ã«éä¿¡ãããããŒã¿
| tg_string | string | ä¿®æ£å¯èœãªæåå
| tg_string_nocolor | string | è²ã³ãŒããå«ãŸãªãæåå
|===
_weechat_print_ 修食åã§ã¯ãã¡ãã»ãŒãžã¿ã°ã䜿ãå€æ° (äžã®
<<trigger_data_print,Print>> ãåç
§) ãšä»¥äžã®å€æ°ãè¿œå ãããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| buffer | pointer | ã¡ãã»ãŒãžã衚瀺ããããããã¡
| tg_plugin | string | ã¡ãã»ãŒãžã衚瀺ããããããã¡ã®ãã©ã°ã€ã³
| tg_buffer | string | ã¡ãã»ãŒãžã衚瀺ããããããã¡ã®å®å
šãªåå
| tg_prefix | string | 衚瀺ãããã¡ãã»ãŒãžã®ãã¬ãã£ãã¯ã¹
| tg_prefix_nocolor | string | è²ã³ãŒããåé€ãããã¬ãã£ãã¯ã¹
| tg_message | string | 衚瀺ãããã¡ãã»ãŒãž
| tg_message_nocolor | string | è²ã³ãŒããåé€ããã¡ãã»ãŒãž
|===
修食åã IRC ã¡ãã»ãŒãžãå«ãå Žåãã¡ãã»ãŒãžã¯è§£æããè¿œå ã®ããŒã¿ãããã·ã¥ããŒãã«ã«è¿œå ãããŸã
(<<trigger_data_signal,Signal>> ãåç
§)ã
[[trigger_data_line]]
===== Line
"line" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| buffer | pointer | ãããã¡
| buffer_name | string | ãããã¡å
| buffer_type | string | ãããã¡å ("formatted" ãŸã㯠"free")
| y | string | èªç±å
容ãããã¡ã®è¡çªå· (⥠0)ã-1 ã¯ãã©ãŒãããæžã¿ãããã¡çš
| date | string | è¡ã®æ¥ä» (ã¿ã€ã ã¹ã¿ã³ã)
| date_printed | string | è¡ã衚瀺ãããæ¥ä» (ã¿ã€ã ã¹ã¿ã³ã).
| str_time | string | 衚瀺ã«äœ¿ãæ¥ä»ãè²ã³ãŒããå«ããããšãå¯èœ
| tags | string | ã¡ãã»ãŒãžã®ã¿ã° (æååã®æåãšæåŸã«ã³ã³ããè¿œå ãããŸã)
| displayed | string | "1" ã®å Žåã¯è¡šç€ºã"0" ã®å Žåã¯é衚瀺
// TRANSLATION MISSING
| notify_level | string | "-1" = no notify, "0" = äœã¬ãã«ã"1" = ã¡ãã»ãŒãžã"2" = ãã©ã€ããŒãã¡ãã»ãŒãžã"3" = ãã€ã©ã€ã
| highlight | string | "1" ã®å Žåã¯ãã€ã©ã€ãããã"0" ã®å Žåã¯ãã€ã©ã€ããªã
| prefix | string | ãã¬ãã£ãã¯ã¹
| tg_prefix_nocolor | string | è²ã³ãŒããå«ãŸãªããã¬ãã£ãã¯ã¹
| message | string | ã¡ãã»ãŒãž
| tg_message_nocolor | string | è²ã³ãŒããå«ãŸãªãã¡ãã»ãŒãž
|===
ã¡ãã»ãŒãžã«ã€ããããã¿ã°ã«é¢ããå€æ°:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| tg_tags_count | string | ã¡ãã»ãŒãžã®ã¿ã°ã®åæ°
| tg_tag_nick | string | ããã¯ããŒã ("nick_xxx" ã¿ã°ãã)
| tg_tag_prefix_nick | string | ãã¬ãã£ãã¯ã¹ã§äœ¿ãããã¯ããŒã ã®è² ("prefix_nick_ccc" ã¿ã°ãã)
| tg_tag_host | string | ãŠãŒã¶åãšãã¹ãåãæžåŒ: username@host ("host_xxx" ã¿ã°ãã)
| tg_tag_notify | string | éç¥ã¬ãã« (_none_ã_message_ã_private_ã_highlight_)
| tg_notify | string | éç¥ã¬ãã«ã _none_ 以å€ã®å Žåããã®éç¥ã¬ãã«
| tg_msg_pv | string | ãã©ã€ããŒãã¡ãã»ãŒãžã®å Žå "1"ããã以å€ã¯ "0"
|===
[[trigger_data_print]]
===== Print
"print" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| buffer | pointer | ã¡ãã»ãŒãžã衚瀺ããããããã¡
| tg_date | string | ã¡ãã»ãŒãžã®æ¥ä»ãšæé (æžåŒ: `YYYY-MM-DD hh:mm:ss`)
| tg_displayed | string | 衚瀺ãããå Žå "1"ããã£ã«ã¿ãããå Žå "0"
| tg_highlight | string | ãã€ã©ã€ããããå Žå "1"ããã以å€ã¯ "0"
| tg_prefix | string | ãã¬ãã£ãã¯ã¹
| tg_prefix_nocolor | string | è²ã³ãŒããåé€ãããã¬ãã£ãã¯ã¹
| tg_message | string | ã¡ãã»ãŒãž
| tg_message_nocolor | string | è²ã³ãŒããåé€ããã¡ãã»ãŒãž
|===
ã¡ãã»ãŒãžã«ã€ããããã¿ã°ã«é¢ããå€æ°:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| tg_tags | string | ã¡ãã»ãŒãžã®ã¿ã° (æååã®æåãšæåŸã«ã³ã³ããè¿œå ãããŸã)
| tg_tags_count | string | ã¡ãã»ãŒãžã®ã¿ã°ã®åæ°
| tg_tag_nick | string | ããã¯ããŒã ("nick_xxx" ã¿ã°ãã)
| tg_tag_prefix_nick | string | ãã¬ãã£ãã¯ã¹ã§äœ¿ãããã¯ããŒã ã®è² ("prefix_nick_ccc" ã¿ã°ãã)
| tg_tag_host | string | ãŠãŒã¶åãšãã¹ãåãæžåŒ: username@host ("host_xxx" ã¿ã°ãã)
| tg_tag_notify | string | éç¥ã¬ãã« (_none_ã_message_ã_private_ã_highlight_)
| tg_notify | string | éç¥ã¬ãã«ã _none_ 以å€ã®å Žåããã®éç¥ã¬ãã«
| tg_msg_pv | string | ãã©ã€ããŒãã¡ãã»ãŒãžã®å Žå "1"ããã以å€ã¯ "0"
|===
[[trigger_data_command]]
===== Command
"command" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| buffer | pointer | ãããã¡
// TRANSLATION MISSING
| tg_argc | string | The number of arguments (the command itself counts for one).
// TRANSLATION MISSING
| tg_argvN | string | N çªç®ã®åŒæ° (`+tg_argv0+` is the command itself, the others are command arguments).
// TRANSLATION MISSING
| tg_argv_eolN | string | N çªç®ã®åŒæ°ããæåŸã®åŒæ°ãŸã§ (`+tg_argv_eol0+` includes the command itself).
// TRANSLATION MISSING
| tg_shell_argc | string | The number of arguments with a split like the shell does (the command itself counts for one).
// TRANSLATION MISSING
| tg_shell_argvN | string | Argument #N with a split like the shell does (`+tg_shell_argv0+` is the command itself, the others are command arguments).
|===
[[trigger_data_command_run]]
===== Command_run
"command_run" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| buffer | pointer | ãããã¡
| tg_command | string | å®è¡ãããã³ãã³ã
|===
[[trigger_data_timer]]
===== Timer
"timer" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| tg_remaining_calls | string | æ®ãåŒã³åºãåæ°
| tg_date | string | çŸåšã®æ¥ä»ããã³æé (æžåŒ: `YYYY-MM-DD hh:mm:ss`)
|===
[[trigger_data_config]]
===== Config
"config" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| tg_option | string | ãªãã·ã§ã³
| tg_value | string | å€
|===
[[trigger_data_focus]]
===== Focus
"focus" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| window | pointer | ãŠã£ã³ããŠ
| buffer | pointer | ãããã¡
|===
ããã·ã¥ããŒãã«ã«ã¯åãåã£ãããã·ã¥ããŒãã«ã«å«ãŸããå
šãŠã®ããŒããã³å€ (å:
string/string) ãå«ãŸããŠããŸãã
[[trigger_data_info]]
===== Info
"info" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| tg_info_name | string | ã€ã³ãã©å
| tg_arguments | string | åŒæ°
| tg_info | string | 空æåå (ã€ã³ãã©ã®è¿åŽå
)
|===
[[trigger_data_info_hashtable]]
===== Info_hashtable
"info_hashtable" ã³ãŒã«ããã¯ã¯ä»¥äžã®å€æ°ãããã·ã¥ããŒãã«ã«æ ŒçŽããŸã:
[width="100%",cols="3m,2,14",options="header"]
|===
| å€æ° | å | 説æ
| tg_info_name | string | ã€ã³ãã©å
|===
ããã·ã¥ããŒãã«ã«ã¯åãåã£ãããã·ã¥ããŒãã«ã«å«ãŸããå
šãŠã®ããŒããã³å€ (å:
string/string) ãå«ãŸããŠããŸãã
[[trigger_examples]]
==== äŸ
[[trigger_example_url_color]]
===== URL ã®è²
URL ãç·è²ã«ãã:
----
/trigger add url_color modifier weechat_print "${tg_notify}" "==[a-zA-Z0-9_]+://[^ ]+==${color:green}${re:0}${color:reset}=="
----
[NOTE]
ããã§äœ¿ãããŠãã URL ãæ€åºããããã®åçŽãªæ£èŠè¡šçŸã¯ãã¹ãŠã® URL
ãããŸãæ€åºãããã®ã§ã¯ãããŸããããè€éãªæ£èŠè¡šçŸã䜿ããããé«éã§ãã
[[trigger_example_auto_pong]]
===== ping ã¯ãšãªã«å¯Ÿããèªåå¿ç
誰ãããã©ã€ããŒããããã¡ã§ "ping" ãéä¿¡ããå Žåããã®ããªã¬ã¯
`pong` ã§èªåçã«å¿çããŸã:
----
/trigger add pong print "" "${type} == private && ${tg_message} == ping" "" "pong"
----
[[trigger_example_responsive_layout]]
===== ã¬ã¹ãã³ã·ãã¬ã€ã¢ãŠã
以äžã®ããªã¬ã¯ç«¯æ«ã®ãµã€ãºãå€æŽããããšãã«è¡šç€ºãããŠããå
容ãã«ã¹ã¿ãã€ãºãããã®ã§ã:
----
/trigger add resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist"
/trigger add resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist"
----
WeeChat 㯠SIGWINCH ãåããšãã£ãé (端æ«ã®ãµã€ãºãå€æŽãããé)
ã« "signal_sigwinch" ã·ã°ãã«ãéä¿¡ãããã®ããªã¬ã¯ãã®ã·ã°ãã«ããã£ããããŸãã
`+${info:term_width}+` ã䜿ã£ãæ¡ä»¶ã§ç«¯æ«ã®æšªå¹
ã確èªããŸã (å¿
èŠã§ããã°
`+${info:term_height}+` ã䜿ãããšãå¯èœã§ã)ã
ãã®äŸã§ã¯ã端æ«ãå°ãããªã£ãå Žåãããã¯ããŒã ãªã¹ããé ããŸããããã«æšªå¹
ã
100 æåå¹
以äžã«ãªã£ãå Žåãããã¯ããŒã ãªã¹ãã衚瀺ããŸãã
[[trigger_example_config_save]]
===== èšå®ã®èªåä¿å
äŸãã° 1 æéããšã«ãèšå®ãã¡ã€ã« (`+*.conf+`)
ãèªåçã«ä¿åããããšãå¯èœã§ã:
----
/trigger add cfgsave timer 3600000;0;0 "" "" "/mute /save"
----
timer ããã¯ã«å¯ŸããåŒæ°ã¯:
* _3600000_: 3600 * 1000 ããªç§ãã³ãŒã«ããã¯ã¯æ¯æéåŒã³åºããã
* _0_: ç§ã®èª¿æŽ (ãã®å Žå調æŽããªã)
* _0_: åŒã³åºãåæ°ã®æå€§å€ (0 = ã¿ã€ããŒãç¡éã«ç¹°ãè¿ã)
ã³ãã³ã `/mute /save` ã¯ç¡èšã§èšå®ãã¡ã€ã«ãä¿åããŸã
(core ãããã¡ã«å¯ŸããŠäœã衚瀺ããŸãã)ã
[[trigger_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=trigger_commands]
[[trigger_options]]
==== ãªãã·ã§ã³
_trigger.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set trigger.look.* | å€èŠ³
| color | /set trigger.color.* | è²
| trigger | <<command_trigger_trigger,/trigger add>> +
<<command_trigger_trigger,/trigger set>> +
/set trigger.trigger.* | ããªã¬ãªãã·ã§ã³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=trigger_options]
[[xfer_plugin]]
=== Xfer
Xfer ãã©ã°ã€ã³ã®æ©èœ:
* ãã€ã¬ã¯ããã£ãã (ãµãŒãäžèŠã® 2 ãã¹ãéçŽæ¥æ¥ç¶):
äŸãã° IRC ãã©ã°ã€ã³çµç±ã® "DCC ãã£ãã"
* ãã¡ã€ã«è»¢éãäŸãã° IRC ãã©ã°ã€ã³çµç±ã® "DCC"
[[xfer_commands]]
==== ã³ãã³ã
include::includes/autogen_user_commands.ja.adoc[tag=xfer_commands]
[[xfer_options]]
==== ãªãã·ã§ã³
_xfer.conf_ ãã¡ã€ã«å
ã®ã»ã¯ã·ã§ã³:
[width="100%",cols="3m,6m,16",options="header"]
|===
| ã»ã¯ã·ã§ã³ | æäœã³ãã³ã | 説æ
| look | /set xfer.look.* | å€èŠ³
| color | /set xfer.color.* | è²
| network | /set xfer.network.* | ãããã¯ãŒã¯ãªãã·ã§ã³
| file | /set xfer.file.* | ãã¡ã€ã«ã®éä¿¡/åä¿¡ã«é¢ãããªãã·ã§ã³
|===
ãªãã·ã§ã³:
include::includes/autogen_user_options.ja.adoc[tag=xfer_options]
[[support]]
== ãµããŒã
ãµããŒããäŸé Œããåã«ãå¿
ã WeeChat
ã«ä»å±ããããã¥ã¡ã³ããš FAQ ãèªãã§ãã ããã
IRC ã䜿ã£ããµããŒãçªå£ã¯ _chat.freenode.net_ ãµãŒãã«ãããŸã:
* å
¬åŒãã£ã³ãã« (éçºè
ãããŸã):
** _#weechat_ (è±èª)
** _#weechat-fr_ (ãã©ã³ã¹èª)
* éå
¬åŒãã£ã³ãã«:
** _#weechat-de_ (ãã€ãèª)
** _#weechat-fi_ (ãã£ã³ã©ã³ãèª)
ä»ã®æ¹æ³ã§ãµããŒããåããã«ã¯ã以äžã®ããŒãžãåç
§ããŠãã ãã: https://weechat.org/about/support
|