[PATCH 1/6] Don't evaluate a global X_SELECTION variable.

2018-02-07 Thread Doron Behar
--- src/password-store.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/src/password-store.sh b/src/password-store.sh index e3e5659..ebd4a35 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -14,7 +14,6 @@ which gpg2 &>/dev/null && GPG="gpg2"

[PATCH 6/6] Small fix to `cmd_show()` getopt usage.

2018-02-07 Thread Doron Behar
--- src/password-store.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/password-store.sh b/src/password-store.sh index 31a0eb8..de46e85 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -372,7 +372,7 @@ cmd_show() { while true; do case $1 in

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

2018-02-07 Thread Doron Behar
work left to do - documentation and shell completion, but I would like to know your responses before completing these tasks. Commits summary: Doron Behar (6): Don't evaluate a global X_SELECTION variable. Decide what clipboard to use in `clip()`. Add all of `nextclip` variable where relevant

[PATCH 4/6] Add the new option to `getopt`'s invocations.

2018-02-07 Thread Doron Behar
--- src/password-store.sh | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/password-store.sh b/src/password-store.sh index 0141599..2d7a40e 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -366,12 +366,13 @@ cmd_init() { cmd_show() { local

[PATCH 5/6] Add new option to usage.

2018-02-07 Thread Doron Behar
--- src/password-store.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/password-store.sh b/src/password-store.sh index 2d7a40e..31a0eb8 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -283,7 +283,7 @@ cmd_usage() { List

[PATCH 3/6] Add all of `nextclip` variable where relevant.

2018-02-07 Thread Doron Behar
--- src/password-store.sh | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/password-store.sh b/src/password-store.sh index 24b5003..0141599 100755 --- a/src/password-store.sh +++ b/src/password-store.sh @@ -375,19 +375,19 @@ cmd_show() { --)

Re: Feature Suggestion / discussion: add a command line option for xclip's clipboard selection in addition / instead of $PASSWORD_STORE_X_SELECTION

2018-02-03 Thread Doron Behar
You have a good point here, I guess that in your opinion it will be best to use a completely different flag like `-s` | `--selection`. On Sat, Feb 03, 2018 at 12:04:39PM -0800, Radon Rosborough wrote: > > How about `-C` instead of `-c` for `primary` instead of `clipboard`. > > It is frequently a

Re: Feature Suggestion / discussion: add a command line option for xclip's clipboard selection in addition / instead of $PASSWORD_STORE_X_SELECTION

2018-02-03 Thread Doron Behar
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.be...@gmail.com> wrote:

Feature Suggestion / discussion: add a command line option for xclip's clipboard selection in addition / instead of $PASSWORD_STORE_X_SELECTION

2018-02-03 Thread Doron Behar
Hello dear community, After a long time I have been using `pass`, I have read the man page and read about the respected environmental variable `$PASSWORD_STORE_X_SELECTION` and I wondered to myself why isn't there a quick command line option instead of it. Most of the time, I use the default

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

2018-02-09 Thread Doron Behar
my case), I occasionally need to enter a password in a prompt and the PRIMARY clipboard is respected with Shift-Insert which is the keybinding I'm most used to. > > -- > > greetings, tobias > > > > > > > Doron Behar <doron.be...@gmail.com> sc

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

2018-02-08 Thread Doron Behar
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