[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-real cb64694 051/160: Added children when following
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-real cb64694 051/160: Added children when following a link |
Date: |
Wed, 6 Oct 2021 16:58:13 -0400 (EDT) |
branch: externals/org-real
commit cb64694f56c384caf0b9f676315a02db8951c358
Author: Tyler Grinn <tylergrinn@gmail.com>
Commit: Tyler Grinn <tylergrinn@gmail.com>
Added children when following a link
---
org-real.el | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/org-real.el b/org-real.el
index 09578b9..3316a59 100644
--- a/org-real.el
+++ b/org-real.el
@@ -73,6 +73,11 @@
:type 'number
:group 'org-real)
+(defcustom org-real-include-children t
+ "Whether to show children when opening a real link."
+ :type 'boolean
+ :group 'org-real)
+
;;;; Faces
(defface org-real-primary
@@ -155,8 +160,22 @@ describing where BOX is."
(defun org-real-follow (url &rest _)
"Open a real link URL in a popup buffer."
+ (pp include-children)
(let* ((containers (org-real--parse-url url))
(box (org-real--make-instance 'org-real-box (copy-tree containers))))
+ (if org-real-include-children
+ (let* ((primary-name (plist-get (car (reverse containers)) :name))
+ (children (mapcar
+ (lambda (containers)
+ (org-real--make-instance 'org-real-box containers))
+ (seq-filter
+ (lambda (containers)
+ (seq-some
+ (lambda (container)
+ (string= primary-name (plist-get container
:name)))
+ containers))
+ (org-real--parse-buffer)))))
+ (setq box (org-real--merge (push box children)))))
(org-real--pp box (copy-tree containers))))
(defun org-real-complete (&optional existing)
- [elpa] externals/org-real c1a21a5 050/160: Added 'on top of' preposition; update customization vars, (continued)
- [elpa] externals/org-real c1a21a5 050/160: Added 'on top of' preposition; update customization vars, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 180d374 014/160: Standardized pretty printing for org-real-world and opening a link, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 356767c 034/160: Added org-real-pkg for multifile package, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real dd03f41 025/160: Initial release, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 0b764c7 022/160: get-width compares children with margins included, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real a5df40f 026/160: Bump version, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real ac799d3 040/160: Merge into single file, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 7d9d67d 044/160: Rearranging, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 2ebeb5c 046/160: Updated readme, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 8445765 047/160: Added customization group, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real cb64694 051/160: Added children when following a link,
ELPA Syncer <=
- [elpa] externals/org-real 01899e9 052/160: More edge cases, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real b9a7e8a 053/160: Removed existing containers from completion candidates, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 8b6a4e1 054/160: Added org-real-flex-width custom variable, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 91b96a1 057/160: Renamed org-real-include-children to org-real-include-context, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 35aa1c1 062/160: Updated readme, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real 43f349e 067/160: Typos, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real baf5c9b 072/160: Updated documentation, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real bc2c7ea 068/160: Using infinity, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real c37d17c 073/160: Bump version, ELPA Syncer, 2021/10/06
- [elpa] externals/org-real e0109e8 079/160: Typo, ELPA Syncer, 2021/10/06