When I insert a.pdf, it defaults to generating ![[a.pdf]]
, which displays the PDF in preview mode. When the PDF is long, it’s difficult to view content below the PDF in notes, and maintaining multiple PDFs becomes inconvenient. So, displaying inserted PDFs as [[a.pdf]]
would be better.
I’ve wanted this feature for a long time until I couldn’t stand it anymore, so I wrote a plugin to achieve this functionality.
Now whether you drag and drop or paste a PDF into it, it won’t automatically preview.
You can also configure other suffixes like .exe and .rar not to preview; by default it’s set to .pdf, .exe, .zip, .rar. Of course, you can modify the configuration at any time.
The plugin has already initiated a pull request Add plugin: Insert No Preview by Pliman · Pull Request #6125 · obsidianmd/obsidian-releases · GitHub, but it might take some time before it’s reviewed by the official team and available for direct download in the third-party plugin market.
If you want early access, you can download directly from this address:
Download insert-no-preview.zip and unzip it into [your vault].obsidian\plugins
If you like this plugin please star GitHub - Pliman/obsidian-insert-no-preview: This plugin aims to solve the problem where Obsidian, when inserting certain types of files (especially `.pdf` files), defaults to creating an embedded preview (`![[filename.extension]]`) instead of a normal internal link (`[[filename.extension]]`).