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:
- Select a word in visual mode in an org file
- SPC m l l
- Select imdb custom link
- 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