:tools password-store -> :tools pass

A simpler name and matches the prefix of its module.
This commit is contained in:
Henrik Lissner 2019-05-19 00:03:15 -04:00
parent 0674e4b4b0
commit c3cb7c5000
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
9 changed files with 13 additions and 12 deletions

View file

@ -26,7 +26,8 @@
(lookup (:tools lookup)) (lookup (:tools lookup))
(debugger (:tools debugger))) (debugger (:tools debugger)))
(:tools (rotate-text (:editor rotate-text)) (:tools (rotate-text (:editor rotate-text))
(vterm (:term vterm))) (vterm (:term vterm))
(password-store (:tools pass)))
(:emacs (electric-indent (:emacs electric)) (:emacs (electric-indent (:emacs electric))
(hideshow (:editor fold)) (hideshow (:editor fold))
(eshell (:term eshell)) (eshell (:term eshell))

View file

@ -83,7 +83,7 @@
;;macos ; MacOS-specific commands ;;macos ; MacOS-specific commands
magit ; a git porcelain for Emacs magit ; a git porcelain for Emacs
;;make ; run make tasks from Emacs ;;make ; run make tasks from Emacs
;;password-store ; password manager for nerds ;;pass ; password manager for nerds
;;pdf ; pdf enhancements ;;pdf ; pdf enhancements
;;prodigy ; FIXME managing external services & code builders ;;prodigy ; FIXME managing external services & code builders
;;rgb ; creating color strings ;;rgb ; creating color strings

View file

@ -9,7 +9,7 @@
:editor :editor
evil evil
:tools :tools
password-store pass
:lang :lang
org org
web) web)

View file

@ -91,7 +91,7 @@ Small modules that give Emacs access to external tools & services.
+ macos: + macos:
+ magit: + magit:
+ make: + make:
+ password-store: + pass:
+ pdf: + pdf:
+ prodigy: + prodigy:
+ rgb: + rgb:

View file

@ -71,7 +71,7 @@ some ways to avoid that:
** Pass: the unix password manager ** Pass: the unix password manager
[[https://www.passwordstore.org/][Pass]] is my tool of choice. I use it to manage my passwords. If you activate the [[https://www.passwordstore.org/][Pass]] is my tool of choice. I use it to manage my passwords. If you activate the
[[../../../modules/tools/password-store/README.org][:tools password-store]] module you get an elisp API through which to access your [[../../../modules/tools/pass/README.org][:tools pass]] module you get an elisp API through which to access your
password store. password store.
~set-irc-server!~ accepts a plist can use functions instead of strings. ~set-irc-server!~ accepts a plist can use functions instead of strings.

View file

@ -1,4 +1,4 @@
;;; tools/password-store/autoload.el -*- lexical-binding: t; -*- ;;; tools/pass/autoload.el -*- lexical-binding: t; -*-
(defun +pass--open-url (entry) (defun +pass--open-url (entry)
(if-let* ((url (+pass-get-field entry +pass-url-fields))) (if-let* ((url (+pass-get-field entry +pass-url-fields)))

View file

@ -1,4 +1,4 @@
;;; tools/password-store/config.el -*- lexical-binding: t; -*- ;;; tools/pass/config.el -*- lexical-binding: t; -*-
(defvar +pass-user-fields '("login" "user" "username" "email") (defvar +pass-user-fields '("login" "user" "username" "email")
"A list of fields for `+pass/ivy' to search for the username.") "A list of fields for `+pass/ivy' to search for the username.")
@ -14,13 +14,13 @@
(setq password-store-password-length 12) (setq password-store-password-length 12)
;; Fix hard-coded password-store location; respect PASSWORD_STORE_DIR envvar ;; Fix hard-coded password-store location; respect PASSWORD_STORE_DIR envvar
(defun +password-store*read-entry (entry) (defun +pass*read-entry (entry)
"Return a string with the file content of ENTRY." "Return a string with the file content of ENTRY."
(with-temp-buffer (with-temp-buffer
(insert-file-contents (insert-file-contents
(expand-file-name (format "%s.gpg" entry) (password-store-dir))) (expand-file-name (format "%s.gpg" entry) (password-store-dir)))
(buffer-substring-no-properties (point-min) (point-max)))) (buffer-substring-no-properties (point-min) (point-max))))
(advice-add #'auth-source-pass--read-entry :override #'+password-store*read-entry) (advice-add #'auth-source-pass--read-entry :override #'+pass*read-entry)
;; `pass' ;; `pass'

View file

@ -1,5 +1,5 @@
;; -*- no-byte-compile: t; -*- ;; -*- no-byte-compile: t; -*-
;;; tools/password-store/packages.el ;;; tools/pass/packages.el
(package! pass) (package! pass)
(package! password-store) (package! password-store)

View file

@ -1,7 +1,7 @@
;; -*- no-byte-compile: t; -*- ;; -*- no-byte-compile: t; -*-
;;; tools/password-store/test/test-pass.el ;;; tools/pass/test/test-pass.el
(describe "tools/password-store" (describe "tools/pass"
(before-all (before-all
(load! "../autoload")) (load! "../autoload"))