<div dir="ltr">Happy to see other people thinking the same thing :) I also started with a simple script that does find and grep in .password-store, but then I realized it's probably a better idea to integrate it to pass, because:<div><div>1) I want to be able to run "pass show" with and without --clip, with and without the line number. I don't want to re-implement argument parsing in my script. </div><div><div class="gmail_extra">2) Such feature is probably useful for other people. Having it in the main pass script is most convenient for users.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Aug 14, 2016 at 11:26 PM, Sylvain Viart <span dir="ltr"><<a href="mailto:sylvain@opensource-expert.com" target="_blank">sylvain@opensource-expert.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi,<span class=""><br>
<br>
<div>Le 15/08/2016 à 07:48, Allan Odgaard a
écrit :<br>
</div>
<blockquote type="cite">On 15 Aug 2016, at 7:31, Kun Zhang wrote:
<br>
<br>
<blockquote type="cite">[…] I cannot simply copy the "find"
<br>
output to "show" because it's a tree view instead of plain
paths.
<br>
</blockquote>
</blockquote>
<br></span>
I also programmed a bash script that find | grep into the
.password-store<br>
<br>
example usage:<br>
<br>
<blockquote>find_pass linkedin<br>
</blockquote>
<blockquote>/home/sylvain/.password-store/<wbr>Perso/Sylvain/linkedin.gpg<br>
# Perso/Sylvain/linkedin<br>
reading 'Perso/Sylvain/linkedin'<br>
Copied Perso/Sylvain/linkedin to clipboard. Will clear in 45
seconds.<br>
</blockquote>
<br>
It matches with grep on the name of the file.gpg<br>
<br>
with some homemade internal rules: <br>
<ul>
<li>as I have duplicates, I show the full path, so I can rename or
delete files.</li>
<li>if only one result found it goes to clipboard</li>
<li>if it match a dedicated new folder, goes to clipboard</li>
<li>etc.<br>
</li>
</ul>
It uses colors too.<br>
<br>
If you are interested I can share it.<br>
<br>
Regards,<br>
Sylvain.<span class="HOEnZb"><font color="#888888"><br>
<br>
<pre cols="72">--
Sylvain Viart - Consultant informatique système linux</pre>
</font></span></div>
<br>______________________________<wbr>_________________<br>
Password-Store mailing list<br>
<a href="mailto:Password-Store@lists.zx2c4.com">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/<wbr>mailman/listinfo/password-<wbr>store</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Best wishes<br>Kun Zhang</div></div>
</div></div></div></div>