Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Using _describe for completions.
- X-seq: zsh-users 22935
- From: Nicholas Wiles <nhwiles@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Using _describe for completions.
- Date: Thu, 12 Oct 2017 09:19:40 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=loa98QSTeWkEfK7BeF2w1uDGUTOVEwZU0jx5sWUtYV0=; b=SglB0GVH7VGhqVcdwQ2Vnhp0MGFS/ggYtXQrNv4OLzR4cC+mgAcEiqgr3BeYk45X2i brjYpkPDFt+CVyX2GSzw74G+b7sBh0OTcKFBX/KR62ussPK6unxaesXuNN0BT2HRsBQq rotrFcgKIdd7tzAN3V4l60qZrost3r2toCVDvehOhbWtOvtFmxtJx6k7ehLt3akTzaOa 5FuaqZPMC/COMU5cJaDSMgRQ6sPOvJdy3FEa90PIlB4FYVop4Fz6gzK+g1rIvdMH3Cn/ Cs7bxqsajsK/A/4yqnqPAmNEMR8RdDo3WD5Af53uqJ5qIAlQka9lKEXl1T+4ZN3dKbhg xMGg==
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
Hello fellow users, fist time poster. I apologize if this is not the right place.
On zsh 5.2 I am trying to write a completion function using the _describe builtin.
__foo_complete_func() {
list=(foo:'description for foo’ bar:'description for bar')
_describe '’ list && _ret=0
}
compdef __foo_complete_func foo
When autocompleting just “foo ” I get the expected:
bar -- description for bar
foo -- description for foo
However when tab completing "foo b" I get no matches shown. I don’t understand why this is. I would expect to get the completion "foo bar”
Any ideas?
Thanks in advance,
Nic
Messages sorted by:
Reverse Date,
Date,
Thread,
Author