zsh completion: enhance store navigation

yanchenko.igor at gmail.com yanchenko.igor at gmail.com
Tue Jul 3 15:57:15 CEST 2018

Hi Wouter,
I also prefer that behavior, I made a copy of _pass and did this change:

<       _files -W $prefix -g '*.gpg(:r)'
>       _values -C 'passwords' ${$(find -L "$prefix" \( -name .git -o -name
.gpg-id \) -prune -o $@ -print 2>/dev/null | sed -e "s#${prefix}/\{0,1\}##"
-e 's#\.gpg##' -e 's#\\#\\\\#' | sort):-""}

I didn't find more elegant solution.

On Tue, Jul 3, 2018 at 3:38 PM Wouter <info at lsof.nl> wrote:

> Hi all,
> I like pass very much and the zsh completions make navigating the store
> quite easy.
> There is however something I'd like improved. I have my passwords stored
> hierarchically and currently there are two drawbacks to how the
> completion works:
> - First, 'directories' that are being completed do not include a
> trailing slash, forcing me to type those manually which I think is an
> unnecessary distraction.
> - Second, I would like the option to complete only items at the current
> 'directory' level.
>    So if I have 'accounts/amazon.com', 'accounts/devel/github.com' and
> 'accounts/devel/bitbucket.com', I'd like `pass accounts/<TAB>` to return
> 'accounts/amazon.com' and 'accounts/devel' as results.
>    Especially at the root level this would allow for far easier
> completion of directories (currently I'm getting an unusably long list
> containing *all* passwords).
> I'm curious to know what others think about these changes. If I find the
> time I could try implementing them myself.
> Kind regards,
> Wouter
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20180703/48b99ed0/attachment.html>

More information about the Password-Store mailing list