diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-20 07:54:59 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2015-07-20 07:54:59 +0200 |
commit | b1bd5c721e66fc4ff414516ad839622988b65e71 (patch) | |
tree | 7b16c3bf8346ebc0cf79a4b67f85c888e82f238d /doc/en | |
parent | 31c3151fcc9d278b0ec06652620df5ca1a40ed62 (diff) | |
download | weechat-b1bd5c721e66fc4ff414516ad839622988b65e71.zip |
alias: add options "add", "addcompletion" and "del" in command /alias, remove command /unalias (closes #458)
Diffstat (limited to 'doc/en')
-rw-r--r-- | doc/en/autogen/user/alias_commands.asciidoc | 29 | ||||
-rw-r--r-- | doc/en/weechat_dev.en.asciidoc | 2 |
2 files changed, 18 insertions, 13 deletions
diff --git a/doc/en/autogen/user/alias_commands.asciidoc b/doc/en/autogen/user/alias_commands.asciidoc index f445136a3..5cc68e3c2 100644 --- a/doc/en/autogen/user/alias_commands.asciidoc +++ b/doc/en/autogen/user/alias_commands.asciidoc @@ -3,17 +3,22 @@ // DO NOT EDIT BY HAND! // [[command_alias_alias]] -[command]*`alias`* create an alias for a command:: +[command]*`alias`* list, add or remove command aliases:: ---- -/alias [-completion <completion>] <alias> [<command> [;<command>...]] +/alias list [<alias>] + add <alias> [<command>[;<command>...]] + addcompletion <completion> <alias> [<command>[;<command>...]] + del <alias> [<alias>...] -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 (wildcard "*" is allowed) - command: command name with arguments (many commands can be separated by semicolons) - -Without argument, this command lists all defined 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) @@ -25,14 +30,12 @@ Note: in command, special variables are replaced: $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. - Examples: alias /split to split window horizontally: - /alias split /window splith + /alias add split /window splith alias /hello to say "hello" on all channels but not on #weechat: - /alias hello /allchan -exclude=#weechat msg * hello + /alias add hello /allchan -exclude=#weechat msg * hello alias /forcejoin to send IRC command "forcejoin" with completion of /sajoin: - /alias -completion %%sajoin forcejoin /quote forcejoin + /alias addcompletion %%sajoin forcejoin /quote forcejoin ---- diff --git a/doc/en/weechat_dev.en.asciidoc b/doc/en/weechat_dev.en.asciidoc index 2dcaec778..46058fd13 100644 --- a/doc/en/weechat_dev.en.asciidoc +++ b/doc/en/weechat_dev.en.asciidoc @@ -180,6 +180,8 @@ WeeChat "core" is located in following directories: | weechat-plugin.h | Header designed to be distributed with WeeChat plugins, in order to compile them | alias/ | Alias plugin | alias.c | Main alias functions +| alias-command.c | Alias commands +| alias-completion.c | Alias completions | alias-config.c | Alias config options (file alias.conf) | alias-info.c | Alias info/infolists/hdata | aspell/ | Aspell plugin |