summaryrefslogtreecommitdiff
path: root/contrib/emacs/README.md
diff options
context:
space:
mode:
authorTino Calancha <tino.calancha@gmail.com>2019-08-29 05:18:06 +0200
committerTino Calancha <tino.calancha@gmail.com>2019-08-29 05:18:06 +0200
commit3a108277637fad89869d904eea963aeb8f45b20d (patch)
treef8a3f1ef2f81a87597314af8a328654594879ac0 /contrib/emacs/README.md
parentb760f374c48ca1f98ab289e202af5306da79dc70 (diff)
downloadpass-3a108277637fad89869d904eea963aeb8f45b20d.tar.gz
pass-3a108277637fad89869d904eea963aeb8f45b20d.tar.bz2
pass-3a108277637fad89869d904eea963aeb8f45b20d.zip
Support extractions of secret fields other than password
Allow users to retrieve any secret field stored in the files. Use auth-source-pass to retrieve the secret fields. Bump version to v2.1.0. * contrib/emacs/Cask: Replace dependency on `s' library with auth-source-pass dependency. * contrib/emacs/password-store.el (password-store-url-field): New option. (password-store-dir): Use `auth-source-pass-filename'. (password-store-read-field, password-store-get-field) (password-store-copy-field, password-store-parse-entry): New functions. (password-store-read-field): Use password-store-parse-entry. (password-store--save-field-in-kill-ring): New function extracted from `password-store-get'. (password-store-url): Use `password-store-get-field' and `password-store-url-field'. * contrib/emacs/README.md: Update documentation. * contrib/emacs/CHANGELOG.md: Announce changes.
Diffstat (limited to '')
-rw-r--r--contrib/emacs/README.md20
1 files changed, 14 insertions, 6 deletions
diff --git a/contrib/emacs/README.md b/contrib/emacs/README.md
index f94b95a..d3679e9 100644
--- a/contrib/emacs/README.md
+++ b/contrib/emacs/README.md
@@ -15,16 +15,24 @@ website for instructions
Interactive:
M-x password-store-insert
- Password entry: example
+ Password entry: foo-account
Password: ........
Confirm password: ........
M-x password-store-copy
- Password entry: example
- Copied example to the kill ring. Will clear in 45 seconds.
- Password cleared.
+ Password entry: foo-account
+ Copied password for foo-account to the kill ring. Will clear in 45 seconds.
+ Field password cleared.
+
+ M-x password-store-copy-field
+ Password entry: foo-account
+ Field: username
+ Copied username for foo-account to the kill ring. Will clear in 45 seconds.
+ Field url cleared.
+
Lisp:
- (password-store-insert "example" "password")
- (password-store-get "example") ; Returns "password"
+ (password-store-insert "foo-account" "password")
+ (password-store-get "foo-account") ; Returns "password"
+ (password-store-get-field "foo-account" "url") ; Returns "url"