Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: exposing completions data to user
- X-seq: zsh-workers 39931
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: exposing completions data to user
- Date: Sun, 13 Nov 2016 00:00:41 -0800
- Cc: "Ben Veal" <benveal92@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject:cc :mime-version; bh=z3MBf3tHSjdStO7fKc6hjZkX28RumoZurCp0W2guuTA=; b=agHBtIbrI6mpuwG4ZjlGfTXTnO6zydNPNWTuKQaL/KqTxdcxhCs6yVwgQI7JhftFQD sG8+pkKM3TratesigIk2/hDE0rv5ea9cd+aj6t/pf0cY2//Or3K9Gvqdp/kK4zsnd2tZ f68nHu9R9O+GDPcFQeZE0pAaOlguiy2NB856FJK2D7LScwyBecOUVFnQklWTHpai0k02 /ThT3Jzr4e8ERI9XgxZ0UgmbO5mQGiEJKi8nA5AK6lGUerm2dyt/uiy/Jezg811IKjX6 Ea0L33RV08bpUmAUJTBnUe/prY9yYnA6juiUs/VKuRtvc1JhSkUK2X+WYJC1X8ANyVGM lmcA==
- In-reply-to: <87oa292hcr.fsf@it.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: <87pomy5xn9.fsf@it.com> <161018075006.ZM25400@torch.brasslantern.com> <87oa292hcr.fsf@it.com>
On Oct 25, 5:16am, Ben Veal wrote:
}
} Yes, I want to get the completions and their
} descriptions generically so that I can use zaw as an
} alternative method for performing completions.
}
} Any more advice?
I didn't think I had anything to add, but I found something else that
may help:
Look at Etc/zsh-development guide in the section on hooks. There is
a set of hooks defined by the zsh/zle and zsh/complete modules that
you can use to intercept various completion operations. (Depending
on how recent your zsh source is, you may need to look through the
source code to find all of these hook names.)
If your module adds a hook for "comp_list_matches", that *replaces*
the normal completion listing and instead passes the matches to your
module's callback in a struct chdata as defined in Src/Zle/comp.h (at
the very end of the file). This is actually the head of a linked list
of struct cmgroup that contain all the matches, so you'll have to
walk that list yourself.
Happy hunting.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author