Skip to content

Commit c8b1040

Browse files
authored
[FEAT] allow for math in templates (#32)
* allow for math in templates * Remove unload fn * filter out non-md files
1 parent aa140e5 commit c8b1040

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "periodic-notes",
33
"name": "Periodic Notes",
44
"description": "Create/manage your daily, weekly, and monthly notes",
5-
"version": "0.0.11",
5+
"version": "0.0.12",
66
"author": "Liam Cain",
77
"authorUrl": "https://github.com/liamcain/",
88
"isDesktopOnly": false,

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-periodic-notes",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"description": "Create/manage daily, weekly, and monthly notes",
55
"author": "liamcain",
66
"main": "main.js",
@@ -14,7 +14,7 @@
1414
"dependencies": {
1515
"@popperjs/core": "2.9.1",
1616
"obsidian": "obsidianmd/obsidian-api#master",
17-
"obsidian-daily-notes-interface": "0.7.10",
17+
"obsidian-daily-notes-interface": "0.8.2",
1818
"svelte": "3.35.0",
1919
"tslib": "2.1.0"
2020
},

src/settings/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@ export class PeriodicNotesSettingsTab extends PluginSettingTab {
3737
this.plugin = plugin;
3838
}
3939

40-
unload(): void {
41-
super.unload();
42-
this.view?.$destroy();
43-
}
44-
4540
display(): void {
4641
this.containerEl.empty();
4742

src/ui/file-suggest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export class FileSuggest extends TextInputSuggest<TFile> {
1111
abstractFiles.forEach((file: TAbstractFile) => {
1212
if (
1313
file instanceof TFile &&
14+
file.extension === "md" &&
1415
file.path.toLowerCase().contains(lowerCaseInputStr)
1516
) {
1617
files.push(file);

yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -637,9 +637,9 @@
637637
"@types/tern" "*"
638638

639639
"@types/estree@*":
640-
version "0.0.46"
641-
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.46.tgz#0fb6bfbbeabd7a30880504993369c4bf1deab1fe"
642-
integrity sha512-laIjwTQaD+5DukBZaygQ79K1Z0jb1bPEMRrkXSLjtCcZm+abyp5YbrqpSLzD42FwWW6gK/aS4NYpJ804nG2brg==
640+
version "0.0.47"
641+
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.47.tgz#d7a51db20f0650efec24cd04994f523d93172ed4"
642+
integrity sha512-c5ciR06jK8u9BstrmJyO97m+klJrrhCf9u3rLu3DEAJBirxRqSCvDQoYKmxuYwQI5SZChAWu+tq9oVlGRuzPAg==
643643

644644
645645
version "0.0.39"
@@ -3272,17 +3272,17 @@ object.pick@^1.3.0:
32723272
dependencies:
32733273
isobject "^3.0.1"
32743274

3275-
obsidian-daily-notes-interface@0.7.10:
3276-
version "0.7.10"
3277-
resolved "https://registry.yarnpkg.com/obsidian-daily-notes-interface/-/obsidian-daily-notes-interface-0.7.10.tgz#38b65845408bd2a597227f991e8e8a46833d1922"
3278-
integrity sha512-9FzyAmWAki0rWS4dWHbwXatcVbWcZWT/vJEoat56Ozf3WN0xY6Pe+xdy3jwjwN8QyxK9Xxb0MJ/ARN/rN4ZNZg==
3275+
obsidian-daily-notes-interface@0.8.2:
3276+
version "0.8.2"
3277+
resolved "https://registry.yarnpkg.com/obsidian-daily-notes-interface/-/obsidian-daily-notes-interface-0.8.2.tgz#5445743acee00f7767e555769da9ec40593a1dbb"
3278+
integrity sha512-r9AwcD8pTFx6/u6ZeSHHlOpLRDS34oql4sE3N8gKxKMPhsupQskfXd6fYIUcb3Fgp2c7/1q3SUOl1xFTRxq/BQ==
32793279
dependencies:
32803280
obsidian obsidianmd/obsidian-api#master
32813281
tslib "2.1.0"
32823282

3283-
obsidian@obsidianmd/obsidian-api#master:
3284-
version "0.11.0"
3285-
resolved "https://codeload.github.com/obsidianmd/obsidian-api/tar.gz/81ab85ade4552c9116c1e10d009127e62019c923"
3283+
"obsidian@github:obsidianmd/obsidian-api#master", obsidian@obsidianmd/obsidian-api#master:
3284+
version "0.11.7"
3285+
resolved "https://codeload.github.com/obsidianmd/obsidian-api/tar.gz/55946e5a6259a28c416d2d6e600a7964a86a01dd"
32863286
dependencies:
32873287
"@types/codemirror" "0.0.98"
32883288

0 commit comments

Comments
 (0)