Is there a way to replace all hyperlinks in a buffer with some shorthand phrase say “link” while keeping them as clickable links to their respective site?

I’ve been importing csv files as tables and one of the columns stores links but they’re quite long and making things awkward looking so I’d like to replace them with some shorthand.

Sorry, probably a noob question, still new.

  • 7890yuiop@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    Assuming that you are referring to plain text…

    while keeping them as clickable links

    First of all you need to establish why a plain text URL is doing something when you click on it, as your new requirement is going to need to interact with that.

    (I’m guessing goto-address-mode is enabled, so I would check that first.)