<div dir="auto">What do you think of using a convention to name the password files instead? <div dir="auto"><br></div><div dir="auto">For example, instead of having both username and password under the same password file:</div><div dir="auto">    folder/<a href="http://google.com">google.com</a></div><div dir="auto">You would have two password files, each one line:</div><div dir="auto">    folder/<a href="http://google.com/username">google.com/username</a></div><div dir="auto">    folder/<a href="http://google.com/password">google.com/password</a></div><div dir="auto"><br></div><div dir="auto">This has the neat feature that it's extendable to any new field without changing pass.</div></div><div class="gmail_extra"><br><div class="gmail_quote">Le 23 juil. 2017 09:52, "Matthew Snider" <<a href="mailto:matt.snider@alum.utoronto.ca">matt.snider@alum.utoronto.ca</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">

<div id="m_4190853095766706722divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p>My original code has a mistake. It should call read twice instead of using \n as a delimiter (e.g. read -r pass; read -r -d '' rest). I think it would be best for me to test it out over the next week. </p>
<p><br>
</p>
<p>In the mean time, if anyone gets around to looking at it, let me know what you think!</p>
</div>
<hr style="display:inline-block;width:98%">
<div id="m_4190853095766706722divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Password-Store <<a href="mailto:password-store-bounces@lists.zx2c4.com" target="_blank">password-store-bounces@lists.<wbr>zx2c4.com</a>> on behalf of Matthew Snider <<a href="mailto:matt.snider@alum.utoronto.ca" target="_blank">matt.snider@alum.utoronto.ca</a>><br>
<b>Sent:</b> Sunday, July 23, 2017 4:03:00 PM<br>
<b>To:</b> <a href="mailto:password-store@lists.zx2c4.com" target="_blank">password-store@lists.zx2c4.com</a><br>
<b>Subject:</b> passmenu: optionally type username as well</font>
<div> </div>
</div>
<div>
<table id="m_4190853095766706722msexchangesafetytips;e4cba06b-b8c7-4bc8-5855-08d4d1d389bf;R:en-US" border="0" cellspacing="0" cellpadding="0" width="100%" style="border:0;display:table;width:100%;table-layout:fixed;border-collapse:seperate" align="left">
<tbody>
<tr>
<td valign="middle" width="1px" bgcolor="#910A19" cellpadding="7px 2px 7px 2px" style="padding:7px 2px 7px 2px;background-color:#910a19">
</td>
<td valign="middle" width="100%" bgcolor="#FDF2F4" cellpadding="7px 5px 7px 15px" color="#212121" style="width:100%;background-color:#fdf2f4;padding:7px 5px 7px 15px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;font-size:12px;font-weight:normal;color:#212121;text-align:left;word-wrap:break-word">
<div>This sender failed our fraud <wbr>detection checks and may not <wbr>be who they appear to be. <wbr>Learn about <a href="http://aka.ms/LearnAboutSpoofing" target="_blank">spoofing</a></div>
</td>
<td valign="middle" align="left" width="75px" bgcolor="#FDF2F4" cellpadding="7px 5px 7px 5px" color="#212121" style="width:75px;background-color:#fdf2f4;padding:7px 5px 7px 5px;font-family:wf_segoe-ui_normal,Segoe UI,Segoe WP,Tahoma,Arial,sans-serif;font-size:12px;font-weight:normal;color:#212121;text-align:left;word-wrap:break-word">
<a href="http://aka.ms/SafetyTipsFeedback" target="_blank">Feedback</a></td>
</tr>
</tbody>
</table>
<div>
<div id="m_4190853095766706722divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols" dir="ltr">
<p><span style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt">Hi!</span><br>
</p>
<div style="color:rgb(0,0,0)">
<div>
<div id="m_4190853095766706722divtagdefaultwrapper" dir="ltr" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p><br>
</p>
<p>I've just recently started using pass and more specifically passmenu, and am very pleased with it :-)</p>
<p><br>
</p>
<p>The main feature I found that was immediately missing when switching over from keepassx, is the ability to autotype a username/password combination. I read through the mailing list archives and found this feature was already attempted here: <a href="https://lists.zx2c4.com/pipermail/password-store/2015-December/001834.html" id="m_4190853095766706722LPlnk892487" target="_blank">https://lists.zx2c4.com/<wbr>pipermail/password-store/2015-<wbr>December/001834.html</a><a href="https://lists.zx2c4.com/pipermail/password-store/2015-December/001834.html" class="m_4190853095766706722OWAAutoLink" id="m_4190853095766706722LPlnk470123" target="_blank"></a></p>
<p><br>
</p>
<p>It doesn't seem like there was any response to this, but arbitrarily taking the second line doesn't seem ideal to me. I think my implementation is an improvement, because it leverages the suggested file format of "key: value" pairs after the first line. </p>
<p><br>
</p>
<p>In the included patch you will see that I've just added a --userfield flag which can be used as follows:</p>
<p>passmenu --type --userfield username [dmenu arguments...]</p>
<p><br>
</p>
<p>This corresponds to files which look like:</p>
<p>passw0rd</p>
<p>username: matt.snider</p>
<p><br>
</p>
<p>I personally use this by binding $mod+p to the regular passmenu invocation, and $mod+Shift+p to the invocation using --type and --userfield. This has been working very well for me.</p>
<p><br>
</p>
<p>Please let me know what you think and if you have some feedback.</p>
<p><br>
</p>
<p>Best,</p>
<p>Matt</p>
<p><br>
</p>
<p><br>
</p>
<p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</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="https://lists.zx2c4.com/mailman/listinfo/password-store" rel="noreferrer" target="_blank">https://lists.zx2c4.com/<wbr>mailman/listinfo/password-<wbr>store</a><br>
<br></blockquote></div></div>