summaryrefslogtreecommitdiff
path: root/doc/it/autogen/user/alias_commands.adoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-05-15 08:52:19 +0200
committerSébastien Helleu <flashcode@flashtux.org>2016-05-15 08:52:19 +0200
commitb7bdbbdc505879450494bc75b706e2997e25120f (patch)
treebe3b6716c2706a9505278d05ae9cfbec5ffbdac5 /doc/it/autogen/user/alias_commands.adoc
parent81fa60a23a29e3bb6525494587008d75eae44f28 (diff)
downloadweechat-b7bdbbdc505879450494bc75b706e2997e25120f.zip
core: rename .asciidoc files to .adoc (issue #722)
Diffstat (limited to 'doc/it/autogen/user/alias_commands.adoc')
-rw-r--r--doc/it/autogen/user/alias_commands.adoc40
1 files changed, 40 insertions, 0 deletions
diff --git a/doc/it/autogen/user/alias_commands.adoc b/doc/it/autogen/user/alias_commands.adoc
new file mode 100644
index 000000000..2e723c832
--- /dev/null
+++ b/doc/it/autogen/user/alias_commands.adoc
@@ -0,0 +1,40 @@
+//
+// This file is auto-generated by script docgen.py.
+// DO NOT EDIT BY HAND!
+//
+[[command_alias_alias]]
+* `+alias+`: list, add or remove command aliases
+
+----
+/alias list [<alias>]
+ add <alias> [<command>[;<command>...]]
+ addcompletion <completion> <alias> [<command>[;<command>...]]
+ del <alias> [<alias>...]
+
+ 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
+
+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
+----