summaryrefslogtreecommitdiff
path: root/org-fc-review.el
diff options
context:
space:
mode:
authorCash Weaver <cashbweaver@gmail.com>2022-09-18 09:11:30 -0700
committerCash Weaver <cashbweaver@gmail.com>2022-09-18 19:56:44 -0700
commitc16722c02563215af2db58b9295c4e09a880a3d6 (patch)
treeab2a9649acaaabf524ef899481bba02d150759ea /org-fc-review.el
parent9bdc59cd0d1d979bf0f073224a947c53391f4c05 (diff)
feat: Add org-fc-review-hide-title-in-header-line
Users can hide the title for individual cards with the `:notitle:` tag. Add `org-fc-review-hide-title-in-header-line` option to allow for hiding titles for all cards.
Diffstat (limited to 'org-fc-review.el')
-rw-r--r--org-fc-review.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/org-fc-review.el b/org-fc-review.el
index 2ca2627..d539439 100644
--- a/org-fc-review.el
+++ b/org-fc-review.el
@@ -66,6 +66,13 @@
:type 'hook
:group 'org-fc)
+(defcustom org-fc-review-hide-title-in-header-line nil
+ "Whether or not to hide the file title in review header line.
+
+Hide title for individual cards by adding the :notitle: tag."
+ :type 'boolean
+ :group 'org-fc)
+
;;; Variables
(defvar org-fc-review--session nil
@@ -481,7 +488,8 @@ removed."
(let* ((remaining (1+ (length (oref org-fc-review--session cards))))
(current (oref org-fc-review--session current-item))
(title
- (unless (member "notitle" (plist-get current :tags))
+ (unless (or org-fc-review-hide-title-in-header-line
+ (member "notitle" (plist-get current :tags)))
(plist-get current :filetitle))))
(setq org-fc-original-header-line-format header-line-format)
(setq-local