Change default link format from Markdown to Org

Dear,

When I “Copy Link(s)“ of a file in Finder and paste the link in TextEdit, it will insert the file name with a hookmark pointing to that file. If I paste it in Vim or Emacs, only the hookmark remains and is pasted.

Is it possible to change the default hookmark format from Markdown to Org? That is to paste something like [[hookmark][file name or "Selection"]]?

If there is no quick global configuration, what should I do via scripting on the Hookmark side, such that it will work for Finder, Skim, Safari and Firefox.

Thanks!

Thank you for contacting us, @Hongying .

I am not sure I fully understand your question. Can “Copy As Markdown Link” help?

I’m using “Copy As Markdown Link”, and then I convert the markdown syntax into Org via a function in Emacs.

So my question should have been: can we have a function “Copy As Org Link”. That is to copy as:

[[https://duckduckgo.com][Duck Duck Go]]

instead of:

[Duck Duck Go](``https://duckduckgo.com``).

Thank you for the explanation, @Hongying .

We will have a look.

1 Like

Just in case you have Keyboard Maestro installed, you can use it to change this automatically. Just have it watch the clipboard and swap round the format automatically. It would be invisible to you. Not as good as having it in HM directly, but a fair workaround.

Good to know that, thought I don’t have it installed. I will definitely try it out!

Thanks!