💾 Archived View for gemi.dev › gemini-mailing-list › 000744.gmi captured on 2023-11-04 at 13:04:52. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2023-12-28)

-=-=-=-=-=-=-

How do get Gemini URL to appear in post?

David Jackson <davidjayjackson (a) yahoo.com>

Hey,I have a lot of fun with Gemini.The only thing is I can't figure out 
how to get Gemini URL to display correctly in regular web posts like Parler?
David

Link to individual message.

Omar Polo <op (a) omarpolo.com>


David Jackson <davidjayjackson at yahoo.com> writes:

> Hey,I have a lot of fun with Gemini.The only thing is I can't figure out 
how to get Gemini URL to display correctly in regular web posts like Parler?
> David

It depends largely on the site/application.  Some will render everything
that looks like an url as such, so for example foo://example.com gets
highlighted, other have an hardcoded list of supported protocols, see
for instance this PR for mastodon[0].

Cheers,

P.S. Speaking of such, I'll be grateful if someone knows how to mark
gemini links inside mu4e (in mu4e-view-mode.)


[0]: https://github.com/tootsuite/mastodon/pull/15013

Link to individual message.

ew.gemini <ew.gemini (a) nassur.net>

Hello Omar,


Omar Polo writes:

> P.S. Speaking of such, I'll be grateful if someone knows how to mark
> gemini links inside mu4e (in mu4e-view-mode.)
>

I came across a few links which enabled me to properly markup
gemini links in emacs/org-mode, see:

=> gemini://gemini.circumlunar.space/~ew/2021/20210211-org-link-to-elpher.gmi

Down that path might wait, what you are looking for.

Ciao,
~ew


-- 
Keep it simple!

Link to individual message.

Omar Polo <op (a) omarpolo.com>


ew.gemini <ew.gemini at nassur.net> writes:

> Hello Omar,
>
>
> Omar Polo writes:
>
>> P.S. Speaking of such, I'll be grateful if someone knows how to mark
>> gemini links inside mu4e (in mu4e-view-mode.)
>>
>
> I came across a few links which enabled me to properly markup
> gemini links in emacs/org-mode, see:
>
> => gemini://gemini.circumlunar.space/~ew/2021/20210211-org-link-to-elpher.gmi
>
> Down that path might wait, what you are looking for.

Thanks for sharing!

I added your bit of elisp to my config, but it handles only gemini links
inside org documents, which I don't use very often.  But digging around
I ended up with something that seems to work in other buffers too:

    ;; mu4e specific:
    (setq mu4e~view-beginning-of-url-regexp
          "https?\\://\\|mailto:\\|gemini://")

    ;; generic: (?)

    (add-to-list 'thing-at-point-uri-schemes "gemini://")

    (defun my/browse-url-elpher (url &rest _args)
      "Open URL with `elpher-go'."
      (elpher-go url))

    (add-to-list 'browse-url-default-handlers
                 '("\\`gemini:" . my/browse-url-elpher))

With this I'm able to M-x browse-url with the point near a Gemini link
and open it on elpher!

Cheers!

> Ciao,
> ~ew

Link to individual message.

---

Previous Thread: Supporting multi-line input without changing the specification

Next Thread: Split Gemini spec into two specs?