Skip to content

Commit b6f40d3

Browse files
authored
Merge pull request #10 from MeepTech/v1.2.1
V1.2.1
2 parents 2d00aba + 0f15750 commit b6f40d3

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-custom-file-extensions-plugin",
33
"name": "Custom File Extensions Plugin",
4-
"version": "1.2.0",
4+
"version": "1.2.1",
55
"minAppVersion": "0.10.12",
66
"description": "Associate views with custom file extensions via settings.",
77
"author": "Meep.Tech",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obsidian-custom-file-extensions-plugin",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Associate views with custom file extensions via settings.",
55
"main": "build/main.js",
66
"scripts": {

src/edit-modal.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,20 @@ export class EditExtensionModal extends Modal {
1111
private plugin: CustomFileExtensions,
1212
private target: TAbstractFile,
1313
) {
14-
console.log("Opening modal")
1514
super(plugin.app);
1615
this.target ??= this.plugin.app.vault.getRoot();
1716

1817
this._path = this.target.path.split("/").slice(0, -1).join("/");
19-
console.log(this._path);
2018

2119
let lastPart = this.target.path
2220
.split("/")
2321
.last()!;
2422
this._name = lastPart.split(".")[0]!;
25-
console.log(this._name);
2623

2724
let lastParts = lastPart?.split(".")!;
2825
this._originalExtension
2926
= this._newExtension
3027
= lastParts.length == 1 ? "" : lastParts.last()!;
31-
console.log(this._originalExtension);
3228
}
3329

3430
onOpen() {

src/main.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,12 @@ export class CustomFileExtensions extends Plugin {
137137
/**@ts-expect-error */
138138
this.app.viewRegistry.unregisterExtensions([extension]);
139139
} catch {
140-
console.log("ERROR");
140+
const message = `Could not unregister extension: '${extension}'`;
141+
new Notification("Error: Custom File Extensions Plugin", {
142+
body: message,
143+
});
144+
145+
console.error(message);
141146
}
142147
}
143148
}

versions.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"1.0.0": "0.15.0",
33
"1.0.1": "0.15.0",
44
"1.1.0": "0.15.0",
5-
"1.2.0": "0.15.0"
5+
"1.2.0": "0.15.0",
6+
"1.2.1": "0.15.0"
67
}

0 commit comments

Comments
 (0)