diff options
author | Leon <gh@leonrische.me> | 2022-09-19 11:12:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-19 11:12:07 +0200 |
commit | 78258557eeb4405416e911324330bbff113a81d0 (patch) | |
tree | 9c54aab7d8fbda38f4a84f76f59ed031762906ff | |
parent | 96245b721f7bf62bb330b2aef717351e063bcaa4 (diff) | |
parent | c16722c02563215af2db58b9295c4e09a880a3d6 (diff) |
Merge pull request #92 from cashweaver/feat/hide-title-option
feat: Add org-fc-review-hide-title-in-header-line
-rw-r--r-- | org-fc-review.el | 10 |
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 |