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 ms0.migadu.com with LMTPS id L1BFM1iDu2DCPQEAgWs5BA (envelope-from ) for ; Sat, 05 Jun 2021 15:59:52 +0200 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 GDwFLliDu2DFMAAAB5/wlQ (envelope-from ) for ; Sat, 05 Jun 2021 13:59:52 +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) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0004F26866 for ; Sat, 5 Jun 2021 15:59:51 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 67BAC2B250; Sat, 5 Jun 2021 09:59:47 -0400 (EDT) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by mail.notmuchmail.org (Postfix) with ESMTPS id D86CC20017 for ; Sat, 5 Jun 2021 09:59:45 -0400 (EDT) Received: by mail-wm1-x32b.google.com with SMTP id v206-20020a1cded70000b02901a586d3fa23so2884912wmg.4 for ; Sat, 05 Jun 2021 06:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zQcMAoloL2d3R01BgdrPJYQhZdEhb7a2eqWual94zbc=; b=r/rzTIWujdSSHyj7AabHcxgrXWao7u42nHrKAedyWdKDbLu551OuQtV48R+QrwrdCM 9qoMbPgYMhCKXS3oQNliudKLN5t1mEa3i1Cn97xNfr4P119fEy92esAC3VW5xDBYbQC2 o5zUCESgweyhz2or2FIRxXteGBCCPaddHY3Szj7KWU+hdrC4Th2NCZxFCjg0ftMZMDdc baXlHYlNzMZTp+EXPhvbMJxCId48k5nHxpVCfyN/SVGeqOqZ5tc+a3xL8khpiIo4BFjR uNYYlsemzDlBAlvMY6z8ct7bTWuPx00dfXlP7Ugxc1aYnLG5nScK12tgW5PJJHaak0nO W42w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zQcMAoloL2d3R01BgdrPJYQhZdEhb7a2eqWual94zbc=; b=dex64OWzPqlmKrBIM2jAwvN0e00b1hx84+34K2zqeQgsdEyazA86KQ+lq1YdpIVHQS GYqHE6Fux5Eqqg4HVv2Sa7x9CrqqNKo/wRYm2thx8QhP/EH+6hzbbj+nAUNPCuYUgk0S zfw9ndI3ozbQ6cYAIxT4oFxEhGM+5PlS5sbQfO8YJi63BBnaIqrRKeTFXZdOrDzbyZmU O6KiyKT83jyOLxPZm9+66VYz94bWGjGLuw32A9yqf98oySVwWZm46Dl/h7c1ww8mrgIf Sp/Gjjz6GLBpbLSywT5TkYgEbeXOmBcxhTG817UX/ruK75BDs2csuKb8jCoPkjjjDs9G swCA== X-Gm-Message-State: AOAM531bSOq3MfsrQ/+2rs3ogqtRVWd0/ESErBnl4/GWzSykMdy+55Aw 4CCvvEassbYsuv/eLZHip2/4721Gf/eXz3vbfwg= X-Google-Smtp-Source: ABdhPJxwHZIdWStHm0G6t8dB2hmBCMog+mzbzAVA6WHGcElpuagFxzUnCO7CVgc7am7Js698gccEPeTBYv7/o/+yHXA= X-Received: by 2002:a1c:4d13:: with SMTP id o19mr8433543wmh.100.1622901582423; Sat, 05 Jun 2021 06:59:42 -0700 (PDT) MIME-Version: 1.0 References: <20200620105310.6ttlssp6rv6bqm2u@feather.localdomain> <20200624214401.GG10621@kurr.localdomain> <87o8oxu1xv.fsf@fifthhorseman.net> In-Reply-To: <87o8oxu1xv.fsf@fifthhorseman.net> From: Felipe Contreras Date: Sat, 5 Jun 2021 08:59:31 -0500 Message-ID: Subject: Re: [PATCH] completion: remove "setup" from the list of possible completions To: Daniel Kahn Gillmor Message-ID-Hash: CBEX5DEAXHC7QYPD7CSCBXA73NLZJRKL X-Message-ID-Hash: CBEX5DEAXHC7QYPD7CSCBXA73NLZJRKL X-MailFrom: felipe.contreras@gmail.com 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: Lukasz Stelmach , "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: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622901592; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=LAA/nuKQ0eaTnKNLAyEd2hZNq5hLzODxKmvY3tbyuFc=; b=eN5s3W/IlRAZba6690Bn/CS55mfUAts8RkeNfYev9ferKlrW+jfyYShHziA02hRsRBvevS YCklp8uSf32UvAm1VCmnYFwDdZJWMeNUCHnmAciMWuuClhzPqqt6KbnX5g7VwyZbv8A+cD xepcMVpNX2Ydyd1GqCyi32QmjEOKqZ2E6YLIbc4UrWJoOZ0SvmJhCPCrMZ0hVPe0fYeIPC s7BfHPXlm5HJul13acEqd21nBCxb0WSHPNOYdStFmTnwvKz5f73HoY53YiHUYE1SeK4wpl I3czBTBtXYxDqSjFdNLHq1qosUZZhKKIuZQpNm8zYmPl9BeqoVormZZnwlNDGA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622901592; a=rsa-sha256; cv=none; b=Ae+u8BijsyDTF3pTZKfrOPolILfjDdY0rkEBf2cXJb+T6SsFxM4INmXTOP31GOiCzfPmvA OPAmkCaq0UUrEjZmxxDe61EjHb1Ln8hSc1HYDsLrViB1VJ0UiLYNC9ov8m2ccuvnwmqycu jbW7OIyPysvoPE9kX+uB0VbAmAGk/2eLSKRlrDpThVYMgBtHhpp7JhUVaMC5+1/ZHQumB9 GSbeNkYSUqXFoopROdVO8zwWJZonBXufFVkIPNkGqcGa3LD02YKulL8rVj7NTyJL5Dy4xI o22PK73r0t9IakLWsFLx2I++FzHN84ePHlItGgDn8JLLeHE6tdYrrb1QonDGGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b="r/rzTIWu"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.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: -0.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b="r/rzTIWu"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.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: 0004F26866 X-Spam-Score: -0.91 X-Migadu-Scanner: scn0.migadu.com X-TUID: jGTWEh3I6fyS On Thu, Jul 2, 2020 at 3:43 PM Daniel Kahn Gillmor wrote: > 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. Both are right. And while you might have to choose, the project does not. What do you do when a single behavior doesn't accommodate most users? You add a configuration. In git there's a configuration: "completion.commands=-setup", that takes care of the Bash completions. And for zsh completions there's a more elegant solution. Commands can be grouped in tags. By default only the "common-commands" tag is shown, so for example "git " shows "fetch", but not "for-each-ref". If you type "git fo" however, "for-each-ref" is completed. The user can change this and show all commands with: zstyle ':completion:*:*:git:*' tag-order 'all-commands' So really, we can have the best of both worlds. All you have to do is decide what kind of configuration you want. Cheers. -- Felipe Contreras