From 182424d279532635cbae6b1a1817f61db64ee37f Mon Sep 17 00:00:00 2001 From: inwit Date: Sat, 4 Mar 2023 18:35:27 +0100 Subject: change-tab: document "focus previous tab" functionality The current :change-tab command allows to be called with a single "-" as a parameter, in which case it changes focus to the previously focused tab. This is useful to switch back and forth between a pair of tabs, and is undocumented. Document this functionality. Signed-off-by: inwit Acked-by: Robin Jarry --- doc/aerc.1.scd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc/aerc.1.scd') diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd index 0dbf5f2a..5eb9f164 100644 --- a/doc/aerc.1.scd +++ b/doc/aerc.1.scd @@ -85,8 +85,9 @@ These commands work in any context. *:change-tab* [*+*|*-*]__++ *:ct* [*+*|*-*]__ Changes the focus to the tab with the given name. If a number is given, - it's treated as an index. If *+* or *-* is specified, the number is interpreted - as a delta from the selected tab. + it's treated as an index. If the number is prepended with *+* or *-*, the number + is interpreted as a delta from the selected tab. If only a *-* is given, changes + the focus to the previously selected tab. *:exec* __ Executes an arbitrary command in the background. Aerc will set the -- cgit