From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mKmhK9pNx2HOYwEAgWs5BA (envelope-from ) for ; Sat, 25 Dec 2021 17:59:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id WO9AJ9pNx2HCDAAAbx9fmQ (envelope-from ) for ; Sat, 25 Dec 2021 16:59:06 +0000 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 4D21F27909 for ; Sat, 25 Dec 2021 17:59:06 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A3A4B5F71D; Sat, 25 Dec 2021 16:59:01 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id A05205F71A for ; Sat, 25 Dec 2021 16:58:58 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id 0858A5FC42; Sat, 25 Dec 2021 11:58:57 -0500 (EST) Received: (nullmailer pid 3083112 invoked by uid 1000); Sat, 25 Dec 2021 16:58:56 -0000 From: David Bremner To: Tobias Backer Dirks , notmuch@notmuchmail.org Subject: Re: [PATCH] cli: handle bash completion of all shared options In-Reply-To: <20210426181220.1097563-1-omgitsaheadcrab@gmail.com> References: <20210426181220.1097563-1-omgitsaheadcrab@gmail.com> Date: Sat, 25 Dec 2021 12:58:56 -0400 Message-ID: <875yrcoc33.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: ERY6MKSPTYNFUJL6RXQPVI25J6CS6T4E X-Message-ID-Hash: ERY6MKSPTYNFUJL6RXQPVI25J6CS6T4E 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; 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-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640451546; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=PKlemSVpyLeATMIOL0uB3LiCAmS9+i7u5Q/M3uc+Zlk=; b=SnR3kWMYX8NE34fDn3gI/81jOeui0LYMas/k6BVTgoQTXd+GzpIkIyH2uo9G2siXvYROTu xjbIz9PTL4pXAX8H8DAq84kOf2I48RLrSWQeRtCGZKcd85Sf9k+9Hp2axswFfOQI5cVpC+ X2J8SqQ3JbZ7Ig6OCThf+Pi0bvP2513FOrjWpYoXIKv5n7KnesSCaCcozpeTD2J9jODSnQ ZeYMBXWsGrnu/4TH8fA+4r3pd1lmyTjvCjNNbG56PyEnTsCO2Ezn/zh+fnPgvgcDb08bf8 YeXN4dE7Xl4SdbjORCEgcJqwvhIW+ZjXR4bkaCRYQHWnX5TLKdUKBDqP45H0+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640451546; a=rsa-sha256; cv=none; b=H69pJcVNszXezjFaonqwrCg73RK9yMnqom1/0MrcjHIuL/Isj4bI/DheGB91wCTNC7i1+A qw3bX6sGULWHEC2pZb6/Oh9562V/MUJZ1XI/GvaIjNBAUmlBR2M3kl1pSbcyptF9k1uCPE J4W0+11IRo6iALCMyWtcAm8O36wUi4OuBPcU8Bb1NpngXvNvPVKs2GTzxFAv00Tmo6Dh9t Fe8Akal9sfwClsP/cpsCCbF5//tcN0JU04aBGK2vhfr66ZzVU6LPjvt4ibkClXtY2Lgb8p PKAI0gsr6UnNSFskWZnAxDHDo+qS//Z10ekGie+KtRE3TjXSUg5tvevDJglFsg== 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: -3.24 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: 4D21F27909 X-Spam-Score: -3.24 X-Migadu-Scanner: scn0.migadu.com X-TUID: 0lwM+Tcl0c3U Tobias Backer Dirks writes: > A slight rework of base bash completion to handle all shared options. > This simplifies the handling of base commands and adds creature comforts > such as directory completion for --config, and removing trailing spaces > from options ending in an `=`. Also fixes a bug reported in [1], wherein > completion after an `=` produced erroneous output. > > [1]: id:20200602103703.GA13623@taurus.defre.kleine-koenig.org > > Signed-off-by: Tobias Backer Dirks I played with this a bit, and it seems it completes % notmuch search --config=foo perhaps that ought to be valid syntax, but for the time being it is not.