From 2557e59fc5ce7690d05856b04e0ea5aaff6f9f60 Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Sat, 11 Oct 2008 08:33:32 +0330 Subject: add grename command --- src/actions.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/actions.c') diff --git a/src/actions.c b/src/actions.c index 4187877..ef71285 100644 --- a/src/actions.c +++ b/src/actions.c @@ -254,6 +254,8 @@ init_user_commands(void) "Name: ", arg_STRING); add_command ("gnewbg", cmd_gnewbg, 1, 1, 1, "Name: ", arg_STRING); + add_command ("grename", cmd_grename, 1, 1, 1, + "Change group name to: ", arg_STRING); add_command ("gnext", cmd_gnext, 0, 0, 0); add_command ("gprev", cmd_gprev, 0, 0, 0); add_command ("gother", cmd_gother, 0, 0, 0); @@ -4854,6 +4856,13 @@ cmd_gnewbg (int interactive, struct cmdarg **args) return cmdret_new (RET_SUCCESS, NULL); } +cmdret * +cmd_grename (int interactive, struct cmdarg **args) +{ + group_rename (rp_current_group, ARG_STRING(0)); + return cmdret_new (RET_SUCCESS, NULL); +} + cmdret * cmd_gselect (int interactive, struct cmdarg **args) { -- cgit v1.2.3