From 3b3f081c66b88ba8de4c86a30b4374582fe62413 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 d3952e8..25aac5e 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 fac0e06..8841eb7 100644 --- a/doc/ratpoison.texi +++ b/doc/ratpoison.texi @@ -594,6 +594,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