summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorAli Gholami Rudi <aliqrudi@gmail.com>2008-10-11 08:33:32 +0330
committerShawn <sabetts@juicebox.(none)>2008-10-12 17:11:54 -0700
commit2557e59fc5ce7690d05856b04e0ea5aaff6f9f60 (patch)
tree1cdb0859bfb23b581144df7c2b9664d5b32e5ab9 /src/actions.c
parent96f8765e306e2a5ed27546d2fec9b08613d369c2 (diff)
downloadratpoison-2557e59fc5ce7690d05856b04e0ea5aaff6f9f60.zip
add grename command
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c9
1 files changed, 9 insertions, 0 deletions
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);
@@ -4855,6 +4857,13 @@ cmd_gnewbg (int interactive, struct cmdarg **args)
}
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)
{
rp_group *g;