refactor(pass): make duplicate functions obsolete

The following functions are affected: `+pass/edit-entry`,
`+pass/copy-field`, `+pass/copy-secret`, `+pass/browse-url`. All of
these functions have counterparts in `password-store`. Additionally, the
functions in password store add git commit messages when files are
changed.

Questions:
- Should we also deprecate the `ivy` and `consult` versions? The
`password-store` versions work perfectly well here with `vertico` (not
sure about `ivy` though).
This commit is contained in:
Dominik Schrempf 2021-10-02 00:05:43 +02:00 committed by Henrik Lissner
parent 7bf918f8c6
commit e6a4effdf6
2 changed files with 8 additions and 49 deletions

View file

@ -3,7 +3,7 @@
;;;###autoload
(defun +pass/ivy (arg)
"TODO"
"Complete and act on password store entries."
(interactive "P")
(ivy-read "Pass: " (password-store-list)
:action (if arg
@ -15,7 +15,7 @@
(ivy-add-actions
'+pass/ivy
'(("o" password-store-copy "copy password")
("e" +pass/edit-entry "edit entry")
("e" password-store-edit "edit entry")
("u" +pass/copy-user "copy username")
("b" +pass/copy-url "open url in browser")
("f" +pass/copy-field "get field"))))
("b" password-store-url "open url in browser")
("f" password-store-copy-field "get field"))))