[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Smart processing of http(s) links
From: |
Tim Cross |
Subject: |
Re: Smart processing of http(s) links |
Date: |
Mon, 29 Jun 2020 10:44:15 +1000 |
User-agent: |
mu4e 1.5.3; emacs 27.0.91 |
Ag Ibragimov <agzam.ibragimov@gmail.com> writes:
> I want to make something like this:
>
> Whenever I I use org-insert-link and it turns out to be a URI that starts
> with "https://github.com" I would like it to be processed differently than
> any other link, one example - if it is a PR or a Github Issue, I'd like it to
> fetch summary(title) of it and create a link that looks like this:
>
> [[https://github.com/user/repo/issues/3899][This issue needs to be fixed
> #3899]]
>
> Do we have any "built-in" mechanism for doing something like this? Can
> someone suggest how I can make it. Thank you!
I suspect you could do something with browse-url. The issue I see here
is why you would want the contents fetched whenever you insert a link or
where this summary(title). I guess I don't really understand what
exactly is your use case here - everything I can think of seems more
complicated and requiring more maintenance than just typing the
appropriate description when you insert the link.
--
Tim Cross