[prev in list] [next in list] [prev in thread] [next in thread] 

List:       password-store
Subject:    Re: [pass] [Feature Request] Add a `--raw` option to `pass ls`
From:       Jyrki Von Karkki <jyrki_von_karkki () mailbox ! org>
Date:       2016-11-09 21:06:15
Message-ID: e3741f9f-9b25-9e88-8fe8-c358eba11fc4 () mailbox ! org
[Download RAW message or body]

Hello

If I may pipe in to offer my 2 cents:

You can always script that line to fit your needs?

I use this daily:
    #!/bin/env sh
    find $PASSWORD_STORE_DIR -iname "*$1*" | sed 
"s+$PASSWORD_STORE_DIR++g" | sed 's/\.gpg$//'

like:

$ pas my_search_term
...
very parsable list of entries returned
...

So you can always create the abstraction you need yourself?

Best Regards


On 09/11/16 21:22, Tobias Girstmair wrote:
> > TL;DR We don't need `pass ls --raw` because we have `ls -1`
> 
> 
> well, `ls -1` doesn't exactly provide a recursive output. this could be done with a \
> convoluted tree statement (see my patch) or this find one (which isn't simpler, and \
> I haven't checked for symlinks or other strange things): 
> 
> find ${PASSWORD_STORE_DIR:-$HOME/.password-store} -type f -name '*.gpg'|sed \
> 's|^${PASSWORD_STORE_DIR:-$HOME/.password-store}/||'|sed 's/\.gpg$//' 
> 
> intuitive, isn't it? ;-)
> 
> Another use case is an interactive user, who wants to copy-paste a line of the \
> `pass ls` output into `pass show`. 
> -- Tobias
> _______________________________________________
> Password-Store mailing list
> Password-Store@lists.zx2c4.com
> http://lists.zx2c4.com/mailman/listinfo/password-store
> 
_______________________________________________
Password-Store mailing list
Password-Store@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/password-store


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic