I want to be able to do both of the following:
1. Insert a HTTP-based link into an org mode file and have that link automatically reformatted to an appropriate org-link.
;; Assume I have a google-doc link defined.
(org-insert-link
nil
"https://docs.google.com/document/d/12345/edit"
"My Document")
=> [[google-doc:12345][My Document]]
1. Run a command and rewrite all HTTP-based links in the current buffer to use appropriate org-link patterns if one is set.
A link to my file: [[https://docs.google.com/document/d/12345/edit][My Document]], another link: https://docs.google.com/document/d/67890/edit
(rewrite-links-in-buffer)
A link to my file: [[google-doc:12345][My Document]], another link: [[google-doc:67890][67890]]
Does anything like this exist?