summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-08-27 09:07:17 +0300
committerThanos Apollo <[email protected]>2023-08-27 09:07:17 +0300
commit5383fd14d4b0aa5d693055e8d203220495d27c24 (patch)
tree9d4cdf3a7b1647ee499e2c618446574af1523b54
parent0b3f9b60a6e670b45aaaedb3416a4e6b8016e18b (diff)
emacs: Update pass launcher
-rwxr-xr-xemacs.org5
1 files changed, 3 insertions, 2 deletions
diff --git a/emacs.org b/emacs.org
index 2c9e70d..7a1fd17 100755
--- a/emacs.org
+++ b/emacs.org
@@ -244,10 +244,11 @@ Generate a random password between 20 and 40 characters
(internal-border-width . 10)
(width . 80)
(height . 11)))
- (let* ((choice (completing-read "Choose an action: " '("AUTO" "COPY" "EDIT" "GENERATE")))
+ (let* ((choice (completing-read "Choose an action: " '("AUTO" "COPY PASS" "COPY USERNAME" "EDIT" "GENERATE")))
(action (pcase choice
("AUTO" #'pass-autotype)
- ("COPY" #'password-store-copy)
+ ("COPY PASS" #'password-store-copy)
+ ("COPY USERNAME" #'(lambda (entry) (password-store-copy-field entry "user")))
("EDIT" #'password-store-edit)
("GENERATE" #'password-store-generate))))
(funcall action (completing-read "Search: " (password-store-list)))