Skip to content

Fixes #6

Open
Open
@lzilioli

Description

@lzilioli

I fixed a number of issues in this plugin that was preventing it from working on my vault. At least some of these changes should probably get incorporated into the mainline branch.

  • Differentiate between stdout and stderr in debug output (8955f7e)

  • Use console.error for error messages (c843f6d)

  • Escape spaces in file paths (69ccc04)

    • this one seems like it would be necessary for anyone trying to use this plugin within an icloud synced obsidian vault
  • Prevent insertion of empty details (49a208e)

    • if the call to tesseract fails, this plugin should not insert empty details–the user should have a chance to debug and fix the plugin setup
  • Split functionality into two commands (fd47b66)

    • adds command to run ocr against the current file only
  • Support legacy style links (ca0e3af)

    • this one is probably specific to my needs, but it takes older style links e.g. [test.jpg](../../uploads/test.jpg) and rewrites them to wiki style links so that the rest of the plugin code works. This could be tied to a setting if people think it would be useful, otherwise its a bit destructive and could be dropped.

    Please refer Lzilioli improvements #7 for the code changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions