-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
area:daily-notesRelated to daily note featuresRelated to daily note featuresenhancementNew feature or requestNew feature or request
Description
Feature Summary
Allow daily notes to automatically organize into folders based on the year, making the folder structure more flexible and configurable.
Problem or Use Case
Currently, daily notes are placed in a fixed path structure like personal/dailies/2025/. This hardcoded year in the path means the configuration needs to be manually updated each year, and it doesn't allow for flexible organization patterns.
Proposed Solution
Add automatic year-based folder creation that:
- Uses template variables like
{{year}}in thedailies_pathconfiguration - Automatically resolves the year when creating daily notes
- Allows customization of the folder structure (e.g.,
personal/{{year}}/dailies/ordailies/{{year}}/) - Creates the year folder automatically if it doesn't exist
Examples
Example configuration:
require('markdown-notes').setup({
dailies_path = "~/notes/personal/dailies/{{year}}"
})Usage:
- Press
<leader>odfor today's note - Plugin automatically creates
~/notes/personal/dailies/2025/2025-07-06.md - Next year, same config automatically creates
~/notes/personal/dailies/2026/2026-01-01.md
Alternative patterns:
dailies/{{year}}/{{year}}/dailies/journal/{{year}}/daily/
Additional Context
This would make the plugin more maintainable since the config wouldn't need annual updates, and it provides flexibility for different organizational preferences.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:daily-notesRelated to daily note featuresRelated to daily note featuresenhancementNew feature or requestNew feature or request