0

I want to create a custom link for IMDB that will be exactly the same as youtube. I am on Doom Emacs.

So far I have the main functionality in that when I press Enter on the link it takes me to the right page in my browser.

The thing that I have noticed is different is that when hovering over the link, it shows just the IMDB id instead of the https link and the same happens in the minibuffer (hope I am using the correct term). So what I want is the IMDB id to be expanded into the full https link and to be shown same as the youtube custom link.

I tried toying with help-echo: but could not really get the right thing because it would only change the mouse hover output not the small line at the bottom of the frame.

(org-link-set-parameters "imdb" :follow (lambda (path) (browse-url (concat "https://www.imdb.com/title/" path)))) 

Usage:

  1. Select a word in visual mode in an org file
  2. SPC m l l
  3. Select imdb custom link
  4. Type ttXXXXXXXX

Current output

Mouse hover: LINK: imdb:ttXXXXXXXX
Cursor hover: LINK: imdb:ttXXXXXXXX

Desired output:

Mouse hover: LINK: https://www.imdb.com/title/ttXXXXXXXX
Cursor hover: LINK: https://www.imdb.com/title/ttXXXXXXXX

1
  • When you mention "youtube custom links", are you talking about the org-yt package that @Tobias created in response to this question? If so, please add the relevant links to your question. Commented Feb 28 at 4:06

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.