[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-contacts 21d4ae5367 141/154: Improve the alternativ
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-contacts 21d4ae5367 141/154: Improve the alternative org-contacts headline goto. |
Date: |
Fri, 9 Sep 2022 15:58:55 -0400 (EDT) |
branch: externals/org-contacts
commit 21d4ae5367beadba13a8fa15b6809ca1f93e5ae3
Author: stardiviner <numbchild@gmail.com>
Commit: stardiviner <numbchild@gmail.com>
Improve the alternative org-contacts headline goto.
---
org-contacts.el | 25 ++++++++++++++++---------
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a/org-contacts.el b/org-contacts.el
index 2cff1f7dce..d6e2e11bab 100644
--- a/org-contacts.el
+++ b/org-contacts.el
@@ -1297,7 +1297,7 @@ Each element has the form (NAME . (FILE . POSITION))."
(with-current-buffer buf
(string-match "/\\(.*\\)/" query)
(occur (match-string 1 query)))))
- ;; jump to contact headline directly
+ ;; jump to exact contact headline directly
(t
(let* ((f (car org-contacts-files))
(_ (find-file f))
@@ -1305,14 +1305,21 @@ Each element has the form (NAME . (FILE . POSITION))."
(with-current-buffer buf
(goto-char (marker-position (org-find-exact-headline-in-buffer
query))))
(display-buffer buf '(display-buffer-below-selected)))
- ;; FIXME
- ;; (let* ((contact-entry (plist-get (org-contacts--all-contacts) query))
- ;; (contact-name (plist-get contact-entry :name))
- ;; (file (plist-get contact-entry :file))
- ;; (position (plist-get contact-entry :position))
- ;; (buf (get-buffer (file-name-nondirectory file))))
- ;; (unless (buffer-live-p buf) (find-file file))
- ;; (with-current-buffer buf (goto-char position)))
+
+ ;; (let* ((f (car org-contacts-files))
+ ;; (_ (find-file f))
+ ;; ;; FIXME:
+ ;; (contact-entry (map-filter
+ ;; (lambda (contact-plist)
+ ;; (if (string-equal (plist-get contact-plist
:name) query)
+ ;; contact-plist))
+ ;; (org-contacts--all-contacts)))
+ ;; (contact-name (plist-get contact-entry :name))
+ ;; (file (plist-get contact-entry :file))
+ ;; (position (plist-get contact-entry :position))
+ ;; (buf (get-buffer (file-name-nondirectory file))))
+ ;; (with-current-buffer buf (goto-char position))
+ ;; (display-buffer buf '(display-buffer-below-selected)))
))))
;;;###autoload
- [elpa] externals/org-contacts 3a24177c3a 070/154: un-hexify TEL links in vCard export, (continued)
- [elpa] externals/org-contacts 3a24177c3a 070/154: un-hexify TEL links in vCard export, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 58edab6f69 134/154: Add autoload cookirs for completing functions, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 7ed94bcf72 140/154: Fix can't get-buffer when file is not opened which caused `buf` is nil., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 05522de61d 146/154: Setting package require versions list, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts cf8ae48b37 142/154: Add if logic on function erc-nicknames-list, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts bd83216f38 079/154: contrib/lisp/org-contacts.el: Complete contacts using tags and properties, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 2e77024e89 017/154: Copyright year fixes for contrib/., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 4170ea25f3 090/154: Deprecate `org-find-if' in favor of `cl-find-if', ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts c1a17bf632 076/154: Merge branch 'maint', ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 2de057e423 145/154: Make org-link-set-parameters <- org-add-link-type API compatible., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 21d4ae5367 141/154: Improve the alternative org-contacts headline goto.,
ELPA Syncer <=
- [elpa] externals/org-contacts c1c4cadf3f 151/154: Fix Warning: Unused lexical argument, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts a50ced61ef 093/154: Update tel link definition, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts f02da8b4de 088/154: org-contacts: Register "tel" link, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 80ab4708b7 114/154: Change how completion is done, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 1b028de47c 124/154: Fix contacts complete not working problem, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts b1032119a3 152/154: Fix package-lint warnings., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts d1298f4599 083/154: org-contacts.el: Catch `nextfile' in `org-contacts-db', ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 0a91557ef9 115/154: Tidy up whitespace, ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 00560d5f4f 117/154: Try to support different type of AVATAR property., ELPA Syncer, 2022/09/09
- [elpa] externals/org-contacts 81d9ed977d 138/154: Ensure font-lock after org-mode in company-mode doc-buffer, ELPA Syncer, 2022/09/09