Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: X font completion is buggy
- X-seq: zsh-workers 35901
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: X font completion is buggy
- Date: Sat, 25 Jul 2015 10:30:31 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1437813032; bh=liJD9rDwHydxc62yJrkomPAPwapjO5/hudVY42757Z4=; h=In-reply-to:From:References:To:Subject:Date:From:Subject; b=KI2gjJ5SoU5Cr8rzThUz5ohncxvqsv0TfTBFJTp5kcuTftiaGEwHKzf1ZQErm++4iwTk9jq/fvWLlCnK7+mLAy2ROEcyAlcphAUBdzg1X3MjcBPdBBQDzjzdA/wATtLPWi6DwtzO4+JWLCEEXJ2KS7nancSlM9QrlbFXJ2xYLb23b0LV1XtDX6+uxGNQlznpJIRJdT0xs2RHbq93BhujR80+fzT2PQqk7Rw7uttGzpknXJwfP4bXLCRVW0bgN3nYWdjIOGIIGdOcqGcDDInzWlSx0Fucm0VrCd/vLMIuZHbmkg6BIkNK7/PEJVSl/CwNWVhMda5AVnp7KuhzGtaKHg==
- In-reply-to: <150724163126.ZM20996@torch.brasslantern.com>
- 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: <20150724214952.GA15359@zira.vinc17.org> <10638.1437778219@thecus.kiddle.eu> <150724163126.ZM20996@torch.brasslantern.com>
Bart wrote:
>
> Also this predates menu-selection so insanely long completion listings
> were more of a problem.
>
> I think we could safely do away with that filter.
That's perhaps best. Vincent's follow-up indicates that no filtering
would match his expectations.
There's ways this could be improved if old style X fonts were something
worth caring about: separating out aliases, indications of what
component you're on, handling * wildcards.
Oliver
diff --git a/Completion/X/Type/_x_font b/Completion/X/Type/_x_font
index a363b27..1202d82 100644
--- a/Completion/X/Type/_x_font
+++ b/Completion/X/Type/_x_font
@@ -9,8 +9,8 @@ _tags fonts || return 1
if (( ! $+_font_cache )); then
typeset -gU _font_cache
- _font_cache=( "${(@)^${(@f)$(_call_program fonts xlsfonts 2> /dev/null)}%%--*}--" )
+ _font_cache=( ${(f)"$(_call_program fonts xlsfonts)"} )
fi
_wanted fonts expl font \
- compadd -M 'r:|-=* r:|=*' "$@" -S '' -a - _font_cache
+ compadd -M 'r:|-=* r:|=*' "$@" -a - _font_cache
Messages sorted by:
Reverse Date,
Date,
Thread,
Author