It doesn't seem to offer a very rich textual clipboard (just a public.file-url pasteboard) so the MD link would essentially just be [fileName](fullURL)
I'll aim to take a look at the weekend, if no one else has done it before then.
The public.file-url pasteBoard item in the ForkLift clipboard already pastes well, as a live link, into Jesse Grosjean's Bike Outliner, incidentally.
(It just copies a simple [ fileName ]( fileSystemURL ) link – ForkLift has a private URL Scheme for favourites, but not, I think, for general files, so when you click the copied links, they will open a Finder window and select the targeted file, but they won't open a ForkLift window.
If you are adding com.binarynights.ForkLift to an existing installation, you will need to start by running (just once) the included macro called:
Update map from bundleIDs to KM UUIDs (after new sub-macro added)
Not because (unusually among browser applications ?) its business model requires a sign-up even to test it (I don't really like that, to be honest)
but because its AppleScript support is a mess – imitates most but not all of the Chrome method and property names (.title where Chrome uses .name), and then gets some of the types wrong (depriving us of basic methods like .exists(), and turning activeTab into a property where a method is expected)
i.e. adding it to the browserLinkLR function, which should be a trivial triage of WebKit vs Chromium, instead involves making all the other browser cases wait around for the teenager to sort itself out. ¯\_(ツ)_/¯
( and, of course, with a more consistent and less type-muddled imitation of the Chrome osascript interface, Arc would be also be accessible to Keyboard Maestro browser tokens )
I see from some discussion elsewhere that something called "Little Arc windows" do not (yet ?) support osascript at all, and require, if anything, some UI script fudging.
I won't do that myself – Arc is not a browser that I expect to make any use of – but if you want to write something like that yourself for the "Little Arc" complication, I would be very happy to test and merge a GitHub pull request.
Arc and Little Arc are generally problematic* with Keyboard Maestro; but the Little Arc anomalies can largely be marginalized but adjusting the Arc Settings.
This macro continues to be one of the coolest Macros in the KM world.
Two apps, I'm curious about tweaking it for:
OmniFocus4 - The link generate: [Inbox](file:///Users/marklevison/Library/Containers/com.omnigroup.OmniFocus4/Data/Library/Application%20Support/OmniFocus/OmniFocus.ofocus/) -- looks wrong
Obsidian - The Current implementation doesn't appear to be working, it is getting called - an alert proves that, it's just doing anything.
Happy to help, debug code. My JXA skills are less than 0.
Just pushed a draft update aiming to add OmniFocus 4 and improve Obsidian support.
Please test and report.
( Remember that before using a new or updated install, you need to rebuild the map of app bundle IDs to Keyboard Maestro macro ids by running the included macro with the name:
to provide first support for Text Fragments in supporting browsers.
In other words, when you use the Copy As Markdown Link macro in a browser like Safari or Chrome, with some text selected in the browser, you will copy a URL with an affix enabling automatic highlighting of that text:
Thanks for providing this Macro - I recently discovered that I’ve actually never downloaded a copy of this powerful tool - even though I am followed closely for updates since the first day you’ve posted it here.
Since I am building Macros that will rely on this one I would like to know if there is a way to get a copy that is compatible with KM 10.2
I don’t know if the newest feature is available - but this would be great.
If there’s nothing to it but to download it and install - it would even be nicer.
Otherwise I hope that you could provide a version that is fully backwards compatible to KM 10.2.
Today I had a talk with another person in my contacts who also is still using KM 10.2 with MacOS Monterey on an Intel iMac like me and as I was telling him I would wait for a response from you about this Macro.
He told me to just install and use it right away because he is using it dayly for about nearly a year now and has no issues whatsoever with KM 10.2.
He uses the latest Version of your Macro.
I have now just installed the Macro. I’ll report issues as I get into them.