[REQUEST] Clean up quotation marks from file paths (new as of macOS 15)
Since Sequoia copying as path nog generates paths with apostrophes (at least when they contain spaces).
This means that when I want to use the "" syntax I have to remove the apostrophes manually. Given I extensively refer to documents Apple's change has been very annoying for me. Is there anyway to change the behaviour of The Archive to allow for the apostrophes?
![file](/This/Is/The/Path/To my file.pdf )
works, but
![file]( '/This/Is/The/Path/To my file.pdf')
doesn't. (I don't know how to escape the characters, so it doesn't properly show)
The change that Apple made seems to make it behave in line with UNIX standards, btw, so it doesn't seem to be a random change
Edited by @ctietze to fix formatting
Post edited by ctietze on
Howdy, Stranger!
Comments
Ugh, I didn't realize that.
This is problematic because a lot of Markdown tools won't parse these links correctly.
The CommonMark Dingus, for example, will escape
"
as%22
in links and images -- and that's just one of the most popular Markdown interpretations: https://spec.commonmark.org/dingus/It's possible that bespoke tools treat
"
gracefully in their Markdown rendering, but it's just as likely that they don't.While I'd love to make macOS interoperability nicer, this cannot be a long term solution
It'll be better to strip the quotation marks from paths when pasting inside image or link definitions instead (i.e. between
(...)
). We don't have a pasteboard clean-up step in the app, yet, that I could add a rule like this to -- so this is not a trivial change and a low priority at the moment.Your personal best bet is to write an AppleScript or other kind of macro that performs the cleanup for you when pasting, or when copying paths from Finder.
Author at Zettelkasten.de • https://christiantietze.de/
@ctietze, thank you. Yeah That makes sense I didn't expect it to be a quick fix. I don't really grasp AppleScript at the moment, but this might be a good reason to dig into it.
Cheers