snacks.nvim icon indicating copy to clipboard operation
snacks.nvim copied to clipboard

feat(image): allow specifying a page number for inlined pdfs

Open oriori1703 opened this issue 7 months ago • 2 comments

Description

Allow specifying a page number for pdfs inside of markdown.

This is done by adding "#page=" to the file name. This is same way it is done in obsidian (as discussed in https://forum.obsidian.md/t/link-to-the-exact-page-of-and-external-pdf-file/2111)

The parsing of the page info should probably be done way before the conversion, but this was the best I could with my limited time. I'm pretty new to lua, and this codebase, so this might not be the best code, but I hope it at least helps :D

Related Issue(s)

  • Fixes #1805

oriori1703 avatar Apr 26 '25 21:04 oriori1703

This PR is stale because it has been open 30 days with no activity.

github-actions[bot] avatar May 27 '25 02:05 github-actions[bot]

Bumping because of stalebot

oriori1703 avatar May 27 '25 17:05 oriori1703

This PR is stale because it has been open 30 days with no activity.

github-actions[bot] avatar Jun 27 '25 02:06 github-actions[bot]

Bump

oriori1703 avatar Jun 27 '25 05:06 oriori1703

This PR is stale because it has been open 30 days with no activity.

github-actions[bot] avatar Jul 30 '25 02:07 github-actions[bot]

Bump

oriori1703 avatar Jul 30 '25 08:07 oriori1703

This PR is stale because it has been open 30 days with no activity.

github-actions[bot] avatar Sep 01 '25 02:09 github-actions[bot]

Bump

oriori1703 avatar Sep 02 '25 10:09 oriori1703

ty

folke avatar Oct 20 '25 13:10 folke