From: "Benjamin R. Haskell" <zsh@benizi.com>
To: Nikolai Weibull <now@bitwi.se>
Cc: Aaron Schrab <aaron@schrab.com>, zsh-workers@zsh.org
Subject: Re: [PATCH] _git: Add completion for help subcommand
Date: Wed, 25 Aug 2010 23:29:55 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.01.1008252311460.4535@hp> (raw)
In-Reply-To: <AANLkTimOcmpFpTrrVMsuvjCR8puCnhoRVsmduci=SP8d@mail.gmail.com>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1108 bytes --]
On Thu, 26 Aug 2010, Nikolai Weibull wrote:
> On Sat, Aug 21, 2010 at 14:21, Aaron Schrab wrote:
>
> Seems fine except for this:
>
> > + local formats='(--info -i --man -m --web -w)'
>
> Although this is sort of nice it doesn’t follow the style of this or
> other completion files, so please write out the whole list in each
> line.
Doesn't seem very common, but a quick grep[1] of Completion/Unix/Command
shows at least the following use that style to an extent:
_bogoutil
_cvs
_global
_iconv
_whois
_wiggle
It always kind of bothered me that more didn't.
e.g. the lines in _git starting:
'(--name-only --name-status -u -p --stat --patch-with-stat [...]
'(--name-only --name-status -u -p --stat --patch-with-stat [...]
'(--name-only --name-status -u -p --stat --patch-with-stat [...]
'(--name-only --name-status -u -p --stat --patch-with-stat [...]
'(--name-only --name-status -u -p --stat --patch-with-stat [...]
It's just visual clutter. Is there a particular reason not to use a
variable?
--
Best,
Ben
[1] many false positives, but:
grep $'^\\s*["\'].*\\$' Completion/Unix/Command/*
next prev parent reply other threads:[~2010-08-26 3:30 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-21 12:21 Aaron Schrab
2010-08-25 22:16 ` Nikolai Weibull
2010-08-26 3:29 ` Benjamin R. Haskell [this message]
2010-08-26 7:55 ` Nikolai Weibull
2010-08-30 16:43 ` Bart Schaefer
2010-08-30 18:59 ` Nikolai Weibull
2010-08-31 6:57 ` Bart Schaefer
2010-08-27 0:20 ` Aaron Schrab
2010-08-27 8:29 ` Nikolai Weibull
2010-08-27 23:18 ` Aaron Schrab
2010-08-27 23:43 ` Nikolai Weibull
2010-08-28 0:51 ` Aaron Schrab
2010-08-28 7:54 ` Nikolai Weibull
2010-08-28 14:16 ` Aaron Schrab
2010-08-28 14:24 ` Nikolai Weibull
2010-12-02 0:44 ` Aaron Schrab
2010-12-04 18:10 ` Wayne Davison
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.01.1008252311460.4535@hp \
--to=zsh@benizi.com \
--cc=aaron@schrab.com \
--cc=now@bitwi.se \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).