mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add +pass-get-user & +pass-get-secret (#103)
This commit is contained in:
@ -19,6 +19,14 @@
|
|||||||
return (cdr it))
|
return (cdr it))
|
||||||
(error "Couldn't find entry: %s" entry)))
|
(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)
|
(defun +pass-ivy-action--open-url (entry)
|
||||||
(if-let (url (+pass-get-field entry +pass-url-fields))
|
(if-let (url (+pass-get-field entry +pass-url-fields))
|
||||||
(and (or (string-prefix-p "http://" url)
|
(and (or (string-prefix-p "http://" url)
|
||||||
|
Reference in New Issue
Block a user