[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-tree-slide 7daa23cc27 022/144: Support TODO pursuit in
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/org-tree-slide 7daa23cc27 022/144: Support TODO pursuit in a slideshow |
Date: |
Tue, 18 Jan 2022 08:58:56 -0500 (EST) |
branch: elpa/org-tree-slide
commit 7daa23cc27764f5e9cc05c2adee484e006e9c521
Author: Takaaki ISHIKAWA <takaxp@ieee.org>
Commit: Takaaki ISHIKAWA <takaxp@ieee.org>
Support TODO pursuit in a slideshow
---
org-tree-slide.el | 45 +++++++++++++++++++++++++++++++++++++++++----
1 file changed, 41 insertions(+), 4 deletions(-)
diff --git a/org-tree-slide.el b/org-tree-slide.el
index e41d29fb77..32af62ce4a 100644
--- a/org-tree-slide.el
+++ b/org-tree-slide.el
@@ -28,6 +28,7 @@
;; The latest version of the org-mode at http://orgmode.org/ is recommended.
;;
;;; History:
+;; v2.4.0 (2011-12-08@10:51) # Support TODO pursuit in a slideshow
;; v2.3.2 (2011-12-08@09:22) # Reduce redundant processing
;; v2.3.1 (2011-12-07@20:30) # Add a new profile to control narrowing status
;; v2.3.0 (2011-12-07@16:17) # Support displaying a slide number
@@ -59,7 +60,7 @@
(require 'org)
(require 'org-timer)
-(defconst org-tree-slide "2.3.2"
+(defconst org-tree-slide "2.4.0"
"The version number of the org-tree-slide.el")
(defgroup org-tree-slide nil
@@ -124,6 +125,11 @@
:type 'boolean
:group 'org-tree-slide)
+(defcustom org-tree-slide-skip-done t
+ "Specify to show TODO item only or not."
+ :type'boolean
+ :group 'org-tree-slide)
+
(defface org-tree-slide-heading-level-2-init
'((t (:inherit outline-2)))
"Level 2."
@@ -156,7 +162,29 @@
(defvar org-tree-slide-mode-hook nil)
(defvar display-tree-slide-string nil)
(define-minor-mode org-tree-slide-mode
- "A presentation tool for org-mode."
+ "A presentation tool for org-mode.
+
+Usage:
+ - Install this elisp into your load-path.
+ - Set minimal recommendation settings in .emacs
+ (global-set-key (kbd \"<f8>\") 'org-tree-slide-mode)
+ (global-set-key (kbd \"S-<f8>\") 'org-tree-slide-skip-done-toggle)
+ - Open an org file
+ - Type <f8> to start org-tree-slide-mode
+ - Type <left>/<right> to move between trees
+ - To exit this minor mode, just type <f8> again
+
+Profiles:
+ - Simple
+ M-x org-tree-slide-simple-profile
+
+ - Presentation
+ M-x org-tree-slide-presentation-profile
+
+ - TODO Pursuit
+ M-x org-tree-slide-narrowing-control-profile
+ M-x org-tree-slide-skip-done-toggle
+"
:lighter (:eval (ots-update-modeline))
:keymap org-tree-slide-mode-map
:group 'org-tree-slide
@@ -240,6 +268,13 @@
(setq org-tree-slide-heading-emphasis (not org-tree-slide-heading-emphasis))
(ots-apply-custom-heading-face org-tree-slide-heading-emphasis))
+(defun org-tree-slide-skip-done-toggle ()
+ "Toggle show TODO item only or not"
+ (interactive)
+ (setq org-tree-slide-skip-done (not org-tree-slide-skip-done))
+ (if org-tree-slide-skip-done
+ (message "TODO Pursuit: ON") (message "TODO Pursuit: OFF")))
+
(defun org-tree-slide-move-next-tree ()
"Display the next slide"
(interactive)
@@ -353,10 +388,8 @@
(ots-outline-previous-heading))
((and (equal action 'last) (equal direction 'next))
(ots-outline-previous-heading)) ; Return back.
- ;; (message "End of slide."))
((and (equal action 'first) (equal direction 'previous))
(ots-move-to-the-first-heading)) ; Stay the first heading
- ;; (ots-outline-previous-heading))
(t nil)))
(defun ots-outline-skip-p (has-target-outline current-level)
@@ -366,6 +399,10 @@
'first)
((and (> org-tree-slide-skip-outline-level 0)
(<= org-tree-slide-skip-outline-level current-level)) 'skip)
+ ((and org-tree-slide-skip-done
+ (not
+ (looking-at
+ (concat org-outline-regexp-bol org-not-done-regexp))) 'skip))
(t nil)))
(defun ots-slide-in (brank-lines)
- [nongnu] branch elpa/org-tree-slide created (now 3faa042393), ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 82ee351449 001/144: first commit, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 7e0064f6cb 004/144: Add slide-in visual effect, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 52d67fc2a0 003/144: Add slide-in visual effect, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 79aec5bbab 006/144: Fix typo, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide d2739053a0 037/144: Update README, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 7daa23cc27 022/144: Support TODO pursuit in a slideshow,
ELPA Syncer <=
- [nongnu] elpa/org-tree-slide 420342f50b 030/144: Update README, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 8228b14520 031/144: Update README, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide bc6650cbbb 027/144: Rename README, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 6dfa0df7f9 002/144: Add start and stop function, display header, and change mode-line, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide bfbd4ddb5d 008/144: Add CONTENT view to see all the subtrees, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 26269ebd8e 016/144: Support TITLE/AUTHOR/EMAIL in a header, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide f08bc4012f 019/144: Add a new profile to control narrowing status, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide be2d679c35 028/144: Add a link, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide 871d75f872 055/144: Merge branch 'master' of github.com:takaxp/org-tree-slide, ELPA Syncer, 2022/01/18
- [nongnu] elpa/org-tree-slide a85c6e2b9c 062/144: Added a new toggle to skip commented trees, ELPA Syncer, 2022/01/18