<div dir="ltr">Nicknames are not easy to implement, because it is hard to work with output of <i>tree</i> command. Specifically the password files in tree output are only last filenames which are not unique and to get the full unique path which you can use as a key (path) to value (nick), you must somehow traverse the tree backwards, find a nickname for that path and modify tree output to show it in <i>pass ls/find</i> command. <br><br>Yes the other downside is that inode shortcuts will change among computers of one person, but anyway I think this could be useful for many users. <br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-27 1:44 GMT+02:00 Thorsten Wißmann <span dir="ltr"><<a href="mailto:edu@thorsten-wissmann.de" target="_blank">edu@thorsten-wissmann.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ondrej,<br>
<br>
On Sun, Mar 26, 2017 at 04:34:06PM -0700, David A. wrote:<br>
<span class="">> On Mon, 27 Mar 2017 00:51:22 +0200, Ondrej Vaško wrote:<br>
> >This commit introduces shortcut argument *-s* or *--shortcut* to *pass show<br>
> >*command with which you can reference password not by full path, but by<br>
> >number, which reference the specific gpg file in your password storage<br>
> >directory.<br>
><br>
> >After few days of thinking about an easy solution I decided to use an<br>
> >*inode* as a reference shortcut<br>
><br>
> If you're going to implement a shortcut option, it should really be<br>
> something that makes referring to any entry easy and intuitive.<br>
> Something like nicknames that are shorter and easy to remember. inodes<br>
> are hardly that.<br>
<br>
</span>Even worse: inodes differ using pass on different machines.<br>
<br>
David has indicated it already: In case one is looking for simple<br>
shorthands for the frequently used pass files, one can create a symbolic<br>
link with an descriptive name and add that to the git, e.g.:<br>
<br>
  $ cd ${PASSWORD_STORE_DIR:-$HOME/.<wbr>password-store}<br>
  $ ln -sf mailinglists/password-store@<wbr>lists.zx2c4.com.gpg passlist.gpg<br>
  $ git add !$ ; git commit -m 'ln'<br>
  $ pass show passlist<br>
<br>
Best Regards,<br>
Thorsten<br>
</blockquote></div><br></div>