Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _fc: allow the user to limit the number of events
- X-seq: zsh-workers 38803
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] _fc: allow the user to limit the number of events
- Date: Tue, 5 Jul 2016 22:07:49 +0000 (UTC)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1467756470; bh=XnRtSdKI6O0CMznmpObqwqz6Anyrt2wrlvt1imcu1qI=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=CqOjoB02hy5CQmDdMkXV/6AK4tJUrx0n5kVZbT1iaWzE1t2+KNfsHZDbv8GKrmouyrcxpIGOk0NKy+pQ0W5OnpVVIznRo/02L6LC5+gnymWBcfLTRAps1fPRMzWp832xbrR8sY222A8Y0oyIWzJmJjcdZZJLqPGseMK9fehWpOLcVMLQl0T/2qV3KiJX9qsf6OYmBYv5dFGqbvup3Y+vzbfuDWYCE6uHZc2brmTofJSBiTDO27iZA2vZusGBPmG8600zQyEUoexia2adl7330lPn512zwXRD38ygVacA18BHa3FfY4ZCfkcDVKx2TEYzgLTAMVCu7zoEx/X1zp1lXw==
- 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
- References: <812932212.4222957.1467756469555.JavaMail.yahoo.ref@mail.yahoo.com>
- Reply-to: Oliver Kiddle <okiddle@xxxxxxxxxxx>
Eric Cook wrote:
> + zstyle -s ":completion:${curcontext}:history-events" history-events _histno
The actual matches are added with just 'events' as the tag so the tag component of this style should be consistent with that.
I'd also agree that the style should have a more generic name. _dates has a max-matches-length style which does the same thing (apart from also allowing a percentage). You might also consider copying the special _next_tags handling from _dates.
> +++ b/Completion/Linux/Command/_sysstat
> @@ -1,4 +1,4 @@
> -#compdef -P mpstat (|cifs)iostat isag sadf sar pidstat
> +#compdef -P mpstat cifsiostat isag sadf sar pidstat
If you remove the pattern, the -P option is not needed here anymore.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author