From e25114c4c09be5f055fd2784f420681488ef5df0 Mon Sep 17 00:00:00 2001 From: Svend Sorensen Date: Wed, 7 May 2014 15:14:37 -0700 Subject: Implement interactive rename function --- contrib/emacs/password-store.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'contrib') 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 @@ -212,6 +212,13 @@ Default PASSWORD-LENGTH is `password-store-password-length'." (interactive (list (password-store--completing-read))) (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." -- cgit v1.2.3