From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 8efdbae1 for ; Tue, 18 Feb 2020 19:15:18 +0000 (UTC) Received: (qmail 28993 invoked by alias); 18 Feb 2020 19:15: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: List-Unsubscribe: X-Seq: 24691 Received: (qmail 27052 invoked by uid 1010); 18 Feb 2020 19:15:11 -0000 X-Qmail-Scanner-Diagnostics: from mail-wr1-f52.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25725. spamassassin: 3.4.2. Clear:RC:0(209.85.221.52):SA:0(-2.0/5.0):. Processed in 1.617359 secs); 18 Feb 2020 19:15:11 -0000 X-Envelope-From: doron.behar@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.221.52 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-disposition :content-transfer-encoding:in-reply-to; bh=RDp6+eBh+vj6npGUAhN+dWgrdtGgK9S5Upl5KOqjRj0=; b=ctnkXQTp9enf432zZe6nlzdmSw7tZ6yvV8EmVzLvHwMm6cxewJ8NmzLhWH8Sttxc2L OG93qJN/XPdmXGcNCHIZYtGehbNzeDIVThgiB7G7E3cTekH68K075dwnIdcelwb2tXVW Ib+toOwT86cQ0Tii47Iadwar2XiUdMy1EMyGv7gw+i80quSqBVBXYQ8bI4JUF//M5fgf +cGEGS+FLMTWLEc1tFdj0l3jJnNrCArQA4j7bg5ngEPNj4N4eBkN7WvFp5g/wtAZD4eb ynup2wssoxMzcPb0TXBGQcHEKY2Ebrnjx7B3JoDXhtWMFbFJevvvXS8Qr0+SlcWrxVsl 5UZw== X-Gm-Message-State: APjAAAUNJwobm6hIAnBcgcEnJ4BCOTHL8OLO1W9f9djBdvmOClVTvdqr sm7+PpTeG4NpXVD3qOkNmCmqzonM X-Google-Smtp-Source: APXvYqzNIcwOUZhfnDn7P0VULlrpEHTm8AiHtUJsNp48ZrH7wl6oD8yBIDAYqbefyKYgX42fqS1GQg== X-Received: by 2002:adf:fd8d:: with SMTP id d13mr30935116wrr.208.1582053275208; Tue, 18 Feb 2020 11:14:35 -0800 (PST) Date: Tue, 18 Feb 2020 21:13:49 +0200 From: Doron Behar To: zsh-users@zsh.org Subject: Re: Having a hard time dealing with a completion collision Message-ID: <20200218191349.vsua62kg5ysm6d6u@NUX> Mail-Followup-To: zsh-users@zsh.org References: <20200218163725.zdkiord4uaxmutsk@NUX> <20200218165019.62581fbb@tarpaulin.shahaf.local2> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200218165019.62581fbb@tarpaulin.shahaf.local2> On Tue, Feb 18, 2020 at 04:50:19PM +0000, Daniel Shahaf wrote: > Hmm, interesting question. «autoload» prefers the first match of a > given /function name/, but it's possible that compsys prefers the > /last/ directory for determining the command-name-to-function-name > mappings? In which case, putting your _todo in the last directory > might help? (But read on) Didn't help. > > > Assuming I'm not interested in submitting a change to ZSH's source tree, > > what would be the best way to handle this collision? > > Run «compdef _todo todo» after compinit. That helped. Thanks! Regards, Doron.