<div dir="ltr"><div>Hi Wouter,</div><div>I also prefer that behavior, I made a copy of _pass and did this change:</div><div><br></div><div>127c127<br>< _files -W $prefix -g '*.gpg(:r)'<br>---<br>> _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):-""}</div><div><br></div><div>I didn't find more elegant solution.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Jul 3, 2018 at 3:38 PM Wouter <<a href="mailto:info@lsof.nl">info@lsof.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I like pass very much and the zsh completions make navigating the store <br>
quite easy.<br>
<br>
There is however something I'd like improved. I have my passwords stored <br>
hierarchically and currently there are two drawbacks to how the <br>
completion works:<br>
<br>
- First, 'directories' that are being completed do not include a <br>
trailing slash, forcing me to type those manually which I think is an <br>
unnecessary distraction.<br>
<br>
- Second, I would like the option to complete only items at the current <br>
'directory' level.<br>
So if I have 'accounts/<a href="http://amazon.com" rel="noreferrer" target="_blank">amazon.com</a>', 'accounts/devel/<a href="http://github.com" rel="noreferrer" target="_blank">github.com</a>' and <br>
'accounts/devel/<a href="http://bitbucket.com" rel="noreferrer" target="_blank">bitbucket.com</a>', I'd like `pass accounts/<TAB>` to return <br>
'accounts/<a href="http://amazon.com" rel="noreferrer" target="_blank">amazon.com</a>' and 'accounts/devel' as results.<br>
Especially at the root level this would allow for far easier <br>
completion of directories (currently I'm getting an unusably long list <br>
containing *all* passwords).<br>
<br>
I'm curious to know what others think about these changes. If I find the <br>
time I could try implementing them myself.<br>
<br>
Kind regards,<br>
Wouter<br>
<br>
_______________________________________________<br>
Password-Store mailing list<br>
<a href="mailto:Password-Store@lists.zx2c4.com" target="_blank">Password-Store@lists.zx2c4.com</a><br>
<a href="https://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">https://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
</blockquote></div>