<div dir="ltr"><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">> Then again, the beauty of KISS is that you don't need to use `pass show` in scripts. You could just as</span><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">> well use `gpg -d`, for consuming cleartext passwords, or `ls`, for showing subdirectory contents, directly.</span><br><div><br></div></div><div>Don't forget you need to recreate<span style="font-size:13.1999998092651px;line-height:19.7999992370605px"> pass's logic around the finding the password store and picking the right GPG key. Yes, it's great one can work around pass to get at the password store, but it's non-trivial. You basically start re-writing pass if you want to script any sort of direct access to the store.</span></div><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px"><br></span></div><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">It would be nice if pass separated the logic from accessing the password store from its UI a bit more cleanly.</span></div><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px"><br></span></div><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">Von</span></div><div><span style="font-size:13.1999998092651px;line-height:19.7999992370605px"><br></span></div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Aug 2, 2015 at 2:05 PM Emil Lundberg <<a href="mailto:lundberg.emil@gmail.com">lundberg.emil@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>> I will say 'pass [show]' acting differently when 
given a file or directory makes it hard to write scripts using it<br><br></div></div></div><div dir="ltr"><div>Then again, the beauty of KISS is that you don't need to use `pass show` in scripts. You could just as well use `gpg -d`, for consuming cleartext passwords, or `ls`, for showing subdirectory contents, directly.<br><br></div>An exception to this, I guess, would be `pass show --clip`, which has some additional security features (such as resetting the clipboard after a timeout) you might want to reuse.<br></div><br><div class="gmail_quote"><div dir="ltr">On Sun, 2 Aug 2015 at 19:16 Von Welch <<a href="mailto:von@vwelch.com" target="_blank">von@vwelch.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">><span style="font-size:13.1999998092651px;line-height:19.7999992370605px">I don’t understand why the „show“ subcommand even shows a tree. </span><div><br></div></div><div dir="ltr"><div>Since you mention it, I will say 'pass [show]' acting differently when given a file or directory makes it hard to write scripts using it since unless you look inside the password store to see if the argument is a directory or file, pass is unpredictable in it's behavior and output. Personally I'd rather see 'pass [show]' throw an error if given a directory as an argument.</div></div><div dir="ltr"><div><br></div><div>Von</div></div><div dir="ltr"><div><br></div><div><br></div><div><div class="gmail_quote"><div dir="ltr">On Sun, Aug 2, 2015 at 8:47 AM Jakub Sokołowski <<a href="mailto:panswiata@gmail.com" target="_blank">panswiata@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well, I've put it the cmd_show() because there was no cmd_ls() and<br>
creating it seemed like more of a challenge and big change to the script<br>
than I can manage correctly.<br>
<br>
I guess now that I think about it I can just use find, but the thing is<br>
I assume most people using pass don't really look into the inner<br>
workings of pass and would just like to have that kind of functionality<br>
available through the command. It seems more user friendly to me. Unless<br>
that's not what pass is aiming for.<br>
<br>
And thanks for the comment about git-send-email. I've never used it and<br>
I'm pretty new to this mailing list thingie. It seems pretty weird if<br>
you ask me, kinda archaic. But if it works it works.<br>
<br>
If this change does not fit pass that's fine. Thanks for the reply and<br>
the explanation.<br>
<br>
Cheers,<br>
<br>
On 02/08/15 14:29, Steffen Vogel wrote:<br>
> Hi,<br>
> thats a functionality I was also looking for already…<br>
><br>
> But why did you extended the „show“ subcommand?<br>
> I think the „ls“ subcommand is the right place for this.<br>
><br>
> I don’t understand why the „show“ subcommand even shows a tree.<br>
><br>
> Alternatively, you could bypass pass completely by using:<br>
><br>
>     find ~/.password-store -name -type f -name „*.gpg“<br>
><br>
> I think, thats an easier way to accomplish this.<br>
><br>
> Cheers,<br>
><br>
> Steffen<br>
><br>
> —<br>
><br>
> Steffen Vogel<br>
> Robensstraße 69<br>
> 52070 Aachen<br>
><br>
> Mail: <a href="mailto:post@steffenvogel.de" target="_blank">post@steffenvogel.de</a><br>
> Mobil: +49 1575 7180927<br>
> Web: <a href="http://www.steffenvogel.de" rel="noreferrer" target="_blank">http://www.steffenvogel.de</a><br>
> Jabber: <a href="mailto:steffen.vogel@jabber.rwth-aachen.de" target="_blank">steffen.vogel@jabber.rwth-aachen.de</a><br>
><br>
>> Am 02.08.2015 um 13:42 schrieb Jakub Sokołowski <<a href="mailto:panswiata@gmail.com" target="_blank">panswiata@gmail.com</a>>:<br>
>><br>
>> Hi,<br>
>><br>
>> I really love pass and I wanted to extend it by passing it's output to fzf(<a href="https://github.com/junegunn/fzf" rel="noreferrer" target="_blank">https://github.com/junegunn/fzf</a>) to easilly search through available entries. Unfortunately the current output format makes it impossible to easilly use it for fzf.<br>
>><br>
>> So I propose the following patch to add an -f,--full(same as for tree) options to print out the list with full paths.<br>
>><br>
>> This way one can easily use pass and fzf in following way:<br>
>><br>
>> pass -f | fzf | xargs -I{} pass -- {}<br>
>><br>
>> Which in a trivial way gives a fuzzy search ability to pass.<br>
>><br>
>> I'm not sure if this approach is the best but I've used it successfully for a while now. I think it could be useful to more people.<br>
>><br>
>> Cheers!<br>
>> <show_full_option.patch>_______________________________________________<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="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
><br>
><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="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><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="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
</blockquote></div></div></div>
_______________________________________________<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="http://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">http://lists.zx2c4.com/mailman/listinfo/password-store</a><br>
</blockquote></div>
</blockquote></div>