1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

alias: mention local variables of buffer in /help alias

This commit is contained in:
Sebastien Helleu
2013-03-10 08:27:55 +01:00
parent 0b0238a188
commit b63fca15fa
17 changed files with 120 additions and 124 deletions
+20 -21
View File
@@ -3,32 +3,31 @@
........................................
/alias [-completion <completion>] <alias> [<command> [;<command>...]]
completion: optionale Vervollständigung für einen Alias-Befehl (Standardverhalten: Vervollständigung wird auf den Zielbefehl angewendet)
Hinweis: Mit der Variablen "%%command" kann eine Vervollständigung eines vorhandenen Befehls durchgeführt werden
alias: Name des Alias (kann mit Joker "*" beginnen oder enden um Aliase aufzulisten)
command: Name des zuzuordnenden Befehls (WeeChat- oder IRC-Befehl ohne führenden '/', mehrere Befehle müssen durch Semikolon getrennt werden)
completion: completion for alias (optional, by default completion is done with target command)
note: you can use %%command to use completion of an existing command
alias: name of alias (can start or end with "*" for alias listing)
command: command name with arguments (many commands can be separated by semicolons)
Ohne Angabe von Argumenten werden alle definierten Aliase angezeigt.
Without argument, this command lists all defined alias.
Anmerkung: Im Befehl können Variablen genutzt werden, die dann durch den entsprechenden Wert ersetzt werden:
$n: Argument 'n' (zwischen 1 und 9)
$-m: Argumente von 1 bis 'm'
$n-: Argumente von 'n' bis zum letzten Argument
$n-m: Argumente von 'n' bis 'm'
$*: alle Argumente
$~: letztes Argument
$nick: aktueller Nick
$channel: aktueller Channel
$server: aktueller Server
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
Um ein Alias zu löschen wird der Befehl "/unalias" genutzt.
To remove an alias, use command /unalias.
Beispiele:
Alias "/split" wird anlegt um damit ein Fenster horizontal zu teilen:
Examples:
alias /split to split window horizontally:
/alias split /window splith
Alias "/hallo" wird angelegt um in allen Channels, außer im #weechat Channel, den Text "Hallo" auszugeben:
/alias hallo /allchan -exclude=#weechat msg * Hallo
Alias "/forcejoin" wird angelegt um den IRC Befehl "forcejoin" mit einer Vervollständigung von /sajoin auszuführen:
alias /hello to say "hello" on all channels but not on #weechat:
/alias hello /allchan -exclude=#weechat msg * hello
alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin:
/alias -completion %%sajoin forcejoin /quote forcejoin
........................................
+2 -3
View File
@@ -17,9 +17,8 @@ Note: in command, special variables are replaced:
$n-m: arguments from 'n' to 'm'
$*: all arguments
$~: last argument
$nick: current nick
$channel: current channel
$server: current server
$var: where "var" is a local variable of buffer (see /buffer localvar)
examples: $nick, $channel, $server, $plugin, $name
To remove an alias, use command /unalias.
+2 -3
View File
@@ -17,9 +17,8 @@ Note: dans la commande, les variables spéciales sont remplacées:
$n-m: paramètres de 'n' à 'm'
$*: tous les paramètres
$~: le dernier paramètre
$nick: pseudo courant
$channel: canal courant
$server: serveur courant
$var: où "var" est une variable locale du tampon (voir /buffer localvar)
exemples: $nick, $channel, $server, $plugin, $name
Pour supprimer un alias, utilisez la commande /unalias.
+20 -21
View File
@@ -3,32 +3,31 @@
........................................
/alias [-completion <completamento>] <alias> [<comando> [;<comando>...]]
completamento: completamento per l'alias (opzionale, per default il completamento viene eseguito con il comando di destinazione)
nota: è possibile usare %%comando per usare il completamento di un comando esistente
alias: nome dell'alias (può iniziare o terminare con "*" per elencare gli alias)
comando: nome del comando con gli argomenti (più comandi vanno separati da punto e virgola)
completion: completion for alias (optional, by default completion is done with target command)
note: you can use %%command to use completion of an existing command
alias: name of alias (can start or end with "*" for alias listing)
command: command name with arguments (many commands can be separated by semicolons)
Senza argomento, questo comando elenca tutti gli alias definiti.
Without argument, this command lists all defined alias.
Nota: nel comando, vengono sostituite le variabili speciali:
$n: argomento 'n' (tra 1 e 9)
$-m: argomenti da 1 a 'm'
$n-: argomenti da 'n' all'ultimo
$n-m: argomenti da 'n' a 'm'
$*: tutti gli argomenti
$~: l'ultimo argomento
$nick: nick corrente
$channel: canale corrente
$server: server corrente
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
Per rimuovere un alias, usare il comando /unalias.
To remove an alias, use command /unalias.
Esempi:
alias /split per dividere la finestra orizzontalmente:
Examples:
alias /split to split window horizontally:
/alias split /window splith
alias /ciao per dire "ciao" su tutti i canali tranne #weechat:
/alias ciao /allchan -exclude=#weechat msg * ciao
alias /forcejoin per inviare il comando IRC "forcejoin" con il completamento di /sajoin:
alias /hello to say "hello" on all channels but not on #weechat:
/alias hello /allchan -exclude=#weechat msg * hello
alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin:
/alias -completion %%sajoin forcejoin /quote forcejoin
........................................
+19 -20
View File
@@ -3,32 +3,31 @@
........................................
/alias [-completion <completion>] <alias> [<command> [;<command>...]]
completion: 別名の補完 (オプション、デフォルトではターゲットコマンドを伴って補完される)
注意: %%command で存在するコマンドの補完を利用可能
alias: 別名の名前 ("*" で始めるか終われば別名をリストアップ)
command: 引数を含めたコマンド名 (セミコロンで分割すれば複数のコマンドを指定できる)
completion: completion for alias (optional, by default completion is done with target command)
note: you can use %%command to use completion of an existing command
alias: name of alias (can start or end with "*" for alias listing)
command: command name with arguments (many commands can be separated by semicolons)
引数無しでは、定義済み別名をリストアップ。
Without argument, this command lists all defined alias.
注意: command の中では、特殊変数の置換が行われる:
$n: 'n' 番目の引数 (1 から 9)
$-m: 1 から 'm' 番目の引数
$n-: 'n' 番目から最後の引数
$n-m: 'n' から 'm' 番目の引数
$*: 全ての引数
$~: 最後の引数
$nick: 現在のニックネーム
$channel: 現在のチャンネル
$server: 現在のサーバ
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
別名を削除するには /unalias コマンドを使ってください:
To remove an alias, use command /unalias.
:
/split をウィンドウを水平方向に分割する別名と定義:
Examples:
alias /split to split window horizontally:
/alias split /window splith
/hello を #weechat を除く全てのチャンネルで "hello" と発言する別名と定義:
alias /hello to say "hello" on all channels but not on #weechat:
/alias hello /allchan -exclude=#weechat msg * hello
/forcejoin を /sajoin の補完候補を使い IRC コマンド "forcejoin" を送信する別名と定義:
alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin:
/alias -completion %%sajoin forcejoin /quote forcejoin
........................................
+4 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-26 21:38+0100\n"
"POT-Creation-Date: 2013-03-10 08:23+0100\n"
"PO-Revision-Date: 2013-02-23 11:11+0100\n"
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3687,9 +3687,9 @@ msgid ""
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n"
" $var: where \"var\" is a local variable of buffer (see /buffer "
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
+5 -5
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-26 21:38+0100\n"
"POT-Creation-Date: 2013-03-10 08:23+0100\n"
"PO-Revision-Date: 2013-02-23 18:31+0100\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <weechatter@arcor.de>\n"
@@ -4111,7 +4111,7 @@ msgstr "Einem Befehl wird ein Alias zugewiesen"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <completion>] <alias> [<command> [;<command>...]]"
#, c-format
#, fuzzy, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
@@ -4130,9 +4130,9 @@ msgid ""
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n"
" $var: where \"var\" is a local variable of buffer (see /buffer "
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
+5 -5
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-26 21:38+0100\n"
"POT-Creation-Date: 2013-03-10 08:23+0100\n"
"PO-Revision-Date: 2013-02-23 11:11+0100\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3859,7 +3859,7 @@ msgstr "crear un alias para un comando"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <completador>] <alias> [<comando> [;<comando>...]]"
#, c-format
#, fuzzy, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
@@ -3878,9 +3878,9 @@ msgid ""
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n"
" $var: where \"var\" is a local variable of buffer (see /buffer "
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
+8 -8
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-26 21:38+0100\n"
"PO-Revision-Date: 2013-02-26 21:39+0100\n"
"POT-Creation-Date: 2013-03-10 08:23+0100\n"
"PO-Revision-Date: 2013-03-10 08:24+0100\n"
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: French\n"
@@ -4013,9 +4013,9 @@ msgid ""
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n"
" $var: where \"var\" is a local variable of buffer (see /buffer "
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
@@ -4046,9 +4046,9 @@ msgstr ""
" $n-m: paramètres de 'n' à 'm'\n"
" $*: tous les paramètres\n"
" $~: le dernier paramètre\n"
" $nick: pseudo courant\n"
" $channel: canal courant\n"
" $server: serveur courant\n"
" $var: où \"var\" est une variable locale du tampon (voir /buffer "
"localvar)\n"
" exemples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"Pour supprimer un alias, utilisez la commande /unalias.\n"
"\n"
+4 -4
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-26 21:38+0100\n"
"POT-Creation-Date: 2013-03-10 08:23+0100\n"
"PO-Revision-Date: 2013-02-23 11:11+0100\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3336,9 +3336,9 @@ msgid ""
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n"
" $var: where \"var\" is a local variable of buffer (see /buffer "
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
+5 -5
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-26 21:38+0100\n"
"POT-Creation-Date: 2013-03-10 08:23+0100\n"
"PO-Revision-Date: 2013-02-23 11:11+0100\n"
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3855,7 +3855,7 @@ msgstr "crea un alias per un comando"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <completamento>] <alias> [<comando> [;<comando>...]]"
#, c-format
#, fuzzy, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
@@ -3874,9 +3874,9 @@ msgid ""
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n"
" $var: where \"var\" is a local variable of buffer (see /buffer "
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
+5 -5
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-26 21:38+0100\n"
"POT-Creation-Date: 2013-03-10 08:23+0100\n"
"PO-Revision-Date: 2013-02-23 11:11+0100\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/WeeChat>\n"
@@ -3840,7 +3840,7 @@ msgstr "コマンドの別名を作成"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <completion>] <alias> [<command> [;<command>...]]"
#, c-format
#, fuzzy, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
@@ -3859,9 +3859,9 @@ msgid ""
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n"
" $var: where \"var\" is a local variable of buffer (see /buffer "
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
+5 -5
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-26 21:38+0100\n"
"POT-Creation-Date: 2013-03-10 08:23+0100\n"
"PO-Revision-Date: 2013-02-23 11:11+0100\n"
"Last-Translator: Krzysztof Korościk <soltys@szluug.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3930,7 +3930,7 @@ msgstr "tworzy alias do komendy"
msgid "[-completion <completion>] <alias> [<command> [;<command>...]]"
msgstr "[-completion <dopełnienie>] <alias> [<komenda> [;<komenda>...]]"
#, c-format
#, fuzzy, c-format
msgid ""
"completion: completion for alias (optional, by default completion is done "
"with target command)\n"
@@ -3949,9 +3949,9 @@ msgid ""
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n"
" $var: where \"var\" is a local variable of buffer (see /buffer "
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
+4 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-26 21:38+0100\n"
"POT-Creation-Date: 2013-03-10 08:23+0100\n"
"PO-Revision-Date: 2013-02-23 11:12+0100\n"
"Last-Translator: Sergio Durigan Junior <sergiosdj@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3770,9 +3770,9 @@ msgid ""
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n"
" $var: where \"var\" is a local variable of buffer (see /buffer "
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
+4 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-26 21:38+0100\n"
"POT-Creation-Date: 2013-03-10 08:23+0100\n"
"PO-Revision-Date: 2013-02-23 11:12+0100\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -3368,9 +3368,9 @@ msgid ""
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n"
" $var: where \"var\" is a local variable of buffer (see /buffer "
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
+4 -4
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat 0.4.1-dev\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2013-02-26 21:38+0100\n"
"POT-Creation-Date: 2013-03-10 08:23+0100\n"
"PO-Revision-Date: 2013-02-14 18:20+0100\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -2974,9 +2974,9 @@ msgid ""
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n"
" $var: where \"var\" is a local variable of buffer (see /buffer "
"localvar)\n"
" examples: $nick, $channel, $server, $plugin, $name\n"
"\n"
"To remove an alias, use command /unalias.\n"
"\n"
+4 -3
View File
@@ -1010,9 +1010,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
" $n-m: arguments from 'n' to 'm'\n"
" $*: all arguments\n"
" $~: last argument\n"
" $nick: current nick\n"
" $channel: current channel\n"
" $server: current server\n\n"
" $var: where \"var\" is a local variable of "
"buffer (see /buffer localvar)\n"
" examples: $nick, $channel, $server, "
"$plugin, $name\n\n"
"To remove an alias, use command /unalias.\n\n"
"Examples:\n"
" alias /split to split window horizontally:\n"