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).
21 lines
681 B
EmacsLisp
21 lines
681 B
EmacsLisp
;;; tools/pass/autoload/ivy.el -*- lexical-binding: t; -*-
|
|
;;;###if (featurep! :completion ivy)
|
|
|
|
;;;###autoload
|
|
(defun +pass/ivy (arg)
|
|
"Complete and act on password store entries."
|
|
(interactive "P")
|
|
(ivy-read "Pass: " (password-store-list)
|
|
:action (if arg
|
|
#'password-store-url
|
|
#'password-store-copy)
|
|
:caller '+pass/ivy))
|
|
|
|
(after! ivy
|
|
(ivy-add-actions
|
|
'+pass/ivy
|
|
'(("o" password-store-copy "copy password")
|
|
("e" password-store-edit "edit entry")
|
|
("u" +pass/copy-user "copy username")
|
|
("b" password-store-url "open url in browser")
|
|
("f" password-store-copy-field "get field"))))
|