Skip to content

Commit

Permalink
fix(pack-manager): renameIconFile() is now working
Browse files Browse the repository at this point in the history
require obsidian v0.13.3+
  • Loading branch information
aidenlx committed Nov 20, 2021
1 parent f6c7639 commit d016e9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 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": "obsidian-icon-shortcodes",
"name": "Icon Shortcodes",
"version": "0.5.1",
"minAppVersion": "0.12.17",
"minAppVersion": "0.13.4",
"description": "Insert emoji and custom icons with shortcodes",
"author": "AidenLx",
"authorUrl": "https://github.com/aidenlx",
Expand Down
2 changes: 0 additions & 2 deletions src/icon-packs/pack-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ export default class PackManager extends Events {
): Promise<string> {
const newPath = join(this.customIconsDir, newId + ext),
path = join(this.customIconsDir, id + ext);
return Promise.reject();
// Not working yet
await this.vault.adapter.rename(path, newPath);
return newPath;
}
Expand Down

0 comments on commit d016e9e

Please sign in to comment.