1
1
[[command_weechat_away]]
2
2
[command]*`away`* 離席状態の切り替え::
3
........................................
4
5
/away [-all] [<message>]
6
7
-all: 全ての接続済みサーバに対して離席状態を切り替え
7
8
message: 離席メッセージ (メッセージが無い場合は、離席状態を解除)
8
........................................
10
11
[[command_weechat_bar]]
11
12
[command]*`bar`* バーの管理::
12
........................................
13
15
/bar list|listfull|listitems
14
16
add <name> <type>[,<condition>] <position> <size> <separator> <item1>[,<item2>...]
15
17
default [input|title|status|nicklist]
56
58
/bar scroll nicklist * y+10
57
59
現在のバッファに対応したニックネームリストを最後までスクロール:
58
60
/bar scroll nicklist * ye
59
........................................
61
63
[[command_weechat_buffer]]
62
64
[command]*`buffer`* バッファの管理::
63
........................................
65
68
clear [<number>|<name>|-merged|-all]
66
69
move|merge <number>
67
70
swap <number1>|<name1> [<number2>|<name2>]
68
71
unmerge [<number>|-all]
72
renumber [<number1> [<number2> [<start>]]]
69
73
close [<n1>[-<n2>]|<name>]
141
147
/color alias 214 orange
143
149
/color unalias 214
144
........................................
146
152
[[command_weechat_command]]
147
153
[command]*`command`* WeeChat かプラグインのコマンドを起動::
148
........................................
149
156
/command <plugin> <command>
151
158
plugin: プラグインの名前 ('weechat' は WeeChat の内部コマンドを意味します)
152
159
command: 実行するコマンド (コマンドの最初に '/' が無い場合、'/' が自動的に追加されます)
153
........................................
155
162
[[command_weechat_cursor]]
156
163
[command]*`cursor`* カーソルを移動してアクションを実行するエリアを指定::
157
........................................
158
166
/cursor go chat|<bar>|<x>,<y>
159
167
move up|down|left|right|area_up|area_down|area_left|area_right
233
244
"50" > "100" ==> 1
235
246
式中の ${variable} 型のフォーマットの変数は置換さます。変数は以下の優先順位に従います。
236
1. 色の名前 (フォーマット: color:xxx)
237
2. オプションの名前 (file.section.option)
239
4. hdata の名前/変数 (値は自動的に文字列に変換されます)、デフォルトでは "window" と "buffer" は現在のウィンドウ/バッファを指します。
247
1. 色 (フォーマット: "color:xxx")
248
2. 情報 (フォーマット: "info:name,arguments"、arguments は任意)
249
3. オプション (フォーマット: "file.section.option")
251
5. hdata の名前/変数 (値は自動的に文字列に変換されます)、デフォルトでは "window" と "buffer" は現在のウィンドウ/バッファを指します。
240
252
hdata のフォーマットは以下の 1 つです:
241
253
hdata.var1.var2...: hdata (ポインタは既知) で始まり、1 個ずつ変数を続ける (他の hdata を続けることも可能)
242
254
hdata(list).var1.var2...: リストを使って hdata を始める、例:
258
271
/eval -n -c abcd =~ (?-i)^ABC ==> 0
259
272
/eval -n -c abcd =~ (?-i)^abc ==> 1
260
273
/eval -n -c abcd !~ abc ==> 0
261
........................................
263
276
[[command_weechat_filter]]
264
277
[command]*`filter`* タグか正規表現に基づくバッファメッセージの非表示/表示::
265
........................................
267
281
enable|disable|toggle [<name>]
268
282
add <name> <buffer>[,<buffer>...] <tags> <regex>
281
295
- "*" は全てのバッファを意味します
282
296
- 名前が '!' から始まるものは除外されます
283
297
- 多くのバッファにマッチさせるためには名前を '*' から始めるか終わらせてください
284
tags: タグのコンマ区切りリスト、例えば: "irc_join,irc_part,irc_quit"
298
tags: タグのコンマ区切りリスト、例えば "irc_join,irc_part,irc_quit"
299
- 論理積 "and": タグ同士を "+" でつなげる (例えば: "nick_toto+irc_action")
300
- タグの最初と最後には '*' を使うことができます
285
301
regex: 行単位検索の正規表現
286
302
- '\t' を使うと、プレフィックスをメッセージから分離できます。'|' 等の特別な文字は '\|' のようにエスケープしなければいけません
287
303
- 正規表現の最初に '!' が含まれる場合は、マッチ結果が反転されます (最初の '!' にマッチさせたければ、'\!' を使ってください)
309
325
/filter add nicks * irc_366 *
310
326
IRC チャンネル #weechat で "toto" を含むニックネームをフィルタ:
311
327
/filter add toto irc.freenode.#weechat nick_toto *
328
ニックネーム "toto" からの IRC の参加/アクションメッセージをフィルタ:
329
/filter add toto * nick_toto+irc_join,nick_toto+irc_action *
312
330
IRC チャンネル #weechat で "weechat sucks" を含む行をフィルタ:
313
331
/filter add sucks irc.freenode.#weechat * weechat sucks
314
........................................
316
334
[[command_weechat_help]]
317
335
[command]*`help`* コマンドとオプションに関するヘルプを表示::
318
........................................
319
338
/help -list|-listfull [<plugin> [<plugin>...]]
325
344
plugin: このプラグインに関するコマンドをリストアップ
327
346
option: オプションの名前 (リストを見るには /set を使用)
328
........................................
330
349
[[command_weechat_history]]
331
350
[command]*`history`* バッファコマンド履歴を表示::
332
........................................
337
357
value: 表示する履歴エントリの数
338
........................................
340
360
[[command_weechat_input]]
341
361
[command]*`input`* コマンドライン関数::
342
........................................
343
364
/input <action> [<arguments>]
389
410
switch_active_buffer: 次のマージされたバッファに移動
390
411
switch_active_buffer_previous: 一つ前のマージされたバッファに移動
391
412
zoom_merged_buffer: マージされたバッファにズーム
392
insert: コマンドラインにテキストを挿入
413
insert: コマンドラインにテキストを挿入 (エスケープ文字も可、/help print を参照)
393
414
paste_start: ペーストの開始 (括弧付きペーストモード)
394
415
paste_stop: ペーストの終了 (括弧付きペーストモード)
396
417
これらのコマンドはキーバインドかプラグインで利用できます。
397
........................................
399
420
[[command_weechat_key]]
400
421
[command]*`key`* キーの割り当てと割り当て解除::
401
........................................
402
424
/key list|listdefault|listdiff [<context>]
403
425
bind <key> [<command> [<args>]]
404
426
bindctxt <context> <key> [<command> [<args>]]
448
470
/key bindctxt search ctrl-I /input search_stop
449
471
ニック上でのマウスのセンターボタンをニックネームの情報取得に割り当てる:
450
472
/key bindctxt mouse @item(buffer_nicklist):button3 /msg nickserv info ${nick}
451
........................................
453
475
[[command_weechat_layout]]
454
[command]*`layout`* バッファとウィンドウのレイアウトを保存/適用/リセット::
455
........................................
456
/layout save [<name>] [buffers|windows]
476
[command]*`layout`* バッファ/ウィンドウレイアウトの管理::
479
/layout store [<name>] [buffers|windows]
457
480
apply [<name>] [buffers|windows]
459
reset [<name>] [buffers|windows]
482
del [<name>] [buffers|windows]
460
483
rename <name> <new_name>
485
store: レイアウトに現在のバッファ/ウィンドウを保存
463
486
apply: 保存されたレイアウトを適用
464
487
leave: 現在のレイアウトを保持する (レイアウトを更新しない)
465
reset: 保存されたレイアウトでバッファとウィンドウをリセット
466
(バッファとウィンドウの両方がリセットされる場合、レイアウトは削除されます)
488
del: レイアウトとして保存されているバッファとウィンドウを削除
489
(名前の後に "バッファ" や "ウィンドウ" を指定しない場合、レイアウトを削除)
467
490
rename: レイアウトのリネーム
468
491
name: 保存されたレイアウトの名前 (初期状態は "default")
469
492
buffers: バッファのみに対してレイアウトを保存/適用 (バッファの順番)
470
493
windows: ウィンドウのみに対してレイアウトを保存/適用 (それぞれのウィンドウに表示されるバッファ)
472
495
引数無しでは、保存されたレイアウトを表示します。
473
........................................
475
498
[[command_weechat_mouse]]
476
499
[command]*`mouse`* マウス操作::
477
........................................
478
502
/mouse enable|disable|toggle [<delay>]
533
559
arguments: ロードするプラグインに与える引数
535
561
引数無しでは、ロードされたプラグインをリストアップ。
536
........................................
564
[[command_weechat_print]]
565
[command]*`print`* バッファ内にテキストを表示::
568
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] <text>
569
-stdout|-stderr <text>
571
-buffer: テキストを表示するバッファ (デフォルト: 現在のバッファ)
572
-core: "-buffer core.weechat" のエイリアス
573
-escape: エスケープ文字を解釈 (例えば \a、\07、\x07)
574
-date: メッセージの日付、フォーマット:
577
n: エポックから 'n' 秒目 (man time を参照)
578
日付/時間 (ISO 8601): yyyy-mm-ddThh:mm:ss、例: 2014-01-19T04:32:55
579
時間: hh:mm:ss (example: 04:32:55)
580
-tags: タグのコンマ区切りリスト (よく使うタグのリストは /help filter を参照)
581
text: 表示するテキスト (プレフィックスとメッセージは必ず \t で区切ってください)
582
-stdout: 標準出力にテキストを表示 (エスケープ文字を解釈)
583
-stderr: 標準エラー出力にテキストを表示 (エスケープ文字を解釈)
585
オプション -action ... -quit をつけた場合、プレフィックスは "weechat.look.prefix_*" で定義されているものになります。
587
以下のエスケープ文字を使うことができます:
588
\" \\ \a \b \e \f \n \r \t \v \0ooo \xhh \uhhhh \Uhhhhhhhh
591
コアバッファにハイライトを付けてリマインダを表示:
592
/print -core -tags notify_highlight Reminder: buy milk
594
/print -core -error Some error here
595
コアバッファにプレフィックス "abc" を付けてメッセージを表示:
596
/print -core abc The message
597
チャンネル #weechat にメッセージを表示:
598
/print -buffer irc.freenode.#weechat Message on #weechat
600
/print -escape \u2603
538
605
[[command_weechat_proxy]]
539
606
[command]*`proxy`* プロキシの管理::
540
........................................
542
610
add <name> <type> <address> <port> [<username> [<password>]]
566
634
/proxy add myproxy socks5 sample.host.org 3128 myuser mypass
568
636
/proxy del myproxy
569
........................................
571
639
[[command_weechat_quit]]
572
640
[command]*`quit`* WeeChat の終了::
573
........................................
574
643
/quit [-yes] [<arguments>]
576
645
-yes: weechat.look.confirm_quit オプションが有効な場合に必要
577
646
arguments: "quit" シグナルと共に送られるテキスト
578
647
(例えば irc プラグインはサーバに quit メッセージを送る際にこのテキストを使います)
579
........................................
581
650
[[command_weechat_reload]]
582
651
[command]*`reload`* ディスクから設定ファイルを再読み込み::
583
........................................
584
654
/reload [<file> [<file>...]]
586
656
file: 再読み込みする設定ファイル (拡張子 ".conf" は不要)
588
658
引数無しでは、全てのファイル (WeeChat とプラグイン) が再読み込みされます。
589
........................................
591
661
[[command_weechat_repeat]]
592
662
[command]*`repeat`* 複数回コマンドを実行::
593
........................................
594
665
/repeat [-interval <delay>] <count> <command>
596
667
delay: コマンドの実行間隔 (ミリ秒単位)
604
675
/repeat 2 /window page_up
605
........................................
607
678
[[command_weechat_save]]
608
679
[command]*`save`* 設定をファイルに保存::
609
........................................
610
682
/save [<file> [<file>...]]
612
684
file: 保存する設定ファイル (拡張子 ".conf" は不要)
614
686
引数無しでは、全てのファイル (WeeChat とプラグイン) が保存されます。
615
........................................
617
689
[[command_weechat_secure]]
618
690
[command]*`secure`* 保護データを管理します (パスワードやプライベートデータは暗号化されて sec.conf ファイルに保存)::
619
........................................
620
693
/secure passphrase <passphrase>|-delete
621
694
decrypt <passphrase>|-discard
622
695
set <name> <value>
625
passphrase: change the passphrase (without passphrase, data is stored as plain text in file sec.conf)
626
-delete: delete passphrase
627
decrypt: decrypt data still encrypted (it happens only if passphrase was not given on startup)
628
-discard: discard all data still encrypted
629
set: add or change secured data
630
del: delete secured data
632
Without argument, this command displays secured data in a new buffer.
634
When a passphrase is used (data encrypted), it is asked by WeeChat on startup.
635
It is possible to set environment variable "WEECHAT_PASSPHRASE" to prevent the prompt (this same variable is used by WeeChat on /upgrade).
637
Secured data with format ${sec.data.xxx} can be used in:
638
- command line argument "--run-command"
639
- options weechat.startup.command_{before|after}_plugins
640
- proxy options: username, password
641
- irc server options: autojoin, command, password, sasl_{username|password}
642
- option relay.network.password
698
passphrase: パスフレーズを変更 (パスフレーズがない場合、sec.conf ファイルに平文でデータを保存します)
700
decrypt: 暗号化されているデータを復号化 (起動時にパスフレーズが設定されていない場合に起きます)
701
-discard: 全ての暗号化データを破棄
705
引数がない場合、新しいバッファに保護データを表示します。
707
パスフレーズを利用する場合 (データが暗号化されている場合)、WeeChat は起動時にパスフレーズを尋ねます。
708
環境変数 "WEECHAT_PASSPHRASE" を利用すれば入力を回避できます (WeeChat は /upgrade の時に同じ変数を利用します)。
710
${sec.data.xxx} の形でフォーマットされた保護データは以下の様に利用できます:
711
- コマンドライン引数 "--run-command"
712
- weechat.startup.command_{before|after}_plugins オプション
713
- プロキシオプション: username、password
714
- irc サーバオプション: autojoin、command、password、sasl_{username|password}
715
- relay.network.password オプション
647
720
/secure passphrase this is my passphrase
648
encrypt freenode SASL password:
721
freenode の SASL パスワードを暗号化:
649
722
/secure set freenode mypassword
650
723
/set irc.server.freenode.sasl_password "${sec.data.freenode}"
651
encrypt oftc password for nickserv:
724
oftc の nickserv 用パスワードを暗号化:
652
725
/secure set oftc mypassword
653
726
/set irc.server.oftc.command "/msg nickserv identify ${sec.data.oftc}"
654
alias to ghost the nick "mynick":
727
ニックネーム "mynick" を取り戻すためのエイリアス ghost を設定
655
728
/alias ghost /eval /msg -server freenode nickserv ghost mynick ${sec.data.freenode}
656
........................................
658
731
[[command_weechat_set]]
659
732
[command]*`set`* オプションの設定::
660
........................................
661
735
/set [<option> [<value>]]
662
736
diff [<option> [<option>...]]
728
804
この後、セッションを回復させるには weechat --upgrade を使ってください。
729
805
重要: 完全に同一の設定で (*.conf ファイルで) セッションを回復させてください。
730
806
"~/.weechat" ディレクトリの内容をコピーすれば異なるマシンで WeeChat のセッションを回復することも可能です。
731
........................................
733
809
[[command_weechat_uptime]]
734
810
[command]*`uptime`* WeeChat 連続稼働時間の表示::
735
........................................
736
813
/uptime [-o | -ol]
738
815
-o: 連続稼働時間を現在のバッファの入力に送る (英語で)
739
816
-ol: 連続稼働時間を現在のバッファの入力に送る (翻訳済み)
740
........................................
742
819
[[command_weechat_version]]
743
820
[command]*`version`* WeeChat のバージョンとコンパイル日時を表示::
744
........................................
745
823
/version [-o | -ol]
747
825
-o: バージョンを現在のバッファの入力に送る (英語で)
748
826
-ol: バージョンを現在のバッファの入力に送る (翻訳済み)
749
........................................
751
829
[[command_weechat_wait]]
752
830
[command]*`wait`* コマンドの実行を予約::
753
........................................
754
833
/wait <number>[<unit>] <command>
756
835
number: 遅延時間 (整数)