From c16722c02563215af2db58b9295c4e09a880a3d6 Mon Sep 17 00:00:00 2001 From: Cash Weaver Date: Sun, 18 Sep 2022 09:11:30 -0700 Subject: 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. --- org-fc-review.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3