From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OCUTKwBH/l4RQAAA0tVLHw (envelope-from ) for ; Thu, 02 Jul 2020 20:43:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GBDjJgBH/l65fQAAB5/wlQ (envelope-from ) for ; Thu, 02 Jul 2020 20:43:44 +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 (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2CF6F9401CB for ; Thu, 2 Jul 2020 20:43:43 +0000 (UTC) Received: from [144.217.243.247] (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 46B9A1F9B8; Thu, 2 Jul 2020 16:43:34 -0400 (EDT) Received: from che.mayfirst.org (unknown [162.247.75.117]) by mail.notmuchmail.org (Postfix) with ESMTPS id A8E191F705 for ; Thu, 2 Jul 2020 16:43:31 -0400 (EDT) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1593722610; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=BL50WaPaBce+BEXX7QqGIrJjpIBg5fTq29/PmZBwEgg=; b=3Rxw2aki7QgLqR0qLTNeRqBsIK4PkBrVprcOFQcgPSPOoZce7uPBk7Y3kYz2m9+lcEqlK U52wf7bKFj/HsPLDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1593722610; h=from : to : cc : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=BL50WaPaBce+BEXX7QqGIrJjpIBg5fTq29/PmZBwEgg=; b=EGZf4S8IN4sNZM1GPmE94qyXa7k1TXM9AcuRe8emBFtxMUIeJfr1tSP9BJ5MaZF9ULPFR k5rzP+4wMq09YXBXy7NArdqnLGj9pMhUMdwL4fxphOW4raQtHVs76d1mYy4KVjmebfaGWcM DX665TQc5uqySsbtmLhLRjEWiXLzVgPzZ4YQnVk/KSMRDXcalDiAzzfbXk+FVxH9lzFfpGw lTLxzmKdBOLmOTAAX7M2XMGcdhmxlSx1brMJWI4bTFxXmMIf5E4QOwSRvaMJOYv7Dc5TdXz bfU0Z1fuWfYD3giEOWQWdRuJ+HMrwaZgUm4UE3A+MMxqmjlP8ujMaQNteBcw== Received: from fifthhorseman.net (unknown [IPv6:2001:470:1f07:60d:f2de:f1ff:fec3:d109]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 5BE2DF9A5; Thu, 2 Jul 2020 16:43:27 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 63B5420297; Thu, 2 Jul 2020 15:55:25 -0400 (EDT) From: Daniel Kahn Gillmor To: Peter Wang , Lukasz Stelmach Subject: Re: [PATCH] completion: remove "setup" from the list of possible completions In-Reply-To: <20200624214401.GG10621@kurr.localdomain> References: <20200620105310.6ttlssp6rv6bqm2u@feather.localdomain> <20200624214401.GG10621@kurr.localdomain> Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEXEK/AhYJKwYBBAHaRw8BAQdAr/gSROcn+6m8ijTN0DV9AahoHGafy52RRkhCZVwxhEe0K0Rh bmllbCBLYWhuIEdpbGxtb3IgPGRrZ0BmaWZ0aGhvcnNlbWFuLm5ldD6ImQQTFggAQQIbAQULCQgH AgYVCgkICwIEFgIDAQIeAQIXgAIZARYhBMS8Lds4zOlkhevpwvIGkReQOOXGBQJd5Hw3BQkFpJWB AAoJEPIGkReQOOXGDYEA/j0ERjPxDleKMZ2LDcWc/3o5cLFwAVzBKQHppu0Be5IWAP0aeTnyEqlp RTE7M8zugwkhYeUYfYu0BjecDUMnYz6iDLgzBF3kewUWCSsGAQQB2kcPAQEHQK1IuW0GZmcrs2mx CYMl8IHse0tMF8cP7eBNXevrlx2ZiPUEGBYIACYCGwIWIQTEvC3bOMzpZIXr6cLyBpEXkDjlxgUC XeR7TwUJAiGl/gCBdiAEGRYIAB0WIQQsv6x2UaqQJzY+dXHEDyVUMvKBDwUCXeR7BQAKCRDEDyVU MvKBD7KmAQCHs+7588C4jto6fMje0Nu97zzoppjJM7lrGF2rVnbHvwD+MgmGUbHzPSUrTWnZBQDi /QM595bxNrBA4N1CiXhs2AMJEPIGkReQOOXGpp0BAM7YeBnt/UNvxJAGm4DidSfHU7RDMWe6Tgux HrH21cDkAQC9leNFXJsQ7F2ZniRPHa8CkictcQEKPL8VCWpfe8LbArg4BF3ke5wSCisGAQQBl1UB BQEBB0Cf+EiAXtntQMf51xpqb6uZ5O0eCLAZtkg0SXHjA1JlEwMBCAeIfgQYFggAJhYhBMS8Lds4 zOlkhevpwvIGkReQOOXGBQJd5HucAhsMBQkCIaVkAAoJEPIGkReQOOXGdYcBANYnW7VyL2CncKH1 iO4Zr0IwfdIv6rai1PUHL98pVi3cAP9tMh85CKGDa0Xi/fptQH41meollLW5tLb/bEWMuUNuBQ== Date: Thu, 02 Jul 2020 15:55:24 -0400 Message-ID: <87o8oxu1xv.fsf@fifthhorseman.net> MIME-Version: 1.0 Message-ID-Hash: KYXD5MQ6Z7SZHHQL2D6VLKSA2YN4B2MV X-Message-ID-Hash: KYXD5MQ6Z7SZHHQL2D6VLKSA2YN4B2MV X-MailFrom: dkg@fifthhorseman.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 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="===============8342597101324457481==" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (body hash did not verify) header.d=fifthhorseman.net header.s=2019 header.b=3Rxw2aki; dkim=fail (body hash did not verify) header.d=fifthhorseman.net header.s=2019rsa header.b=EGZf4S8I; dmarc=fail reason="SPF not aligned (relaxed)" header.from=fifthhorseman.net (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-Spam-Score: -0.47 X-TUID: rzhN5bONSc0S --===============8342597101324457481== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 chara= cters >> >> for "search". Since "setup" is rearly used it makes little sense to h= ave >> >> 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 ke= ystroke is >> > certainly not a valid reason to remove a valid option from the complet= ions. >> > >> > Write an alias into your bashrc if that bothers you so much... Then yo= u 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. I value having all non-deprecated subcommands show up in tab completion. This is particularly important for someone who is just starting to use notmuch, and may use tab completion for discoverability. If they can't find the very first expected subcommand to be used in tab completion exploration, that is pretty weird. That said, i appreciate Peter's clever attempt to thread the needle. Unfortunately, changing "setup" to "init" moves "notmuch insert" from "notmuch i" to "notmuch in", so you're sort of robbing from Peter to pay Paul. And I'm having difficulty coming up with another good subcommand name with an unambiguous prefix to move "setup" to. I also note that we have no independent manpage for "notmuch-setup", it's just symlinked from notmuch.1.gz. Another "clever" approach to assuage the tab-completion-for-conveience advocates would be to introduce a (non-deprecated) alias for "search" that itself would be fewer keystrokes before tab completion (e.g. "srch" is two keystrokes because "sr" is unambiguous, "query" is just one, because "q" is unambiguous). 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. --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQQsv6x2UaqQJzY+dXHEDyVUMvKBDwUCXv47rAAKCRDEDyVUMvKB DweLAQCrGGSCEA0FrdtzXZcevjTUwTCJkPcS+uFArCjrvMPUhQEAsWED6moTXdNq qMXw6WxH8P9vsDLSBbWRD6XZFYg8LQk= =/0YP -----END PGP SIGNATURE----- --=-=-=-- --===============8342597101324457481== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-leave@notmuchmail.org --===============8342597101324457481==--