mirror of
https://github.com/weechat/weechat.git
synced 2026-07-03 16:23:14 +02:00
alias: add help about syntax %%command for completion of alias in /alias
This commit is contained in:
@@ -3,31 +3,32 @@
|
||||
........................................
|
||||
/alias [-completion <completion>] <alias> [<command> [;<command>...]]
|
||||
|
||||
completion: optionale Vervollständigung für einen Alias-Befehl (Standardverhalten: Vervollständigung wird auf den Zielbefehl angewendet)
|
||||
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
|
||||
$nick: current nick
|
||||
$channel: current channel
|
||||
$server: current server
|
||||
|
||||
Um ein Alias zu löschen, nutze "/unalias".
|
||||
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
|
||||
........................................
|
||||
|
||||
|
||||
Reference in New Issue
Block a user