diff --git a/.obsidian/plugins/quickadd/data.json b/.obsidian/plugins/quickadd/data.json index a7c238c..df333cc 100644 --- a/.obsidian/plugins/quickadd/data.json +++ b/.obsidian/plugins/quickadd/data.json @@ -20,6 +20,13 @@ "type": "Macro", "command": true, "macroId": "84ef441e-4dd5-4349-a811-be48fe49ab9f" + }, + { + "id": "0a8d7591-c4b6-43ad-8692-ea6f3d23aa1d", + "name": "Add Kanban to Weekly", + "type": "Macro", + "command": true, + "macroId": "8b7ed685-74c3-454b-ba8c-961c60a985af" } ], "macros": [ @@ -156,6 +163,20 @@ } ], "runOnStartup": false + }, + { + "name": "Add Kanban to Weekly Note", + "id": "8b7ed685-74c3-454b-ba8c-961c60a985af", + "commands": [ + { + "name": "make-weekly-kanban", + "type": "UserScript", + "id": "bc15efb1-5a5f-4df0-84b4-7758c9873b2d", + "path": "_scripts/make-weekly-kanban.js", + "settings": {} + } + ], + "runOnStartup": false } ], "inputPrompt": "single-line", diff --git a/.obsidian/plugins/recent-files-obsidian/data.json b/.obsidian/plugins/recent-files-obsidian/data.json index 5d63044..9f77bdd 100644 --- a/.obsidian/plugins/recent-files-obsidian/data.json +++ b/.obsidian/plugins/recent-files-obsidian/data.json @@ -1,5 +1,49 @@ { "recentFiles": [ + { + "basename": "2022-W51-Kanban", + "path": "Calendar/Weekly/2022-W51-Kanban.md" + }, + { + "basename": "202212120002", + "path": "202212120002.md" + }, + { + "basename": "202212090137", + "path": "202212090137.md" + }, + { + "basename": "202212090136", + "path": "202212090136.md" + }, + { + "basename": "Computed", + "path": "Computed/Computed.md" + }, + { + "basename": "Squats", + "path": "Databases/Workouts/Squats.md" + }, + { + "basename": "Workouts", + "path": "Computed/Workouts.md" + }, + { + "basename": "Workouts", + "path": "Databases/Workouts/Workouts.md" + }, + { + "basename": "Recipes", + "path": "Databases/Recipes/Recipes.md" + }, + { + "basename": "CRM", + "path": "Computed/CRM.md" + }, + { + "basename": "Workout", + "path": "Templates/Workout.md" + }, { "basename": "Instant Pot Fried Rice", "path": "Databases/Recipes/Instant Pot Fried Rice.md" @@ -40,10 +84,6 @@ "basename": "Daily", "path": "Templates/Daily.md" }, - { - "basename": "CRM", - "path": "Computed/CRM.md" - }, { "basename": "202212122239", "path": "202212122239.md" @@ -76,18 +116,6 @@ "basename": "Test Project", "path": "_PARA/Projects/Test Project/Test Project.md" }, - { - "basename": "202212090136", - "path": "202212090136.md" - }, - { - "basename": "202212090137", - "path": "202212090137.md" - }, - { - "basename": "202212120002", - "path": "202212120002.md" - }, { "basename": "Test Project 2", "path": "_PARA/Projects/Test Project 2/Test Project 2.md" @@ -171,30 +199,6 @@ { "basename": "2022-12-11--11-59-30", "path": "Inbox/Smartphone Capture/2022-12-11--11-59-30.md" - }, - { - "basename": "2022-12-11--12-00-00", - "path": "Inbox/Computer Capture/2022-12-11--12-00-00.md" - }, - { - "basename": "2022-Q4", - "path": "Calendar/Quarterly/2022-Q4.md" - }, - { - "basename": "2022-12-11", - "path": "Calendar/Daily/2022-12-11.md" - }, - { - "basename": "2022-12-12", - "path": "Calendar/Daily/2022-12-12.md" - }, - { - "basename": "Paste URL into Selection", - "path": "_tests/Paste URL into Selection.md" - }, - { - "basename": "Readwise", - "path": "_tests/External/Readwise.md" } ], "omittedPaths": [], diff --git a/.obsidian/starred.json b/.obsidian/starred.json index 31b9d59..4d65a98 100644 --- a/.obsidian/starred.json +++ b/.obsidian/starred.json @@ -24,6 +24,11 @@ "type": "file", "title": "Hotkeys", "path": "_tutorial/Hotkeys.md" + }, + { + "type": "file", + "title": "CRM", + "path": "Computed/CRM.md" } ] } \ No newline at end of file diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 233685e..f285ec4 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -35,35 +35,9 @@ "id": "e5e122d97fdadddf", "type": "leaf", "state": { - "type": "markdown", + "type": "kanban", "state": { - "file": "Databases/Recipes/Instant Pot Fried Rice.md", - "mode": "source", - "source": false - } - } - }, - { - "id": "30767105d876abad", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "Templates/Quarterly.md", - "mode": "source", - "source": false - } - } - }, - { - "id": "de337eb10406382d", - "type": "leaf", - "state": { - "type": "markdown", - "state": { - "file": "Templates/People.md", - "mode": "source", - "source": false + "file": "Calendar/Weekly/2022-W51-Kanban.md" } } }, @@ -150,7 +124,8 @@ } ], "direction": "horizontal", - "width": 300 + "width": 300, + "collapsed": true }, "right": { "id": "b2837026535a9eaa", @@ -167,7 +142,7 @@ "state": { "type": "backlink", "state": { - "file": "Databases/Recipes/Instant Pot Fried Rice.md", + "file": "Calendar/Weekly/2022-W51-Kanban.md", "collapseAll": false, "extraContext": false, "sortOrder": "alphabetical", @@ -184,7 +159,7 @@ "state": { "type": "outgoing-link", "state": { - "file": "Databases/Recipes/Instant Pot Fried Rice.md", + "file": "Calendar/Weekly/2022-W51-Kanban.md", "linksCollapsed": false, "unlinkedCollapsed": true } @@ -207,7 +182,7 @@ "state": { "type": "outline", "state": { - "file": "Databases/Recipes/Instant Pot Fried Rice.md" + "file": "Calendar/Weekly/2022-W51-Kanban.md" } } }, @@ -257,15 +232,15 @@ }, "active": "e5e122d97fdadddf", "lastOpenFiles": [ - "Templates/People.md", - "Databases/CRM/Jane Doe.md", - "Databases/CRM/John Doe.md", - "Untitled.md", - "Databases/CRM/Untitled.md", - "Templates/Quarterly.md", - "Databases/CRM/CRM.md", - "Databases/Recipes/Instant Pot Fried Rice.md", - "Templates/Recipes.md", - "Templates/Weekly.md" + "202212120002.md", + "202212090137.md", + "202212090136.md", + "Computed/Computed.md", + "Databases/Workouts/Squats.md", + "Computed/Workouts.md", + "Databases/Workouts/Workouts.md", + "Databases/Recipes/Recipes.md", + "Computed/CRM.md", + "Templates/Workout.md" ] } \ No newline at end of file diff --git a/202212090136.md b/202212090136.md index 6656118..e29746b 100644 --- a/202212090136.md +++ b/202212090136.md @@ -5,15 +5,15 @@ projects: [Test Project] title: The Dress linter-yaml-title-alias: The Dress date created: Friday, December 9th 2022, 1:36:16 am -date modified: Wednesday, December 14th 2022, 3:33:55 pm +date modified: Thursday, December 15th 2022, 1:22:30 pm --- # The Dress -The dress[^1] was a meme in 2015 that broke friendships apart and caused a full out war on the internet. +The dress[^1] was a meme in 2015 that broke friendships apart and caused a full out war on the internet. No one could decide whether the dress was blue or gold. Unlike the Harlem Shake, [[202212090137]] , which brought people together, the dress caused a impassable rift in an already divided nation. ![[The_dress_blueblackwhitegold.jpeg]] -[^1]: [The dress - Wikipedia](https://en.wikipedia.org/wiki/The_dress) \ No newline at end of file +[^1]: [The dress - Wikipedia](https://en.wikipedia.org/wiki/The_dress) diff --git a/202212090137.md b/202212090137.md index 097d664..b3b141d 100644 --- a/202212090137.md +++ b/202212090137.md @@ -5,19 +5,15 @@ projects: [] title: Harlem Shake linter-yaml-title-alias: Harlem Shake date created: Friday, December 9th 2022, 1:37:28 am -date modified: Wednesday, December 14th 2022, 3:33:55 pm +date modified: Thursday, December 15th 2022, 1:22:40 pm --- # Harlem Shake The Harlem Shake[^1] was a regrettable societal decision everyone underwent in early 2013, flooding the Internet with videos of people of all ages gyrating aggresively to Harlem Shake by Bauer.[^2] If there was any silver lining from this horrific trend, it was that it brought people together, unlike The Dress, [[202212090136]], which tore entire families apart. - [BEST / FUNNIEST Harlem Shake Compilation!](https://www.youtube.com/watch?v=E5xE1O6A5tM&ab_channel=Niles) - - - - [^1]: [Harlem Shake (meme) - Wikipedia](https://en.wikipedia.org/wiki/Harlem_Shake_(meme)) -[^2]: [Harlem Shake - song and lyrics by Baauer | Spotify](https://open.spotify.com/track/01XFgRZfZI7oBagNf1Loml?si=bee9cf7312594b24) \ No newline at end of file + +[^2]: [Harlem Shake - song and lyrics by Baauer | Spotify](https://open.spotify.com/track/01XFgRZfZI7oBagNf1Loml?si=bee9cf7312594b24) diff --git a/Calendar/Weekly/2022-W51-Kanban.md b/Calendar/Weekly/2022-W51-Kanban.md new file mode 100644 index 0000000..3698d66 --- /dev/null +++ b/Calendar/Weekly/2022-W51-Kanban.md @@ -0,0 +1,30 @@ +--- + +kanban-plugin: basic + +--- + +## To Do + + + +## In Progress + + + +## Done + +**Complete** + + +## Waiting On + + + + + +%% kanban:settings +``` +{"kanban-plugin":"basic"} + ``` + %% \ No newline at end of file diff --git a/Computed/Computed.md b/Computed/Computed.md index 3024f8e..8f512fa 100644 --- a/Computed/Computed.md +++ b/Computed/Computed.md @@ -1,15 +1,18 @@ --- -tags: +aliases: [Computed] +tags: [] title: Computed date created: Saturday, December 10th 2022, 6:04:39 pm -date modified: Wednesday, December 14th 2022, 3:33:55 pm +date modified: Thursday, December 15th 2022, 1:22:15 pm +linter-yaml-title-alias: Computed --- -Dataview collections %% Begin Waypoint %% + - [[CRM]] - [[Tasks]] - [[To Process]] - [[Trackers]] +- [[Workouts]] -%% End Waypoint %% \ No newline at end of file +%% End Waypoint %% diff --git a/Computed/Workouts.md b/Computed/Workouts.md new file mode 100644 index 0000000..d09435a --- /dev/null +++ b/Computed/Workouts.md @@ -0,0 +1,6 @@ + +```dataview +table reps, weight +from "Databases/Workouts" +where file.name != "Workouts" +``` \ No newline at end of file diff --git a/Databases/Recipes/Recipes.md b/Databases/Recipes/Recipes.md new file mode 100644 index 0000000..1a637ed --- /dev/null +++ b/Databases/Recipes/Recipes.md @@ -0,0 +1,5 @@ + +%% Begin Waypoint %% +- [[Instant Pot Fried Rice]] + +%% End Waypoint %% diff --git a/Databases/Workouts/Squats.md b/Databases/Workouts/Squats.md new file mode 100644 index 0000000..60fa5ae --- /dev/null +++ b/Databases/Workouts/Squats.md @@ -0,0 +1,19 @@ +--- +aliases: [Squats] +tags: [workout] +title: Squats +reps: 5 +weight: 135 +linter-yaml-title-alias: Squats +date created: Thursday, December 15th 2022, 1:13:46 pm +date modified: Thursday, December 15th 2022, 1:15:18 pm +--- + +# Squats + + +## Form + +
+ + diff --git a/Databases/Workouts/Workouts.md b/Databases/Workouts/Workouts.md new file mode 100644 index 0000000..3b66934 --- /dev/null +++ b/Databases/Workouts/Workouts.md @@ -0,0 +1,5 @@ + +%% Begin Waypoint %% +- [[Squats]] + +%% End Waypoint %% \ No newline at end of file diff --git a/Templates/Templates.md b/Templates/Templates.md index 572d3be..e64a585 100644 --- a/Templates/Templates.md +++ b/Templates/Templates.md @@ -11,6 +11,7 @@ date modified: Wednesday, December 14th 2022, 3:33:55 pm - [[Quarterly]] - [[Recipes]] - [[Weekly]] +- [[Workout]] - [[Zettelkasten Note]] %% End Waypoint %% \ No newline at end of file diff --git a/Templates/Workout.md b/Templates/Workout.md new file mode 100644 index 0000000..4220793 --- /dev/null +++ b/Templates/Workout.md @@ -0,0 +1,12 @@ +--- +aliases: [Workout] +tags: [workout] +title: Workout +reps: +weight: +linter-yaml-title-alias: Workout +date created: Thursday, December 15th 2022, 1:13:46 pm +date modified: Thursday, December 15th 2022, 1:13:57 pm +--- + +# <% tp.system.prompt("What Is the Full Name of This Workout?") %> \ No newline at end of file diff --git a/_scripts/make-weekly-kanban.js b/_scripts/make-weekly-kanban.js new file mode 100644 index 0000000..00a91e6 --- /dev/null +++ b/_scripts/make-weekly-kanban.js @@ -0,0 +1,82 @@ +module.exports = async function makeWeeklyKanban(params) { + const WEEKLY_FOLDER = "Calendar/Weekly/"; + + // This script is released to the public domain and may be used, modified and + // distributed without restrictions. Attribution not necessary but appreciated. + // Source: https://weeknumber.com/how-to/javascript + + // Returns the ISO week of the date. + Date.prototype.getWeek = function () { + var date = new Date(this.getTime()); + date.setHours(0, 0, 0, 0); + // Thursday in current week decides the year. + date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7)); + // January 4 is always in week 1. + var week1 = new Date(date.getFullYear(), 0, 4); + // Adjust to Thursday in week 1 and count number of weeks from date to week1. + return ( + 1 + + Math.round( + ((date.getTime() - week1.getTime()) / 86400000 - + 3 + + ((week1.getDay() + 6) % 7)) / + 7 + ) + ); + }; + + // Returns the four-digit year corresponding to the ISO week of the date. + Date.prototype.getWeekYear = function () { + var date = new Date(this.getTime()); + date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7)); + return date.getFullYear(); + }; + + const year = new Date().getWeekYear(); + const weekNum = new Date().getWeek() + 1; // obsidian calendar uses 1-indexed weeks + + const filename = `${year}-W${weekNum}-Kanban.md`; + + + if (params.app.vault.getAbstractFileByPath(`${WEEKLY_FOLDER}${filename}`)) { + + const Notice = params.obsidian.Notice; + + new Notice( + `Weekly Kanban already exists for week ${weekNum} of ${year}` + ); + + return; + } + + await params.app.vault.create(`${WEEKLY_FOLDER}${filename}`, `--- + +kanban-plugin: basic + +--- + +## To Do + + + +## In Progress + + + +## Done + +**Complete** + + +## Waiting On + + + + + +%% kanban:settings +\`\`\` +{"kanban-plugin":"basic"} + \`\`\` + %%`); +};