Skip to content

Commit

Permalink
[FEAT] allow for math in templates (#32)
Browse files Browse the repository at this point in the history
* allow for math in templates

* Remove unload fn

* filter out non-md files
  • Loading branch information
liamcain authored Mar 30, 2021
1 parent aa140e5 commit c8b1040
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "periodic-notes",
"name": "Periodic Notes",
"description": "Create/manage your daily, weekly, and monthly notes",
"version": "0.0.11",
"version": "0.0.12",
"author": "Liam Cain",
"authorUrl": "https:/liamcain/",
"isDesktopOnly": false,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-periodic-notes",
"version": "0.0.11",
"version": "0.0.12",
"description": "Create/manage daily, weekly, and monthly notes",
"author": "liamcain",
"main": "main.js",
Expand All @@ -14,7 +14,7 @@
"dependencies": {
"@popperjs/core": "2.9.1",
"obsidian": "obsidianmd/obsidian-api#master",
"obsidian-daily-notes-interface": "0.7.10",
"obsidian-daily-notes-interface": "0.8.2",
"svelte": "3.35.0",
"tslib": "2.1.0"
},
Expand Down
5 changes: 0 additions & 5 deletions src/settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ export class PeriodicNotesSettingsTab extends PluginSettingTab {
this.plugin = plugin;
}

unload(): void {
super.unload();
this.view?.$destroy();
}

display(): void {
this.containerEl.empty();

Expand Down
1 change: 1 addition & 0 deletions src/ui/file-suggest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export class FileSuggest extends TextInputSuggest<TFile> {
abstractFiles.forEach((file: TAbstractFile) => {
if (
file instanceof TFile &&
file.extension === "md" &&
file.path.toLowerCase().contains(lowerCaseInputStr)
) {
files.push(file);
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,9 @@
"@types/tern" "*"

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

"@types/[email protected]":
version "0.0.39"
Expand Down Expand Up @@ -3272,17 +3272,17 @@ object.pick@^1.3.0:
dependencies:
isobject "^3.0.1"

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

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

Expand Down

0 comments on commit c8b1040

Please sign in to comment.