2021-05-21 00:43:27 +03:00
|
|
|
;;; tools/pass/autoload/ivy.el -*- lexical-binding: t; -*-
|
|
|
|
;;;###if (featurep! :completion ivy)
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
(defun +pass/ivy (arg)
|
2021-10-02 00:05:43 +02:00
|
|
|
"Complete and act on password store entries."
|
2021-05-21 00:43:27 +03:00
|
|
|
(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")
|
2021-10-02 00:05:43 +02:00
|
|
|
("e" password-store-edit "edit entry")
|
2021-05-21 00:43:27 +03:00
|
|
|
("u" +pass/copy-user "copy username")
|
2021-10-02 00:05:43 +02:00
|
|
|
("b" password-store-url "open url in browser")
|
|
|
|
("f" password-store-copy-field "get field"))))
|