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

PDF navigation support #138

Open
tristone13th opened this issue Aug 1, 2023 · 5 comments
Open

PDF navigation support #138

tristone13th opened this issue Aug 1, 2023 · 5 comments

Comments

@tristone13th
Copy link

Really appreciate this work, now Obsidian v1.3.7 supports copy selection in PDF as a link, Does obsidian-advanced-uri have any plan to support visiting a PDF selection block by a single URI? Thanks!

@Vinzent03
Copy link
Owner

What exactly should the advanced uri do, what the normal Obsidian one can't?

@tristone13th
Copy link
Author

For example, when we select some texts in the PDF and right-click on it, it will pop up for a "Copy link to selection", if we click that and then paste it, we will get the following text:

[[Types_and_Programming_Language.pdf#page=397&selection=8,0,16,68]]

But it means nothing on the Web, it is meaningful only in Obsidian.

So how about supporting open this selection by visiting the following URI:

obsidian://advanced-uri?vault=_posts&openmode=true&filepath=Types_and_Programming_Language.pdf&page=397&selection=8,0,16,68

so I can click it on the web and open the PDF locally, that's really convenient for me.

@Vinzent03
Copy link
Owner

That's actually already possible, by using the text from the internal link and properly encoding the #,&,= symbols and using the filepath parameter. Though that's not very handy, so adding the parameters as well could make things easier. On the other side, I don't think you are going to write them manually, so only adding a copy to advanced uri button could be enough. What do you think?

@wenlzhang
Copy link

On the other side, I don't think you are going to write them manually, so only adding a copy to advanced uri button could be enough. What do you think?

I think the requested feature is very useful, and this solution is enough.

@tristone13th
Copy link
Author

I second. Maybe adding a button when selecting range of text in obsidian which can export the selection as a URI link.

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

3 participants