Skip to content

feature: allow grouping daily notes by date. #792

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

alpham
Copy link

@alpham alpham commented Dec 14, 2024

I was trying to find a way to group the daily notes by year and month.
After looking at the codebase I found that it's possible to do so by templating the opts.daily_notes.folder and allow adding template variables for datetime in lua.

example:
lazy.nvim configs

return {
  "epwalsh/obsidian.nvim",
...
  opts = {
    ...
    daily_notes = {
      folder = "notes/dailies/%Y/%B"
      ...
    },
    ...
  },
...
}

output:

notes
└── dailies
    └── 2024
        ├── December
        │   ├── 2024-12-01.md
        │   ├── 2024-12-02.md
        │   ├── 2024-12-03.md

@alpham alpham force-pushed the feat-allow-grouping-notes-by-date branch from 6456cf7 to 0d7c6f5 Compare December 14, 2024 15:52
@alpham alpham force-pushed the feat-allow-grouping-notes-by-date branch from 0d7c6f5 to 9607498 Compare December 14, 2024 16:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant