1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 07:16:37 +02:00

alias: display completion in /alias list (closes #518)

This commit is contained in:
Sébastien Helleu
2015-09-12 09:23:48 +02:00
parent 1b05a1a06b
commit 664876bde6
14 changed files with 90 additions and 18 deletions
+30 -5
View File
@@ -123,11 +123,36 @@ alias_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
weechat_printf (NULL, _("All aliases:"));
}
}
weechat_printf (NULL, " %s %s=>%s %s",
ptr_alias->name,
weechat_color ("chat_delimiters"),
weechat_color ("chat"),
ptr_alias->command);
ptr_option = weechat_config_search_option (
alias_config_file,
alias_config_section_completion,
ptr_alias->name);
if (ptr_option)
{
weechat_printf (
NULL,
" %s %s=>%s %s %s(%s%s %s%s)%s",
ptr_alias->name,
weechat_color ("chat_delimiters"),
weechat_color ("chat"),
ptr_alias->command,
weechat_color ("chat_delimiters"),
weechat_color ("chat"),
_("completion:"),
weechat_config_string (ptr_option),
weechat_color ("chat_delimiters"),
weechat_color ("chat"));
}
else
{
weechat_printf (
NULL,
" %s %s=>%s %s",
ptr_alias->name,
weechat_color ("chat_delimiters"),
weechat_color ("chat"),
ptr_alias->command);
}
alias_found = 1;
}
}