Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mediapathic opened this issue Sep 18, 2024 · 1 comment
Open

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

mediapathic opened this issue Sep 18, 2024 · 1 comment

Comments

@mediapathic
Copy link

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
Copy link
Owner

ycnmhd commented Sep 19, 2024

"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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants