Skip to content

Commit

Permalink
Add support for the .org_archive extension.
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan McQuen <rpcm@linux.com>
  • Loading branch information
ryanpcmcquen committed Dec 14, 2023
1 parent 4a9886d commit aca3a3e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
20 changes: 10 additions & 10 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "obsidian-org-mode",
"name": "Org Mode",
"version": "1.3.3",
"minAppVersion": "0.10.12",
"description": "Add Org Mode support to Obsidian.",
"author": "ryanpcmcquen",
"authorUrl": "https://github.com/ryanpcmcquen",
"isDesktopOnly": false
}
{
"id": "obsidian-org-mode",
"name": "Org Mode",
"version": "1.4.0",
"minAppVersion": "0.10.12",
"description": "Add Org Mode support to Obsidian.",
"author": "ryanpcmcquen",
"authorUrl": "https://github.com/ryanpcmcquen",
"isDesktopOnly": false
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-org-mode",
"version": "1.3.3",
"version": "1.4.0",
"description": "Add Org Mode support to Obsidian.",
"main": "main.js",
"repository": "https://github.com/ryanpcmcquen/obsidian-org-mode",
Expand Down
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default class OrgMode extends Plugin {
console.log("Loading Org Mode plugin ...");

this.registerView("orgmode", this.orgViewCreator);
this.registerExtensions(["org"], "orgmode");
this.registerExtensions(["org", "org_archive"], "orgmode");
}

orgViewCreator = (leaf: WorkspaceLeaf) => {
Expand Down Expand Up @@ -101,7 +101,7 @@ class OrgView extends TextFileView {
}

canAcceptExtension(extension: string) {
return extension === "org";
return extension === "org" || extension === "org_archive";
}

getViewType() {
Expand Down
25 changes: 13 additions & 12 deletions versions.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"1.3.3": "0.10.12",
"1.3.2": "0.10.12",
"1.3.1": "0.10.12",
"1.3.0": "0.10.12",
"1.2.1": "0.10.12",
"1.2.0": "0.10.12",
"1.1.1": "0.10.12",
"1.1.0": "0.10.12",
"1.0.1": "0.10.12",
"1.0.0": "0.10.12"
}
{
"1.4.0": "0.10.12",
"1.3.3": "0.10.12",
"1.3.2": "0.10.12",
"1.3.1": "0.10.12",
"1.3.0": "0.10.12",
"1.2.1": "0.10.12",
"1.2.0": "0.10.12",
"1.1.1": "0.10.12",
"1.1.0": "0.10.12",
"1.0.1": "0.10.12",
"1.0.0": "0.10.12"
}

0 comments on commit aca3a3e

Please sign in to comment.