epwalsh / obsidian.nvim

Obsidian 🤝 Neovim
Apache License 2.0
3.3k stars 150 forks source link

Add attachments other than images, e.g. PDFs #624

Open msundin opened 2 weeks ago

msundin commented 2 weeks ago

🚀 The feature, motivation and pitch

Possibility to add other attachments than images. E.g. PDFs etc.

I.e. like :ObsidianPasteImg [IMGNAME] but for PDFs etc.

I guess the PDF cannot be in the clipboard though so some other solution needed to add the PDF.

Alternatives

No response

Additional context

No response

ibash commented 2 weeks ago

Generic attachment support would be awesome. On macos if you cmd-c a file in finder then the clipboard gets written with the path of the file under public.file-url. Detecting that and copying the file into attachments + linking it would be excellent.

Screenshot 2024-06-18 at 9 40 24 AM