{"id":21451475,"url":"https://github.com/db-developer/daily-note-structure","last_synced_at":"2025-03-17T02:41:52.613Z","repository":{"id":244933442,"uuid":"816754339","full_name":"db-developer/daily-note-structure","owner":"db-developer","description":"This obsidian plugin creates a structure for your daily notes","archived":false,"fork":false,"pushed_at":"2024-06-23T19:51:35.000Z","size":48,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T12:27:55.568Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/db-developer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T10:44:27.000Z","updated_at":"2024-08-09T09:25:30.000Z","dependencies_parsed_at":"2024-06-23T20:44:05.248Z","dependency_job_id":null,"html_url":"https://github.com/db-developer/daily-note-structure","commit_stats":null,"previous_names":["db-developer/daily-note-structure"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db-developer%2Fdaily-note-structure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db-developer%2Fdaily-note-structure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db-developer%2Fdaily-note-structure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/db-developer%2Fdaily-note-structure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/db-developer","download_url":"https://codeload.github.com/db-developer/daily-note-structure/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243964068,"owners_count":20375709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T04:22:26.478Z","updated_at":"2025-03-17T02:41:52.593Z","avatar_url":"https://github.com/db-developer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Daily Note Structure\n\nCan be used to create a folder structure which finally holds the actual daily note.\nIf your 'daily' notes simply are a number of markdown files within a default folder, you will NOT need this plugin.\n\nThe purpose of this plugin is, to automate the daily creation of multiple folders and files.\n\n## Best Result Plugins\n\nYou may want to install the following obsidian plugins:\n\n- [Templater by SilentVoid](https://obsidian.md/plugins?search=templater)\n  Use this, to automatically generate 'folder not' and 'file' content.\n\n- [Folder Notes by Lost Paul](https://obsidian.md/plugins?search=folder%20notes)\n  Use this, to display default notes, by clicking on folders\n\n## Date/Time format patterns\nFor compatibility reasons, 'daily note structure' uses 'moment.js' so all of \n['moment.js' formats](https://momentjs.com/docs/#/displaying/format/) are available.\n\nAdditionally the following formats can be used:\n\n| Description                  | Token  | Output                                 |\n| ---------------------------: | :----- | :------------------------------------- |\n| Month of the weeks first day | MOW    | 1 2 ... 11 12                          |\n|                              | MoW    | 1st 2nd ... 11th 12th                  |\n|                              | MMOW   | 01 02 ... 11 12                        |\n|                              | MMMOW  | Jan Feb ... Nov Dec                    |\n|                              | MMMMOW | January February ... November December |\n\nThe format above may be useful for the first days of a new month, if you want to keep all 'dailies' of a week in the same folder.\n\nFormat patterns to be used by 'moment.js' must follow the format '{{ ... }}' and are replaced first.\n\n### Format errors\n\nEvaluation errors for bad format patterns can be found in obsidians developer console (\u003cshift\u003e+\u003cctrl\u003e+i)\nNote: Not every bad pattern will  fail with an error. Some will silently return 'unexpected results'.\n\n### Folder structure\n```typescript\nexport interface FolderStructure {\n  type: \"folder\" | \"file\";\n  namepattern: string;\n  template?: string;\n  description?: string;\n  children?: FolderStructure[];\n}\n```\n\nUsing the FolderStructure interface, you can setup a 'structure' on the plugins settings page.\nThe structure itself is an Array of FolderStructure objects.\n\n```json\n[{\n  \"type\": \"folder\",\n  \"namepattern\": \"{{YYYY}}\",\n  \"template\": \"Plugins/Templater/Templates/yearly_folder_note_template.md\",\n  \"description\": \"yearly folder base\",\n  \"children\": [{\n    \"type\": \"folder\",\n    \"namepattern\": \"{{MMOW}} - {{MMM}} {{YYYY}}\",\n    \"template\": null,\n    \"description\": \"folder matching the month for the first day in the week\",\n    \"children\": [{\n      \"type\": \"folder\",\n      \"namepattern\": \"KW {{WW}} ({{MMM}} {{YYYY}})\",\n      \"template\": null,\n      \"description\": \"folder matching the years week\",\n      \"children\": [{\n        \"type\": \"file\",\n        \"namepatern\": \"{{YYYY}}-{{MM}}-{{DD}}\",\n        \"template\": \"Plugins/Templater/Templates/daily_template.md\"\n      }]\n    }]\n  }]\n}]\n```\n\n#### Property 'type': {string} - required\nMust be one of \"folder\" or \"file\"\n\n#### Property 'namepattern': {string} - required\nA string, which can hold any combination of characters ad patterns.\nPatterns must follow '{{\u003cpattern\u003e}}' with pattern being exactly one of ['moment.js' formats](https://momentjs.com/docs/#/displaying/format/)\n\nDo not combine patterns inline. Don't use {{YYYY-MM-DD}}.\nThe supported way of combining patterns would be '{{YYYY}}-{{MM}}-{{DD}}' instead.\n\n#### Property 'template': {string} - optional\nAn optional string, which can hold a path to a markdown file, that can be used as template.\nIf a template is specified for 'type: \"file\"', the generated files content will be that of 'template'.\nIf a template is specified for 'type: \"folder\"', a markdown file will be generated inside the folder, with the folders name, and its content will be that of 'template'. For best results, additionally install a 'folder note' plugin.\n\n### Property 'description': {string} - optional\nAn optional string, which can be used to describe the files or folders purpose.\nThis property currently is not used for anything else.\n\n### Property 'children': {Array\u003cFolderStructure\u003e} - optional\nAn Array of further FolderStructure nodes. This property is used by nodes of 'type: \"folder\"' only. If specified on \"files\", the property is ignored.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdb-developer%2Fdaily-note-structure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdb-developer%2Fdaily-note-structure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdb-developer%2Fdaily-note-structure/lists"}