From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8HdRNxQwzV96RAAA0tVLHw (envelope-from ) for ; Sun, 06 Dec 2020 19:25:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 8KQjMxQwzV+vTwAA1q6Kng (envelope-from ) for ; Sun, 06 Dec 2020 19:25:08 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9435A9401BC for ; Sun, 6 Dec 2020 19:25:08 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 7B2742CF27; Sun, 6 Dec 2020 14:24:59 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id C44981FBCC for ; Sun, 6 Dec 2020 14:24:56 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id 1856A5FC95; Sun, 6 Dec 2020 14:24:55 -0500 (EST) Received: (nullmailer pid 953625 invoked by uid 1000); Sun, 06 Dec 2020 19:24:53 -0000 From: David Bremner To: Wenlong Dai , notmuch@notmuchmail.org Cc: Mark Walters Subject: Re: why doesn't notmuch-search-toggle-order work in unthreaded view? In-Reply-To: References: X-List-To: notmuch Date: Sun, 06 Dec 2020 15:24:53 -0400 Message-ID: <871rg2rb3u.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: MJDPGLPVZL4MTAS2MAILSRBKM5AJOQWV X-Message-ID-Hash: MJDPGLPVZL4MTAS2MAILSRBKM5AJOQWV X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.40 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 9435A9401BC X-Spam-Score: 0.40 X-Migadu-Scanner: ns3122888.ip-94-23-21.eu X-TUID: dgFhYOYmZHm0 Wenlong Dai writes: > I thought notmuch-search-toggle-order would be more useful in unthreaded > view than search view. > But I found that it doesn't work in unthreaded view? am I doing something > wrong? or is this by default? I think it is just a missing feature. The unthreaded view is fairly new, and the underlying code in the notmuch-show command never supported an ordering argument before. I think the actual code to enable the other ordering for unsorted output would be fairly easy to add. The challenge is probably what to do with that argument for the threaded output. Probably it can just be ignored. If someone wants to tackle this they can probably get an idea of how to get started by looking at the implementation of the "sort" argument notmuch-search d