<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" 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%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Password-Store <password-store-bounces@lists.zx2c4.com> on behalf of Matthew Snider <matt.snider@alum.utoronto.ca><br>
<b>Sent:</b> Sunday, July 23, 2017 4:03:00 PM<br>
<b>To:</b> password-store@lists.zx2c4.com<br>
<b>Subject:</b> passmenu: optionally type username as well</font>
<div> </div>
</div>
<div>
<table id="msexchangesafetytips;e4cba06b-b8c7-4bc8-5855-08d4d1d389bf;R:en-US" border="0" cellspacing="0" cellpadding="0" width="100%" style="cellpadding:0;border:0;cellspacing: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;valign:middle">
</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 detection checks and may not be who they appear to be. Learn about <a href="http://aka.ms/LearnAboutSpoofing">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;align:left">
<a href="http://aka.ms/SafetyTipsFeedback">Feedback</a></td>
</tr>
</tbody>
</table>
<div>
<div id="divtagdefaultwrapper" 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="divtagdefaultwrapper" 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="LPlnk892487" previewremoved="true">https://lists.zx2c4.com/pipermail/password-store/2015-December/001834.html</a><a href="https://lists.zx2c4.com/pipermail/password-store/2015-December/001834.html" class="OWAAutoLink" id="LPlnk470123" previewremoved="true"></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>
</body>
</html>