Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
SUGGESTION: Simplify auto-completion, a little
- X-seq: zsh-workers 32387
- From: mail@xxxxxx
- To: zsh-workers@xxxxxxx
- Subject: SUGGESTION: Simplify auto-completion, a little
- Date: Sat, 15 Feb 2014 21:45:49 +0100
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=bwe.im; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:subject:date; s=mesmtp; bh=YESLzP5eNFdXQHLXzUaHpi3 Bm0M=; b=uIlBYW8/6A/00ks+2mcdB+e4VLqykJi0eZfr/sWHRxAG5/h+JcIsssV J/GBXllNLCfZisnbB7IocDgvry3N0KBG1O5ZsSRZ49Hr17NzdXJcSZqSgOGYRbg6 OeJyVL/arC/vFThWAQ253vDAIJbBGj7i1NdAoh5bVPMzD6/pQ0GA=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:date; s=smtpout; bh=YESLzP5eNFdXQHLXzUaHpi3Bm0M=; b=fb8C9uDLurJuuD/Fgf3RiipPm/pq k4cp9PtvOQSZNCC4g+TUzjp5mNZiPiDrCzX9wKW5jJrBpnyGcv7tqXe/m7bRVYWs 2Tzy/RFhv8dRFJIMkEOSzmE2dT2A5wlSQqMlAZ7hgmjgEmXNi93Ci17MWd+t6hqo 4T02tjmxuCow7ok=
- 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
Hi zsh folks,
kindly note my suggestion. Please smash or value it:
Now: git co<tab>m<tab>
Future: git co<tab>m
Result: git commit
git co<tab>
commit -- record changes to repository
commit-tree -- create new commit object
config -- get and set repository or global options
count-objects -- count unpacked objects and display their disk
consumption
I hit ‘m<tab>’ to complete the expression to `git commit` (alternative
is <tab><tab>).
It would be sufficient just hitting the symbol ‘m’ to auto-complete to
`git commit`.
Why? The ‘m’ is in this instance the symbol which identifies ‘commit’
(excludes the other). There is no requirement for another hit on the
<tab> key because it already has been hit once.
This can be done with expressions of any length.
Regards
Benjamin
Messages sorted by:
Reverse Date,
Date,
Thread,
Author