Skip to content

[Feature]: Automatic year-based folder organization for daily notes #16

@paris3200

Description

@paris3200

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 the dailies_path configuration
  • Automatically resolves the year when creating daily notes
  • Allows customization of the folder structure (e.g., personal/{{year}}/dailies/ or dailies/{{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:

  1. Press <leader>od for today's note
  2. Plugin automatically creates ~/notes/personal/dailies/2025/2025-07-06.md
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions