2015-03-11 20:15:23 +01:00
|
|
|
//
|
|
|
|
// This file is auto-generated by script docgen.py.
|
|
|
|
// DO NOT EDIT BY HAND!
|
|
|
|
//
|
2012-08-07 09:47:17 +02:00
|
|
|
[[command_alias_alias]]
|
2015-07-20 07:54:59 +02:00
|
|
|
[command]*`alias`* list, add or remove command aliases::
|
2013-10-20 11:39:11 +02:00
|
|
|
|
2013-11-04 21:41:34 +01:00
|
|
|
----
|
2015-07-20 07:54:59 +02:00
|
|
|
/alias list [<alias>]
|
|
|
|
add <alias> [<command>[;<command>...]]
|
|
|
|
addcompletion <completion> <alias> [<command>[;<command>...]]
|
|
|
|
del <alias> [<alias>...]
|
2012-08-07 09:47:17 +02:00
|
|
|
|
2015-07-20 07:54:59 +02:00
|
|
|
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)
|
2012-08-07 09:47:17 +02:00
|
|
|
|
2015-07-20 07:54:59 +02:00
|
|
|
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
|
2012-08-07 09:47:17 +02:00
|
|
|
|
2015-07-20 07:54:59 +02:00
|
|
|
Examples:
|
|
|
|
alias /split to split window horizontally:
|
|
|
|
/alias add split /window splith
|
|
|
|
alias /hello to say "hello" on all channels but not on #weechat:
|
|
|
|
/alias add hello /allchan -exclude=#weechat msg * hello
|
|
|
|
alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin:
|
|
|
|
/alias addcompletion %%sajoin forcejoin /quote forcejoin
|
2013-11-04 21:41:34 +01:00
|
|
|
----
|
2012-08-07 09:47:17 +02:00
|
|
|
|