From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10502 invoked by alias); 16 Dec 2011 03:47:11 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 16644 Received: (qmail 12116 invoked from network); 16 Dec 2011 03:47:08 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <111215194649.ZM7261@torch.brasslantern.com> Date: Thu, 15 Dec 2011 19:46:49 -0800 In-reply-to: Comments: In reply to Larry Schrof "Re: Having a tough time setting up completion." (Dec 16, 12:17am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: "zsh-users@zsh.org" Subject: Re: Having a tough time setting up completion. MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 16, 12:17am, Larry Schrof wrote: } } When we try adding a hyphenated string into the mix, things break: } } $ foo - # completes incorrectly to } $ foo add-property # This should have offered -x and --longword as } completions } } Any suggestions? I think you must have subtly misplaced a quote mark, or have an unexpected value in matcher-list, or some other zstyle we don't know about. Here's what I get starting from "zsh -f" plus "compinit -D" plus Mikael's compdef with add-property/delete/create appended to the array: torch% foo add-property create fifty one three and delete forth so two torch% foo -- torch% foo --longword torch% foo - --longword -x -- something I even tried "setopt completeinword" without the above changing. BUT: If I both use my full configuration AND place the cursor BEFORE the hyphen: schaefer<504> foo - schaefer<504> foo add-property There, matcher-list has kicked in and completed things where the part before the hyphen is not empty. Are you sure that's not what is happening to you?