diff options
author | Leon Rische <leon.rische@me.com> | 2020-09-22 12:12:36 +0200 |
---|---|---|
committer | Leon Rische <leon.rische@me.com> | 2020-09-22 12:12:36 +0200 |
commit | 294521f1cbc7a25437a04cbac49f6dab13dcf54a (patch) | |
tree | d5e6273f00f8cb563f19fa1c599b286ea1894419 /org-fc.el | |
parent | 1d4060eedd8d8e702c87a165a6be6cf9942615d7 (diff) |
Move notitle check to `set-header-line` function
Diffstat (limited to 'org-fc.el')
-rw-r--r-- | org-fc.el | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -1213,10 +1213,8 @@ element." (mapcar (lambda (pos) (list - ;; FIXME: This is rather inelegant - :filetitle - (unless (member "notitle" (plist-get card :tags)) - (plist-get card :filetitle)) + :filetitle (plist-get card :filetitle) + :tags (plist-get card :tags) :path (plist-get card :path) :id (plist-get card :id) :type (plist-get card :type) @@ -1482,8 +1480,11 @@ removed." (defun org-fc-set-header-line () "Set the header-line for review." - (let ((remaining (1+ (length (oref org-fc--session cards)))) - (title (plist-get (oref org-fc--session current-item) :filetitle))) + (let* ((remaining (1+ (length (oref org-fc--session cards)))) + (current (oref org-fc--session current-item)) + (title + (unless (member "notitle" (plist-get current :tags)) + (plist-get current :filetitle)))) (setq org-fc-original-header-line-format header-line-format) (setq-local header-line-format |