diff options
author | Hugo Heagren <hugo@heagren.com> | 2024-09-20 11:42:16 -0500 |
---|---|---|
committer | c4llv07e <igor@c4llv07e.xyz> | 2025-05-22 15:07:32 +0300 |
commit | e07a3166db10c69af3d087803733efab407bcd92 (patch) | |
tree | 374b97cd2601fffd28f33ba8d2b9389e60ea5abd /contrib/emacs | |
parent | b5e965a838bb68c1227caa2cdd874ba496f10149 (diff) | |
download | neopass-e07a3166db10c69af3d087803733efab407bcd92.tar.gz neopass-e07a3166db10c69af3d087803733efab407bcd92.tar.bz2 neopass-e07a3166db10c69af3d087803733efab407bcd92.zip |
Complete on existing paths in `password-store-rename'
Diffstat (limited to 'contrib/emacs')
-rw-r--r-- | contrib/emacs/password-store.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/emacs/password-store.el b/contrib/emacs/password-store.el index c7cc991..82c0bd6 100644 --- a/contrib/emacs/password-store.el +++ b/contrib/emacs/password-store.el @@ -397,7 +397,10 @@ Default PASSWORD-LENGTH is `password-store-password-length'." (defun password-store-rename (entry new-entry) "Rename ENTRY to NEW-ENTRY." (interactive (list (password-store--completing-read t) - (read-string "Rename entry to: "))) + (completing-read "Rename entry to: " + (mapcar + #'file-name-directory + (password-store-list))))) (message "%s" (password-store--run-rename entry new-entry t))) ;;;###autoload |