Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calendar mark does not show when org-roam-dailies refile to a single file with datetree #2409

Open
aster-hu opened this issue Jan 28, 2024 · 0 comments

Comments

@aster-hu
Copy link

Description

When putting org-roam-dailies in a single org file with a datetree structure, org-roam-dailies-goto-date does not mark dailies in the calendar view.

I'm using the config that's provided as per this thread in org-roam discussion.

Steps to Reproduce

Create a org file named "journal.org" and set the following config for org-roam-dailies:

(setq org-roam-dailies-capture-templates
      '(("d" "default" entry
         "* %?"
         :target (file+datetree "journal.org" week))))

Backtrace

No error message, but it seems to be related to the function org-roam-dailies-calendar-mark-entries.

(defun org-roam-dailies-calendar-mark-entries ()
  "Mark days in the calendar for which a daily-note is present."
  (when (file-exists-p (expand-file-name org-roam-dailies-directory org-roam-directory))
    (dolist (date (remove nil
                          (mapcar #'org-roam-dailies-calendar--file-to-date
                                  (org-roam-dailies--list-files))))
      (when (calendar-date-is-visible-p date)
        (calendar-mark-visible-date date 'org-roam-dailies-calendar-note)))))

Expected Results

Days in the calendar should be marked when dailies are refiled to a single file within a datetree.

Actual Results

Days in the calendar are not marked.

Environment

  • Emacs: GNU Emacs 29.1 (build 1, aarch64-apple-darwin22.5.0, Carbon Version 169 AppKit 2299.6)
    of 2023-08-08
  • Framework: Doom
  • Org: Org mode version 9.7 (9.7-??-57b94f344 @ /Users/aster/.emacs.doom.d/.local/straight/build-29.1/org/)
  • Org-roam: 8667e44
  • sqlite-connector: sqlite-builtin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant