We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab86f13 commit bc994a0Copy full SHA for bc994a0
actions.go
@@ -432,9 +432,12 @@ func findCurrentEntry(term string) error {
432
return err
433
} else {
434
var delim bool
435
+ var pcopy bool
436
437
if len(entries) == 1 {
438
delim = true
439
+ pcopy = true
440
+ // Single entry means copy password can be enabled
441
442
_, settings := getOrCreateLocalConfig(APP)
443
fmt.Printf("%s", getColor(strings.ToLower(settings.Color)))
@@ -444,6 +447,11 @@ func findCurrentEntry(term string) error {
444
447
for _, entry := range entries {
445
448
printEntry(&entry, delim)
446
449
}
450
+
451
+ if pcopy {
452
+ // Single entry
453
+ copyPasswordToClipboard(entries[0].Password)
454
+ }
455
456
457
0 commit comments