Skip to content

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
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

Successfully merging this pull request may close these issues.

1 participant