From d2f92473b3d8e68aad8a7f3d3b3c6c194446713c Mon Sep 17 00:00:00 2001 From: Vitaly Ovchinnikov Date: Fri, 22 Sep 2023 20:59:29 +0000 Subject: sort: new `flagged` sorting criteria Add new `flagged` criteria to `:sort` command (and apparently to the `sort` config option). Good for moving important stuff up. Signed-off-by: Vitaly Ovchinnikov Reviewed-by: Koni Marti Acked-by: Robin Jarry --- lib/sort/sort.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sort') diff --git a/lib/sort/sort.go b/lib/sort/sort.go index 287f986c..082ba48b 100644 --- a/lib/sort/sort.go +++ b/lib/sort/sort.go @@ -51,6 +51,8 @@ func parseSortField(arg string) (types.SortField, error) { return types.SortSubject, nil case "to": return types.SortTo, nil + case "flagged": + return types.SortFlagged, nil default: return types.SortArrival, fmt.Errorf("%v is not a valid sort criterion", arg) } -- cgit