From c6587e592d08fc47117b7448491204c775783e4b Mon Sep 17 00:00:00 2001 From: Moritz Poldrack Date: Sat, 17 Dec 2022 22:28:58 +0100 Subject: split: use a sensible default width Guessing a width/height with v?split is rather bothersome, using a sensible value based on the user's terminal would be preferable. This also prevents confusion when running :v?split without a number seemingly does not open a split. Initialize width as half the width of the message list and height as an eight of the message list. Signed-off-by: Moritz Poldrack Acked-by: Robin Jarry --- doc/aerc.1.scd | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/aerc.1.scd') diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd index ad18c984..949eb6ee 100644 --- a/doc/aerc.1.scd +++ b/doc/aerc.1.scd @@ -382,7 +382,8 @@ message list, the message in the message viewer, etc). calling *:split* _0_, or just *:split*. The split can be toggled by calling split with the same (absolute) size repeatedly. For example, *:split* _10_ will create a split. Calling *:split* _10_ again will - remove the split. Also see *:vsplit*. + remove the split. If not specified, __ is set to an estimation based + on the user's terminal. Also see *:vsplit*. *:sort* [[*-r*] __]... Sorts the message list by the given criteria. *-r* sorts the @@ -426,7 +427,8 @@ message list, the message in the message viewer, etc). calling *:vsplit* _0_, or just *:vsplit*. The split can be toggled by calling split with the same (absolute) size repeatedly. For example, *:vsplit* _10_ will create a split. Calling *:vsplit* _10_ again will - remove the split. Also see *:split*. + remove the split. If not specified, __ is set to an estimation based + on the user's terminal. Also see *:split*. ## MESSAGE VIEW COMMANDS -- cgit