-
-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always copy passwords to clipboard #1255
Comments
I have autoclip turned on but often use |
Maybe one could add another option
"copy to clipboard" refers to the whole password if safecontent is false, or only the first line if safecontent is true. |
We have way to many configuration options already. I definitely don't want to increase that number. Changing |
What about using So far this would apply to show and generate, in the future possible to other operations, too. I'd default to having |
Sounds good to me. Apart from the default, that's the initial suggestion from @MartinAltmayer but that can be configured to match personal preferences. |
Fixes gopasspw#1255 Signed-off-by: Dominik Schulz <[email protected]>
Thanks for implementing a fix! Here are some behaviours that look incorrect to me (unless otherwise specified I assume autoclip and safecontent to be false):
To reduce the number of different cases, I believe it would be simpler to have "autoclip" be equivalent to --clip, similar to this line:
|
Let me know if I can help in fixing this! |
Fixes gopasspw#1255 Fixes gopasspw#1317 Signed-off-by: Dominik Schulz <[email protected]>
Fixes gopasspw#1255 Fixes gopasspw#1317 RELEASE_NOTES=[BUGFIX] Simplify autoclip behavior Signed-off-by: Dominik Schulz <[email protected]>
Fixes gopasspw#1255 Fixes gopasspw#1317 RELEASE_NOTES=[BUGFIX] Simplify autoclip behavior Signed-off-by: Dominik Schulz <[email protected]>
Fixes gopasspw#1255 Fixes gopasspw#1317 RELEASE_NOTES=[BUGFIX] Simplify autoclip behavior Signed-off-by: Dominik Schulz <[email protected]>
Fixes gopasspw#1255 Fixes gopasspw#1317 RELEASE_NOTES=[BUGFIX] Simplify autoclip behavior Signed-off-by: Dominik Schulz <[email protected]>
Fixes #1255 Fixes #1317 RELEASE_NOTES=[BUGFIX] Simplify autoclip behavior Signed-off-by: Dominik Schulz <[email protected]>
Thanks for implementing this! I think I tried all combinations of autoclip, safecontent, -c, -C, -f and couldn't find any issues. |
Fixes gopasspw#1255 Fixes gopasspw#1317 RELEASE_NOTES=[BUGFIX] Simplify autoclip behavior Signed-off-by: Dominik Schulz <[email protected]>
Summary
It would be great if I could configure gopass to always copy passwords to the clipboard, without using -c. I almost never need to actually see a password and would prefer to simply use -f in those cases.
Wouldn't it make sense to always copy the password if the option
autoclip
is set to true?In my opinion this would also be a much cleaner behaviour of
autoclip
than the current behaviour:According to the docs
autoclip
only applies togenerate
, not toshow
(but see #1191). But since #685 it also applies toshow
under some circumstances (namely ifsafecontent
is set totrue
and the password does not have safe content).Steps To Reproduce
Set
autoclip
totrue
Run
gopass some/password
The password will be printed.
Expected behavior
The password should be copied instead.
Environment
The text was updated successfully, but these errors were encountered: