autocomplete issue

Simon Lackerbauer simon at lackerbauer.com
Mon Aug 7 21:46:33 CEST 2017


Hi Andrew,

On 08/07/2017 09:25 PM, Andrew Banchich wrote:
> Yep, auto-completion in my .zshrc file is enabled and those lines are
> there. It auto-completes names in my current directory, but not anything
> past that. Pass does the same thing. If I enter `pass amaz[TAB]` it
> doesn't pull up anything because "amazon" is in the "commerce" category
> in Pass. If I type `comm[Tab]` it does auto-complete to "commerce/" then
> I can type `ama[TAB]` and it will auto-complete as well. However, it's
> just a pain to navigate the directories each time, and I was wondering
> if there was a way so I can just type `ama[TAB]` for it to jump to
> complete to that immediately.

This seems to me like the expected behavior for shell completion in
general. It's not supposed to provide an arbitrarily deep find function
(there's a reason we have ``find``), but to let you *complete* a path
from beginning to end. (Just like you use shell completion to complete a
regular filesystem path on your system.)

passmenu provides functionality like this with a complete matching
against the full file path within the pass directory, but that's not
shell completion and instead employs various shell built-ins for that to
work.

> I emailed Jason about this and he said "Tab completion is built-in
> already. You probably didn't enable the completion files." Not sure what
> the completion files are or how to enable them since I can't find any
> documentation.

Did you mail Jason directly with the detailed description you've given
above, or a more general question about completion like in your first
mail? I think he might've misunderstood your problem as well.

Cheers,
Simon


More information about the Password-Store mailing list