Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Having a hard time dealing with a completion collision
- X-seq: zsh-users 24689
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Doron Behar <doron.behar@xxxxxxxxx>
- Subject: Re: Having a hard time dealing with a completion collision
- Date: Tue, 18 Feb 2020 16:50:19 +0000
- Cc: zsh-users@xxxxxxx
- In-reply-to: <20200218163725.zdkiord4uaxmutsk@NUX>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20200218163725.zdkiord4uaxmutsk@NUX>
Doron Behar wrote on Tue, 18 Feb 2020 18:37 +0200:
> I tried putting the replacement `_todo` file in my first fpath directory
> - `~/.zsh/comp/tested/` but surprisingly I still got the failing devtodo
> completion loaded instead of the replacement completion.
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)
> 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.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author