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 ms0.migadu.com with LMTPS id wQmrMT/gA2F+XgEAgWs5BA (envelope-from ) for ; Fri, 30 Jul 2021 13:19:27 +0200 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 oNXLLD/gA2H1WwAA1q6Kng (envelope-from ) for ; Fri, 30 Jul 2021 11:19:27 +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) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7556BF1AB for ; Fri, 30 Jul 2021 13:19:27 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id D62162919E; Fri, 30 Jul 2021 07:19:24 -0400 (EDT) X-Greylist: delayed 491 seconds by postgrey-1.36 at nmbug; Wed, 08 Jul 2020 11:27:56 EDT Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by mail.notmuchmail.org (Postfix) with ESMTPS id 12D001F704 for ; Wed, 8 Jul 2020 11:27:56 -0400 (EDT) Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20200708151939euoutp02ee96aabb1686fff26d4a2788580f8923~f0BRpNxIY0705707057euoutp02W; Wed, 8 Jul 2020 15:19:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20200708151939euoutp02ee96aabb1686fff26d4a2788580f8923~f0BRpNxIY0705707057euoutp02W DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1594221579; bh=bgBt5xT9RJkEK+bcMABqoddkEbcwaAXgvb93uJ0Mc9w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VtzWL4LosXyb3/qcdhrnWb5r1gNdRPUiNrusqOrPkNt1AuTVqQePEaQm5DL+y5/M2 027/RgOB8SCXt9iqKt7Bi8dSs3Y45Bvk/dCxjVj7LOX0gjloBHsPA81cB6n2B3iuiH 5nwU/2kc7J9cN5urUnwmxvhOSsDyWfTapNz9A7cY= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20200708151938eucas1p23da6bee767230ce405022b40f40bfe08~f0BRdiwIU3262432624eucas1p2v; Wed, 8 Jul 2020 15:19:38 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id E8.B5.06456.A04E50F5; Wed, 8 Jul 2020 16:19:38 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20200708151938eucas1p26c111da083d7e8248f6d59593ed40fa7~f0BRF2nuQ3262332623eucas1p2w; Wed, 8 Jul 2020 15:19:38 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20200708151938eusmtrp225c66f3deea7f8db127caa6e4091b0e9~f0BRFTHT00983609836eusmtrp26; Wed, 8 Jul 2020 15:19:38 +0000 (GMT) X-AuditID: cbfec7f2-7efff70000001938-95-5f05e40a355a Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id BF.D4.06314.A04E50F5; Wed, 8 Jul 2020 16:19:38 +0100 (BST) Received: from localhost (unknown [106.120.51.46]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20200708151938eusmtip2f6f318133be2871d9f4096997d2551fb~f0BQ8JD9O1937819378eusmtip27; Wed, 8 Jul 2020 15:19:38 +0000 (GMT) From: Lukasz Stelmach To: Daniel Kahn Gillmor Subject: Re: [PATCH] completion: remove "setup" from the list of possible completions Date: Wed, 08 Jul 2020 17:19:25 +0200 In-Reply-To: <87o8oxu1xv.fsf@fifthhorseman.net> (Daniel Kahn Gillmor's message of "Thu, 02 Jul 2020 15:55:24 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCKsWRmVeSWpSXmKPExsWy7djPc7pcT1jjDXZ+sbRo7f7MZHH95kxm i+ete5kcmD3OdrezeuycdZfd49mqW8wBzFFcNimpOZllqUX6dglcGec+bmIrWCla8eHobsYG xveCXYwcHBICJhLr+j27GLk4hARWMEr8eTOLHcL5AuQc3wTlfGaUaDs5kRmm49FbJoj4ckaJ A/deMUM4zxkldp55xwRSxCagJ7F2bUQXIyeHiIC+xJm7F1hBbGYBW4n7G6eA2cIC4RK9Ezax gdgsAqoSCzr+sYDYnAJlEst2rgOr4RUwl5h5Zw5YXFTAUmLLi/vsEHFBiZMzn7BAzMyVmHn+ DSPIDRIC09klOtZuZAJJSAi4SCz6+oMVwhaWeHV8CzuELSPxf+d8John6iUmTzKD6O1hlNg2 5wcLRI21xJ1zv9ggbEeJ241zoOr5JG68FYTYyycxadt0aJjwSnS0CUFUqwADdA/UFCmJ3lcr GCFsD4kr37pZIUHVxChx+fMZ9gmMCrOQvDMLyTuzgMYyC2hKrN+lDxHWlli28DXzLGgorlv3 nmUBI+sqRvHU0uLc9NRiw7zUcr3ixNzi0rx0veT83E2MwPRy+t/xTzsYv15KOsQowMGoxMM7 YQNrvBBrYllxZe4hRhWgSY82rL7AKMWSl5+XqiTC63T2dJwQb0piZVVqUX58UWlOavEhRmkO FiVxXuNFL2OFBNITS1KzU1MLUotgskwcnFINjFMcL1/t/r+BMb1QjPvVky2J/wVl2ZuuB5be Penz8hfbkgyD8OOWbT+8NcsMlwadC6xY5WhkL1FflcLHUbP+t8lyk7hLxb2de8/xyq8RkqzQ qFhpvnPuOtnd1z//d74yq22+9MQVR5Y92cHe+kaT74r/8tv8Ls9kFtdvt2Ldkd9jtkN4ak/S CiWW4oxEQy3mouJEADKJrP83AwAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprNIsWRmVeSWpSXmKPExsVy+t/xe7pcT1jjDY68UrRo7f7MZHH95kxm i+ete5kcmD3OdrezeuycdZfd49mqW8wBzFF6NkX5pSWpChn5xSW2StGGFkZ6hpYWekYmlnqG xuaxVkamSvp2NimpOZllqUX6dgl6Gec+bmIrWCla8eHobsYGxveCXYwcHBICJhKP3jJ1MXJx CAksZZT49uAtO0RcSmLl3PQuRk4gU1jiz7UuNoiap4wSv7dNYgapYRPQk1i7NgKkRkRAX+LM 3QusIDazgK3E/Y1TwGxhgVCJj1/nMYGUCwGVb7gZBBJmEVCVWNDxjwXE5hQok1i35RAjiM0r YC4x884csLiogKXElhf32SHighInZz5hgRifLfF19XPmCYwCs5CkZiFJzQLaxiygKbF+lz5E WFti2cLXzLOgjlu37j3LAkbWVYwiqaXFuem5xYZ6xYm5xaV56XrJ+bmbGIGRse3Yz807GC9t DD7EKMDBqMTD+2ITa7wQa2JZcWXuIUYVoDGPNqy+wCjFkpefl6okwut09nScEG9KYmVValF+ fFFpTmrxIUZToD8nMkuJJucDozmvJN7Q1NDcwtLQ3Njc2MxCSZy3Q+BgjJBAemJJanZqakFq EUwfEwenVANj/N+5S5qqGYJkUu7yGs/Zl2U/o5ihcFVsgPkc2QX+5TXOz94ttU84+eph/WkZ IRtlg85DIiyOFrVzbS9fkk6PKZMPdy5NDJCyubRcMGHHXDXWY88tzmYoWqRHZbHyp+nuOF92 dFHeHW+jrZGm+RNZblapKGZ5J1Zqqu7P5i9ex1HR12cbqsRSnJFoqMVcVJwIAObpohOuAgAA X-CMS-MailID: 20200708151938eucas1p26c111da083d7e8248f6d59593ed40fa7 X-Msg-Generator: CA X-RootMTR: 20200708151938eucas1p26c111da083d7e8248f6d59593ed40fa7 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20200708151938eucas1p26c111da083d7e8248f6d59593ed40fa7 References: <87o8oxu1xv.fsf@fifthhorseman.net> X-MailFrom: l.stelmach@samsung.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: WB5VKAWM7774PSHGWD2GWHTOVKYHZEOA X-Message-ID-Hash: WB5VKAWM7774PSHGWD2GWHTOVKYHZEOA X-Mailman-Approved-At: Fri, 30 Jul 2021 11:19:22 -0400 CC: notmuch@notmuchmail.org 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: multipart/mixed; boundary="===============7755239885709525026==" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627643967; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZfmQ/hZkXLkw3wgTN+3a+rV35kHfVD9YzO7wlAPe7g8=; b=NztVGJf9aqWZMaiEVatnMyftjATAa7DzbkX4nRcUdI5vI1VK79bvolXCLiFeu9EU23hjF4 XlS3HHyl8tOBDNpakYjmutT7PtXSWSdl73Ias8L+BHWyUdf4g3e0H4ml2VmJYzLvF6f2FC Tirft6ItHamCssLcxJQ4XiNlTe//busZ2ns0OUT6uEVb8bZVg2LNG20pY1CQyZa41ZPc9/ LLo6EzjEtqY9W6O9e49zVeT8RAp63mrstW6G1yGIyqKDh71wE6ophjlDCFHNWLdAY/hpI+ fM3FDZWtm6OM6TdxILzHPYPeY0S78J18ZGezWnUwehyfwbVVAJgiEowz2WsAGQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627643967; a=rsa-sha256; cv=none; b=GJuFzQ49a4L0VCER9H9eBThY+pRFxojI8z51jyv58Us0sBubxiAV75QNZgoUkJZTdEf9RK 48r6hP0fKCmZNt5a5HA0vihtuJ5vuKR+MhGhr+5QHNzi7nNQixOg9gEnC+TcBjYvL2Blib qjLp20sQ7mUZPzUqV4tbfgVpGUgFZTLAzrJBpbLD2AejzHkvk26s/HhAyN9g6h+qTyJf1X AAtfDXwVtmr5/VYHrJKYjPkZUwR4VOK9G6WdaWl+BsOBx8lxhp4Z3RbEhdF9DMjVwErEsj RC+OzVDLq5oKh1c+d8HgfkBmAPCcAeIiljbYNXnlD0QNigzhqyfSLUNB6MbQPA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=samsung.com header.s=mail20170921 header.b=VtzWL4Lo; dmarc=fail reason="SPF not aligned (relaxed)" header.from=samsung.com (policy=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-Spam-Score: 1.23 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=samsung.com header.s=mail20170921 header.b=VtzWL4Lo; dmarc=fail reason="SPF not aligned (relaxed)" header.from=samsung.com (policy=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: 7556BF1AB X-Spam-Score: 1.23 X-Migadu-Scanner: scn0.migadu.com X-TUID: oger3v1isu7K --===============7755239885709525026== Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable It was <2020-07-02 czw 15:55>, when Daniel Kahn Gillmor wrote: > On Wed 2020-06-24 21:44:01 +1000, Peter Wang wrote: >> On Mon, 22 Jun 2020 12:22:50 +0200 Lukasz Stelmach wrote: >>> It was <2020-06-20 sob 12:53>, when Reto wrote: >>>> On Fri, Jun 19, 2020 at 12:40:49PM +0200, =C5=81ukasz Stelmach wrote: >>>>> Having "setup" in the set requires entering three instad of two >>>>> characters for "search". Since "setup" is rearly used it makes >>>>> little sense to have it in the set and cripple UX for much more >>>>> frequently used "search". >>>> >>>> I very much disagree with this patch. The completions should >>>> contain all possible values, saving a single keystroke is certainly >>>> not a valid reason to remove a valid option from the completions. >>>> >>>> Write an alias into your bashrc if that bothers you so >>>> much... Then you can save much more keystrokes. >>>=20 >>> I already have several aliases covering most of my use cases, >>> however, I still use "notmuch search" from time to time and I came >>> to a conclusion expressed in this patch. Of course, as a random >>> user, I can only suggest and by no means insist on applying it. >> >> Another possibility may be to rename "notmuch setup" to "notmuch >> init", treating "setup" as a deprecated synonym for "init". The >> completions would include "init" but not "setup". > > I sympathize with everyone struggling with the first-world problems in > this thread. :P > > If i had to choose between the status quo and Lukasz's suggestion of > not completing "notmuch setup", i'd choose the status quo. > [...] > > Overall, i value consistency and completeness and i would not like to > see the tab completion be either an inconsistent or incomplete > representation of the options available to the user from the command > line. How about checking for $NOTMUCH_CONFIG and adding "setup" if the file does not exist? =2D-=20 =C5=81ukasz Stelmach Samsung R&D Institute Poland Samsung Electronics --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEXpuyqjq9kGEVr9UQsK4enJilgBAFAl8F4/0ACgkQsK4enJil gBBMiwf/cRmKH59R+NxS7H9rxebqiWcl6qFuNbVsnUzpIrNKhjWGQfE7BTQmLMRI uVO/S8+8kJBQgl4aS5YOWAD+psqH7RQ1KqFo4uZSG5ju5mnBQt+qdCCo6BzePbqu KpASuEgzNceHo9qH8jTK9pCQF8Tgj908rMPupym3LuoiB7V6t3Ql15Zus0/LGRAt WnuGS2zh9IkywgXFEMRgr0rAchHwfUw0oAK/fwrw5T5WIfSM5QJknpAO58NAbdb4 CUer/NbNEshKQS4+UVLFanMWEus6lObPdomPRx2cFliQnjCVcZ5rfYxmuuQR6tuZ RsizfoIbf0aLNdJmHlj40fG8Itl6Qg== =Ypd+ -----END PGP SIGNATURE----- --=-=-=-- --===============7755239885709525026== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7755239885709525026==--