Add +pass-get-user & +pass-get-secret (#103)

This commit is contained in:
Henrik Lissner 2017-06-12 02:43:35 +02:00
parent febd14a9f2
commit ca07eb5077
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -19,6 +19,14 @@
return (cdr it))
(error "Couldn't find entry: %s" entry)))
;;;###autoload
(defun +pass-get-user (entry)
(+pass-get-field entry +pass-user-fields))
;;;###autoload
(defun +pass-get-secret (entry)
(password-store-get entry))
(defun +pass-ivy-action--open-url (entry)
(if-let (url (+pass-get-field entry +pass-url-fields))
(and (or (string-prefix-p "http://" url)