[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/dslide d2217bc74f 07/16: Quick fix for TODO and tag hiding
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/dslide d2217bc74f 07/16: Quick fix for TODO and tag hiding in contents |
Date: |
Mon, 25 Nov 2024 01:00:02 -0500 (EST) |
branch: elpa/dslide
commit d2217bc74fec895eadf41db20d2d044396e8ac70
Author: Psionik K <73710933+psionic-k@users.noreply.github.com>
Commit: Psionik K <73710933+psionic-k@users.noreply.github.com>
Quick fix for TODO and tag hiding in contents
Did not attempt to refactor this. Duplicated code from the hide markup
action.
---
dslide.el | 29 +++++++++++++++++++++++------
1 file changed, 23 insertions(+), 6 deletions(-)
diff --git a/dslide.el b/dslide.el
index e0818876c2..27d4076cab 100644
--- a/dslide.el
+++ b/dslide.el
@@ -3041,12 +3041,29 @@ each slide show from the contents view."
;; hide filtered headings
(org-element-map data 'headline
(lambda (e)
- (unless (funcall filter e)
- (let ((overlay (make-overlay
- (org-element-property :begin e)
- (org-element-property :end e))))
- (overlay-put overlay 'display "\n")
- (push overlay dslide-overlays))))
+ (when (= 1 (org-element-property :level e))
+ (if (funcall filter e)
+ ;; TODO Consolidate this with hide markup action
+ (progn
+ (when (or dslide-hide-tags dslide-hide-todo)
+ (save-excursion
+ (goto-char (org-element-property :begin e))
+ (org-heading-components)))
+ (when dslide-hide-todo
+ (when-let* ((todo-beg (match-beginning 2))
+ (overlay (make-overlay (1- todo-beg) (match-end
2))))
+ (overlay-put overlay 'invisible t)
+ (push overlay dslide-overlays)))
+ (when dslide-hide-tags
+ (when-let* ((tags-beg (match-beginning 5))
+ (overlay (make-overlay (1- tags-beg) (match-end
5))))
+ (overlay-put overlay 'invisible t)
+ (push overlay dslide-overlays))))
+ (let ((overlay (make-overlay
+ (org-element-property :begin e)
+ (org-element-property :end e))))
+ (overlay-put overlay 'display "\n")
+ (push overlay dslide-overlays)))))
nil nil t)
(goto-char
(org-element-property :begin (dslide--root-heading-at-point filter)))
- [nongnu] elpa/dslide updated (552e63c6ac -> 0d9a1f6c27), ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 513b1109fb 06/16: Get rid of erroneous step padding in simple slide images, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 8b4336db4d 02/16: use the current slide's filter, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 6d9ebfb79a 08/16: clean up propertize action for showing off, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide f59c85784c 11/16: Aha! image-keyword interplay fixed, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 10b1386cf4 03/16: Hide the newline after each affiliated keyword, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide d2217bc74f 07/16: Quick fix for TODO and tag hiding in contents,
ELPA Syncer <=
- [nongnu] elpa/dslide 91652de16a 15/16: Bug fix for reverse-in-place (!), ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 7949a5f337 09/16: Hiding filtered headings needs to collapse display completely, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide ad7f189032 10/16: reverse action list when going backwards or starting at the end, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 0e027e0527 04/16: Clip newline from text property action overlay region, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 1aa45a2223 05/16: Only cleanup overlays in finish, only for this slide, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 0d9a1f6c27 16/16: Release 0.5.5, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 0c5b00b4ec 01/16: line noise, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 3aa8ea4bcc 12/16: Good things for the manual. Updates to generated., ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 0a068013b3 13/16: Image feature cleanups. Good to go 👌, ELPA Syncer, 2024/11/25
- [nongnu] elpa/dslide 3fbc0a6cfb 14/16: implement peeking for section and child mapping, ELPA Syncer, 2024/11/25