Skip to content

Commit

Permalink
Merge pull request #92 from cashweaver/feat/hide-title-option
Browse files Browse the repository at this point in the history
feat: Add org-fc-review-hide-title-in-header-line
  • Loading branch information
l3kn authored Sep 19, 2022
2 parents 96245b7 + c16722c commit 7825855
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion org-fc-review.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7825855

Please sign in to comment.