elias-sundqvist / obsidian-annotator

A plugin for reading and annotating PDFs and EPUBs in obsidian.
GNU Affero General Public License v3.0
1.46k stars 68 forks source link

The "Annotate" button doesn't appear. #319

Open valiantgenomics opened 1 year ago

valiantgenomics commented 1 year ago

Just wanted to ask a quick question, if I may. Not sure if it's a bug, or I'm doing something wrong.

But I have the Annotator plugin enabled, I then create a new note, I write the annotator-target as shown in the example:

‒‒‒ annotation-target: examplename.pdf ‒‒‒

The "examplename.pdf" is already in my vault.

And nothing happens afterwards. I tried adding annotation-target-pdf (as in type) but that didn't work either.

When I click on the 3-dot menu, or right-click the note with the annotation-target, I should see the "Annotate" option appear, but it doesn't.

Is this a bug? Or am I missing something?

I'm on Linux/PopOS if that provides further clarity.

Thanks a ton!

valiantgenomics commented 1 year ago

Randomly found the issue myself, even though I thought I exhausted all of my troubleshooting options.

The PDF I was trying to load had a semi-column towards the end of its name.

Obsidian doesn't allow it.

But since that was the original PDF title and I simply dragged the PDF into my vault, it somehow stayed there.

After removing it, the PDF loaded normally.

However, I still cannot see the "Annotate" option appearing. I can toggle the Annotate mode using a hotkey, but not by clicking on it.

blarghblurgh commented 1 year ago

Same problem here. Tried every possible format for the front matter and nothing gets the annotate option to show up in the three-button menu.

hagenest commented 1 year ago

I can confirm that the problem exists on openSUSE MicroOS and Obsidian installed through Flathub

ytee commented 1 year ago

I can confirm too, the problem exists. Windows 10. Option Use Annotation Mode by Default is set.

ihsan-patunru commented 1 year ago

Try this:

  1. type the following content in one file ‒‒‒ annotation-target: examplename.pdf ‒‒‒
  2. Open command palette
  3. type "Annotation: Open Annotation/Markdown Mode" and click

Does this work?

Doesn't work.

aikruger commented 1 year ago

I cannot get the annotation button to be visible either, windows 10. It has nothing to do with other add-ins either. There was the briefest of moments in which it was visible and functional but this seemed rather a glitch because another Annotation side bar icon appears within the main frame of the epub reader.

githublx893118804 commented 1 year ago

too least version to use annotator, version 1.2.7 is ok.

dfarkagallego commented 1 year ago

Try this:

  1. type the following content in one file ‒‒‒ annotation-target: examplename.pdf ‒‒‒
  2. Open command palette
  3. type "Annotation: Open Annotation/Markdown Mode" and click

Does this work?

Doesn't work.

The suggested solution does not work: just gives a blank screen with this written on it "No annotation-target property present in front matter.

saturniangroove commented 1 year ago

Having the same problem here. Windows 11 OS

gauravk-in commented 1 year ago

I had this problem too, but it worked after I added a space after the colon and the full path to the file. It works also with URL, but not with obsidianURL. Double quotes are not necessary around the file name.

---
annotation-target: ../../../attachment/filename.pdf
---
malopolo commented 1 year ago

Hey, I had the same issue on my Daily Note. I figured that it worked on a classical note. Hope it helps.

Narglfrob commented 11 months ago

Same issue here. image

Edit: I fixed it by removing all colons ":" affter "annotate-target" in the new properties UI

tematix commented 6 months ago

Same problem. But there are no "semicolons", only spaces in the vault folder path, and I can't change it.

IIlllllII commented 6 months ago

Same issue here. image

Edit: I fixed it by removing all colons ":" affter "annotate-target" in the new properties UI

Work for me, thanks a lot!

ErgoMx commented 1 month ago

Narglfrob, Work for me too, thank you so much Amigo!