From 43ad739ad0bc13c4be46ca1982a41acaa8b106a5 Mon Sep 17 00:00:00 2001 From: cos Date: Sat, 18 May 2013 10:32:04 +0200 Subject: Added user documentation for gnumber command. --- doc/ratpoison.1 | 3 +++ doc/ratpoison.texi | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/doc/ratpoison.1 b/doc/ratpoison.1 index 8b53288..3ab0a92 100644 --- a/doc/ratpoison.1 +++ b/doc/ratpoison.1 @@ -373,6 +373,9 @@ Create a new group named \fIgroupf\fP, but do not select it. .cmd gnext Select the next group. Most window commands only see windows in the effective group. +.cmd gnumber +Give the number \fInew\fP to the group with the number \fIold\fP or +the current group. .cmd gother Select the last accessed group. Most window commands only see windows in the effective group. diff --git a/doc/ratpoison.texi b/doc/ratpoison.texi index d6552d5..7b9ce78 100644 --- a/doc/ratpoison.texi +++ b/doc/ratpoison.texi @@ -600,6 +600,15 @@ Go to the previous group in the list. Rename current group. @end deffn +@deffn Command gnumber @var{GROUP} @var{target} +Set a group's number to @var{GROUP}. If another group occupies the +requested number already, then the groups' numbers are swapped. + +The second argument, @var{target}, is optional. It should be the +number of the group whose number will be changed. If @var{target} is +omitted ratpoison defaults to the current group. +@end deffn + @deffn Command gselect @var{group} Select a particular group by name or number. If @var{group} is not provided, ratpoison will interactively prompt for the group. -- cgit v1.2.3