Feature Suggestion / discussion: add a command line option for xclip's clipboard selection in addition / instead of $PASSWORD_STORE_X_SELECTION
Doron Behar
doron.behar at gmail.com
Sat Feb 3 23:44:02 CET 2018
That's an interesting point, I wonder what will be the best way to
implement this.
At first, I _was_ thinking of a shell function to wrap the whole thing
up, but than I thought to my self that perhaps this clipboard selection
issue was taken care of purely with the `$PASSWORD_STORE_X_SELECTION`
env variable. IMO, it could have been solved better and more comfortably
with a new command line option.
Plus, perhaps the fact that a certain command line option makes a
difference only on certain platforms isn't that bad.. Why would it
matter for MacOS users to read on a man page that a certain option makes
a difference only on Linux? I think it will best suit to make the option
`-C` ignored or equivalent to `-C` on MacOS machines.
On Sat, Feb 03, 2018 at 11:36:54AM -0700, Celti Burroughs wrote:
> On Sat, 3 Feb 2018 20:16:32 +0200
> Doron Behar <doron.behar at gmail.com> wrote:
> > Wouldn't it be great if the defaults would be kept the same and we
> > could choose with a quickly typed command line option to use the
> > `primary` clipboard? How about `-C` instead of `-c` for `primary`
> > instead of `clipboard`.
> >
> > I'd also like to know what attitude to take on this matter, whether a
> > new option `-C` in addition to `-c` will be proper, and perhaps
> > keeping `$PASSWORD_STORE_X_SELECTION` for the default (`-c`)
> > `clipboard` selection, or perhaps using a new option `-s` /
> > `--selection` will be better?
>
> And what does -C or -s do on a non-X11 platform? MacOS doesn't even have
> a primary selection. Neither does Windows. It's a bit rude to have a
> command-line option like that that's only functional on one supported
> platform.
>
> If it's the amount of typing you're worried about, why not write a
> quick bash function that wraps pass with the environment variable?
>
> ~Celti
> _______________________________________________
> 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/20180204/e7b581ba/attachment.asc>
More information about the Password-Store
mailing list