Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: git --pretty completion, and (new) completion for npm
- X-seq: zsh-workers 28890
- From: Johan Sundström <oyasumi@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: git --pretty completion, and (new) completion for npm
- Date: Sun, 13 Mar 2011 23:38:34 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=jmkSicuyjh0Zv7gjW88Ek1EZ+2QYD39VkXotd3aQZQQ=; b=ZD2MksWXMGoAq8qOUbt9CSuyKWmp5C+qHAY/RjHCvz9SvPXJ4o7kqt8j9QMYmpX5HD 88PluasBKvvyQEefQLcKdyUGetMq8xR2oIx6Kj432yxlttUkA1FZaNWtkjPxLJYWC2UR ZAbyxH0HwoIzgEJvGOtrMthAXd2o3NIABPNCE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XQXI2MXtzZ8JEo9JcnimplT/YDg4ISh8nXLeUdy3L1eE/F/LcdUqZz7mFKDWE82e7M HXSBEypsBfxBEpIgyV2v+y9/9it+HrYp4VpxpOiKvOWP7ZbuRFM28yNz6XQzKjXUSeNK GcV6i8F34Z/1RwsPCG2VIiMQW8bl8Kz8oL+Hw=
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
I just realized I have been using zsh for about fifteen years, and that the sane(r) completion system of zsh 3.1 has been around for more than ten. Both together must have saved me months of work and typing on aggregate, by now. Time for some celebration! :-)
I took to adding documented completion for to the git completer for syntax that is impossible to remember and hard to find in the man page; git log --pretty (and whichever other commands support --pretty / --format) now covers the whole lot except %w, which seemed like it would need a whole little state machine in itself.
Also, a Completion/Unix/Command/_npm (the node package manager) completer that delegates entirely to npm's built-in support.
Cheers!
Attachment:
_git-pretty.patch
Description: Binary data
Attachment:
_npm
Description: Binary data
Messages sorted by:
Reverse Date,
Date,
Thread,
Author