[PATCH 0/6] Add new option: --next-clip,-C for commands: `generate`, `show` that will enable using an alternative clipboard than the default

Doron Behar doron.behar at gmail.com
Thu Feb 8 15:40:05 CET 2018


You are right, I forgot about your comment when I started to actually
add this feature.

How about `-p` and `--prim`? It could be very symmetric to `-c` and
`--clip`. Now that I'm thinking about it, perhaps this way we don't even
need `$PASSWORD_STORE_DEFAULT_X_SELECTION` or
`$PASSWORD_STORE_X_SELECTION` and the code will be even simpler. It will
be even easier to document the new behaviour since we just need to say
that `-c,--clip` puts the password in the `CLIPBOARD` selection and
`-p,--prim` puts it in the `PRIMARY` clipboard selection.

As for the matter regarding Mac OSx users, I think it's OK if on these
machines it won't matter whether the user uses `-p,--prim` or
`-c,--clip`. BTW, this new option doesn't make the code much more
complicated as for OS compatibilities because there is already an OSx
specific implementation of the `clip` function. This function suffered
most of the changes I made.

On Wed, Feb 07, 2018 at 10:13:40PM -0800, Radon Rosborough wrote:
> I think using -C for this is a bad idea since the conventional meaning
> of -C is to allow changing the working directory, and I think this
> would be a useful feature for Password Store (because it seems rather
> odd to me that the path to ~/.password-store is completely hardcoded).
> I like the actual feature, I just think it should use a different
> short option.
> 
> Best,
> Radon Rosborough
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 691 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20180208/8fe67efa/attachment.asc>


More information about the Password-Store mailing list