If I copy a file or folder in Finder and then use Paste and Match Style in the Notes app, it pastes the file or folder name.
In Obsidian, it doesn’t work.
When I use the normal Paste, nothing happens when it’s a folder.
If it’s a file, it pastes the file.
When I use Paste and Match Style with a folder, it pastes the image
When it’s a file, nothing happens.
When I right click my note and choose Paste as Plain Text, on both options (file or folder) it pastes the image. In the case of a folder it pastes an image with a folder, when it’s a file it pastes an image with the app that opens that kind of file.
I’m using version 1.5.12 (Installer 1.4.16) on a Mac with macOS 10.15.7
On Macs each app has to decide what to do with a pasted object. Obsidian chooses to paste the files icon, which is not that useful in most cases.
A partial solution to your problem: right-click you file in Finder and press the Option-Key. The copy entry will change to copy as Pathname. Obsidian will handle the copied pathname as text.
I have a shortcut to copy the path without right clicking. My goal was to paste the name itself, not the whole path, though.
I can use Keyboard Maestro to work around this, even though it would be way more useful to do it natively. I guess I will have to keep relying on Keyboard Maestro
If you’ve got the path or filename already in the system clipboard it shouldn’t be that hard to use Templater or similar tools to strip away the folder part, and insert that rest. This could then be assigned a hotkey.
Not sure if we can access the file name of an entire file in the system clipboard though.
I use Keyboard Maestro for that. I wish Obsidian would handle this the same way the other apps do, but I was able to create a macro in Keyboard Maestro that does it and from my tests, it handles everything as expected: single file in clipboard, multiple files, etc