Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How completions work, do they require fpath?
- X-seq: zsh-users 21180
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: How completions work, do they require fpath?
- Date: Tue, 26 Jan 2016 18:18:44 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=bv9uQQOMyqIT+1dU1GYRi87+zBVJW3pfdR/Jliau8bY=; b=K+uootXJsw6bLS8l6ZuaSUr7xE0AFGglduinkLmjZiwmITewMZYJo44tRzcCRR2Ect 4sutEkdI0dcjWoPOqaGdjKmEBaMzwjiPC0rFhQRLRnWXDpNTuNNEnS7x3D4L9mJOHzqR V6rXbZs8LGskSSbS4Po1Xr4kNB90ZUuVveFjBHXFjAJ4ydmraOqQKPo/ddrYIUbe0GGy M2HhiuV++ss5+ZrLCnHnCp+0y04IPC2b/whRjpUQKE1TLi9SZkgb+Slx6KK0wnY47jBr NLWdoMxVBTTEdcocpOKVYJiroxXOuZEVcNCoBlbIOrQuuQn2S9RWE5goLaA3iBjq/R68 kPpQ==
- 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,
my current understanding of the completions is that if a file-function
with name starting with "_", and having "#compdef ..." in first line
of content, is found in $fpath, then, if compinit is run, the function
will be autoloaded and used by _main_complete. Am I missing something
here?
Does this mean that compinit should be best run once after all needed
fpath updates?
A trick to avoid fpath for regular autoload functions has emerged on
this list. Is similar trick possible for a completion? How to load one
without running compinit and most of all, without updating fpath? That
is needed for Zplugin, which is now in nice state (except maybe for
lengthy code and zparseopts issues), e.g. can unload modules (deleting
bindkeys, restoring options, removing aliases, etc.), but doesn't
support adding completions via plugins.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author