<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir="ltr" data-setdir="false"><div><div dir="ltr" data-setdir="false">When working with nested password directories / structures, it's a pain to pick out a particular password key/identifier for copy/paste.  This patch (and test) is the beginning of teaching pass about interactive v. non-interactive usage so that `pass ls` will print fully qualified identifiers when in non-interactive mode.</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">The gist of it is captured below, and similar behavior can be seen in the `lastpass-cli` tool (not that lastpass is a great example of what to do in general, but it's very handy to have access to the fully qualified password identifiers).<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><a href="https://github.com/lastpass/lastpass-cli/blob/master/cmd-ls.c#L287-L288" rel="nofollow" target="_blank">https://github.com/lastpass/lastpass-cli/blob/master/cmd-ls.c#L287-L288</a></div><div><b><br></b></div><div dir="ltr" data-setdir="false"><font face=""courier new", courier, monaco, monospace, sans-serif"><b>$ <span><font style="background-color: inherit;" face=""courier new", courier, monaco, monospace, sans-serif"><b>./src/password-store.sh ls</b></font></span><br></b></font></div><font face=""courier new", courier, monaco, monospace, sans-serif">Password Store<br>├── xxxxxxxx<br>│   └── xxxxx.xxx<br>└── xxxxx<br>    ├── xxxxxxxxxxxxx.xxx<br>    ├── xxxxxxx.xxx<br>    ├── xxxxxxx.xxx<br>    ├── xxxxxxxxx.xxx<br>    ├── xxxxxxxxxxxxxxxxxxx.xxx<br>    ├── xxxxxxxx.xxx<br>    ├── xx.xx-xxxxxxxx<br>    ├── xx.xxxxx.xxx<br>    │   └── xxx-xxx<br>    ├── xxxxxxx.xxx<br>    ├── xxxxxxxx<br>    │   ├── xxxxxx-xxxxx<br>    │   ├── xxxxx-xxxxx-xxxxxxxx<br>    │   └── xxxxx-xxxxx-xxxxxxx<br>    └── xxxxxx.xxx<br></font><div><br></div><div dir="ltr" data-setdir="false"><div><font face=""courier new", courier, monaco, monospace, sans-serif"><b>$ ./src/password-store.sh ls | cat</b><br>xxxxxxxx/xxxxx.xxx<br>xxxxx/xxxxxxx.xxx<br>xxxxx/xx.xxxxx.xxx/xxx-xxx<br>xxxxx/xxxxxxx.xxx<br>xxxxx/xxxxxxx.xxx<br>xxxxx/xxxxxxxx.xxx<br>xxxxx/xx.xx-xxxxxxxx<br>xxxxx/xxxxxxxxxxxxx.xxx<br>xxxxx/xxxxxxxxx.xxx<br>xxxxx/xxxxxxxx/xxxxx-xxxxx-xxxxxxxx<br>xxxxx/xxxxxxxx/xxxxxx-xxxxx<br>xxxxx/xxxxxxxx/xxxxx-xxxxx-xxxxxxx<br>xxxxx/xxxxxx.xxx<br>xxxxx/xxxxxxxxxxxxxxxxxxx.xxx</font><br><div><br></div><div dir="ltr" data-setdir="false"><div><font face=""courier new", courier, monaco, monospace, sans-serif"><b>$ ./src/password-store.sh ls | while read id ; do echo "--==[[ $id ]]==--" ; echo ./src/password-store.sh show $id ; done</b><br>--==[[ xxxxxxxx/xxxxx.xxx ]]==--<br>./src/password-store.sh show xxxxxxxx/xxxxx.xxx<br>--==[[ xxxxx/xxxxxxx.xxx ]]==--<br>./src/password-store.sh show xxxxx/xxxxxxx.xxx<br>--==[[ xxxxx/xx.xxxxx.xxx/xxx-xxx ]]==--<br>./src/password-store.sh show xxxxx/xx.xxxxx.xxx/xxx-xxx<br>--==[[ xxxxx/xxxxxxx.xxx ]]==--<br>./src/password-store.sh show xxxxx/xxxxxxx.xxx<br>--==[[ xxxxx/xxxxxxx.xxx ]]==--<br>./src/password-store.sh show xxxxx/xxxxxxx.xxx<br>--==[[ xxxxx/xxxxxxxx.xxx ]]==--<br>./src/password-store.sh show xxxxx/xxxxxxxx.xxx<br>--==[[ xxxxx/xx.xx-xxxxxxxx ]]==--<br>./src/password-store.sh show xxxxx/xx.xx-xxxxxxxx<br>--==[[ xxxxx/xxxxxxxxxxxxx.xxx ]]==--<br>./src/password-store.sh show xxxxx/xxxxxxxxxxxxx.xxx<br>--==[[ xxxxx/xxxxxxxxx.xxx ]]==--<br>./src/password-store.sh show xxxxx/xxxxxxxxx.xxx<br>--==[[ xxxxx/xxxxxxxx/xxxxx-xxxxx-xxxxxxxx ]]==--<br>./src/password-store.sh show xxxxx/xxxxxxxx/xxxxx-xxxxx-xxxxxxxx<br>--==[[ xxxxx/xxxxxxxx/xxxxxx-xxxxx ]]==--<br>./src/password-store.sh show xxxxx/xxxxxxxx/xxxxxx-xxxxx<br>--==[[ xxxxx/xxxxxxxx/xxxxx-xxxxx-xxxxxxx ]]==--<br>./src/password-store.sh show xxxxx/xxxxxxxx/xxxxx-xxxxx-xxxxxxx<br>--==[[ xxxxx/xxxxxx.xxx ]]==--<br>./src/password-store.sh show xxxxx/xxxxxx.xxx<br>--==[[ xxxxx/xxxxxxxxxxxxxxxxxxx.xxx ]]==--<br>./src/password-store.sh show xxxxx/xxxxxxxxxxxxxxxxxxx.xxx</font><br><br></div><div><br></div></div></div><div><br></div></div></div><div><br></div></div></div></body></html>