summaryrefslogtreecommitdiff
path: root/org-fc.el
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2020-11-02 14:03:18 +0100
committerLeon Rische <leon.rische@me.com>2020-11-02 14:03:18 +0100
commit1c593dad698305b93c418191dbe689ff8c45a391 (patch)
treefa1a1067ecd4277bbb832a784549b0f5eacddefb /org-fc.el
parent12d994a83dad066cc02763ea5d0169f0dffa52e1 (diff)
Add commands for (un)suspending all cards in a region
Diffstat (limited to 'org-fc.el')
-rw-r--r--org-fc.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/org-fc.el b/org-fc.el
index 3c4a376..1b25b21 100644
--- a/org-fc.el
+++ b/org-fc.el
@@ -764,6 +764,12 @@ Other useful values are:
(org-fc-map-cards 'org-fc-suspend-card))
;;;###autoload
+(defun org-fc-suspend-region ()
+ "Suspend all cards in the current region."
+ (interactive)
+ (org-fc-map-cards 'org-fc-suspend-card 'region))
+
+;;;###autoload
(defun org-fc-unsuspend-card ()
"Unsuspend the headline at point.
Checks if the headline is a suspended card first."
@@ -782,6 +788,12 @@ Checks if the headline is a suspended card first."
(interactive)
(org-fc-map-cards 'org-fc-unsuspend-card))
+;;;###autoload
+(defun org-fc-unsuspend-region ()
+ "Un-suspend all cards in the current region."
+ (interactive)
+ (org-fc-map-cards 'org-fc-unsuspend-card 'region))
+
;;; Indexing Cards
;;;; Card Filters