I can confirm that pasting a file only pastes the name. And this is one of the several reasons I really don’t like the way MacOS handles full-screen as a separate desktop.
If you’re technically minded, as a hack/workaround, one thing you could consider is making an Alfred workflow, or an AppleScript workflow that copied the file to your attachments folder, and then copied the Markdown link text to your clipboard to paste into Obsidian.
I did a similar workflow like that long ago when I was writing Markdown articles before Obsidian came along.
This doesn’t do what you asked. It is just for ideas. This was a command I wrote for the Terminal to put in my ~/.bash_profile, if you are comfortable with command line tools at all. pbcopy is a command that captures text or information to your clipboard.
Otherwise I’m sure you could find similar functions in Alfred or AppleScript.
function aimg() {
# aimg short for Attach Image
# I use this for inserting screenshots in my Markdown documents
# takes an argument OR asks for input. Your input becomes the image name
# The the screenshot tool is activated
# Then the image gets output to a directory
# AND the Markdown syntax gets copied to clipboard, ready to be inserted into a document
local IMGPATH="/Users/chrislesage/projects/attachments/"
if [ $# -eq 0 ]
then
printf "Enter image name -> "
read NAME
else
local NAME=$1
fi
echo "Now take a screenshot"
screencapture -i -t png -x -r "$IMGPATH$NAME.png"
echo "image saved to:"
echo "$IMGPATH$NAME.png"
printf "" | pbcopy
echo "Markdown syntax:"
echo ""
}