<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
<div class="moz-cite-prefix">Le 15/08/2016 à 07:48, Allan Odgaard a
écrit :<br>
</div>
<blockquote
cite="mid:79A7B90D-2BE3-42C7-A671-7A2DAA41B2C6@simplit.com"
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>
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/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.<br>
<br>
<pre class="moz-signature" cols="72">--
Sylvain Viart - Consultant informatique système linux</pre>
</body>
</html>