ycnmhd / obsidian-enhanced-annotations

MIT License
45 stars 3 forks source link

Minor: can't create notes from text in %% #15

Open mediapathic opened 2 months ago

mediapathic commented 2 months ago

The right-click to create a note doesn't work if the text is wrapped in obsidian comment characters (%%).

On one hand, I think this is a reasonable limitation, if it's intentional, but if so, I think you should in some way inform the user (preferably in the readme) so no one else wastes the time I just did trying to figure out why notes weren't working 😄 .

On the other hand, this may be unintentional behavior, in which case I figured you should know. So, file this as either a functionality or a documentation request, depending on your intentions.

ycnmhd commented 2 months ago

"Create a note" menu item is not shown when the mouse cursor is not in the first line of the comment. The code that checks if the cursor is inside a comment only processes a small chunk of text (the current line + the next 3 lines)