doomemacs/modules/tools/pass/autoload/consult.el

22 lines
620 B
EmacsLisp
Raw Normal View History

2021-07-28 13:08:58 -04:00
;;; tools/pass/autoload/consult.el -*- lexical-binding: t; -*-
;;;###if (featurep! :completion vertico)
;;;###autoload
(defun +pass/consult (arg pass)
"TODO"
(interactive
(list current-prefix-arg
(progn
(require 'consult)
(consult--read (password-store-list)
:prompt "Pass: "
:sort nil
:require-match t
:category 'pass))))
2021-07-28 13:08:58 -04:00
(funcall (if arg
#'password-store-url
#'password-store-copy)
pass))
;; TODO Add embark actions to +pass/consult