m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSvend Sorensen <svend@ciffer.net>2014-05-07 15:14:37 -0700
committerSvend Sorensen <svend@ciffer.net>2014-05-07 15:55:11 -0700
commite25114c4c09be5f055fd2784f420681488ef5df0 (patch)
treedcd45634b131a37f142ad26e1d75b1f610e47f4d
parent8a491f16961dd120fed6a4e154d0ef9b5a4cae7b (diff)
Implement interactive rename function
-rw-r--r--contrib/emacs/password-store.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el
index 25556d2..60db318 100644
--- a/contrib/emacs/password-store.el
+++ b/contrib/emacs/password-store.el
@@ -213,6 +213,13 @@ Default PASSWORD-LENGTH is `password-store-password-length'."
(message (password-store--run-remove entry t)))
;;;###autoload
+(defun password-store-rename (entry new-entry)
+ "Rename ENTRY to NEW-ENTRY."
+ (interactive (list (password-store--completing-read)
+ (read-string "Rename entry to: ")))
+ (message (password-store--run-rename entry new-entry t)))
+
+;;;###autoload
(defun password-store-version ()
"Show version of pass executable."
(interactive)