From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qMDDCsCvr2KC2wAAbAwnHQ (envelope-from ) for ; Mon, 20 Jun 2022 01:22:40 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8LGFCsCvr2KzugAAauVa8A (envelope-from ) for ; Mon, 20 Jun 2022 01:22:40 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A0AAF3F8E1 for ; Mon, 20 Jun 2022 01:22:39 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4CAB65F41A; Sun, 19 Jun 2022 23:22:36 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 9205F5E54E for ; Sun, 19 Jun 2022 23:22:33 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id E843E5FBD7; Sun, 19 Jun 2022 19:22:31 -0400 (EDT) Received: (nullmailer pid 847083 invoked by uid 1000); Sun, 19 Jun 2022 23:22:30 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: v2 WIP commands to choose duplicates in emacs interface Date: Sun, 19 Jun 2022 20:21:46 -0300 Message-Id: <20220619232152.846823-1-david@tethera.net> X-Mailer: git-send-email 2.35.2 MIME-Version: 1.0 Message-ID-Hash: 6XKRRXTHDEPFWSJ7HLCZGTGPVIRLNPJ2 X-Message-ID-Hash: 6XKRRXTHDEPFWSJ7HLCZGTGPVIRLNPJ2 X-MailFrom: bremner@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; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1655680959; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=G0csRlOlYdGAW/GpFDCG2v04Fi1cD4R0hQxdGX48EXA=; b=eC3PaOxqlZgNdSuel/XfuaD3mUCAplWkBet++sHU/N9w7DNd1QNx76R2FF9bytiICxkz6+ NZ+RmQ/WwgIFCQv5bsgQLwXS+Pp0ID0hYeq5ZsUCjtqVBUP2VnLm33wlYHLypsk4wiGu1p yULG7EBsgkZoKPbNJ3uRUcjOXu3/1WCrTPzuc+N5bTeByGGAkuh3UcncIEWmhw0faUB2eU qGkt4m/5nW4aZikjDz3OfH0uLJtYp7LE1qsICvRpYFqghVh5/ZHSmZOlV959MstZ3swQ8i Sj3GkMXtbG4qrJPkA+LnAUo/+Syg0q/3AXStCT8I2QbK74zeDBc/AAKWWdh/3Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1655680959; a=rsa-sha256; cv=none; b=J7UV1lI8uHKc0IaBgHrtnL52FQMaps0XK03+4CoNnq4Rcv81IOifyyKVuGu6GwXqLLjhhw wzD9v5I401qmpImmdFBd7PCNuA9tRdBzA1KDLW+mQ9aqmVspljYW1zq/qj4pxOHCFSHbFN Xc3I4g2m5YDq/jBzqZJLfugYoj0DbJ2URni3qhZw5ToH8pNvDkdPlTSN41wN7na/jVchdR RXwLt26IxR2PdFk+ih6nrNzYPq6uicAMg9KwIoWQxDv5Mf7G7NlqLCoVYJEsccjoAxlSEx hU861a/w5sMOQqb2KUp8Bq9F9N9fyJSo37vyjoZ8WrkjxOLNcHfjKaWWiHrZTQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.12 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: A0AAF3F8E1 X-Spam-Score: -1.12 X-Migadu-Scanner: scn1.migadu.com X-TUID: 4910jZKQKv6c This is minimal, but I think usable. In notmuch-show mode % selects a different duplicate. Since all views (search / tree / unsorted) ultimately use notmuch-show to display a message, this works essentially everywhere. It needs better error handling, and one could imagine a nicer UI (completion maybe? keys to move to next or previous duplicate?). It also needs more tests, but before I invest in that I want to fix the one screen appearance; the main change here is the n/d indicator at the right margin. The first two patches in the series are generic and could be applied while we think about UI issues.