featuregate ivy dependent autoloads for irc, pass

previously these functions would get autoloaded even when another
completion framework was active
This commit is contained in:
Itai Y. Efrat 2021-05-21 00:43:27 +03:00
parent 6dc6d11b83
commit 5ddf8b9b51
5 changed files with 57 additions and 66 deletions

View file

@ -106,35 +106,3 @@ fields in `+pass-url-fields' is used to find the url field."
(interactive
(list (password-store--completing-read)))
(+pass--open-url entry))
;;
;; Ivy interface
;;;###autoload
(defun +pass/ivy (arg)
"TODO"
(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" +pass/edit-entry "edit entry")
("u" +pass/copy-user "copy username")
("b" +pass/copy-url "open url in browser")
("f" +pass/copy-field "get field"))))
;;
;; TODO Helm interface
;; (defun +pass/helm ()
;; (interactive)
;; )