obsidian-releases icon indicating copy to clipboard operation
obsidian-releases copied to clipboard

Added obsidian-ocr to community-plugins.json

Open MohrJonas opened this issue 2 years ago • 8 comments

I am submitting a new Community Plugin

Repo URL

Link to my plugin:

Release Checklist

  • [x] I have tested the plugin on
    • [x] Windows
    • [ ] macOS
    • [x] Linux
    • [ ] Android (if applicable)
    • [ ] iOS (if applicable)
  • [x] My GitHub release contains all required files
    • [x] main.js
    • [x] manifest.json
    • [ ] styles.css (optional)
  • [x] GitHub release name matches the exact version number specified in my manifest.json (Note: Use the exact version number, don't include a prefix v)
  • [x] The id in my manifest.json matches the id in the community-plugins.json file.
  • [x] My README.md describes the plugin's purpose and provides clear usage instructions.
  • [x] I have read the tips in https://github.com/obsidianmd/obsidian-releases/blob/master/plugin-review.md and have self-reviewed my plugin to avoid these common pitfalls.
  • [x] I have added a license in the LICENSE file.
  • [x] My project respects and is compatible with the original license of any code from other plugins that I'm using. I have given proper attribution to these other projects in my README.md.

MohrJonas avatar Jul 13 '22 18:07 MohrJonas

Hello MohrJonas!

I found the following errors in your plugin, Obsidian OCR:

:x: It seems like you made a typo in the repository field https://github.com/MohrJonas/obsidian-ocr :x: The newly added entry is not at the end, or you are submitting on someone else's behalf. Last plugin in the list is: https://github.com/MohrJonas/obsidian-ocr


This check was done automatically.

github-actions[bot] avatar Jul 13 '22 18:07 github-actions[bot]

MyPlugin Rename this to avoid conflicts with other plugins.

vaultPathToAbs you can use the `vault.adapter.getFullPath´ function instead.

getFileEnding A TFile has the extension property for this.

file as TFile This cast is useless.

joethei avatar Jul 15 '22 09:07 joethei

Thanks, I'll change these problems ASAP 😁

MohrJonas avatar Jul 15 '22 09:07 MohrJonas

Alright, I implemented the changes. Do I now have to create a new pull request?

MohrJonas avatar Jul 15 '22 11:07 MohrJonas

No, you don't need to create a new one. There are multiple review rounds, this will be merged once all reviewers are satisfied.

joethei avatar Jul 15 '22 11:07 joethei

liamcain avatar Jul 21 '22 19:07 liamcain

  • The //@ts-ignore either ignores that vault.adapter.getFullPath or vault.adapter.basePath apparently do not exist or that an import doesn't work even though it does.
  • I can't use getFiles() to get all the JSON-Files because it apparently ignores hiddenfiles (dotfiles) Apart from that, I implemented all the changes recommended to me 😁

MohrJonas avatar Jul 21 '22 21:07 MohrJonas

The //@ts-ignore either ignores that vault.adapter.getFullPath or vault.adapter.basePath apparently do not exist or that an import doesn't work even though it does.

  • The reason is you need to check the type of adapter.
if (vault.adapter instanceof FileSystemAdapter) {
  const absolutePath = vault.adapter.getFullPath(file);
}

The reason for this is that there is also a mobile file system adapter


liamcain avatar Aug 04 '22 22:08 liamcain

Alright, after some time of inactivity and lots of refactoring, bug-fixing and general improving, I believe the plugin is ready for another review 😁

MohrJonas avatar Oct 20 '22 17:10 MohrJonas