diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-07-20 22:39:28 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-07-20 22:39:28 +0200 |
commit | 84e30438d42c1726d506b6ca93feaf7c854ec303 (patch) | |
tree | f91e9405d889f59f9416367f305f003c8c8914c0 /doc/ja | |
parent | ee3a4a1fc01815c64354d1c793fc5330a079b2d9 (diff) | |
download | weechat-84e30438d42c1726d506b6ca93feaf7c854ec303.zip |
irc: allow to send text on buffers with commands /allchan, /allpv and /allserv
Diffstat (limited to 'doc/ja')
-rw-r--r-- | doc/ja/includes/autogen_user_commands.ja.adoc | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/doc/ja/includes/autogen_user_commands.ja.adoc b/doc/ja/includes/autogen_user_commands.ja.adoc index 1cdf1a8d4..5aeb2fd2e 100644 --- a/doc/ja/includes/autogen_user_commands.ja.adoc +++ b/doc/ja/includes/autogen_user_commands.ja.adoc @@ -23,7 +23,7 @@ target: サーバ名 -current: execute command for channels of current server only -exclude: exclude some channels (wildcard "*" is allowed) -include: include only some channels (wildcard "*" is allowed) - command: command to execute + command: command to execute (or text to send to buffer if command does not start with '/') Command and arguments are evaluated (see /help eval), the following variables are replaced: $server server name @@ -34,13 +34,13 @@ Command and arguments are evaluated (see /help eval), the following variables ar Examples: execute '/me is testing' on all channels: - /allchan me is testing + /allchan /me is testing say 'hello' everywhere but not on #weechat: - /allchan -exclude=#weechat msg * hello + /allchan -exclude=#weechat hello say 'hello' everywhere but not on #weechat and channels beginning with #linux: - /allchan -exclude=#weechat,#linux* msg * hello + /allchan -exclude=#weechat,#linux* hello say 'hello' on all channels beginning with #linux: - /allchan -include=#linux* msg * hello + /allchan -include=#linux* hello ---- [[command_irc_allpv]] @@ -53,7 +53,7 @@ Examples: -current: execute command for private buffers of current server only -exclude: exclude some nicks (wildcard "*" is allowed) -include: include only some nicks (wildcard "*" is allowed) - command: command to execute + command: command to execute (or text to send to buffer if command does not start with '/') Command and arguments are evaluated (see /help eval), the following variables are replaced: $server server name @@ -64,15 +64,15 @@ Command and arguments are evaluated (see /help eval), the following variables ar Examples: execute '/me is testing' on all private buffers: - /allpv me is testing + /allpv /me is testing say 'hello' everywhere but not for nick foo: - /allpv -exclude=foo msg * hello + /allpv -exclude=foo hello say 'hello' everywhere but not for nick foo and nicks beginning with bar: - /allpv -exclude=foo,bar* msg * hello + /allpv -exclude=foo,bar* hello say 'hello' for all nicks beginning with bar: - /allpv -include=bar* msg * hello + /allpv -include=bar* hello close all private buffers: - /allpv close + /allpv /close ---- [[command_irc_allserv]] @@ -84,7 +84,7 @@ Examples: -exclude: exclude some servers (wildcard "*" is allowed) -include: include only some servers (wildcard "*" is allowed) - command: command to execute + command: command to execute (or text to send to buffer if command does not start with '/') Command and arguments are evaluated (see /help eval), the following variables are replaced: $server server name @@ -93,11 +93,11 @@ Command and arguments are evaluated (see /help eval), the following variables ar Examples: change nick on all servers: - /allserv nick newnick + /allserv /nick newnick set away on all servers: - /allserv away I'm away + /allserv /away I'm away do a whois on my nick on all servers: - /allserv whois $nick + /allserv /whois $nick ---- [[command_irc_ban]] @@ -1004,31 +1004,31 @@ target: マスクに一致するものだけを返す addcompletion <completion> <alias> [<command>[;<command>...]] del <alias> [<alias>...] - list: 別名をリストアップ (引数を与えなかった場合、このリストが表示されます) - add: 別名を追加 -addcompletion: カスタム補完を指定して別名を追加 - del: 別名を削除 - completion: 別名の補完: デフォルトでは対象のコマンドに対する補完が行われます - 注意: %%command で既存のコマンドに対する補完を利用可能です - alias: 別名の名前 - command: 引数を含めたコマンド名 (セミコロンで分割すれば複数のコマンドを指定できます) - -注意: command の中に含まれる特殊変数は置換されます: - $n: 'n' 番目の引数 (1 から 9) - $-m: 1 から 'm' 番目の引数 - $n-: 'n' 番目から最後の引数 - $n-m: 'n' から 'm' 番目の引数 - $*: 全ての引数 - $~: 最後の引数 - $var: ここで "var" とはバッファの局所変数 (/buffer localvar を参照してください) - 例: $nick、$channel、$server、$plugin、$name + list: list aliases (without argument, this list is displayed) + add: add an alias +addcompletion: add an alias with a custom completion + del: delete an alias + completion: completion for alias: by default completion is done with target command + note: you can use %%command to use completion of an existing command + alias: name of alias + command: command name with arguments (many commands can be separated by semicolons) + +Note: in command, special variables are replaced: + $n: argument 'n' (between 1 and 9) + $-m: arguments from 1 to 'm' + $n-: arguments from 'n' to last + $n-m: arguments from 'n' to 'm' + $*: all arguments + $~: last argument + $var: where "var" is a local variable of buffer (see /buffer localvar) + examples: $nick, $channel, $server, $plugin, $name -例: - /split をウィンドウを水平方向に分割する別名と定義: +Examples: + alias /split to split window horizontally: /alias add split /window splith - /hello を #weechat を除く全てのチャンネルで "hello" と発言する別名と定義: - /alias add hello /allchan -exclude=#weechat msg * hello - /forcejoin を /sajoin の補完候補を使い IRC コマンド "forcejoin" を送信する別名と定義: + alias /hello to say "hello" on all channels but not on #weechat: + /alias add hello /allchan -exclude=#weechat hello + alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin: /alias addcompletion %%sajoin forcejoin /quote forcejoin ---- // end::alias_commands[] |