diff options
author | Thanos Apollo <[email protected]> | 2023-08-27 09:07:17 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-08-27 09:07:17 +0300 |
commit | 5383fd14d4b0aa5d693055e8d203220495d27c24 (patch) | |
tree | 9d4cdf3a7b1647ee499e2c618446574af1523b54 | |
parent | 0b3f9b60a6e670b45aaaedb3416a4e6b8016e18b (diff) |
emacs: Update pass launcher
-rwxr-xr-x | emacs.org | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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))) |