diff options
author | Leon Rische <leon.rische@me.com> | 2020-09-15 23:53:01 +0200 |
---|---|---|
committer | Leon Rische <leon.rische@me.com> | 2020-09-15 23:53:01 +0200 |
commit | 66e3707ca042353d19386e8977d05aa483200532 (patch) | |
tree | 5b9450f87e79c7f135610c27b8bdafacdbce67f8 /org-fc.el | |
parent | cb1e1dcc8c084a8a71a6dab25bc029f926433f73 (diff) |
Include title in header line
Diffstat (limited to 'org-fc.el')
-rw-r--r-- | org-fc.el | 25 |
1 files changed, 10 insertions, 15 deletions
@@ -1480,21 +1480,16 @@ removed." (defun org-fc-set-header-line () "Set the header-line for review." - (setq org-fc-original-header-line-format header-line-format) - (setq-local - header-line-format - `((org-fc-review-flip-mode - ,(format "Review, %d cards remaining, %s" - (1+ (length (oref org-fc--session cards))) - (org-fc-session-stats-string org-fc--session))) - (org-fc-review-rate-mode - ,(format "Rate, %d cards remaining, %s" - (1+ (length (oref org-fc--session cards))) - (org-fc-session-stats-string org-fc--session))) - (org-fc-review-edit-mode - ,(substitute-command-keys - "\\<org-fc-review-edit-mode-map>Org-fc edit. Resume \ -`\\[org-fc-review-resume]', quit review `\\[org-fc-review-quit]'."))))) + (let ((remaining (1+ (length (oref org-fc--session cards)))) + (title (plist-get (oref org-fc--session current-item) :filetitle))) + (setq org-fc-original-header-line-format header-line-format) + (setq-local + header-line-format + `((org-fc-review-flip-mode "Flip") + (org-fc-review-rate-mode "Rate") + (org-fc-review-edit-mode "Edit") + ,(format " (%d) " remaining) + ,title)))) (defun org-fc-reset-header-line () "Reset the header-line to its original value." |