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

Opening links to different line numbers but same file doesn't move the cursor #81

Closed
jeffchiou opened this issue Sep 28, 2022 · 1 comment

Comments

@jeffchiou
Copy link

jeffchiou commented Sep 28, 2022

When I open a link like
obsidian://advanced-uri?vault=Notebook&filepath=MyNote.md&line=15 from another note or from outside obsidian, it works as expected. It will open MyNote to line 15.

However, once the note is open, clicking a link like
obsidian://advanced-uri?vault=Notebook&filepath=MyNote.md&line=200
doesn't jump the cursor to line 200 like expected.

Edit: Doing some basic console.logging, clicking from outside the note results in setCursorInLine() being activated, but not when clicking from inside the note.

@jeffchiou
Copy link
Author

Wow that was incredibly fast! Thank you very much!

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

1 participant